:root {
    --primary: #312E81;      /* Deep Indigo */
    --secondary: #6366F1;    /* Vibrant Violet */
    --accent: #8B5CF6;       /* Purple highlight */
    --bg: #F5F3FF;          /* Soft lavender-tinted white */
    --white: #FFFFFF;
    --text-main: #1E1B4B;
    --text-muted: #6366F1;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

* { margin:0; padding:0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; background: var(--bg); color: var(--text-main); scroll-behavior: smooth; line-height: 1.6; }

.sub-title { font-family: 'Montserrat', sans-serif; background: var(--bg); color: var(--text-main); line-height: 3; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 80px 0; }
.section-title { font-family: 'Playfair Display', serif; font-size: 2.5rem; margin-bottom: 2rem; color: var(--primary); }

/* Nav */
.navigation-bar { position: fixed; width: 100%; z-index: 1000; padding: 1rem 0; transition: var(--transition); }
.navigation-bar.scrolled { background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.navigation__container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.logo { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 900; color: var(--primary); text-decoration: none; }
.logo span { color: var(--secondary); }
.menu { display: flex; align-items: center; gap: 1.5rem; }
.menu a { text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }
.menu a:hover { color: var(--secondary); }

/* Nav Actions (language + hamburger) */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    }
    
    .menu.active {
        right: 0;
    }
    
    .menu a {
        font-size: 1.1rem;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        width: 100%;
    }
    
    .menu a:last-of-type {
        border-bottom: none;
    }
    
    .switch-container {
        margin-top: 1.5rem;
        margin-left: 0;
    }
}

@media (min-width: 769px) {
    .nav-right {
        gap: 1.5rem;
    }
}

/* Hero */
.home { height: 100vh; display: flex; align-items: center; overflow: hidden; padding-top: 60px; position: relative; }

/* Animated Gradient Background */
.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #F5F3FF 0%, #E0E7FF 25%, #F5F3FF 50%, #EDE9FE 75%, #F5F3FF 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 10%; right: 10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 8s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 20%; left: 5%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 10s ease-in-out infinite reverse;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -30px) scale(1.1); }
}

.home__container { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 1; }
.hello { font-size: 3.5rem; font-family: 'Playfair Display', serif; white-space: nowrap; }
.hello strong { color: var(--secondary); }
.title__container { margin-top: 0.5rem; }
.title { font-size: 1.5rem; font-weight: 400; color: var(--text-main); line-height: 1.4; }
.title strong { color: var(--secondary); }

/* Typewriter Slot */
.typewriter-slot {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-main);
    line-height: 1.4;
    margin-top: 0.3rem;
    min-height: 2.1rem; /* Fixed height to prevent layout jump */
    white-space: nowrap;
}

.typewriter-prefix {
    color: var(--text-main);
}

.typewriter-text {
    color: var(--secondary);
    font-weight: 700;
}

.typewriter-slot .cursor {
    display: inline;
    animation: blink 1s step-end infinite;
    color: var(--secondary);
    font-weight: 300;
    margin-left: 2px;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 450px;
    line-height: 1.6;
    font-weight: 500;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
    animation: bounceFade 2s ease-in-out infinite;
}

.scroll-indicator:hover {
    color: var(--secondary);
}

@keyframes bounceFade {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

.scroll-mouse {
    width: 22px;
    height: 36px;
    border: 2px solid currentColor;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
    opacity: 0.6;
}

.scroll-wheel {
    width: 4px;
    height: 6px;
    background: currentColor;
    border-radius: 2px;
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(8px); opacity: 0; }
}

.scroll-text {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Image Grid - Bento Style */
.home__images { display: flex; gap: 1rem; align-items: center; justify-content: center; }
.image-col { display: flex; flex-direction: column; gap: 1rem; }
.col-2 { padding-top: 40px; }

.img-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(49, 46, 129, 0.12);
    transition: var(--transition);
    position: relative;
}

