/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-navy: #0A1128;
    --secondary-navy: #1C2541;
    --gold: #D4AF37;
    --gold-light: #F4E6C3;
    --white: #FFFFFF;
    --gray-light: #F5F5F7;
    --gray-medium: #86868B;
    --gray-dark: #1D1D1F;
    
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--gray-dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    height: 50px;
    z-index: 1001;
}

.logo img {
    height: 100%;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--gray-dark);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(1.5px, 1.5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(10px, -10px);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--primary-navy);
    z-index: 999;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    padding: 100px 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    padding: 1rem;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.mobile-menu-link:hover {
    border-left-color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
    padding-left: 1.5rem;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
    margin-top: 0;
    padding-top: 0;
}

.hero-bg-building {
    position: absolute;
    top: 0;
    right: -20%;
    width: 50%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1758270704296-a59b8f4e7dda?w=1200');
    background-size: cover;
    background-position: center center;
    opacity: 0.18;
    clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.golden-ratio {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    opacity: 0.3;
    pointer-events: none;
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    padding: 1rem 3rem;
    z-index: 2; 
    margin-top: 100px;
}

.hero-content {
    max-width: 900px;
}

.hero-label {
    display: inline-block;
    color: var(--gold);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 7rem);
    color: var(--white);
    margin-bottom: 2rem;
    line-height: 1;
}

.title-line-1,
.title-line-2,
.title-line-3 {
    display: block;
    overflow: hidden;
}

.title-line-1 {
    font-weight: 300;
    opacity: 0;
}

.title-line-2 {
    font-weight: 700;
    margin-left: 2rem;
    opacity: 0;
}

.title-line-3 {
    font-weight: 900;
    font-size: clamp(4rem, 9vw, 8rem);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    font-weight: 300;
    line-height: 1.8;
}

.subtitle-text {
    display: block;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    opacity: 0;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--gold);
    color: var(--primary-navy);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-navy);
}

.scroll-indicator {
    position: absolute;
    bottom: 0.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

.projects-container {
    max-width: 100%;
    padding: 4rem 0;
}

.projects-container .section-header {
    max-width: 1200px;
    margin: 0 auto 6rem;
    padding: 0 3rem;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    margin-bottom: 4rem;
}

.section-header.centered {
    text-align: center;
}

.section-label {
    display: inline-block;
    color: var(--gold);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--primary-navy);
    font-weight: 800;
}

.title-word {
    display: inline-block;
    margin-right: 1rem;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 5rem 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-medium);
}

.about-intro {
    font-size: 1.35rem;
    color: var(--gray-dark);
    margin-bottom: 2rem;
}

.about-text strong {
    color: var(--gold);
    font-weight: 700;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--gray-light);
    border-radius: 20px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--gold);
    font-family: var(--font-display);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--gray-medium);
    font-weight: 500;
}

/* ===== ACHIEVEMENTS SECTION - FIXED ===== */
/* .achievements {
    padding: 8rem 0;
    background: var(--gray-light);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--gold);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.achievement-card h3 {
    font-size: 1.5rem;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.achievement-year {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.achievement-card p:last-child {
    color: var(--gray-medium);
    line-height: 1.6;
} */
 /* ===== ACHIEVEMENTS SECTION - REDESIGNED ===== */
.achievements {
    padding: 5rem 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.achievements::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.achievement-item {
    position: relative;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 3rem;
    padding: 3rem;
    background: var(--gray-light);
    border-radius: 24px;
    transition: var(--transition);
    overflow: hidden;
}

.achievement-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0%;
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-light) 100%);
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.achievement-item:hover::before {
    height: 100%;
}

.achievement-item:hover {
    transform: translateX(10px);
    box-shadow: -10px 20px 60px rgba(0, 0, 0, 0.08);
    background: var(--white);
}

/* Large Number */
.achievement-number {
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 900;
    color: var(--primary-navy);
    line-height: 1;
    /* opacity: 0.1; */
    position: relative;
    align-self: start;
}

.achievement-item:hover .achievement-number {
    opacity: 10;
    color: var(--gold);
}

