/* ============================================
   Dr. Venkatesan M - Academic Portfolio
   Modern, Innovative Design for AI/Remote Sensing Researcher
   ============================================ */

:root {
    /* Primary Colors - Deep Ocean/Satellite Imagery Inspired */
    --primary: #0a192f;
    --primary-light: #112240;
    --primary-dark: #020c1b;

    /* Accent Colors - Data Visualization Inspired */
    --accent: #64ffda;
    --accent-secondary: #f97316;
    --accent-tertiary: #818cf8;

    /* Text Colors */
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --text-muted: #495670;
    --text-dark: #0a192f;

    /* Background */
    --bg-card: rgba(17, 34, 64, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.03);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Instrument Serif', Georgia, serif;

    /* Spacing */
    --section-gap: 120px;
    --container-width: 1200px;

    /* Effects */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glow: 0 0 20px rgba(100, 255, 218, 0.15);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Neural Network Background Canvas */
#neural-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

em {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--accent);
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo-img {
    height: 45px;
    width: auto;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
}

.nav-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-title {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 2rem 60px;
    position: relative;
}

.hero-content {
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
}

.hero-main {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* Profile Image with Animated Rings */
.hero-profile {
    flex-shrink: 0;
}

.profile-image-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
}

.profile-ring {
    position: absolute;
    inset: -10px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: ringPulse 3s ease-in-out infinite;
}

.profile-ring.ring-2 {
    inset: -25px;
    animation-delay: 1.5s;
    border-style: dashed;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.6; }
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent);
    position: relative;
    z-index: 2;
}

.profile-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--accent);
    color: var(--primary);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3;
}

/* Hero Text */
.hero-text {
    flex: 1;
}

.hero-intro {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.intro-line {
    width: 40px;
    height: 1px;
    background: var(--accent);
}

.intro-text {
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-name {
    margin-bottom: 1.5rem;
}

.name-first {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}

.name-last {
    display: block;
    font-size: 2rem;
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--text-secondary);
    font-style: italic;
}

.hero-affiliation {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-affiliation .dept {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.hero-affiliation .inst {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Hero Footer */
.hero-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

/* Research Domains */
.research-domains {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.domain {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-glass);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 50px;
    transition: var(--transition);
}

.domain:hover {
    border-color: var(--accent);
    background: rgba(100, 255, 218, 0.05);
    transform: translateY(-2px);
}

.domain-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 50%;
    color: var(--accent);
    font-size: 0.9rem;
}

.domain span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat-card {
    padding: 1rem;
    background: var(--bg-glass);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0.5rem 0;
}

.stat-bar {
    height: 2px;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.stat-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-tertiary));
    border-radius: 2px;
    animation: barGrow 1.5s ease-out forwards;
    transform-origin: left;
}

@keyframes barGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; height: 40px; }
    50% { opacity: 0.5; height: 30px; }
}

/* ============================================
   SECTIONS - Common Styles
   ============================================ */
.section {
    padding: var(--section-gap) 0;
    position: relative;
}

.section-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
}

/* Section Label */
.section-label {
    position: relative;
}

.label-number {
    display: block;
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-family: monospace;
}

.label-text {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin-top: 1rem;
}

.label-line {
    position: absolute;
    left: 0;
    top: 80px;
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

/* Section Content */
.section-content {
    max-width: 900px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    color: var(--accent);
    font-size: 0.9rem;
    transition: var(--transition);
}

.section-link:hover {
    gap: 1rem;
}

.section-link i {
    transition: var(--transition);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
}

.about-text {
    margin-bottom: 3rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.highlight {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-glass);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 12px;
    transition: var(--transition);
}

.highlight:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: var(--glow);
}

.highlight-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 12px;
    color: var(--accent);
}

.highlight-icon svg {
    width: 24px;
    height: 24px;
}

.highlight-content h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.highlight-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   RESEARCH SECTION
   ============================================ */
.research-section {
    background: var(--primary-light);
}

.research-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.research-card {
    background: var(--bg-card);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.research-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: var(--glow);
}

.card-visual {
    height: 140px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-visual i {
    font-size: 2.5rem;
    color: var(--accent);
    z-index: 2;
}

/* Visual Grid Animation - Satellite Imagery */
.visual-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    padding: 20px;
    opacity: 0.3;
}

.visual-grid span {
    background: var(--accent);
    opacity: 0.3;
    animation: gridPulse 2s ease-in-out infinite;
}

.visual-grid span:nth-child(odd) {
    animation-delay: 0.5s;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}

/* Visual Layers Animation - Hyperspectral */
.visual-layers {
    position: absolute;
    inset: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.visual-layers span {
    height: 20px;
    background: linear-gradient(90deg, var(--accent), var(--accent-tertiary));
    border-radius: 4px;
    opacity: 0.3;
    animation: layerSlide 3s ease-in-out infinite;
}

.visual-layers span:nth-child(2) {
    animation-delay: 0.3s;
    width: 80%;
    margin-left: auto;
}

.visual-layers span:nth-child(3) {
    animation-delay: 0.6s;
    width: 60%;
}

@keyframes layerSlide {
    0%, 100% { transform: translateX(0); opacity: 0.3; }
    50% { transform: translateX(10px); opacity: 0.5; }
}

/* Visual Nodes Animation - Data Mining */
.visual-nodes {
    position: absolute;
    inset: 20px;
}

.visual-nodes span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: nodePulse 2s ease-in-out infinite;
}

