/* ========================================
   Modern Dark Theme Styles
   W3C Valid & WCAG AA Compliant
   ======================================== */

/* CSS Variables for Dark Theme */
:root {
    /* Dark Theme Colors */
    --bg-primary: #0f1419;
    --bg-secondary: #1a1f26;
    --bg-tertiary: #252d38;
    --bg-card: #1e2530;
    --bg-card-hover: #2a3341;
    
    /* Text Colors */
    --text-primary: #e8eaed;
    --text-secondary: #b4b8c0;
    --text-muted: #8a8f98;
    
    /* Accent Colors */
    --accent-primary: #00d9ff;
    --accent-secondary: #00a6cc;
    --accent-tertiary: #0080a6;
    --accent-warm: #ff6b6b;
    --accent-success: #51cf66;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00d9ff 0%, #0080a6 100%);
    --gradient-card: linear-gradient(135deg, #1e2530 0%, #252d38 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 217, 255, 0.3);
    
    /* Borders */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-focus: rgba(0, 217, 255, 0.5);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========================================
   Reset and Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 80px;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--accent-warm);
    outline-offset: 2px;
}

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

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: var(--shadow-glow);
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-normal);
    border-bottom: 1px solid var(--border-color);
}

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

.nav-logo h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    font-weight: 700;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--accent-primary);
    outline: none;
}

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0.5rem;
}

.bar {
    width: 25px;
    height: 2px;
    background: var(--accent-primary);
    margin: 4px 0;
    transition: var(--transition-normal);
    border-radius: 2px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding: 6rem 0;
    display: flex;
    align-items: center;
    position: relative;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 107, 0.06) 0%, transparent 50%),
        var(--bg-primary);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.animated-subtitle {
    height: 70px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.subtitle-text {
    position: absolute;
    top: 0;
    left: 0;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--text-secondary);
    font-weight: 400;
    opacity: 1;
    transition: opacity var(--transition-slow);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-normal);
    cursor: pointer;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left var(--transition-normal);
}

.btn:hover::before,
.btn:focus::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    outline: none;
}

/* ========================================
   Profile Card
   ======================================== */
.profile-card {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease 1.2s forwards;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.card-image {
    margin-bottom: 2rem;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-primary);
    box-shadow: var(--shadow-glow);
    transition: all var(--transition-normal);
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    color: var(--accent-primary);
    text-decoration: none;
    transition: all var(--transition-normal);
    font-size: 1.2rem;
}

.social-link:hover,
.social-link:focus {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    outline: none;
}

/* ========================================
   About Section
   ======================================== */
.about {
    padding: 6rem 0;
    background: var(--bg-secondary);
    position: relative;
}

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

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.about-text p:nth-child(1) { animation-delay: 0.2s; }
.about-text p:nth-child(2) { animation-delay: 0.3s; }
.about-text p:nth-child(3) { animation-delay: 0.4s; }

.about-text strong {
    color: var(--accent-primary);
    font-weight: 600;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--gradient-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-normal);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.5s; }
.stat-card:nth-child(2) { animation-delay: 0.6s; }
.stat-card:nth-child(3) { animation-delay: 0.7s; }

.stat-card:hover {
    transform: scale(1.02);
}

