/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: "Inter", sans-serif;

    background: #ffffff;

    color: #111111;

    line-height: 1.6;
}


a {
    text-decoration: none;

    color: inherit;
}


button {
    font-family: inherit;
}


/* =========================================
   NAVBAR
========================================= */

.navbar {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background: rgba(255,255,255,0.92);

    backdrop-filter: blur(15px);

    border-bottom: 1px solid #eeeeee;
}


.nav-container {
    max-width: 1150px;

    height: 75px;

    margin: auto;

    padding: 0 25px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.logo {
    font-size: 21px;

    font-weight: 800;

    letter-spacing: -1px;
}


.logo span {
    color: #777777;
}


nav {
    display: flex;

    align-items: center;

    gap: 32px;
}


nav a {
    font-size: 14px;

    font-weight: 500;

    color: #666666;

    transition: 0.3s ease;
}


nav a:hover {
    color: #000000;
}


.nav-ai {
    padding: 10px 17px;

    border: 1px solid #111111;

    border-radius: 100px;

    color: #111111 !important;

    transition: 0.3s ease;
}


.nav-ai:hover {
    background: #111111;

    color: #ffffff !important;
}


.menu-button {
    display: none;

    border: none;

    background: transparent;

    font-size: 24px;

    cursor: pointer;
}


/* =========================================
   HERO
========================================= */

.hero {
    min-height: 100vh;

    display: flex;

    align-items: center;

    padding: 130px 25px 80px;

    background:
        radial-gradient(
            circle at 80% 30%,
            #eeeeee 0,
            transparent 30%
        );
}


.hero-container {
    width: 100%;

    max-width: 1150px;

    margin: auto;

    display: grid;

    grid-template-columns: 1.2fr 0.8fr;

    gap: 80px;

    align-items: center;
}


.eyebrow {
    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;

    color: #777777;

    margin-bottom: 20px;
}


.hero h1 {
    max-width: 800px;

    font-size: clamp(45px, 6vw, 76px);

    line-height: 1.02;

    letter-spacing: -4px;
}


.hero h1 span,
.about h2 span,
.portfolio h2 span,
.contact h2 span,
.ai-section h2 span,
.ai-page-header h1 span {
    color: #777777;
}


.hero-description {
    max-width: 600px;

    margin-top: 30px;

    color: #666666;

    font-size: 17px;
}


.hero-buttons {
    display: flex;

    gap: 12px;

    margin-top: 35px;
}


.btn {
    padding: 14px 23px;

    border-radius: 8px;

    font-size: 14px;

    font-weight: 600;

    transition: 0.3s ease;
}


.btn-primary {
    background: #111111;

    color: #ffffff;
}


.btn-primary:hover {
    background: #333333;

    transform: translateY(-2px);
}


.btn-secondary {
    border: 1px solid #dddddd;
}


.btn-secondary:hover {
    border-color: #111111;
}


/* =========================================
   HERO VISUAL
========================================= */

.hero-card {
    height: 420px;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;
}


.profile-circle {
    width: 270px;

    height: 270px;

    border-radius: 50%;

    background: #111111;

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 70px;

    font-weight: 800;

    box-shadow:
        0 30px 80px rgba(0,0,0,0.15);
}


.floating-card {
    position: absolute;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 15px 18px;

    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 12px;

    box-shadow:
        0 15px 40px rgba(0,0,0,0.08);
}


.floating-icon {
    width: 42px;

    height: 42px;

    border-radius: 9px;

    background: #111111;

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 11px;

    font-weight: 700;
}


.floating-card strong {
    display: block;

    font-size: 13px;
}


.floating-card small {
    color: #888888;

    font-size: 11px;
}


.card-one {
    top: 50px;

    right: 0;
}


.card-two {
    bottom: 55px;

    left: 0;
}


/* =========================================
   GENERAL SECTION
========================================= */

.section {
    padding: 120px 25px;
}


.section-container {
    max-width: 1150px;

    margin: auto;
}


.section-label {
    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;

    color: #999999;

    margin-bottom: 60px;
}


/* =========================================
   ABOUT
========================================= */

.about {
    border-top: 1px solid #eeeeee;
}


.about-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;
}


.about h2,
.portfolio h2,
.contact h2 {
    font-size: clamp(38px, 5vw, 60px);

    line-height: 1.1;

    letter-spacing: -3px;
}


.about-text {
    color: #666666;
}


.about-text p {
    margin-bottom: 20px;
}


.about-text strong {
    color: #111111;
}


.skills {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 30px;
}


.skills span {
    padding: 8px 13px;

    border: 1px solid #dddddd;

    border-radius: 100px;

    font-size: 12px;

    color: #555555;
}


/* =========================================
   PORTFOLIO
========================================= */

.portfolio {
    background: #fafafa;
}


.portfolio-header {
    display: flex;

    justify-content: space-between;

    align-items: end;

    gap: 40px;

    margin-bottom: 55px;
}


.portfolio-header p {
    max-width: 350px;

    color: #777777;
}


.portfolio-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}


.project-card {
    position: relative;

    background: #ffffff;

    border: 1px solid #e8e8e8;

    border-radius: 15px;

    padding: 35px;

    transition: 0.3s ease;
}


.project-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 20px 50px rgba(0,0,0,0.07);
}


.project-number {
    position: absolute;

    top: 25px;

    right: 30px;

    font-size: 12px;

    color: #aaaaaa;
}


.project-icon {
    width: 50px;

    height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #111111;

    color: #ffffff;

    border-radius: 10px;

    font-size: 10px;

    font-weight: 700;

    margin-bottom: 25px;
}


.project-card h3 {
    font-size: 22px;

    margin-bottom: 12px;
}


