@import url('https://fonts.googleapis.com/css2?family=Preahvihear&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Preahvihear&display=swap');
.preahvihear-regular {
  font-family: "Preahvihear", sans-serif;
  font-weight: 400;
  font-style: normal;
}

:root {
    --primary-color: #FFFFFF;
    --text-color: #FFFFFF;
    --link-color: #1877F2;
    --bg-color: #11071F;
    --bg-secondary: #693B93;
    --bg-fallback: #130428;
    --bg-gradient: linear-gradient(78deg, #130428 7%, #251043 34%, #38126D 57%, #261045 85%, #190634 100%);
    --nav-color: #130428;
    --font-main: "Preahvihear", sans-serif;
    --max-width: 1200px;
}


body[data-theme="light"] {
    --primary-color: #111;
    --text-color: #111;
    --bg-color: #FFFFFF;
    --bg-secondary: #D9D9D9;
    --bg-fallback: #f7f7f7;
    --nav-color: #CCD6F6;
    --bg-gradient: none;
}

body[data-theme="light"] header,
body[data-theme="light"] nav {
    background-color: #CCD6F6;
}

body[data-theme="light"] article {
    background-color: #fff;
    border-color: #ddd;
}

body[data-theme="light"] blockquote {
    background-color: #fcfcfc;
    border-left-color: #111;
}

.theme-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
}

body[data-theme="light"] .section-contact {
    background: #ffffff;
    border: 1px solid #e5e5e5;
}

body[data-theme="light"] .section-contact input,
body[data-theme="light"] .section-contact textarea {
    background: #f6f6f6;
    color: #111;
    border-color: #ccc;
}

body[data-theme="light"] .section-contact input:focus,
body[data-theme="light"] .section-contact textarea:focus {
    background: #ffffff;
    border-color: #1877F2;
}

body[data-theme="light"] .section-contact button {
    background: #251043;
}

body[data-theme="light"] .section-contact button:hover {
    background: #38126D;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

ul {
    list-style: none;
    color: var(--text-color);
}

img {
    max-width: 100%;
    display: block;
}

header {
    background-color: var(--nav-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: var(--max-width);
    background-color: var(--nav-color);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: #6b7280;
}

.section-intro {
    max-width: var(--max-width);
    margin: 4rem auto;
    padding: 2rem 2rem;
    text-align: left;
}

.section-intro-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 40px;
    margin-bottom: 20px;
    gap: 15rem;
    background-image: url('image/Gradient.png');
    background-position: left;
    background-repeat: no-repeat;
}

.icon-personal {
    padding: 50px;
    margin-right: 20px;
}

.myname h1 {
    font-size: 50px;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 10px;
}

.section-intro-descript {
    color: #6b7280;
    font-size: 1.1rem;
}

.section-intro-info {
    text-align: left;
    font-weight: 400;
    margin-bottom: 40px;
}

.section-intro-info h1 {
    font-size: 50px;
    font-weight: 400;
    color: var(--primary-color);
}

.intro-info-link {
    width: 750px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.linkedIn {
    color: var(--link-color);
}

.section-intro-description {
    margin: 0 ;
    width: 740px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.section-education {
    max-width: var(--max-width);
    margin: 4rem auto;
    padding: 20px 2rem;
    text-align: left;
}

.section-education h3 {
    font-size: 40px;
    font-weight: 400;
}

.section-projects {
    max-width: var(--max-width);
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: left;
    background-image: url(image/GradientSecond.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.section-projects h3 {
    font-size: 40px;
}

.section-projects ul li {
    margin-top: 20px;
    padding: 0.5rem 0;
    font-weight: 500;
}

.section-article {
    max-width: var(--max-width);
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: left;
}

.section-article h3 {
    font-size: 40px;
    font-weight: 400;
}

article {
    margin-top: 20px;
    border-top: 5px solid var(--bg-secondary);
    border-radius: 15px;
    background-color: var(--bg-fallback);
    background-image: var(--bg-gradient);
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 20px;
}

.article-title {
    padding: 0;
}

article img {
    width: 80px;
    height: 80px;
}

article h4 {
    font-size: 30px;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

article p {
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-family: "Poppins", sans-serif;
}

article a {
    color: var(--text-color);
    font-size: 0.9rem;
    border: 1px solid var(--bg-fallback);
    background-color: var(--link-color);
    border-radius: 12px;
    padding: 5px 10px;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
}

article a:hover {
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--bg-secondary);
    border: 1px solid var(--nav-color);
}


.reviews {
    max-width: var(--max-width);
    margin: 4rem auto;
    padding: 0 2rem;
}

.reviews-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.section-feedback-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

blockquote {
    background-blend-mode: var(--bg-color);
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 0 8px 8px 0;
}

blockquote footer {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
    font-style: italic;
}

.section-footer {
    background-color: var(--nav-color) ;
    color: var(--text-color);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    gap: 2rem;
    font-family:  "Poppins", sans-serif;
}

.section-contact {
    max-width: 700px;
    margin: 4rem auto;
    padding: 2.5rem;
    border-radius: 20px;
    background: var(--bg-secondary);
    background-image: var(--bg-gradient);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-color);
}

.section-contact h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
}
.section-contact form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.section-contact label {
    font-size: 1rem;
    margin-bottom: 6px;
    display: block;
    opacity: 0.9;
}


.section-contact input,
.section-contact textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    background: rgba(0,0,0,0.2);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: 0.2s;
}
.section-contact button {
    padding: 12px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: #4F228D;
    transition: 0.2s;
}

.section-contact button:hover {
    background: #6E33BF;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    nav {
        display: flex;
        flex-direction: row;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .myname h1 {
        font-size: 2rem;
    }

    .icon-personal {
        padding: 50px;
        margin: 0 auto;
    }
    
     .section-intro{
        max-width: 650px;
     }

     .section-intro-description {
        max-width: 550px;
     }

    .section-article, .section-contact, .section-education, .section-projects, .reviews {
        max-width: 500px;
    }
}

.section-contact-link {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.section-contact-link img {
    display: flex;
    flex-direction: row;
    width: 30px;
    height: 30px;
}