.stat-card h3 {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-number {
    display: inline-block;
}

.stat-card p {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

/* ========================================
   Philosophy Section
   ======================================== */
.philosophy {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.philosophy-text p {
    font-size: 1.2rem;
    margin: 0 auto 2rem;
    max-width: 900px;
    color: var(--text-secondary);
    line-height: 1.9;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

/* ========================================
   Experience Section
   ======================================== */
.experience {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

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

.experience-card {
    background: var(--gradient-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    cursor: pointer;
}

.experience-card:nth-child(1) { animation-delay: 0.2s; }
.experience-card:nth-child(2) { animation-delay: 0.3s; }
.experience-card:nth-child(3) { animation-delay: 0.4s; }

.experience-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    border-color: var(--accent-primary);
}

.experience-card:focus {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    border-color: var(--accent-primary);
    outline: 3px solid var(--accent-primary);
    outline-offset: 2px;
}

.experience-icon {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

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

.experience-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
}

.experience-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.highlight-tag {
    background: rgba(0, 217, 255, 0.15);
    color: var(--accent-primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 217, 255, 0.3);
}

/* ========================================
   Interests Section
   ======================================== */
.interests {
    padding: 6rem 0;
    background: var(--bg-primary);
}

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

.interest-item {
    position: relative;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 16px;
    transition: transform var(--transition-normal);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.interest-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.3) grayscale(0.5);
    transition: filter var(--transition-normal);
    z-index: 1;
}

.interest-content {
    position: relative;
    z-index: 2;
}

.interest-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2) 0%, rgba(0, 128, 166, 0.2) 100%);
    border-radius: 16px;
    z-index: 1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.interest-item:nth-child(1) { animation-delay: 0.2s; }
.interest-item:nth-child(2) { animation-delay: 0.3s; }
.interest-item:nth-child(3) { animation-delay: 0.4s; }

/* Interest items are not interactive - no hover effects */

.interest-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.interest-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* ========================================
   Detailed Content Styling
   ======================================== */
.detailed-container {
    background: var(--gradient-card);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.back-button-container {
    margin-bottom: 2rem;
}

.back-button {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-md);
}

.back-button:hover,
.back-button:focus {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    outline: none;
}

.detailed-content {
    text-align: left;
}

.detailed-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.detailed-icon {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detailed-header h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin: 0;
}

.detailed-body {
    line-height: 1.8;
}

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

/* ========================================
   Journey Section
   ======================================== */
.journey-section {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

.journey-section:nth-child(even) {
    grid-template-columns: 1fr 350px;
}

.journey-section:nth-child(even) .journey-image {
    order: 2;
}

.journey-section:nth-child(even) .journey-text {
    order: 1;
}

/* Journey Section Styling - Text Only */
.journey-section.text-only {
    display: block;
    margin-bottom: 2rem;
}

.journey-section.text-only .journey-text {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.journey-section.text-only .journey-text h4 {
    color: var(--accent-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.journey-section.text-only .journey-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.journey-image img {
    width: 100%;
    max-width: 350px;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.expandable-image:hover,
.expandable-image:focus {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    border-color: var(--accent-primary);
}

.journey-text h4 {
    color: var(--accent-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.journey-text p,
.journey-text li {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.journey-text ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

/* ========================================
   Image Modal
   ======================================== */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    animation: modalSlideIn var(--transition-normal) ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--gradient-primary);
    color: var(--bg-primary);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--bg-primary);
}

.modal-close {
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: var(--bg-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover,
.modal-close:focus {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
    outline: none;
}

.modal-body {
    padding: 0;
    text-align: center;
    background: var(--bg-primary);
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content p {
    font-size: 0.95rem;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(15, 20, 25, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding-top: 2rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .animated-subtitle {
        height: 90px;
        margin-bottom: 2rem;
    }
    
    .subtitle-text {
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .stat-card {
        flex: 1;
        min-width: 150px;
        padding: 1.5rem 1rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .stat-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
    }
    
    .interests-content {
        grid-template-columns: 1fr;
    }
    
    .journey-section {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .journey-section .journey-image {
        order: -1 !important;
    }
    
    .journey-section .journey-text {
        order: 1 !important;
    }
    
    .journey-image img {
        max-width: 100%;
        height: auto;
    }
    
    .detailed-container {
        padding: 2rem;
    }
    
    .detailed-header {
        flex-direction: column;
        text-align: center;
    }
    
    .detailed-header h3 {
        font-size: 1.5rem;
    }
    
    .modal-content {
        max-width: 95vw;
    }
}

@media (max-width: 600px) {
    .stat-card {
        padding: 1.25rem 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .stat-card h3 {
        font-size: 1.6rem;
    }
    
    .stat-card p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        margin-bottom: 3rem;
    }
    
    .about-stats {
        flex-direction: column;
    }
    
    .stat-card {
        min-width: auto;
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .stat-card h3 {
        font-size: 1.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .stat-card p {
        font-size: 0.85rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .detailed-container {
        padding: 1.5rem;
    }
    
    .profile-card {
        padding: 2rem;
    }
    
    .profile-img {
        width: 150px;
        height: 150px;
    }
}

/* ========================================
   Focus Visible for Accessibility
   ======================================== */
:focus-visible {
    outline: 3px solid var(--accent-primary);
    outline-offset: 3px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #e0e0e0;
        --border-color: rgba(255, 255, 255, 0.3);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hamburger,
    .skip-link,
    .back-button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero,
    .about,
    .philosophy,
    .experience,
    .interests {
        page-break-inside: avoid;
    }
}