/* Content Area */
.achievement-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.achievement-icon-badge {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.achievement-item:hover .achievement-icon-badge {
    transform: rotate(10deg) scale(1.1);
}

.icon-text {
    font-size: 2rem;
    color: var(--primary-navy);
}

.achievement-main-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-navy);
    line-height: 1.3;
    margin: 0;
}

/* Meta Info */
.achievement-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.achievement-year {
    font-weight: 700;
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.achievement-divider {
    color: var(--gray-medium);
    opacity: 0.5;
}

.achievement-org {
    color: var(--gray-medium);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Description */
.achievement-desc {
    color: var(--gray-medium);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-top: 1rem;
}

/* Tags */
.achievement-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.achievement-tags .tag {
    padding: 0.5rem 1.25rem;
    background: rgba(10, 17, 40, 0.05);
    color: var(--primary-navy);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid transparent;
}

.achievement-item:hover .achievement-tags .tag {
    background: var(--primary-navy);
    color: var(--white);
    border-color: var(--primary-navy);
}

.achievement-tags .tag:hover {
    background: var(--gold);
    color: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* ===== RESPONSIVE - ACHIEVEMENTS ===== */
@media (max-width: 1024px) {
    .achievement-item {
        grid-template-columns: 100px 1fr;
        gap: 2rem;
        padding: 2.5rem;
    }
    
    .achievement-number {
        font-size: 5rem;
    }
    
    .achievement-main-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .achievements {
        padding: 6rem 0;
    }
    
    .achievements-list {
        gap: 2.5rem;
    }
    
    .achievement-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .achievement-number {
        font-size: 2.75rem;
        position: static;
        text-align: right;
        opacity: 0.4;
        margin-bottom: -0.5rem;
    }
    
    .achievement-main-title {
        font-size: 1.5rem;
    }
    
    .achievement-desc {
        font-size: 1rem;
    }
    
    .achievement-icon-badge {
        width: 50px;
        height: 50px;
    }
    
    .icon-text {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .achievement-item {
        padding: 1.5rem;
    }
    
    .achievement-number {
        font-size: 2.25rem;
        margin-bottom: -0.25rem;
    }
    
    .achievement-main-title {
        font-size: 1.35rem;
    }
    
    .achievement-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .achievement-divider {
        display: none;
    }
    
    .achievement-tags .tag {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
}


/* ===== EXPERIENCE SECTION ===== */
.experience {
    padding: 5rem 0;
    background: var(--white);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gold);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 50%;
}

.timeline-item.left {
    left: 0;
    padding-right: 4rem;
}

.timeline-item.right {
    left: 50%;
    padding-left: 4rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--gold);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--gold-light);
}

.timeline-item.left::before {
    right: -10px;
}

.timeline-item.right::before {
    left: -10px;
}

.timeline-content {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 20px;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.timeline-date {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--primary-navy);
    margin-bottom: 0.25rem;
}

.timeline-content h4 {
    font-size: 1.125rem;
    color: var(--gray-medium);
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--gray-medium);
    line-height: 1.7;
}

/* ===== PROJECTS SECTION - FIXED STICKY & RESPONSIVE ===== */
.projects {
    padding: 4rem 0 0;
    background: var(--white);
}

.project-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    margin-bottom: 0;
}

.project-image-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 17, 40, 0.3), transparent);
}

.project-content {
    display: flex;
    align-items: center;
    padding: 4rem;
    background: var(--gray-light);
    min-height: 100vh;
}

.project-info {
    max-width: 600px;
}

.project-number {
    font-size: 5rem;
    font-weight: 900;
    color: var(--gold);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.project-title {
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--gray-medium);
    font-weight: 500;
}

.project-meta span {
    position: relative;
}

.project-meta span:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: -0.85rem;
    color: var(--gold);
}

.project-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-medium);
    margin-bottom: 1.5rem;
}

.project-highlights {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    border-left: 4px solid var(--gold);
}

.project-highlights h4 {
    font-size: 1.25rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.project-highlights ul {
    list-style: none;
    padding: 0;
}

.project-highlights li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    color: var(--gray-medium);
    line-height: 1.6;
}

