/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Global font */
* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* NAVBAR */
.nav {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #222;
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.25s ease;
}

/* Underline hover animation */
.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #6c4bff;
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #6c4bff;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* SECTIONS */
.section {
    padding: 140px 32px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: #333;
}
/* HOME SECTION */
.home-section {
    height: 100vh;
    padding-top: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

.home-content {
    max-width: 55%;
}

.home-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
}

.home-content h2 span {
    color: #6c4bff;
    font-weight: 700;
}

.home-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin: 10px 0 20px;
    color: #222;
}

.home-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}

/* Buttons */
.home-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.btn-primary {
    padding: 12px 28px;
    background: #6c4bff;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn-primary:hover {
    background: #5436d9;
}

.btn-secondary {
    padding: 12px 28px;
    border: 2px solid #6c4bff;
    color: #6c4bff;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn-secondary:hover {
    background: #6c4bff;
    color: #fff;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 18px;
    margin-top: 10px;
}

.social-icons a {
    font-size: 1.4rem;
    color: #6c4bff;
    transition: 0.3s ease;
}

.social-icons a:hover {
    color: #5436d9;
}

.home-image {
    position: relative;
}

.home-image::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(108, 75, 255, 0.25), rgba(108, 75, 255, 0));
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(8px);
    z-index: -1;
}

.home-image img {
    width: 380px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(108, 75, 255, 0.25);
    animation: float 4s ease-in-out infinite;
    transition: 0.4s ease;
}

.home-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 35px rgba(108, 75, 255, 0.35);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}
@media (max-width: 768px) {

    .home-section {
        height: auto;                 /* allow natural height */
        padding-top: 120px;
        flex-direction: column;       /* stack image + text */
        text-align: center;
        gap: 30px;
    }

    .home-content {
        max-width: 100%;              /* full width text */
    }

    .home-content h1 {
        font-size: 2.2rem;
    }

    .home-content h2 {
        font-size: 1.6rem;
    }

    .home-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .home-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .home-buttons a {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
    }

    .social-icons {
        justify-content: center;
        margin-top: 10px;
    }

    .home-image img {
        width: 220px;                 /* reduce image size */
        border-radius: 12px;
    }

    .home-image::before {
        width: 240px;
        height: 240px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {

    .home-image img {
        width: 180px;
    }

    .home-content h1 {
        font-size: 1.9rem;
    }

    .home-content h2 {
        font-size: 1.4rem;
    }
}
/* EDUCATION SECTION */
.education-section {
    padding: 120px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #222;
}

.edu-container {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.edu-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px 30px;
    background: #fafafa;
    border-left: 4px solid #6c4bff;
    border-radius: 12px;
    transition: 0.3s ease;
}

.edu-item:hover {
    background: #f2edff;
    transform: translateX(8px);
}

.edu-logo img {
    width: 80px;
    height: auto;
    object-fit: contain;
    transition: 0.3s ease;
}

.edu-logo img:hover {
    transform: scale(1.08);
}

.edu-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
}

.edu-year {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6c4bff;
    margin: 6px 0 12px;
}

.edu-text p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* PROJECTS SECTION */
.projects-section {
    padding: 120px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.project-card {
    background: #fafafa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e5e5e5;
    transition: 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    background: #f2edff;
    box-shadow: 0 10px 25px rgba(108, 75, 255, 0.15);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.project-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.project-card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

.project-btn {
    display: inline-block;
    padding: 10px 22px;
    background: #6c4bff;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.project-btn:hover {
    background: #5436d9;
}

.details-btn {
    padding: 10px 22px;
    background: #6c4bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s ease;
}

.details-btn:hover {
    background: #5436d9;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #fff;
    margin: 80px auto;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    animation: fadeIn 0.3s ease;
}

.modal-img {
    width: 70%;
    max-width: 280px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
    border-radius: 10px;
}

.close {
    float: right;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

.modal-btn {
    display: inline-block;
    padding: 10px 22px;
    background: #6c4bff;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CV SECTION */
.cv-section {
    padding: 140px 32px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.cv-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.cv-box {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: 0.3s ease;
}

.cv-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(108, 75, 255, 0.18);
}

.cv-preview {
    width: 180px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.cv-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #6c4bff;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: 0.3s ease;
}

.cv-btn:hover {
    background: #5436d9;
}
/* CONTACT SECTION */
/* CONTACT SECTION */
.contact-section {
    padding: 140px 32px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

/* Premium Card Style */
.contact-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    padding: 35px 25px;
    transition: 0.35s ease;
    box-shadow: 0 8px 25px rgba(108, 75, 255, 0.15);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(108, 75, 255, 0.25);
    background: rgba(255, 255, 255, 0.25);
}

/* Icon */
.contact-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

/* Titles */
.contact-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

/* Text + Links */
.contact-card a,
.contact-card p {
    font-size: 1.1rem;
    color: #444;
    text-decoration: none;
    font-weight: 500;
}

.contact-card a {
    color: #6c4bff;
    font-weight: 600;
}

.contact-card a:hover {
    color: #5436d9;
}

/* LINE ID small text */
.line-id {
    margin-top: 6px;
    font-size: 0.95rem;
    color: #666;
}

/* Mobile */
@media (max-width: 600px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}


/* Hamburger button hidden on desktop */
.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

/* ============================
   MOBILE NAVIGATION
   ============================ */
@media (max-width: 768px) {

    /* Show hamburger */
    .menu-toggle {
        display: block;
    }

    /* Hide menu by default */
    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        display: none;
        flex-direction: column;
        gap: 20px;
        background: #ffffff;
        padding: 20px;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        z-index: 999;
    }

    /* Show menu when toggled */
    .nav-menu.show {
        display: flex;
    }

    /* Show hamburger */
    .menu-toggle {
        display: block;
    }

    /* Hide desktop menu layout */
    .nav-menu li {
        text-align: center;
    }
}


