/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: var(--text);
    background: var(--bg-primary);

    line-height: 1.6;

    overflow-x: hidden;

    transition: background 0.3s ease, color 0.3s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}


/* =====================================================
   VARIABLES
===================================================== */

:root {
    --text: #0a0a0a;
    --muted: #525252;
    --light-text: #737373;

    --border: #e5e5e5;
    --border-strong: #d4d4d4;

    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --bg-card: #ffffff;
    --bg-nav: rgba(255, 255, 255, 0.94);
    --border-nav: rgba(229, 229, 229, 0.8);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 35px rgba(0, 0, 0, 0.07);

    --max-width: 1180px;
}

[data-theme="dark"] {
    --text: #fafafa;
    --muted: #a3a3a3;
    --light-text: #737373;

    --border: #262626;
    --border-strong: #404040;

    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #141414;
    --bg-nav: rgba(10, 10, 10, 0.94);
    --border-nav: rgba(38, 38, 38, 0.8);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 35px rgba(0, 0, 0, 0.5);
}


/* =====================================================
   NAVIGATION
===================================================== */

.navbar {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background: var(--bg-nav);

    border-bottom: 1px solid var(--border-nav);

    backdrop-filter: blur(12px);

    transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-container {
    max-width: var(--max-width);

    margin: auto;

    padding: 17px 25px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.logo {
    font-size: 23px;

    font-weight: 800;

    letter-spacing: -1px;
}

.logo span {
    color: var(--text);
}

.nav-links {
    display: flex;

    align-items: center;

    gap: 25px;
}

.nav-links a {
    position: relative;

    font-size: 13px;

    color: var(--muted);

    transition: color 0.25s ease;
}

.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: var(--text);

    transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-button {
    display: none;

    border: none;

    background: transparent;

    cursor: pointer;

    font-size: 24px;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 12px;
}

.theme-toggle:hover {
    border-color: var(--border-strong);
    background: var(--bg-tertiary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--text);
    transition: stroke 0.3s ease, transform 0.3s ease;
}

.theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}


.logo img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    display: block;
}

/* =====================================================
   HERO
===================================================== */

.hero {
    min-height: 100vh;

    display: flex;

    align-items: center;

    padding: 130px 25px 80px;

    position: relative;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    max-width: var(--max-width);

    width: 100%;

    margin: auto;

    display: grid;

    grid-template-columns: 1.3fr 0.7fr;

    gap: 80px;

    align-items: center;
}

.eyebrow {
    color: var(--muted);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 12px;
}

.hero h1 {
    font-size: clamp(55px, 8vw, 92px);

    line-height: 0.95;

    letter-spacing: -5px;

    font-weight: 800;
}

.hero h1 span {
    color: var(--text);
}

.hero h2 {
    font-size: 22px;

    font-weight: 500;

    color: var(--muted);

    margin-top: 20px;
}

.hero-description {
    max-width: 590px;

    color: var(--muted);

    font-size: 16px;

    margin-top: 20px;
}

.hero-buttons {
    display: flex;

    gap: 12px;

    margin-top: 30px;
}

.button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 11px 19px;

    border-radius: 6px;

    font-size: 13px;

    font-weight: 600;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button.primary {
    background: var(--text);

    color: var(--bg-primary);
}

.button.primary:hover {
    background: var(--muted);
}

.button.secondary {
    border: 1px solid var(--border);

    color: var(--text);
}

.button.secondary:hover {
    border-color: var(--text);
    background: var(--bg-tertiary);
}

.location {
    color: #888;

    font-size: 12px;

    margin-top: 20px;
}


/* HERO PROFILE */

.hero-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-circle {
    width: 270px;
    height: 270px;

    border-radius: 50%;
    overflow: hidden;

    background: var(--bg-tertiary);
    border: 1px solid var(--border);

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    box-shadow: var(--shadow-md);
}

/* Inner border */
.profile-circle::before {
    content: "";

    position: absolute;

    inset: 13px;

    border: 1px solid var(--border);

    border-radius: 50%;

    pointer-events: none;

    z-index: 2;
}

/* Profile image */
.profile-circle img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    display: block;

    position: relative;
    z-index: 1;
}

/* Initials fallback */
.profile-circle>span {
    font-size: 70px;

    font-weight: 800;

    color: var(--text);

    letter-spacing: -3px;

    position: relative;
    z-index: 1;
}