.img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(49, 46, 129, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.img-wrapper:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(49, 46, 129, 0.18);
}

.img-wrapper:hover::after {
    opacity: 1;
}

.img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.img-wrapper:hover img { transform: scale(1.08); }

.main { height: 360px; width: 240px; z-index: 2; }
.small { height: 190px; width: 190px; }

/* Depth layers for bento effect */
[data-parallax="1"] { z-index: 1; }
[data-parallax="2"] { z-index: 3; transform: scale(1.05); }
[data-parallax="3"] { z-index: 1; }

/* Cards */
.about__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; position: relative; }

.about__card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.about__card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.about__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.1);
}

.about__card:hover::before {
    transform: scaleX(1);
}

/* Card Badge */
.card-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
    opacity: 0.3;
    transition: var(--transition);
}

.about__card:hover .card-badge {
    opacity: 0.6;
    transform: scale(1.1);
}

/* FontAwesome Icon Styling for About Cards */
.card-icon {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}

.about__card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.35);
}

/* Connecting line between cards (desktop only) */
@media (min-width: 769px) {
    .about__grid::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 10%;
        right: 10%;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--secondary), transparent);
        opacity: 0.15;
        z-index: 0;
        pointer-events: none;
    }
}

/* Trusted By Section */
.trusted-by {
    margin-top: 4rem;
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.03);
}

.trusted-by__label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.trusted-by__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.trusted-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.7;
    transition: var(--transition);
}

.trusted-logo:hover {
    opacity: 1;
    color: var(--secondary);
}

.trusted-separator {
    font-size: 1.5rem;
    color: var(--secondary);
    opacity: 0.4;
    line-height: 1;
}

/* Timeline */
.exp-header { padding-bottom: 2rem;}
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.timeline-item { margin-bottom: 2rem; padding-left: 1.5rem; border-left: 3px solid var(--secondary); position: relative; }
.timeline-item .date { font-size: 0.8rem; color: var(--secondary); font-weight: 700; }
.timeline-item .details { padding-left: 1.5rem; }
.highlight { border-left-color: var(--accent); background: rgba(34, 197, 94, 0.03); padding: 1.5rem; border-radius: 0 15px 15px 0; }

/* Fix Bullet Point Indentation */
.exp-list {
    margin-top: 1rem;
    padding-left: 1.2rem; /* Provides space for the bullet */
    list-style-type: disc;
    list-style-position: outside;
}

.exp-list li {
    margin-bottom: 0.7rem;
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.5;
    padding-left: 0.5rem; /* Space between bullet and text */
}

/* Ensure bullet points inherit the secondary color for a nice touch */
.exp-list li::marker {
    color: var(--text-main);
    font-size: 1.1rem;
}

/* Meta Info (Location & GPA) */
.item-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    margin: 0.3rem 0;
    color: var(--text-muted);
}

.location i {
    color: var(--secondary); /* Teal icon */
    margin-right: 4px;
}

.gpa {
    font-weight: 600;
    color: var(--text-main);
    background: var(--bg); /* Soft mint background pill */
    padding: 1px 8px;
    border-radius: 4px;
}

/* Language Switch */
.switch-container { display: flex; align-items: center; gap: 8px; margin-left: 1rem; }
.switch { position: relative; display: inline-block; width: 40px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--secondary); }
input:checked + .slider:before { transform: translateX(20px); }
.switch-label { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); }
.switch-label.active { color: var(--secondary); }

/* Buttons */
.btn-primary { background: var(--secondary); color: white; padding: 0.8rem 1.8rem; border-radius: 10px; text-decoration: none; font-weight: 600; display: inline-block; transition: var(--transition); border: 2px solid var(--secondary); }
.btn-primary:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3); }
.btn-outline { border: 2px solid var(--secondary); color: var(--secondary); padding: 0.8rem 1.8rem; border-radius: 10px; text-decoration: none; font-weight: 600; display: inline-block; transition: var(--transition); background: transparent; }
.btn-outline:hover { background: var(--secondary); color: white; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3); }