.project-highlights li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.tech-tag {
    padding: 0.5rem 1rem;
    background: var(--primary-navy);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ===== SKILLS SECTION ===== */
.skills {
    padding: 5rem 0;
    background: var(--gray-light);
}

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

.skill-category h3 {
    font-size: 1.75rem;
    color: var(--primary-navy);
    margin-bottom: 2rem;
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-bar {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--gray-dark);
}

.skill-percent {
    color: var(--gold);
}

.skill-progress {
    height: 8px;
    background: var(--gray-light);
    border-radius: 10px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== CONTACT SECTION - FIXED ===== */
.contact {
    padding: 5rem 0;
    background: var(--white);
}

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

.contact-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--gray-light);
    border-radius: 20px;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.contact-card h3 {
    font-size: 1.5rem;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--gray-medium);
    margin-bottom: 1.5rem;
}

.contact-card a {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--primary-navy);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
}

.contact-card a:hover {
    background: var(--gold);
    color: var(--primary-navy);
}

/* ===== CONTACT LAYOUT - FORM ===== */
.contact-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
    align-items: start;
}

.contact-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-medium);
    margin-bottom: 2.5rem;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    color: var(--gray-dark);
}

.contact-info-list a {
    color: var(--gray-dark);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info-list a:hover {
    color: var(--gold);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-light);
    border-radius: 14px;
    color: var(--primary-navy);
    font-size: 1.15rem;
}

.contact-form {
    background: var(--gray-light);
    padding: 3rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-navy);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--gray-dark);
    transition: var(--transition);
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-submit {
    border: none;
    cursor: pointer;
    margin-top: 0.5rem;
    align-self: flex-start;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form {
        padding: 2rem;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-navy);
    color: var(--white);
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.footer-left p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 340px;
}

.footer-contact h4,
.footer-right h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.footer-contact ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-contact li i {
    color: var(--gold);
    width: 16px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--gold);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
}

.social-links a i {
    color: var(--gold);
    width: 16px;
}

