/* ============================================
   GLOBAL STYLES & THEME VARIABLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

:root {
    --primary: #c8b875;
    --secondary: #958753;
    --accent: #f4e4ae;
    --bg: #f7f4ec;
    --text: #111827;
    --muted: rgba(17, 24, 39, 0.68);
    --surface: #ffffff;
    --surface-soft: #fbf8f0;
    --border: rgba(17, 24, 39, 0.08);
    --card: rgba(255, 255, 255, 0.96);
    --text-strong: #08111a;
    --shadow: 0 28px 80px rgba(17, 24, 39, 0.12);
    --shadow-strong: 0 30px 90px rgba(17, 24, 39, 0.16);
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    
    --light-bg: #fbf8f0;
    --dark-bg: rgba(15, 23, 42, 0.95);
    --light-card: #ffffff;
    --dark-card: rgba(12, 21, 34, 0.96);
    --light-border: rgba(17, 24, 39, 0.08);
    --dark-border: rgba(255, 255, 255, 0.16);
    --light-text: #111827;
    --dark-text: #f2efe7;
}

body.dark-mode {
    --bg: #08111a;
    --text: #f2efe7;
    --muted: rgba(242, 239, 231, 0.74);
    --surface: rgba(9, 17, 26, 0.96);
    --surface-soft: rgba(15, 23, 42, 0.95);
    --border: rgba(255, 255, 255, 0.16);
    --card: rgba(12, 21, 34, 0.96);
    --text-strong: #ffffff;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
    --shadow-strong: 0 30px 90px rgba(0, 0, 0, 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.65;
    transition: var(--transition);
    min-height: 100vh;
}

body.light-mode {
    color: var(--text);
    background-color: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1200;
    padding: 18px 0;
    backdrop-filter: blur(14px);
    background: rgba(8, 17, 28, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.light-mode .navbar {
    background: rgba(247, 244, 236, 0.95);
    border-color: rgba(17, 24, 39, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-decoration: none;
    position: relative;
}

.nav-logo::before {
    content: '♛';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-link {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

body.light-mode .nav-link {
    color: var(--text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1000;
    width: 28px;
    height: 22px;
    justify-content: space-between;
}

.hamburger span {
    display: block !important;
    width: 100%;
    min-height: 3px !important;
    height: 3px;
    border-radius: 4px;
    background: #ffffff !important;
    transition: var(--transition);
}

body.light-mode .hamburger span {
    background: #111827 !important;
}

.nav-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.fixed-theme-toggle {
    position: fixed;
    left: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1100;
    transition: var(--transition);
    color: var(--text-strong);
}

.fixed-theme-toggle:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.fixed-theme-toggle svg {
    width: 22px;
    height: 22px;
    opacity: 0;
    position: absolute;
    transition: var(--transition);
}

.sun-icon {
    opacity: 1 !important;
}

body.dark-mode .sun-icon {
    opacity: 0 !important;
}

body.dark-mode .moon-icon {
    opacity: 1 !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 100;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--text);
    transition: var(--transition);
    border-radius: 2px;
    transform-origin: left center;
}

body.dark-mode .hamburger span {
    background: var(--text);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-full {
    padding: 120px 0 80px;
    margin-top: 72px;
    background: radial-gradient(circle at top left, rgba(200, 184, 117, 0.14), transparent 25%),
                radial-gradient(circle at bottom right, rgba(149, 135, 83, 0.10), transparent 22%),
                linear-gradient(180deg, rgba(8, 17, 28, 1) 0%, rgba(10, 26, 48, 1) 100%);
    color: #f8f6ef;
}

body.light-mode .hero-full {
    background: linear-gradient(180deg, rgba(247, 244, 236, 1) 0%, rgba(236, 230, 211, 1) 100%);
    color: var(--text);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(300px, 1.2fr) 0.8fr;
    gap: 3rem;
    align-items: center;
}

.hero-copy {
    max-width: 620px;
}

.eyebrow,
.section-label {
    display: inline-block;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

body.light-mode .eyebrow,
body.light-mode .section-label {
    color: var(--muted);
}

.hero-copy h1 {
    font-size: clamp(3.2rem, 5vw, 5.2rem);
    line-height: 1.02;
    margin-bottom: 1rem;
}

.hero-tag {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    margin-bottom: 1.8rem;
}

body.light-mode .hero-tag {
    color: var(--muted);
}

.hero-text {
    color: rgba(255, 255, 255, 0.84);
    max-width: 620px;
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 2rem;
}

body.light-mode .hero-text {
    color: rgba(17, 24, 39, 0.76);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-links a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
}

body.light-mode .hero-links a {
    color: var(--text);
}

.hero-links a:hover {
    border-bottom-color: rgba(212, 184, 117, 0.7);
}

.hero-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

body.light-mode .hero-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: var(--shadow);
}

.hero-card-inner {
    display: grid;
    gap: 1.5rem;
}

.hero-card-top {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
    color: #f3e5b6;
}

.hero-badge.secondary {
    background: rgba(255, 255, 255, 0.08);
}

.hero-image {
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .hero-image {
    border-color: rgba(17, 24, 39, 0.08);
}

.hero-image img {
    width: 100%;
    display: block;
}

.hero-card-body h3 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--surface);
}

body.light-mode .hero-card-body h3 {
    color: var(--text);
}

.hero-card-body p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
    margin: 0.85rem 0 1.4rem;
}

body.light-mode .hero-card-body p {
    color: rgba(17, 24, 39, 0.72);
}

.hero-socials {
    display: flex;
    gap: 0.75rem;
}

.hero-socials a {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 700;
}

body.light-mode .hero-socials a {
    background: rgba(17, 24, 39, 0.08);
    color: var(--text);
}


.hero-full {
    padding: 120px 0 80px;
    margin-top: 72px;
    background: radial-gradient(circle at top left, rgba(200, 184, 117, 0.14), transparent 25%),
                radial-gradient(circle at bottom right, rgba(149, 135, 83, 0.10), transparent 22%),
                linear-gradient(180deg, rgba(8, 17, 28, 1) 0%, rgba(10, 26, 48, 1) 100%);
    color: #f8f6ef;
}

body.light-mode .hero-full {
    background: linear-gradient(180deg, rgba(247, 244, 236, 1) 0%, rgba(236, 230, 211, 1) 100%);
    color: var(--text);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(300px, 1.2fr) 0.8fr;
    gap: 3rem;
    align-items: center;
}

.hero-copy {
    max-width: 620px;
}

.eyebrow,
.section-label {
    display: inline-block;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

body.light-mode .eyebrow,
body.light-mode .section-label {
    color: var(--muted);
}

.hero-copy h1 {
    font-size: clamp(3.2rem, 5vw, 5.2rem);
    line-height: 1.02;
    margin-bottom: 1rem;
}

.hero-tag {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    margin-bottom: 1.8rem;
}

body.light-mode .hero-tag {
    color: var(--muted);
}

.hero-text {
    color: rgba(255, 255, 255, 0.84);
    max-width: 620px;
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 2rem;
}

body.light-mode .hero-text {
    color: rgba(17, 24, 39, 0.78);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-links a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
}

body.light-mode .hero-links a {
    color: var(--text);
}

.hero-links a:hover {
    border-bottom-color: rgba(212, 184, 117, 0.7);
}

.hero-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

body.light-mode .hero-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: var(--shadow);
}

.hero-card-inner {
    display: grid;
    gap: 1.5rem;
}

.hero-card-top {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
    color: #f3e5b6;
}

.hero-badge.secondary {
    background: rgba(255, 255, 255, 0.08);
}

.hero-image {
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .hero-image {
    border-color: rgba(17, 24, 39, 0.08);
}

.hero-image img {
    width: 100%;
    display: block;
}

.hero-card-body h3 {
    margin: 0;
    font-size: 1.6rem;
    color: #ffffff;
}

body.light-mode .hero-card-body h3 {
    color: var(--text);
}

.hero-card-body p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
    margin: 0.85rem 0 1.4rem;
}

body.light-mode .hero-card-body p {
    color: rgba(17, 24, 39, 0.72);
}

.hero-socials {
    display: flex;
    gap: 0.75rem;
}

.hero-socials a {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 700;
}

body.light-mode .hero-socials a {
    background: rgba(17, 24, 39, 0.08);
    color: var(--text);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(200, 184, 117, 0.98), rgba(149, 135, 83, 0.95));
    color: #08111a;
    box-shadow: 0 18px 45px rgba(200, 184, 117, 0.18);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--surface-soft);
    color: var(--text-strong);
    border-color: var(--border);
}

body.dark-mode .btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(212, 184, 117, 0.4);
    color: var(--text);
}

.btn-ghost:hover {
    background: rgba(212, 184, 117, 0.08);
}

.section {
    padding: 100px 0;
}



.section-surface {
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.section-dark {
    background: var(--surface);
}

.section-large {
    padding-top: 120px;
    padding-bottom: 120px;
}

.section-heading,
.section-heading-center {
    display: grid;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.section-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.section-heading-center {
    text-align: center;
}

.section-heading span,
.section-heading-center span {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
    font-size: 0.8rem;
}

.section-heading h2,
.section-heading-center h2 {
    margin: 0;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.1;
    color: var(--text);
}

.cards-grid {
    display: grid;
    gap: 1.75rem;
}

.cards-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card,
.research-card,
.experience-card,
.section-card,
.contact-panel {
    padding: 2rem;
    border-radius: 28px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover,
.research-card:hover,
.experience-card:hover,
.section-card:hover,
.contact-panel:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.project-card h3,
.research-card h3,
.experience-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 1.35rem;
}

.project-card p,
.research-card p,
.experience-card p,
.section-card p,
.contact-panel p {
    color: var(--muted);
    line-height: 1.8;
}

.card-footer {
    margin-top: 1.5rem;
}

.link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.gallery-grid img {
    width: 100%;
    border-radius: 26px;
    object-fit:initial;
    aspect-ratio: 4/3;
    height: 100%;
}

.skills-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.skill-card {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    min-height: 110px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f5f1dc;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    transition: var(--transition);
}

body.light-mode .skill-card {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-strong);
    box-shadow: var(--shadow);
}

body.light-mode .skill-card:hover {
    border-color: rgba(149, 135, 83, 0.35); /* using secondary hue */
}