.hero-btns { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

@media (max-width: 768px) {
    .home__container, .exp-grid { grid-template-columns: 1fr; }
    .home__images { display: none; }
    .hello { font-size: 2.5rem; }
}

/* Publications Styling */
.publications__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.pub-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    border-left: 5px solid var(--secondary);
    transition: var(--transition);
}

.pub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.pub-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pub-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary);
    background: var(--bg);
    padding: 4px 12px;
    border-radius: 20px;
}

.pub-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.pub-authors {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.pub-journal {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.pub-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.pub-link:hover {
    border-bottom-color: var(--secondary);
}

/* Contact Icons Styling */
.contact-card {
    background: var(--white);
    padding: 4rem 2rem;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.05);
    text-align: center;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.contact-icon-btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: var(--secondary);
    font-size: 1.5rem;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(20, 184, 166, 0.1);
}

.contact-icon-btn:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(20, 184, 166, 0.3);
}

.wechat-container {
    margin-top: 2rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
}

.wechat-container i {
    color: var(--accent);
    margin-right: 5px;
}

/* Fun Facts Styling */
#facts {
    background: linear-gradient(135deg, var(--bg) 0%, #e2f2f0 100%);
}

.facts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.fact-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition);
    cursor: default;
}

.fact-card:hover {
    transform: scale(1.03) rotate(2deg); /* Playful tilt */
    background: var(--white);
    box-shadow: 0 20px 40px rgba(20, 184, 166, 0.1);
}

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

.fact-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.fact-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Styling for the Photos-as-Icons */
.card-image-icon, .fact-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
    border-radius: 50%; /* Makes them circular */
    overflow: hidden;
    border: 3px solid var(--secondary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card-image-icon img, .fact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents stretching */
    transition: var(--transition);
}

/* Hover effect for the images */
.about__card:hover .card-image-icon img,
.fact-card:hover .fact-image img {
    transform: scale(1.1);
}

/* Certifications Grid */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.cert-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(20, 184, 166, 0.1);
}

.cert-icon-fa {
    font-size: 1.8rem;
    color: var(--secondary);
}

.cert-info h4 { font-size: 1rem; color: var(--primary); }
.cert-info p { font-size: 0.85rem; color: var(--text-muted); }
.cert-date { font-size: 0.75rem; font-weight: 700; color: var(--secondary); }

/* Awards Timeline Styling */
.awards-timeline {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    padding-left: 20px; /* Space for the line */
}

/* The Vertical Line */
.awards-timeline::before {
    content: '';
    position: absolute;
    left: 45px; /* Center of the 50px icon wrapper */
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(to bottom, var(--secondary) 0%, transparent 100%);
    opacity: 0.3;
}

.award-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

/* Fixed-width wrapper to solve alignment issues */
.award-icon-wrapper {
    min-width: 50px; /* Fixed width forces alignment */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 2px solid var(--secondary);
    color: #F59E0B; /* Gold/Amber */
    font-size: 1.4rem;
}

.award-content {
    flex: 1;
}

.award-meta {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0.2rem 0 0.5rem 0;
}

.award-content h4 {
    font-size: 1.2rem;
    color: var(--primary);
    line-height: 1.2;
}

.award-content p:last-child {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Hover effect */
.award-item:hover .award-icon-wrapper {
    background: var(--secondary);
    color: var(--white);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(15, 23, 42, 0.8); /* Slate overlay */
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 24px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    animation: modalSlide 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--bg);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.close-btn {
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.close-btn:hover { color: var(--secondary); }

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

.note-item h5 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.note-item a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: var(--transition);
}

.note-item a:hover { color: var(--primary); text-decoration: underline; }

.notes-link {
    opacity: 0.7; /* Makes it "less visible" as requested */
    font-size: 0.8rem !important;
}

/* Footer Styling */
.footer {
    padding: 4rem 0 2rem;
    text-align: center;
    border-top: 1px solid rgba(15, 23, 42, 0.05); /* Very subtle divider */
}

.footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Optional: Add a small decorative element above the text */
.footer::before {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--secondary);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
    opacity: 0.5;
}