.visual-nodes span:nth-child(1) { top: 20%; left: 30%; }
.visual-nodes span:nth-child(2) { top: 60%; left: 20%; animation-delay: 0.4s; }
.visual-nodes span:nth-child(3) { top: 40%; left: 60%; animation-delay: 0.2s; }
.visual-nodes span:nth-child(4) { top: 70%; left: 70%; animation-delay: 0.6s; }
.visual-nodes span:nth-child(5) { top: 30%; left: 80%; animation-delay: 0.3s; }

@keyframes nodePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.4); }
    50% { transform: scale(1.2); box-shadow: 0 0 10px 5px rgba(100, 255, 218, 0.2); }
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.card-tags span {
    padding: 0.25rem 0.75rem;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--accent);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-section {
    background: var(--primary);
}

.project-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.project-card {
    padding: 2rem;
    background: var(--bg-glass);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 16px;
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.project-card.featured {
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.1) 0%, rgba(129, 140, 248, 0.1) 100%);
    border-color: var(--accent);
}

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

.project-agency {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.project-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.project-status.ongoing {
    background: rgba(249, 115, 22, 0.2);
    color: var(--accent-secondary);
}

.project-status.completed {
    background: rgba(100, 255, 218, 0.2);
    color: var(--accent);
}

.project-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.project-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.project-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.project-amount {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.project-amount .currency {
    font-size: 1rem;
    color: var(--text-muted);
}

.project-amount .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.project-amount .unit {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============================================
   PUBLICATIONS SECTION
   ============================================ */
.publications-section {
    background: var(--primary-light);
}

.publication-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.publication-item {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--bg-glass);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 12px;
    transition: var(--transition);
}

.publication-item:hover {
    border-color: var(--accent);
    transform: translateX(10px);
}

.pub-year {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    padding-top: 0.25rem;
}

.pub-content h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

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

.pub-authors {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.pub-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pub-badge.q1 {
    background: rgba(100, 255, 218, 0.2);
    color: var(--accent);
}

.pub-badge.q2 {
    background: rgba(129, 140, 248, 0.2);
    color: var(--accent-tertiary);
}

/* ============================================
   PROFILES SECTION
   ============================================ */
.profiles-section {
    padding: 3rem 0;
    background: var(--primary-dark);
}

.profiles-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-glass);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.profile-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

.profile-link i {
    font-size: 1rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: var(--section-gap) 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

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

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.cta-button.primary {
    background: var(--accent);
    color: var(--primary);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
}

.cta-button.secondary {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.cta-button.secondary:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--primary-dark);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.footer-brand {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.footer-logo {
    height: 60px;
    width: auto;
}

.footer-info h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.footer-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-nav {
    display: flex;
    gap: 4rem;
}

.footer-col h4 {
    font-size: 0.85rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   PAGE HEADER (Inner Pages)
   ============================================ */
.page-header {
    padding: 150px 0 80px;
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-label {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .label-text {
        writing-mode: horizontal-tb;
        transform: none;
        margin-top: 0;
    }

    .label-line {
        display: none;
    }

    .hero-main {
        flex-direction: column;
        text-align: center;
    }

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

    .research-domains {
        justify-content: center;
    }

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

    .research-cards {
        grid-template-columns: 1fr;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    :root {
        --section-gap: 80px;
    }

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

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

    .profiles-grid {
        justify-content: center;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid rgba(100, 255, 218, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

    .name-first {
        font-size: 2.5rem;
    }

    .name-last {
        font-size: 1.5rem;
    }

    .profile-image-wrapper {
        width: 180px;
        height: 180px;
    }

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

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

    .footer-main {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-nav {
        flex-direction: column;
        gap: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 100px 1rem 40px;
    }

    .name-first {
        font-size: 2rem;
    }

    .name-last {
        font-size: 1.25rem;
    }

    .domain {
        padding: 0.5rem 1rem;
    }

    .domain-icon {
        width: 28px;
        height: 28px;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .publication-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   ADDITIONAL CARD STYLES (for inner pages)
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.course-card {
    padding: 1.5rem;
    background: var(--bg-glass);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 12px;
    border-left: 3px solid var(--accent);
    transition: var(--transition);
}

.course-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.course-card h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.course-code {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.course-level {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent);
    font-size: 0.75rem;
    border-radius: 20px;
}

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

.contact-card {
    padding: 2rem;
    background: var(--bg-glass);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 50%;
    color: var(--accent);
    font-size: 1.5rem;
}

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

.contact-primary {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-secondary {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.info-box {
    padding: 2rem;
    background: var(--bg-glass);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 12px;
}

.info-box h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-box i {
    color: var(--accent);
}

.info-box ul {
    list-style: none;
}

.info-box li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.info-box li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(50%) invert(90%) contrast(90%);
}

/* Button styles for inner pages */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(100, 255, 218, 0.3);
}

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

.btn-secondary:hover {
    background: rgba(100, 255, 218, 0.1);
}