.skill-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 184, 117, 0.35);
}

.experience-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.experience-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.card-label {
    margin: 0 0 0.5rem;
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.contact-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.contact-panel h3 {
    margin-top: 0;
    color: var(--text);
    font-size: 1.25rem;
}

.contact-panel p {
    margin: 0.75rem 0 0;
    color: var(--muted);
}

.section-intro {
    max-width: 560px;
}

.section-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 992px) {
    .hero-grid,
    .section-grid,
    .cards-grid-3,
    .cards-grid-2,
    .gallery-grid,
    .skills-grid-4,
    .contact-panels,
    .project-item,
    .experience-item,
    .research-card,
    .project-card,
    .experience-card {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 2rem;
    }

    .hero-card {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-copy h1 {
        font-size: clamp(2.8rem, 5vw, 4.2rem);
    }

    .section-card,
    .contact-panel,
    .project-card,
    .research-card,
    .experience-card {
        padding: 1.75rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 14px 0;
    }



    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: 2.8rem;
    }

    .hero-actions,
    .hero-links {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions a,
    .hero-links a {
        width: 100%;
    }

    .gallery-grid,
    .cards-grid-3,
    .cards-grid-2,
    .skills-grid-4,
    .contact-panels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-full {
        padding: 90px 0 60px;
    }

    .hero-copy h1 {
        font-size: 2.4rem;
    }

    .hero-tag,
    .hero-text {
        font-size: 0.98rem;
    }

    .hero-actions,
    .hero-links {
        gap: 0.75rem;
    }

    .hero-card {
        border-radius: 24px;
        padding: 1.25rem;
    }

    .project-card,
    .research-card,
    .experience-card,
    .section-card,
    .contact-panel {
        border-radius: 24px;
    }

    .project-item,
    .experience-item,
    .research-item {
        border-radius: 20px;
        padding: 1.5rem;
    }
}

/* ============================================
   SECTIONS
   ============================================ */

.about, .journey, .skills, .projects-full, .experience-section, .research-section, .contact-full, .faq-section {
    padding: 80px 20px;
}

.about, .journey, .research-section {
    background: var(--light-bg);
}

body.dark-mode .about,
body.dark-mode .journey,
body.dark-mode .research-section {
    background: var(--dark-bg);
}

.skills, .projects-full, .experience-section, .contact-full, .faq-section {
    background: var(--light-card);
}

body.dark-mode .skills,
body.dark-mode .projects-full,
body.dark-mode .experience-section,
body.dark-mode .contact-full,
body.dark-mode .faq-section {
    background: var(--dark-card);
}

/* ============================================
   SECTION TITLE
   ============================================ */

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    animation: slideUp 0.6s ease;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

/* ============================================
   ABOUT & JOURNEY
   ============================================ */

.about-text, .journey-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light-text);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    animation: fadeIn 0.8s ease 0.2s both;
}