.project-card p {
    color: #777777;

    font-size: 14px;

    min-height: 70px;
}


.project-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin: 25px 0;
}


.project-tags span {
    background: #f2f2f2;

    padding: 6px 9px;

    border-radius: 5px;

    font-size: 10px;

    font-weight: 600;
}


.project-link {
    font-size: 13px;

    font-weight: 700;
}


/* =========================================
   AI CTA
========================================= */

.ai-section {
    padding: 100px 25px;

    background: #111111;

    color: #ffffff;
}


.ai-container {
    max-width: 1150px;

    margin: auto;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 50px;
}


.ai-section .eyebrow {
    color: #888888;
}


.ai-section h2 {
    font-size: clamp(40px, 5vw, 65px);

    letter-spacing: -3px;

    line-height: 1.05;
}


.ai-section h2 span {
    color: #aaaaaa;
}


.ai-section p {
    max-width: 600px;

    margin-top: 20px;

    color: #999999;
}


.ai-button {
    flex-shrink: 0;

    display: flex;

    align-items: center;

    gap: 25px;

    padding: 20px 25px;

    border: 1px solid #555555;

    border-radius: 10px;

    font-weight: 600;

    transition: 0.3s ease;
}


.ai-button:hover {
    background: #ffffff;

    color: #111111;

    border-color: #ffffff;
}


.ai-button span {
    font-size: 20px;
}


/* =========================================
   CONTACT
========================================= */

.contact {
    border-bottom: 1px solid #eeeeee;
}


.contact-grid {
    display: grid;

    grid-template-columns: 1fr 0.8fr;

    gap: 100px;
}


.contact-grid > div:first-child p {
    margin-top: 25px;

    max-width: 500px;

    color: #777777;
}


.contact-info {
    display: flex;

    flex-direction: column;

    gap: 15px;
}


.contact-item {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 18px;

    border: 1px solid #eeeeee;

    border-radius: 10px;

    transition: 0.3s ease;
}


.contact-item:hover {
    border-color: #111111;

    transform: translateX(3px);
}


.contact-icon {
    width: 40px;

    height: 40px;

    border-radius: 8px;

    background: #111111;

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 11px;

    font-weight: 700;
}


.contact-item small {
    display: block;

    color: #999999;

    font-size: 10px;
}


.contact-item strong {
    font-size: 13px;
}


/* =========================================
   FOOTER
========================================= */

footer {
    padding: 30px 25px;
}


.footer-container {
    max-width: 1150px;

    margin: auto;

    display: flex;

    justify-content: space-between;

    color: #999999;

    font-size: 12px;
}


.footer-container a {
    color: #555555;
}


/* =========================================
   AI APP PAGE
========================================= */

.ai-app-body {
    background: #fafafa;
}


.ai-page {
    min-height: calc(100vh - 75px);

    padding: 120px 25px 70px;
}


.ai-page-header {
    max-width: 1150px;

    margin: 0 auto 35px;
}


.back-link {
    display: inline-block;

    margin-bottom: 35px;

    font-size: 13px;

    font-weight: 600;

    color: #666666;

    transition: 0.3s ease;
}


.back-link:hover {
    color: #000000;
}


.ai-page-header h1 {
    font-size: clamp(45px, 6vw, 70px);

    line-height: 1;

    letter-spacing: -4px;

    margin-bottom: 20px;
}


.ai-page-header > p:last-child {
    color: #777777;
}


/* =========================================
   STREAMLIT IFRAME
========================================= */

.streamlit-container {
    width: 100%;

    max-width: 1150px;

    height: 800px;

    margin: auto;

    background: #ffffff;

    border: 1px solid #e5e5e5;

    border-radius: 15px;

    overflow: hidden;

    box-shadow:
        0 20px 60px rgba(0,0,0,0.08);
}


.streamlit-container iframe {
    width: 100%;

    height: 100%;

    border: none;

    display: block;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 800px) {


    /* NAV */

    nav {
        position: absolute;

        top: 75px;

        left: 0;

        width: 100%;

        padding: 25px;

        background: #ffffff;

        border-bottom: 1px solid #eeeeee;

        display: none;

        flex-direction: column;

        align-items: flex-start;

        gap: 20px;
    }


    nav.active {
        display: flex;
    }


    .menu-button {
        display: block;
    }


    /* HERO */

    .hero-container {
        grid-template-columns: 1fr;

    }


    .hero-card {
        height: 300px;
    }


    .profile-circle {
        width: 200px;

        height: 200px;

        font-size: 50px;
    }


    /* ABOUT */

    .about-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }


    /* PORTFOLIO */

    .portfolio-grid {
        grid-template-columns: 1fr;
    }


    .portfolio-header {
        flex-direction: column;

        align-items: flex-start;

        gap: 20px;
    }


    /* AI */

    .ai-container {
        flex-direction: column;

        align-items: flex-start;
    }


    /* CONTACT */

    .contact-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }


    /* AI PAGE */

    .ai-page {
        padding: 110px 15px 50px;
    }


    .streamlit-container {
        height: 750px;

        border-radius: 10px;
    }


    .hero h1,
    .ai-page-header h1 {
        letter-spacing: -2px;
    }


    .about h2,
    .portfolio h2,
    .contact h2,
    .ai-section h2 {
        letter-spacing: -2px;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 500px) {


    .hero {
        padding-top: 120px;
    }


    .hero-buttons {
        flex-direction: column;
    }


    .btn {
        text-align: center;
    }


    .floating-card {
        transform: scale(0.85);
    }


    .card-one {
        right: -20px;
    }


    .card-two {
        left: -20px;
    }


    .footer-container {
        flex-direction: column;

        gap: 15px;
    }


    .project-card {
        padding: 25px;
    }

}