/* Caption */
.profile-caption {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 18px;

    font-size: 11px;

    color: var(--light-text);
}

/* Status dot */
.profile-caption>span {
    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: var(--text);
}

/* Social Links (Hero) */
.social-links {
    display: flex;
    flex-direction: row;
    gap: 24px;
    margin-top: 32px;
}

.social-links a {
    font-size: 22px;
    color: var(--text);
    transition: transform 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

.social-links a:has(.fa-github):hover,
.social-links a .fa-github:hover { 
    color: #8957E5; 
}

.social-links a:has(.fa-linkedin):hover,
.social-links a .fa-linkedin:hover { 
    color: #0A66C2; 
}

.social-links a:has(.fa-instagram):hover,
.social-links a .fa-instagram:hover { 
    color: #E1306C; 
}

.social-links a:has(.fa-facebook):hover,
.social-links a .fa-facebook:hover { 
    color: #1877F2; 
}

.social-links a:has(.fa-discord):hover,
.social-links a .fa-discord:hover { 
    color: #5865F2; 
}

/* =====================================================
   SECTIONS
===================================================== */

.section {
    padding: 110px 25px;
}

.light-section {
    background: var(--bg-secondary);

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);

    transition: background 0.3s ease, border-color 0.3s ease;
}

.section-container {
    max-width: var(--max-width);

    margin: auto;
}

.section-heading {
    max-width: 700px;

    margin-bottom: 45px;
}

.section-heading h2 {
    font-size: clamp(32px, 5vw, 48px);

    line-height: 1.1;

    letter-spacing: -2px;

    margin-bottom: 13px;
}

.section-heading>p:last-child {
    color: var(--muted);

    font-size: 14px;
}


/* =====================================================
   ABOUT
===================================================== */

.about-grid {
    display: grid;

    grid-template-columns: 1.4fr 0.8fr;

    gap: 80px;

    align-items: start;
}

.about-text {
    max-width: 650px;
}

.about-text p {
    font-size: 17px;

    color: var(--muted);

    margin-bottom: 18px;
}

.about-card {
    border-top: 1px solid var(--border);
}

.about-card-item {
    padding: 17px 0;

    border-bottom: 1px solid var(--border);

    display: flex;

    flex-direction: column;

    gap: 3px;
}

.about-card-item span {
    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1.5px;

    color: var(--light-text);
}

.about-card-item strong {
    font-size: 13px;

    font-weight: 600;

    color: var(--text);
}


/* =====================================================
   SKILLS
===================================================== */

.skills-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 12px;
}

.skill-card {
    padding: 22px;

    background: var(--bg-card);

    border: 1px solid var(--border);

    border-radius: 7px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-4px);

    border-color: var(--border-strong);

    box-shadow: var(--shadow-md);
}

.skill-number {
    display: block;

    font-size: 10px;

    color: var(--light-text);

    margin-bottom: 18px;
}

.skill-card h3 {
    font-size: 16px;

    margin-bottom: 3px;
    color: var(--text);
}

.skill-card p {
    font-size: 11px;

    color: var(--light-text);
}

.self-learning {
    color: var(--light-text);

    font-size: 12px;

    margin-top: 20px;
}

/* Skills Categories (New) */
.skills-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.skills-category {
    padding: 30px;

    background: var(--bg-secondary);

    border: 1px solid var(--border);

    border-radius: 16px;
}

.skills-category h3 {
    margin-bottom: 25px;
    font-size: 18px;
    color: var(--text);
}

.skill-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-item i,
.skill-item span,
.skill-item .skill-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.skill-item:hover i,
.skill-item:hover span,
.skill-item:hover .skill-icon {
    transform: scale(1.15);
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 22px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'liga';
}