body.dark-mode .about-text,
body.dark-mode .journey-content {
    color: var(--dark-text);
}

/* ============================================
   SKILLS
   ============================================ */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    padding: 1rem 1.5rem;
    background: var(--light-bg);
    border: 2px solid var(--light-border);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
    animation: scaleIn 0.6s ease;
}

body.dark-mode .skill-item {
    background: var(--dark-bg);
    border-color: var(--dark-border);
    color: var(--accent);
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

body.dark-mode .skill-item:hover {
    border-color: var(--accent);
}

/* ============================================
   PROJECTS
   ============================================ */

.projects-full .container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}



body.dark-mode .project-item {
    background: var(--dark-bg);
}

.project-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.project-image-full {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 8px;
    overflow: hidden;
}

.project-image-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info h3 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--secondary);
    font-family: Georgia, serif;
    letter-spacing: 0.02em;
}

body.dark-mode .project-info h3 {
    color: var(--accent);
}

.project-info h4 {
    font-size: 1.15rem;
    margin-top: 2rem;
    margin-bottom: 1.25rem;
    color: var(--light-text);
    font-weight: 700;
}

body.dark-mode .project-info h4 {
    color: var(--dark-text);
}

.project-info p {
    color: var(--light-text);
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

body.dark-mode .project-info p {
    color: var(--dark-text);
}

.project-info ul {
    list-style: none; /* Removing default bullet points */
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.project-info li {
    margin-bottom: 0.4rem; /* Not much spacing between points */
    line-height: 1.6;
    font-size: 0.98rem;
    color: var(--light-text);
}

body.dark-mode .project-info li {
    color: rgba(255, 255, 255, 0.82);
}

.project-link,
.research-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.project-link:hover,
.research-link:hover {
    color: var(--secondary);
}

/* ============================================
   RESEARCH
   ============================================ */



/* ============================================
   EXPERIENCE
   ============================================ */

.page-hero {
    padding: 60px 0 40px;
    margin-top: 72px;
    background: radial-gradient(circle at top left, rgba(200, 184, 117, 0.14), transparent 25%),
                radial-gradient(circle at bottom right, rgba(149, 135, 83, 0.10), transparent 22%),
                linear-gradient(180deg, rgba(8, 17, 28, 1) 0%, rgba(10, 26, 48, 1) 100%);
    color: #f8f6ef;
    text-align: center;
}

body.light-mode .page-hero {
    background: linear-gradient(180deg, rgba(247, 244, 236, 1) 0%, rgba(236, 230, 211, 1) 100%);
    color: var(--text);
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.projects-full .container,
.experience-section .container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.experience-list,
.research-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.project-item,
.experience-item,
.research-item {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: start;
    padding: 2.5rem;
    background: var(--light-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
    animation: fadeIn 0.6s ease;
}

body.dark-mode .experience-item,
body.dark-mode .research-item {
    background: var(--dark-bg);
}

.experience-item:hover,
.research-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

/* Experience Details Formatting */
.exp-details h4 {
    font-size: 1.15rem;
    margin-top: 2rem;
    margin-bottom: 1.25rem;
    color: var(--light-text);
    font-weight: 700;
}
body.dark-mode .exp-details h4 {
    color: var(--dark-text);
}

.exp-details p {
    color: var(--light-text);
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1.05rem;
}
body.dark-mode .exp-details p {
    color: var(--dark-text);
}

.exp-details ul {
    list-style: none; /* Removing default bullet points */
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.exp-details li {
    margin-bottom: 0.4rem; /* Not much spacing between points */
    line-height: 1.6;
    font-size: 0.98rem;
    color: var(--light-text);
}
body.dark-mode .exp-details li {
    color: rgba(255, 255, 255, 0.82);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}

.exp-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--secondary);
    font-family: Georgia, serif;
    letter-spacing: 0.02em;
}

body.dark-mode .exp-title {
    color: var(--dark-text);
}

.exp-period {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.exp-company {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.exp-location {
    color: var(--light-text);
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 0.3rem;
}

body.dark-mode .exp-location {
    color: var(--dark-text);
}

.exp-type {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ============================================
   CONTACT
   ============================================ */

.contact-full {
    padding: 20px 20px 80px;
}

.contact-content-full {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-full h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-family: Georgia, serif;
    color: var(--text-strong);
}

.contact-social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-social-icons a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 184, 117, 0.1);
    color: var(--primary);
    border-radius: 8px;
    font-size: 1.25rem;
    transition: var(--transition);
}

.contact-social-icons a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.contact-right-panel {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-cards-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-card-wrapper {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.contact-card-square {
    background: #182029; /* Dark slate */
    color: white;
    padding: 3rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow);
}

body.light-mode .contact-card-square {
    background: var(--dark-bg);
}

.contact-card-inner {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    background: #252e37; /* Slightly lighter/darker offset shadow */
    border-radius: 12px;
    z-index: 1;
}

body.light-mode .contact-card-inner {
    background: rgba(15, 23, 42, 0.5);
}

.contact-card-square i {
    font-size: 2rem;
    color: var(--primary);
}

.contact-card-square h4 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.contact-form-full {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

body.dark-mode .contact-form-full {
    background: var(--dark-bg);
}

.form-group-full {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group-full input,
.form-group-full textarea {
    padding: 14px 18px;
    border: 1px solid var(--light-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: white;
    color: var(--light-text);
    transition: var(--transition);
}

body.dark-mode .form-group-full input,
body.dark-mode .form-group-full textarea {
    background: var(--surface);
    color: var(--dark-text);
    border-color: var(--dark-border);
}

.form-group-full input:focus,
.form-group-full textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(200, 184, 117, 0.15);
}

.form-group-full textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   PAGE NAVIGATION
   ============================================ */

.page-nav {
    padding: 60px 20px;
    border-top: 1px solid var(--light-border);
}

body.dark-mode .page-nav {
    border-top-color: var(--dark-border);
}

.nav-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.nav-link-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.nav-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--dark-bg);
    color: white;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.footer p {
    opacity: 0.8;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   PROJECT LINKS
   ============================================ */

.project-links-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    width: 100%;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 12px 28px;
    background: transparent;
    color: var(--text-strong) !important;
    border: 2px solid var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--primary);
    color: #08111a !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(200, 184, 117, 0.2);
}
/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }

    .hamburger {
        display: flex !important;
    }

    .nav-menu {
        position: absolute;
        top: 60px;
        left: -100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        display: flex;
    }

    body.dark-mode .nav-menu {
        background-color: var(--dark-card);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .project-info h3,
    .exp-title,
    .research-item h3 {
        font-size: 1.8rem;
    }

    .project-item,
    .experience-item,
    .research-item {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        word-break: break-word;
    }

    .contact-info-full h2, 
    .about-section h2, 
    .contact-left-panel h2,
    .section-heading-center h2 {
        font-size: 2.2rem !important;
    }

    .project-item {
        grid-template-columns: 1fr;
    }

    .contact-content-full {
        grid-template-columns: 1fr;
    }

    .nav-links {
        flex-direction: column;
    }

    .nav-link-btn {
        width: 100%;
        text-align: center;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .exp-header {
        flex-direction: column;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