/* Section Subtitle */
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 700px;
    line-height: 1.6;
}

/* ============================================
   CASE STUDIES
   ============================================ */

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

.case-study-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.case-study__header {
    margin-bottom: 1.5rem;
}

.case-study__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.case-study__tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--secondary);
    background: var(--bg);
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-study__header h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.case-study__metric {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.metric-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.case-study__body {
    flex: 1;
    margin-bottom: 1.5rem;
}

.case-study__section {
    margin-bottom: 1.2rem;
}

.case-study__section h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.case-study__section p {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.6;
}

.case-study__list {
    margin: 0;
    padding-left: 1.2rem;
    list-style-type: disc;
    list-style-position: outside;
}

.case-study__list li {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    padding-left: 0.3rem;
}

.case-study__list li::marker {
    color: var(--secondary);
    font-size: 1rem;
}

.case-study__skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.case-study__skills .skill-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--bg);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

/* ============================================
   SKILLS & TOOLS
   ============================================ */

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

.skills__category {
    background: var(--white);
    padding: 1.8rem;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.skills__category:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.skills__cat-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.skills__cat-header i {
    font-size: 1.3rem;
    color: var(--secondary);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: var(--bg);
    border-radius: 10px;
}

.skills__cat-header h3 {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 700;
}

.skills__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skills__tags .skill-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--bg);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.12);
    transition: var(--transition);
}

.skills__tags .skill-tag:hover {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

/* ============================================
   BEYOND THE CODE (Personal Brand)
   ============================================ */

#funfacts .section-subtitle {
    margin-bottom: 2.5rem;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .section-title { font-size: 2rem; }
    .container { padding: 0 1.5rem; }
    
    .home__container { 
        grid-template-columns: 1fr; 
        padding: 0 1.5rem;
        text-align: center;
    }
    
    .home__content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hello {
        font-size: 2.2rem;
        white-space: normal;
    }
    
    .title {
        font-size: 1.1rem;
    }
    
    .typewriter-slot {
        font-size: 1.1rem;
        min-height: 1.6rem;
    }
    
    .hero-tagline {
        font-size: 0.95rem;
        max-width: 100%;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .home__images {
        display: none;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .about__grid {
        grid-template-columns: 1fr;
    }
    
    .about__card {
        padding: 2rem;
    }
    
    .about__grid::before {
        display: none;
    }
    
    .case-studies__grid {
        grid-template-columns: 1fr;
    }
    
    .case-study-card {
        padding: 1.5rem;
    }
    
    .exp-grid {
        grid-template-columns: 1fr;
    }
    
    .publications__grid {
        grid-template-columns: 1fr;
    }
    
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    .awards-timeline {
        padding-left: 10px;
    }
    
    .awards-timeline::before {
        left: 35px;
    }
    
    .award-item {
        gap: 1rem;
    }
    
    .facts__grid {
        grid-template-columns: 1fr;
    }
    
    .skills__grid {
        grid-template-columns: 1fr;
    }
    
    .trusted-by__logos {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .trusted-separator {
        display: none;
    }
    
    .contact-card {
        padding: 3rem 1.5rem;
    }
    
    .contact-icons {
        gap: 1rem;
    }
    
    .contact-icon-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }
    
    .notes-grid {
        grid-template-columns: 1fr;
    }
}

/* Typewriter Cursor */
.cursor {
    display: inline-block;
    animation: blink 1s step-end infinite;
    color: var(--secondary);
    font-weight: 300;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