/* Brand Colors for Skill Icons */
.icon-python { color: #3776AB; }
.icon-typescript { color: #3178C6; }
.icon-c { color: #00599C; }
.icon-cpp { color: #00599C; }
.icon-html { color: #E34F26; }
.icon-css { color: #1572B6; }
.icon-javascript { color: #F0BE25; }
.icon-nodejs { color: #5FA04E; }
.icon-discordjs { color: #5865F2; }
.icon-git { color: #F05032; }
.icon-github { color: var(--text); }
.icon-vscode { color: #007ACC; }
.icon-antigravity { 
    font-family: 'Material Symbols Outlined' !important;
    color: #4285F4; 
}

.skill-item strong {
    display: block;
    font-size: 14px;
    color: var(--text);
}

.skill-item small {
    display: block;
    color: var(--light-text);
    font-size: 10px;
    margin-top: 2px;
}

/* =====================================================
   PROJECTS
===================================================== */

.projects-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;
}

.project-card {
    position: relative;

    padding: 28px;

    border: 1px solid var(--border);

    border-radius: 8px;

    background: var(--bg-card);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);

    border-color: var(--border-strong);

    box-shadow: var(--shadow-lg);
}

.project-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 30px;
}

.project-index {
    font-size: 11px;

    color: var(--light-text);

    font-weight: 600;
}

.project-role {
    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: var(--light-text);
}

.project-icon {
    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 7px;

    background: var(--bg-tertiary);

    font-size: 19px;

    font-weight: 700;

    color: var(--text);

    margin-bottom: 18px;

    transition: background 0.3s ease;
}

.project-card h3 {
    font-size: 20px;

    letter-spacing: -0.5px;

    margin-bottom: 8px;
}

.project-card>p {
    font-size: 13px;

    color: var(--muted);

    max-width: 500px;
}

.project-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin-top: 20px;
}

.project-tags span {
    padding: 4px 8px;

    background: var(--bg-tertiary);

    border-radius: 4px;

    font-size: 10px;

    color: var(--muted);

    transition: background 0.3s ease, color 0.3s ease;
}

.project-link {
    display: inline-block;

    margin-top: 22px;

    color: var(--text);

    font-size: 12px;

    font-weight: 600;

    transition: color 0.2s ease;
}

.project-link:hover {
    color: var(--muted);
}


/* FEATURED SECURITY PROJECT */

.featured-project {
    grid-column: span 2;

    background: var(--bg-secondary);
}

.security-features {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 8px;

    margin-top: 20px;

    max-width: 650px;
}

.security-features div {
    font-size: 12px;

    color: var(--muted);
}

.security-features span {
    color: var(--text);

    margin-right: 6px;

    font-weight: bold;
}


/* =====================================================
   WHAT I DO
===================================================== */

.work-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 0;

    border-top: 1px solid var(--border);

    border-left: 1px solid var(--border);
}

.work-item {
    padding: 35px;

    border-right: 1px solid var(--border);

    border-bottom: 1px solid var(--border);

    background: var(--bg-primary);

    transition:
        background 0.25s ease,
        border-color 0.3s ease;
}

.work-item:hover {
    background: var(--bg-secondary);
}

.work-number {
    display: block;

    color: var(--light-text);

    font-size: 11px;

    margin-bottom: 35px;
}

.work-item h3 {
    font-size: 19px;

    color: var(--text);

    margin-bottom: 8px;
}

.work-item p {
    font-size: 13px;

    color: var(--muted);
}


/* =====================================================
   EDUCATION
===================================================== */

.timeline {
    max-width: 800px;

    border-left: 1px solid var(--border);

    margin-left: 8px;
}

.timeline-item {
    position: relative;

    padding: 0 0 45px 35px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;

    left: -5px;
    top: 4px;

    width: 9px;
    height: 9px;

    background: var(--text);

    border-radius: 50%;

    border: 2px solid var(--bg-primary);

    box-shadow: 0 0 0 1px var(--text);
}

.timeline-label {
    font-size: 10px;

    letter-spacing: 1.5px;

    color: var(--light-text);
}

.timeline-item h3 {
    font-size: 17px;

    color: var(--text);

    margin-top: 4px;
}


/* =====================================================
   GOAL
===================================================== */

.goal-section {
    padding-top: 70px;

    padding-bottom: 70px;
}

.goal-box {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;

    padding: 45px;

    background: var(--text);

    color: var(--bg-primary);

    border-radius: 9px;

    box-shadow: var(--shadow-lg);

    position: relative;
}

.goal-box .eyebrow {
    color: var(--muted);
}

.goal-box h2 {
    font-size: 38px;

    letter-spacing: -1.5px;

    margin-bottom: 10px;
}

.goal-box p {
    max-width: 700px;

    color: var(--muted);

    font-size: 14px;
}

.goal-arrow {
    font-size: 50px;

    color: var(--light-text);

    font-weight: 200;
}


/* =====================================================
   CONTACT
===================================================== */

.contact-section {
    padding-bottom: 120px;
}

.contact-content {
    max-width: 900px;
}

.contact-content h2 {
    font-size: clamp(40px, 7vw, 70px);

    letter-spacing: -3px;

    color: var(--text);

    margin-bottom: 15px;
}

.contact-content>p {
    max-width: 600px;

    color: var(--muted);

    font-size: 15px;
}

.contact-links {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 0;

    margin-top: 45px;

    border-top: 1px solid var(--border);
}

.contact-links a {
    padding: 17px 0;

    border-bottom: 1px solid var(--border);

    display: flex;

    justify-content: space-between;

    margin-right: 30px;

    font-size: 12px;

    color: var(--text);

    transition: color 0.2s ease;
}

.contact-links a:hover {
    color: var(--muted);
}

.contact-links span {
    color: var(--light-text);

    text-transform: uppercase;

    letter-spacing: 1px;

    font-size: 9px;
}

/* Contact Cards (New) */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 45px;
}

.contact-card {
    padding: 28px 20px;

    background: var(--bg-secondary);

    border: 1px solid var(--border);

    border-radius: 14px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.contact-card:hover {
    transform: translateY(-3px);
    border-color: var(--text);
}

.contact-card i {
    font-size: 32px;
    margin-bottom: 12px;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.contact-card:hover i {
    transform: scale(1.15);
}

.contact-card strong {
    font-size: 15px;
    display: block;
}

.contact-card span {
    color: var(--light-text);
    font-size: 13px;
    margin-top: 2px;
    display: block;
}

.contact-card small {
    color: var(--light-text);
    margin-top: 10px;
    display: block;
    font-size: 12px;
}

/* Contact Icon Colors */
.contact-card .email,
.contact-card .fa-envelope {
    color: #EA4335;
}

.contact-card .whatsapp,
.contact-card .fa-whatsapp {
    color: #25D366;
}

.contact-card .location,
.contact-card .fa-location-dot {
    color: #EA4335;
}

.contact-card .github,
.contact-card .fa-github {
    color: #8957E5;
}

.contact-card .linkedin,
.contact-card .fa-linkedin {
    color: #0A66C2;
}

.contact-card .discord,
.contact-card .fa-discord {
    color: #5865F2;
}

/* =====================================================
   FOOTER
===================================================== */

footer {
    border-top: 1px solid var(--border);

    padding: 22px 25px;

    background: var(--bg-secondary);

    transition: background 0.3s ease, border-color 0.3s ease;
}

.footer-container {
    max-width: var(--max-width);

    margin: auto;

    display: flex;

    justify-content: space-between;

    color: var(--light-text);

    font-size: 10px;
}


/* =====================================================
   SCROLL REVEAL
===================================================== */

.reveal {
    opacity: 0;

    transform: translateY(18px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {

    .nav-links {
        display: none;

        position: absolute;

        top: 65px;

        left: 20px;
        right: 20px;

        padding: 18px;

        background: var(--bg-card);

        border: 1px solid var(--border);

        border-radius: 8px;

        box-shadow: var(--shadow-lg);

        flex-direction: column;

        align-items: flex-start;

        gap: 15px;
    }

    .nav-links.open {
        display: flex;
    }

    .menu-button {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .hero-profile {
        align-items: flex-start;
    }

    .profile-circle {
        width: 190px;
        height: 190px;
    }

    .profile-circle span {
        font-size: 50px;
    }

    .about-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .skills-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .skills-categories {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 650px) {

    .section {
        padding: 80px 20px;
    }

    .hero {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero h1 {
        letter-spacing: -3px;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: stretch;

        max-width: 220px;
    }

    .social-links {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        margin-top: 24px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .featured-project {
        grid-column: span 1;
    }

    .security-features {
        grid-template-columns: 1fr;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .contact-links {
        grid-template-columns: 1fr;
    }

    .contact-links a {
        margin-right: 0;
    }

    .goal-box {
        padding: 30px;

        flex-direction: column;

        align-items: flex-start;
    }

    .goal-box h2 {
        font-size: 30px;
    }

    .goal-arrow {
        display: none;
    }

    .footer-container {
        flex-direction: column;

        gap: 5px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 450px) {

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-list {
        grid-template-columns: 1fr;
    }

    .profile-circle {
        width: 160px;
        height: 160px;
    }

    .profile-circle span {
        font-size: 42px;
    }

}

/* =====================================================
   THEME TRANSITION ANIMATION
===================================================== */

[data-theme="light"] {
    --theme-bg: #ffffff;
    --theme-text: #0a0a0a;
}

[data-theme="dark"] {
    --theme-bg: #0a0a0a;
    --theme-text: #fafafa;
}

html {
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar,
.section,
.hero,
footer,
.card,
.project-card,
.skill-card,
.work-item,
.about-card,
.profile-circle,
.button,
.theme-toggle,
.nav-links,
.contact-links a,
.goal-box,
.timeline-dot,
.logo span,
.eyebrow,
.section-heading h2,
.project-link,
.hero h1 span,
.hero h2,
.hero-description,
.about-text p,
.about-card-item strong,
.about-card-item span,
.skill-number,
.skill-card h3,
.skill-card p,
.self-learning,
.project-index,
.project-role,
.project-icon,
.project-card h3,
.project-card p,
.project-tags span,
.work-number,
.work-item h3,
.work-item p,
.timeline-label,
.timeline-item h3,
.goal-box .eyebrow,
.goal-box h2,
.goal-box p,
.goal-arrow,
.contact-content h2,
.contact-content p,
.contact-links span,
.footer-container {
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle {
    position: relative;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--text);
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
}

.theme-toggle:hover::before {
    width: 80px;
    height: 80px;
}

.theme-toggle svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        stroke 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover svg {
    transform: rotate(15deg) scale(1.1);
}

[data-theme="dark"] .theme-toggle .moon-icon {
    transform: rotate(-90deg) scale(0);
}

[data-theme="dark"] .theme-toggle .sun-icon {
    transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-toggle .moon-icon {
    transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-toggle .sun-icon {
    transform: rotate(90deg) scale(0);
}

.theme-toggle .moon-icon,
.theme-toggle .sun-icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.projects-grid .project-card:nth-child(2) {
    animation-delay: 0.2s;
}

.projects-grid .project-card:nth-child(3) {
    animation-delay: 0.3s;
}

.projects-grid .project-card:nth-child(4) {
    animation-delay: 0.4s;
}


/* =====================================================
   JS-REACTIVE STYLES
   Targets IDs and classes driven by script.js
===================================================== */

/* --primary token (used by JS-reactive rules below) */
:root {
    --primary: #2563eb;
}

html[data-theme="dark"] {
    --primary: #60a5fa;
}

/* ── Theme-toggle button (#themeToggle) ──────────────
   The button already has .theme-toggle styles above.
   These ID rules add the circular shape + primary-fill
   hover that the JS-toggled data-theme attribute relies on. */
#themeToggle {
    border-radius: 50%;          /* circular override */
}

#themeToggle:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: rotate(12deg);
}

/* Keep SVG strokes white while the primary fill shows */
#themeToggle:hover svg {
    stroke: #fff;
    transform: none;             /* cancel the class-level rotate on hover */
}

/* ── Active navigation link (.active added by JS) ─── */
.nav-links a.active {
    color: var(--primary);
    font-weight: 700;
}

.nav-links a.active::after {
    background: var(--primary);
    width: 100%;
}

/* ── Mobile menu button (#menuButton) ────────────────
   Hidden on desktop; JS toggles .open on .nav-links.
   Breakpoint matches the existing 900 px rule so both
   class and ID selectors stay in sync.               */
#menuButton {
    display: none;
}

@media (max-width: 900px) {
    #menuButton {
        display: block;
        border: 0;
        background: transparent;
        color: var(--text);
        font-size: 1.5rem;
        cursor: pointer;
        transition: color 0.25s ease, transform 0.25s ease;
    }

    #menuButton:hover {
        color: var(--primary);
        transform: scale(1.1);
    }
}

/* ── Scroll-reveal (.visible added by JS via
      IntersectionObserver) ────────────────────────── */
/* .reveal / .reveal.visible are already defined above;
   these declarations are intentionally omitted here
   to avoid duplicates.                               */