.social-links a:hover {
    color: var(--gold);
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .project-item {
        grid-template-columns: 1fr;
    }
    
    .project-image-wrapper {
        position: relative;
        height: 60vh;
        top: auto;
    }
    
    .project-content {
        min-height: auto;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 3rem !important;
        padding-right: 0 !important;
        left: 0 !important;
    }
    
    .timeline-item::before {
        left: -10px !important;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .container,
    .nav-container {
        padding: 1.5rem 1.5rem;
    }
    
    .logo {
        height: 38px;
    }
    
    .logo img {
        max-width: 140px;
    }
    
    .hero-container {
        margin-top: 100px;
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .title-line-2 {
        margin-left: 1rem;
    }
    
    .title-line-3 {
        font-size: 3.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        text-align: center;
        width: 100%;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image-wrapper {
        height: 50vh;
    }
    
    .project-content {
        padding: 2rem 1.5rem;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .project-number {
        font-size: 3.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
    
    .footer-left p {
        max-width: 100%;
        margin: 0 auto;
    }

    .footer-contact li {
        justify-content: center;
    }

    .social-links {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .title-line-3 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .project-image-wrapper {
        height: 40vh;
    }
    
    .mobile-menu {
        width: 100%;
        right: -100%;
    }
}
/* ===== PROJECT ICON CARDS (for research items without a photo) ===== */
.project-image-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon-large {
    font-size: 8rem;
    line-height: 1;
    color: var(--gold);
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
}

/* ===== TEACHING & PUBLICATIONS SECTION ===== */
.teaching {
    padding: 5rem 0;
    background: var(--white);
}

.teaching-table-wrapper {
    overflow-x: auto;
    margin-bottom: 4rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.teaching-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    font-size: 0.95rem;
}

.teaching-table th {
    background: var(--primary-navy);
    color: var(--white);
    text-align: left;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
}

.teaching-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--gray-dark);
    vertical-align: top;
}

.teaching-table tr:last-child td {
    border-bottom: none;
}

.teaching-table tr:nth-child(even) {
    background: var(--gray-light);
}

.teaching-table td:last-child {
    color: var(--gray-medium);
    white-space: nowrap;
}

.strength-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 4rem;
}

.strength-chip {
    padding: 0.65rem 1.35rem;
    background: var(--gray-light);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-navy);
    transition: var(--transition);
}

.strength-chip:hover {
    background: var(--primary-navy);
    color: var(--white);
    border-color: var(--primary-navy);
    transform: translateY(-3px);
}

.publications-block h3 {
    font-size: 1.75rem;
    color: var(--primary-navy);
    margin-bottom: 2rem;
}

.publications-list {
    list-style: none;
    padding: 0;
    counter-reset: pub-counter;
    display: grid;
    gap: 1.25rem;
}

.publications-list li {
    counter-increment: pub-counter;
    position: relative;
    padding: 1.25rem 1.5rem 1.25rem 3.5rem;
    background: var(--gray-light);
    border-radius: 15px;
    color: var(--gray-dark);
    line-height: 1.7;
    font-size: 0.98rem;
}

.publications-list li::before {
    content: counter(pub-counter);
    position: absolute;
    left: 1.25rem;
    top: 1.25rem;
    color: var(--gold);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
}

.publications-list li .pub-venue {
    color: var(--gray-medium);
    font-style: italic;
}

.languages-row {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.languages-row h4 {
    font-size: 1.1rem;
    color: var(--primary-navy);
    margin-right: 0.5rem;
}

.languages-row .lang-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.languages-row .lang-tag {
    padding: 0.4rem 1rem;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--gray-medium);
}

@media (max-width: 768px) {
    .teaching-table-wrapper {
        margin-bottom: 3rem;
    }

    .project-icon-large {
        font-size: 5rem;
    }

    .languages-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
/* ===== FAQ CHAT WIDGET ===== */
.faq-chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1200;
    font-family: var(--font-body);
}

.faq-chat-toggle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    color: var(--primary-navy);
    font-size: 1.5rem;
    transition: opacity 0.25s ease, transform 0.25s ease;
    position: relative;
    z-index: 1201;
    opacity: 1;
    transform: scale(1);
}

.faq-chat-toggle:hover {
    transform: translateY(-4px) scale(1.05);
}

.faq-chat-widget.active .faq-chat-toggle {
    opacity: 0;
    transform: scale(0.6);
    pointer-events: none;
}

.faq-chat-window {
    position: absolute;
    bottom: 24px;
    right: 0;
    width: 360px;
    max-height: min(480px, calc(100vh - 140px));
    background: var(--white);
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transform-origin: bottom right;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.faq-chat-widget.active .faq-chat-window {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.faq-chat-header {
    background: var(--primary-navy);
    color: var(--white);
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.faq-chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.faq-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--gold);
}

.faq-chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.faq-chat-header-info h4 {
    font-size: 0.95rem;
    margin: 0 0 0.15rem;
    font-family: var(--font-display);
    color: var(--white);
}

.faq-chat-status {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
}

.faq-chat-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition);
}

.faq-chat-close:hover {
    opacity: 1;
    color: var(--gold);
}

.faq-chat-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--gray-light);
}

.faq-question-btn {
    text-align: left;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
    font-size: 0.88rem;
    color: var(--primary-navy);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.faq-question-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--primary-navy);
    transform: translateX(2px);
}

.faq-chat-bubble {
    max-width: 88%;
    padding: 0.85rem 1.1rem;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.6;
}

.faq-chat-bubble.user {
    align-self: flex-end;
    background: var(--primary-navy);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.faq-chat-bubble.bot {
    align-self: flex-start;
    background: var(--white);
    color: var(--gray-dark);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom-left-radius: 4px;
}

.faq-back-btn {
    align-self: flex-start;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.25rem;
    font-weight: 600;
    font-family: var(--font-body);
}

.faq-back-btn:hover {
    text-decoration: underline;
}

.faq-chat-loading {
    text-align: center;
    color: var(--gray-medium);
    font-size: 0.85rem;
    padding: 1.5rem 1rem;
}

@media (max-width: 480px) {
    .faq-chat-widget {
        right: 1.25rem;
        bottom: 1.25rem;
    }

    .faq-chat-toggle {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }

    .faq-chat-window {
        width: calc(100vw - 2.5rem);
        max-height: 65vh;
        bottom: 70px;
    }
}