/* ===== APPLE-INSPIRED MINIMAL THEME ===== */

/* Import fonts - Calm, refined typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@400;500;600;700&display=swap');

/* ===== GLOBAL RESET ===== */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

html {
    scrollbar-gutter: stable both-edges;
}

/* ===== LIGHT MODE CSS VARIABLES (DEFAULT) ===== */
:root {
    color-scheme: light;
    
    /* Light mode colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f3f4f6;
    --bg-pattern: rgba(106, 123, 140, 0.015);
    
    --text-primary: #333333;
    --text-secondary: #555555;
    --text-tertiary: #6A7B8C;
    --text-muted: #6b7280;
    
    --accent-primary: #0078ff;
    --accent-secondary: #6A7B8C;
    --accent-tertiary: #4B6F81;
    
    --border-primary: #e5e7eb;
    --border-secondary: #f0f0f0;
    --border-tertiary: #eee;
    
    --shadow-primary: rgba(106, 123, 140, 0.15);
    --shadow-secondary: rgba(0, 120, 255, 0.3);
    --shadow-accent: rgba(0, 120, 255, 0.5);
    
    --gradient-primary: linear-gradient(135deg, #007bff, #0056b3);
    --gradient-secondary: linear-gradient(90deg, #6A7B8C, #4B6F81);
    --gradient-accent: radial-gradient(circle at center, rgba(0, 120, 255, 0.03) 0%, rgba(0, 120, 255, 0.01) 70%, #FFFFFF 100%);
    
    --transition-speed: 0.3s;
    
    /* Navbar edge offset for consistent left-edge anchoring */
    --edge-offset: 24px;
    
    /* Light mode specific colors */
    --navbar-bg: #FFFFFF;
    --navbar-text: #333333;
    --navbar-border: #e5e7eb;
    
    --card-bg: #FFFFFF;
    --card-border: #e5e7eb;
    --card-shadow: rgba(0, 0, 0, 0.1);
    
    --button-bg: #0078ff;
    --button-text: #FFFFFF;
    --button-hover: #0056b3;
    
    --input-bg: #FFFFFF;
    --input-border: #e5e7eb;
    --input-text: #333333;
    --input-focus: #0078ff;
    
    --neon-glow: rgba(0, 120, 255, 0.3);
    --neon-glow-strong: rgba(0, 120, 255, 0.5);
    
    --modal-overlay: rgba(0, 0, 0, 0.5);
    
    /* Add smooth transitions for theme switching */
    transition: color var(--transition-speed) ease, 
                border-color var(--transition-speed) ease, 
                box-shadow var(--transition-speed) ease,
                background-color var(--transition-speed) ease;
}

/* ===== DARK MODE CSS VARIABLES ===== */
[data-theme="dark"] {
    color-scheme: dark;
    
    /* Dark mode colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2d2d2d;
    --bg-pattern: rgba(255, 255, 255, 0.02);
    
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-tertiary: #b0b0b0;
    --text-muted: #888888;
    
    --accent-primary: #4da6ff;
    --accent-secondary: #8fa3b8;
    --accent-tertiary: #6b8ca3;
    
    --border-primary: #404040;
    --border-secondary: #333333;
    --border-tertiary: #4a4a4a;
    
    --shadow-primary: rgba(0, 0, 0, 0.3);
    --shadow-secondary: rgba(77, 166, 255, 0.2);
    --shadow-accent: rgba(77, 166, 255, 0.4);
    
    --gradient-primary: linear-gradient(135deg, #4da6ff, #2d7dd2);
    --gradient-secondary: linear-gradient(90deg, #8fa3b8, #6b8ca3);
    --gradient-accent: radial-gradient(circle at center, rgba(77, 166, 255, 0.05) 0%, rgba(77, 166, 255, 0.02) 70%, #1a1a1a 100%);
    
    /* Dark mode specific colors */
    --navbar-bg: #0a0a0a;
    --navbar-text: #ffffff;
    --navbar-border: #404040;
    
    --card-bg: #1a1a1a;
    --card-border: #404040;
    --card-shadow: rgba(0, 0, 0, 0.3);
    
    --button-bg: #4da6ff;
    --button-text: #ffffff;
    --button-hover: #2d7dd2;
    
    --input-bg: #0a0a0a;
    --input-border: #404040;
    --input-text: #ffffff;
    --input-focus: #4da6ff;
    
    --neon-glow: rgba(77, 166, 255, 0.2);
    --neon-glow-strong: rgba(77, 166, 255, 0.4);
    
    --modal-overlay: rgba(0, 0, 0, 0.9);
    
    /* Add smooth transitions for theme switching */
    transition: color var(--transition-speed) ease, 
                border-color var(--transition-speed) ease, 
                box-shadow var(--transition-speed) ease,
                background-color var(--transition-speed) ease;
}

/* ===== BASE STYLES ===== */
body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

/* ===== NAVBAR STYLES ===== */
.navbar {
    background: var(--navbar-bg);
    border-bottom: 1px solid var(--navbar-border);
    color: var(--navbar-text);
    transition: background-color var(--transition-speed) ease, 
                border-color var(--transition-speed) ease, 
                color var(--transition-speed) ease;
}

/* ===== LANDING PAGE BACKGROUNDS ===== */
.engineering-landing,
.volunteering-landing {
    background: var(--bg-primary);
    transition: background-color var(--transition-speed) ease;
}

/* ===== PROJECT CARD STYLES ===== */
.project-card-expandable {
    background: var(--card-bg) !important;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--card-shadow), 0 0 15px var(--neon-glow);
    border: 2px solid var(--accent-primary);
    z-index: 15;
    transition: background-color var(--transition-speed) ease,
                border-color var(--transition-speed) ease,
                box-shadow var(--transition-speed) ease;
}

/* ===== UNIVERSAL RESPONSIVE DESIGN ===== */
/* CSS RESET AND BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure proper viewport handling and prevent horizontal scrolling */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
    box-sizing: border-box;
    /* iOS Safari improvements */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    background: var(--bg-primary);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.8;
    color: var(--text-secondary);
    background: var(--bg-primary);
    transition: color var(--transition-speed) ease;
    /* Remove pattern for uniform white background */
    background-image: none;
    background-size: auto;
    font-weight: 400;
    letter-spacing: -0.005em;
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
    min-height: 100vh;
    /* Ensure proper scrolling on iOS */
    -webkit-overflow-scrolling: touch;
    position: relative;
    overflow-y: auto; /* Use auto to prevent multiple scrollbars */
    box-sizing: border-box;
    /* Remove any potential outlines or borders */
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    /* Ensure full width coverage */
    min-width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Universal responsive container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Universal responsive section */
.section {
    padding: 120px 0;
    opacity: 0;
    animation: gentleFadeInUp 1s ease-out forwards;
    width: 100%;
    box-sizing: border-box;
}

/* Universal responsive text sizing */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    transition: color var(--transition-speed) ease;
}

p, li, span, a, label, input, textarea, button {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Universal responsive images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Universal responsive flex containers */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Universal responsive grid containers */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* ===== COMPREHENSIVE RESPONSIVE BREAKPOINTS ===== */

/* Ultra-wide screens (1920px and above) */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
        padding: 0 40px;
    }
    
    .section {
        padding: 140px 0;
    }
    
    .section-title {
        font-size: 4rem;
    }
    
    .hero-name {
        font-size: 4rem;
    }
    
    .hero-roles {
        font-size: 1.3rem;
    }
}

/* Large desktop screens (1440px - 1919px) */
@media (max-width: 1919px) and (min-width: 1440px) {
    .container {
        max-width: 1400px;
        padding: 0 32px;
    }
    
    .section {
        padding: 130px 0;
    }
    
    .section-title {
        font-size: 3.8rem;
    }
    
    .hero-name {
        font-size: 3.8rem;
    }
    
    .hero-roles {
        font-size: 1.25rem;
    }
}

/* Standard desktop screens (1024px - 1439px) */
@media (max-width: 1439px) and (min-width: 1024px) {
    .container {
        max-width: 1200px;
        padding: 0 24px;
    }
    
    .section {
        padding: 120px 0;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .hero-name {
        font-size: 3.35rem;
    }
    
    .hero-roles {
        font-size: 1.1rem;
    }
}

/* Tablet landscape (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .section {
        padding: 100px 0;
    }
    
    .section-title {
        font-size: 3rem;
        margin-bottom: 60px;
    }
    
    .hero-name {
        font-size: 2.8rem;
    }
    
    .hero-roles {
        font-size: 1rem;
    }
    
    .nav-menu {
        gap: 30px;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
}

/* Tablet portrait (481px - 767px) */
@media (max-width: 767px) and (min-width: 481px) {
    .container {
        max-width: 100%;
        padding: 0 16px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 50px;
    }
    
    .hero-name {
        font-size: 2.4rem;
    }
    
    .hero-roles {
        font-size: 0.95rem;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    .hero-main {
        min-height: 100vh;
        padding-top: 25vh;
    }
    
    .hero-container {
        padding: 0 16px;
    }
}

/* Mobile landscape (320px - 480px) */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
        padding: 0 12px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .hero-name {
        font-size: 2rem;
    }
    
    .hero-roles {
        font-size: 0.9rem;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
    
    .hero-main {
        min-height: 100vh;
        padding-top: 20vh;
    }
    
    .hero-container {
        padding: 0 12px;
    }
}

/* Extra small mobile (below 320px) */
@media (max-width: 319px) {
    .container {
        max-width: 100%;
        padding: 0 8px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .hero-name {
        font-size: 1.8rem;
    }
    
    .hero-roles {
        font-size: 0.85rem;
    }
    
    .nav-menu {
        gap: 10px;
    }
    
    .nav-link {
        font-size: 0.75rem;
    }
    
    .hero-main {
        min-height: 100vh;
        padding-top: 15vh;
    }
    
    .hero-container {
        padding: 0 8px;
    }
}

/* ===== ORIENTATION SPECIFIC ADJUSTMENTS ===== */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-main {
        min-height: 100vh;
        padding-top: 15vh;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .bio-landing {
        min-height: 100vh;
        padding-top: 15vh;
    }
}

/* ===== ACCESSIBILITY AND USABILITY ===== */
/* Ensure minimum touch targets on mobile */
@media (max-width: 768px) {
    .nav-link,
    .cta-button,
    .project-card-expandable,
    .personal-photo-item,
    .professional-photo-item {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* iPhone-specific centering for home page content */
    .hero-main,
    .hero-content,
    .hero-title,
    .hero-subtitle,
    .hero-description,
    .hero-buttons {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .hero-buttons {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .hero-buttons .cta-button {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .nav-menu,
    .scroll-indicator,
    .bio-scroll-indicator,
    .contact-scroll-indicator {
        display: none !important;
    }
    
    .hero-main,
    .bio-landing,
    .contact-landing {
        min-height: auto;
        padding: 20px 0;
    }
    
    .section {
        padding: 40px 0;
        page-break-inside: avoid;
    }
}

/* ===== BIO PAGE SPECIFIC RESPONSIVE STYLES ===== */
.bio-landing {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
    padding: 120px 0 80px;
    width: 100%;
    box-sizing: border-box;
    transition: color var(--transition-speed) ease;
}

.bio-landing-container {
    text-align: center;
    z-index: 10;
    position: relative;
    max-width: 900px;
    padding: 0 24px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.bio-landing-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
    animation: gentleFadeInUp 1.2s ease-out;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), color var(--transition-speed) ease;
    cursor: pointer;
    word-wrap: break-word;
    overflow-wrap: break-word;
    user-select: none;
}

.bio-landing-title:hover {
    color: var(--accent-primary) !important;
    text-shadow: 0 0 30px var(--shadow-accent) !important;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    letter-spacing: 0.1em !important;
}

.bio-photo-container {
    margin: 40px auto;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    position: relative;
    z-index: 20; /* Higher z-index to be above particles */
}

.bio-photo {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(106, 123, 140, 0.15);
    transition: all 0.4s ease;
    opacity: 1;
    position: relative;
    z-index: 21; /* Ensure image is above particles */
}

.bio-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 48px rgba(106, 123, 140, 0.25);
}

/* Particle-free zone around bio photo */
.bio-photo-container::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--bg-primary);
    border-radius: 16px;
    z-index: 19; /* Below the image but above particles */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.bio-scroll-indicator {
    margin-top: 40px;
    cursor: pointer;
    transition: all 0.4s ease;
    opacity: 0.7;
    position: relative;
    z-index: 25; /* Ensure it's above everything */
}

.bio-scroll-indicator:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.bio-scroll-indicator-second {
    margin-top: 30px;
    cursor: pointer;
    transition: all 0.4s ease;
    opacity: 0.7;
    position: relative;
    z-index: 25; /* Ensure it's above everything */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.bio-scroll-indicator-second:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.scroll-arrow {
    font-size: 2rem;
    color: var(--text-tertiary);
    margin-bottom: 8px;
    animation: gentleBounce 2s infinite;
}

.scroll-text {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.bio-main-content {
    width: 100%;
    box-sizing: border-box;
}

.bio-story-section {
    padding: 120px 0;
    width: 100%;
    box-sizing: border-box;
}

.bio-story-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

.bio-content-layout {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.bio-photo-after-arrow {
    width: 100%;
    max-width: 250px;
    margin: 0 auto 60px auto;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    z-index: 20; /* Higher z-index to be above particles */
}

.bio-photo-after-arrow::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--bg-primary);
    border-radius: 16px;
    z-index: 19; /* Below the image but above particles */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.bio-photo-after-arrow .bio-photo {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(106, 123, 140, 0.15);
    transition: all 0.4s ease;
    opacity: 1;
    cursor: pointer;
    position: relative;
    z-index: 21; /* Ensure image is above particles */
}

.bio-photo-after-arrow .bio-photo:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 25px rgba(77, 166, 255, 0.4), 0 0 50px rgba(77, 166, 255, 0.2), 0 16px 64px rgba(106, 123, 140, 0.12);
}

.bio-story-text {
    width: 100%;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
    text-align: left;
    box-sizing: border-box;
    margin: 0 20px; /* Increased side margins for better balance */
    padding: 25px 30px; /* Increased padding for better visual separation */
    background: transparent; /* Transparent background - no outer card */
    border-radius: 0; /* No border radius since no background */
    backdrop-filter: none; /* No blur effect */
    -webkit-backdrop-filter: none; /* Safari support */
    border: none; /* No border */
    box-shadow: none; /* No shadow */
    transition: color var(--transition-speed) ease;
    position: relative;
    z-index: 15; /* Above particles but below images */
}

/* Removed .bio-story-text::before since the outer card is now transparent */

.bio-story-text p {
    margin-bottom: 24px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    position: relative;
    z-index: 1;
}

.bio-story-text p:last-child {
    margin-bottom: 0;
}

/* Bio section styling for cleaner organization */
.bio-section {
    margin-bottom: 40px;
    padding: 30px 25px;
    border-bottom: 1px solid var(--border-secondary);
    background: var(--card-bg) !important; /* Use theme-specific background */
    border-radius: 12px; /* Rounded corners */
    border: 2px solid var(--accent-primary); /* Neon blue border */
    box-shadow: 0 4px 20px var(--card-shadow), 0 0 15px var(--neon-glow); /* Enhanced shadow with neon glow */
    transition: border-color var(--transition-speed) ease, background var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    position: relative;
    z-index: 15; /* Above particles but below images */
}

.bio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-radius: 12px;
    z-index: -1;
    pointer-events: none;
}

.bio-section:last-child {
    margin-bottom: 0;
    padding-bottom: 30px;
    border-bottom: none;
}

.bio-section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    position: relative;
    padding-left: 0;
    transition: color var(--transition-speed) ease;
}

.bio-section-title::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 2px;
}



/* Bio page responsive adjustments */
@media (max-width: 1023px) {
    .bio-landing {
        padding: 120px 0 60px;
    }
    
    .bio-landing-title {
        font-size: 3rem;
        margin-bottom: 30px;
    }
    
    .bio-photo-container {
        max-width: 350px;
        margin: 30px auto;
    }
    
    .bio-story-section {
        padding: 100px 0;
    }
    
    .bio-content-layout {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }
    
    .bio-photo-after-arrow {
        width: 100%;
        max-width: 225px;
    }
    
    .bio-story-text {
        font-size: 1rem;
        width: 100%;
        margin: 0 10px; /* Adjusted side margins for more words per line */
        padding: 0 5px; /* Additional padding for clean look */
    }
    
    .bio-section {
        margin-bottom: 30px;
        padding-bottom: 25px;
    }
    
    .bio-section-title {
        font-size: 1.2rem;
        margin-bottom: 14px;
    }
    

}

@media (max-width: 767px) {
    .bio-landing {
        padding: 100px 0 40px;
    }
    
    .bio-landing-title {
        font-size: 2.5rem;
        margin-bottom: 25px;
    }
    
    .bio-photo-container {
        max-width: 300px;
        margin: 25px auto;
    }
    
    .bio-story-section {
        padding: 80px 0;
    }
    
    .bio-story-container {
        padding: 0 16px;
    }
    
    .bio-content-layout {
        gap: 30px;
    }
    
    .bio-photo-after-arrow {
        max-width: 200px;
    }
    
    .bio-story-text {
        font-size: 0.95rem;
        margin: 0 8px; /* Adjusted side margins for more words per line */
        padding: 0 3px; /* Additional padding for clean look */
    }
    
    .bio-section {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }
    
    .bio-section-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    

}

@media (max-width: 480px) {
    .bio-landing {
        padding: 80px 0 30px;
    }
    
    .bio-landing-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .bio-photo-container {
        max-width: 250px;
        margin: 20px auto;
    }
    
    .bio-story-section {
        padding: 60px 0;
    }
    
    .bio-story-container {
        padding: 0 12px;
    }
    
    .bio-content-layout {
        gap: 25px;
    }
    
    .bio-photo-after-arrow {
        max-width: 175px;
    }
    
    .bio-story-text {
        font-size: 0.9rem;
        margin: 0 6px; /* Adjusted side margins for more words per line */
        padding: 0 2px; /* Additional padding for clean look */
    }
    
    .bio-section {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .bio-section-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    

    
    .scroll-arrow {
        font-size: 1.5rem;
    }
    
    .scroll-text {
        font-size: 0.8rem;
    }
}

/* ===== CALM ANIMATIONS ===== */
@keyframes gentleFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes gentleBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    60% {
        transform: translateY(-2px);
    }
}

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

/* ===== UTILITY CLASSES ===== */
.section:nth-child(odd) {
    animation-delay: 0.2s;
}

.section:nth-child(even) {
    animation-delay: 0.4s;
}

.section:nth-child(3n) {
    animation: subtleSlideIn 1s ease-out forwards;
    animation-delay: 0.3s;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 80px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--gradient-secondary);
    margin: 32px auto 0;
    border-radius: 2px;
    opacity: 0.7;
}

/* ===== NAVIGATION STYLES ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--navbar-border);
    color: var(--navbar-text);
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease, border-color var(--transition-speed) ease, background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    width: 100%;
    box-sizing: border-box;
    /* Full-bleed navbar with consistent edge offset */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: calc(var(--edge-offset) + env(safe-area-inset-left, 0px));
    padding-right: calc(var(--edge-offset) + env(safe-area-inset-right, 0px));
}

/* Navbar when scrolled */
.navbar-scrolled {
    background: var(--navbar-bg) !important;
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--navbar-border);
    box-shadow: 0 2px 20px var(--card-shadow);
}



/* Navigation responsive adjustments */
@media (max-width: 1023px) {
    .navbar {
        padding: 15px 0;
        /* Maintain edge offset on smaller screens */
        padding-left: calc(var(--edge-offset) + env(safe-area-inset-left, 0px));
        padding-right: calc(var(--edge-offset) + env(safe-area-inset-right, 0px));
    }
    
    .nav-container {
        padding: 0;
    }
    
    .nav-logo {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        gap: 25px;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .theme-toggle-btn {
        min-width: 70px;
        height: 32px;
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

@media (max-width: 767px) {
    .navbar {
        padding: 12px 0;
        /* Maintain edge offset on smaller screens */
        padding-left: calc(var(--edge-offset) + env(safe-area-inset-left, 0px));
        padding-right: calc(var(--edge-offset) + env(safe-area-inset-right, 0px));
    }
    
    .nav-container {
        padding: 0;
    }
    
    .nav-logo {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    .nav-left {
        gap: 15px;
    }
    
    .theme-toggle-btn {
        min-width: 65px;
        height: 30px;
        font-size: 0.7rem;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 0;
        /* Maintain edge offset on smaller screens */
        padding-left: calc(var(--edge-offset) + env(safe-area-inset-left, 0px));
        padding-right: calc(var(--edge-offset) + env(safe-area-inset-right, 0px));
    }
    
    .nav-container {
        padding: 0;
    }
    
    .nav-logo {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
    
    .nav-left {
        gap: 12px;
    }
    
    .theme-toggle-btn {
        min-width: 60px;
        height: 28px;
        font-size: 0.65rem;
        padding: 4px 8px;
    }
}

@media (max-width: 319px) {
    .navbar {
        padding: 8px 0;
        /* Maintain edge offset on smaller screens */
        padding-left: calc(var(--edge-offset) + env(safe-area-inset-left, 0px));
        padding-right: calc(var(--edge-offset) + env(safe-area-inset-right, 0px));
    }
    
    .nav-container {
        padding: 0;
    }
    
    .nav-logo {
        font-size: 1rem;
    }
    
    .nav-menu {
        gap: 10px;
    }
    
    .nav-link {
        font-size: 0.75rem;
    }
}

.nav-container {
    /* Remove max-width constraint for full-bleed navbar */
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    /* Ensure proper Flexbox layout */
    flex-wrap: nowrap;
    gap: 0;
    /* Remove padding since navbar handles edge offset */
    padding: 0;
    margin: 0;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 0;
    flex-shrink: 0;
    /* Ensure left item stays at consistent distance from page edge */
    min-width: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    margin-left: auto;
    margin-right: 0;
    flex-shrink: 0;
    /* Ensure proper right alignment and spacing */
    justify-content: flex-end;
    flex-wrap: nowrap;
    /* Ensure right item stays at consistent distance from page edge */
    min-width: 0;
}

/* Modern Theme Toggle Button */
.theme-toggle-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--accent-secondary);
    border-radius: 25px;
    padding: 8px 16px;
    min-width: 80px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.theme-toggle-btn:hover {
    transform: scale(1.05);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(77, 166, 255, 0.3);
}

.theme-toggle-btn:active {
    transform: scale(0.98);
}

/* Dark mode states */
[data-theme="dark"] .theme-toggle-btn {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
}

/* Hover effects for theme toggle */
.theme-toggle-btn:hover {
    box-shadow: 0 0 25px rgba(77, 166, 255, 0.4);
}

[data-theme="dark"] .theme-toggle-btn:hover {
    box-shadow: 0 0 25px rgba(77, 166, 255, 0.4);
}

.nav-logo-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.nav-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    opacity: 0;
    animation: gentleFadeIn 2s ease-out 0.5s forwards;
    line-height: 1.2;
    min-height: 2.1rem; /* Ensures consistent height even when empty */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), color var(--transition-speed) ease;
    cursor: pointer;
    white-space: nowrap; /* Prevents text from wrapping to multiple lines */
}

.nav-logo:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 20px var(--shadow-secondary);
    transform: scale(1.15);
}

/* Navbar visibility logic */
/* Home page: Show theme toggle, hide logo */
body.home .nav-logo {
    opacity: 0;
    animation: none;
    visibility: hidden;
    display: none !important;
}

body.home .theme-toggle-btn {
    opacity: 1;
    visibility: visible;
    display: flex !important;
}

/* Non-home pages: Show logo, hide theme toggle */
body:not(.home) .nav-logo {
    opacity: 1;
    visibility: visible;
    display: block !important;
    animation: gentleFadeIn 2s ease-out 0.5s forwards;
}

body:not(.home) .theme-toggle-btn {
    opacity: 0;
    visibility: hidden;
    display: none !important;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.4s ease, color var(--transition-speed) ease;
    position: relative;
    letter-spacing: 0.01em;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-secondary);
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-secondary);
    transition: all 0.4s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

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

/* ===== MAIN CONTENT STYLES ===== */
.main-content {
    margin-top: 100px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: visible; /* Let body handle scrolling */
    min-height: 100vh;
}

/* Main content responsive adjustments */
@media (max-width: 1023px) {
    .main-content {
        margin-top: 90px;
    }
}

@media (max-width: 767px) {
    .main-content {
        margin-top: 80px;
    }
}

@media (max-width: 480px) {
    .main-content {
        margin-top: 70px;
    }
}

/* ===== HERO HOMEPAGE STYLES ===== */
.hero-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--bg-primary);
    overflow: visible;
    padding: 20vh 0 10vh 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-sizing: border-box;
}

/* Hero responsive adjustments */
@media (max-width: 1023px) {
    .hero-main {
        min-height: 100vh;
        padding: 15vh 0 8vh 0;
    }
    
    .hero-container {
        padding: 0 20px;
    }
}

@media (max-width: 767px) {
    .hero-main {
        min-height: 100vh;
        padding: 12vh 0 6vh 0;
    }
    
    .hero-container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .hero-main {
        min-height: 100vh;
        padding: 10vh 0 5vh 0;
    }
    
    .hero-container {
        padding: 0 12px;
    }
}

@media (max-width: 319px) {
    .hero-main {
        min-height: 100vh;
        padding: 8vh 0 4vh 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        margin: 0;
    }
    
    .hero-container {
        padding: 0 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .hero-name {
        text-align: center;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-roles {
        text-align: center;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .bottom-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-container {
    text-align: center;
    z-index: 10;
    position: relative;
    max-width: 900px;
    padding: 0 24px;
    margin: 0 auto;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

            .hero-container:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 30px rgba(0, 120, 255, 0.1));
}

/* Add blue glow to background when hovering over hero content */
.hero-main:hover {
    background: var(--bg-primary);
}

.hero-name {
    font-family: 'Poppins', sans-serif;
    font-size: 3.35rem; /* 33% smaller than 5rem */
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
    animation: gentleFadeInUp 1.2s ease-out;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), color var(--transition-speed) ease;
    cursor: default;
}

            .hero-name:hover {
                color: var(--accent-primary);
                text-shadow: 0 0 20px var(--shadow-secondary);
                transform: scale(1.15);
            }

.hero-roles {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent-secondary);
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: gentleFadeInUp 1.2s ease-out 0.2s both;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), color var(--transition-speed) ease;
    cursor: default;
}

            .hero-roles:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 15px var(--shadow-secondary);
    transform: scale(1.10);
}

.hero-tagline {
    font-size: 1rem; /* 33% smaller than 1.5rem */
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 60px;
    color: var(--text-secondary);
    animation: gentleFadeInUp 1.2s ease-out 0.4s both;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), color var(--transition-speed) ease;
    cursor: default;
}

            .hero-tagline:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 12px var(--shadow-secondary);
    transform: scale(1.05);
}

/* Bottom action buttons - positioned below fold */
.bottom-actions {
    position: absolute;
    top: 110vh;
    left: 0;
    right: 0;
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 60px 24px;
    animation: gentleFadeInUp 1.2s ease-out 0.7s both;
    z-index: 20;
    width: 100%;
    box-sizing: border-box;
}

.hero-btn {
    display: inline-block;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s ease;
    min-width: 180px;
    text-align: center;
    letter-spacing: 0.01em;
}

.hero-btn.primary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 8px 32px var(--shadow-primary);
}

.hero-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px var(--shadow-primary);
}

.hero-btn.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-secondary);
}

.hero-btn.secondary:hover {
    background: var(--accent-secondary);
    color: white;
    transform: translateY(-2px);
}



/* Gentle scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-secondary);
    font-size: 1.5rem;
    animation: gentleBounce 3s infinite;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease, color var(--transition-speed) ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

/* Floating background elements */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    pointer-events: none;
    opacity: 0.35;
    animation: rocketFlightInitial 8s cubic-bezier(0.42, 0, 1, 1) forwards;
    will-change: transform, opacity;
    backface-visibility: hidden;
    z-index: 1001; /* Higher than navbar to pass through */
}

.floating-element.initial-animation-complete {
    animation: rocketFlightFromButton 8s cubic-bezier(0.42, 0, 1, 1) infinite;
    top: 85vh; /* Start from "Learn About Me" button position */
}

.element-1 {
    width: 50px;
    height: 120px;
    top: 80vh; /* Start higher so it's visible immediately */
    left: 15%;
    animation-delay: 0s;
}

.element-2 {
    width: 80px;
    height: 200px;
    top: 80vh; /* Start higher like element-1 */
    left: 45%;
    animation-delay: 2s; /* Reduced from 3s to 2s */
}

.element-3 {
    width: 45px;
    height: 110px;
    top: 80vh; /* Start higher like element-1 */
    left: 75%;
    animation-delay: 4s; /* Reduced from 6s to 4s */
}

/* SVG Rocket Styles */
.floating-element .rocket {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Element 1 - SpaceX-style rocket (silver/white with blue glow) */
.element-1 .rocket-body,
.element-1 .rocket-fin {
    stroke: #00f6ff;  /* neon blue */
    fill: none;
    stroke-width: 2;
    filter: drop-shadow(0 0 4px #00f6ff) drop-shadow(0 0 8px #00f6ff);
}

.element-1 .rocket-flame {
    fill: #ff3300;
    filter: drop-shadow(0 0 4px #ff3300) drop-shadow(0 0 10px #ff2200);
    animation: flame-flicker 0.2s infinite alternate;
}

/* Element 2 - NASA-style rocket (light orange/white with light orange glow) */
.element-2 .rocket-body,
.element-2 .rocket-fin {
    stroke: #FFA500;  /* light orange */
    fill: none;
    stroke-width: 2;
    filter: drop-shadow(0 0 4px #FFA500) drop-shadow(0 0 8px #FFA500);
}

.element-2 .rocket-flame {
    fill: #FF8C00;
    filter: drop-shadow(0 0 4px #FF8C00) drop-shadow(0 0 10px #FF7F00);
    animation: flame-flicker 0.2s infinite alternate;
}

/* Element 3 - Modern spacecraft (blue/white with bright red glow) */
.element-3 .rocket-body,
.element-3 .rocket-fin {
    stroke: #FF0000;  /* bright red */
    fill: none;
    stroke-width: 2;
    filter: drop-shadow(0 0 4px #FF0000) drop-shadow(0 0 8px #FF0000);
}

.element-3 .rocket-flame {
    fill: #ff3300;
    filter: drop-shadow(0 0 4px #ff3300) drop-shadow(0 0 10px #ff2200);
    animation: flame-flicker 0.2s infinite alternate;
}

@keyframes flame-flicker {
    0%   { transform: scaleY(0.8) scaleX(0.9) translateY(0px); opacity: 0.8; }
    100% { transform: scaleY(1.2) scaleX(1.1) translateY(2px); opacity: 1; }
}

/* Engine exhaust trail */
.floating-element .exhaust-trail {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 60px;
    background: linear-gradient(180deg, 
        rgba(255, 100, 0, 0.8) 0%, 
        rgba(255, 150, 0, 0.6) 30%, 
        rgba(255, 200, 0, 0.4) 60%, 
        rgba(255, 255, 255, 0.2) 100%);
    border-radius: 50%;
    animation: exhaustGlow 0.3s ease-in-out infinite alternate;
    filter: blur(1px);
}

/* Engine glow effect */
.floating-element .engine-glow {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 25px;
    background: radial-gradient(ellipse at center, 
        rgba(255, 100, 0, 0.9) 0%, 
        rgba(255, 150, 0, 0.7) 30%, 
        rgba(255, 200, 0, 0.4) 60%, 
        transparent 100%);
    animation: engineGlow 0.2s ease-in-out infinite alternate;
    filter: blur(2px);
}

@keyframes rocketFlight {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: 0.35;
    }
    100% {
        transform: translate3d(0, -120vh, 0);
        opacity: 0.2;
    }
}

/* Rocket animation that starts from the "Learn About Me" button position */
@keyframes rocketFlightFromButton {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: 0.35;
    }
    100% {
        transform: translate3d(0, -120vh, 0);
        opacity: 0.2;
    }
}

@keyframes rocketFlightInitial {
    0% {
        transform: translate3d(0, 0vh, 0); /* Start from current position */
        opacity: 0.35;
    }
    100% {
        transform: translate3d(0, -120vh, 0);
        opacity: 0.2;
    }
}

@keyframes engineGlow {
    0% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1.3);
        filter: blur(3px);
    }
}

@keyframes exhaustGlow {
    0% {
        opacity: 0.6;
        height: 60px;
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        height: 80px;
        filter: blur(2px);
    }
}

/* Quick Links Section */
.quick-links {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.quick-link-card {
    background-color: var(--bg-primary);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-secondary);
}

.quick-link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    color: inherit;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.quick-link-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.quick-link-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(20px) rotate(240deg);
    }
}

/* ===== BIO SECTION STYLES ===== */
#bio {
    background-color: var(--bg-secondary);
}

.bio-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

.bio-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.bio-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.contact-links {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.contact-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.contact-link:hover {
    background-color: var(--accent-tertiary);
}

.bio-photo {
    display: flex;
    justify-content: center;
}

.photo-placeholder {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    border: 3px solid var(--border-primary);
}

/* ===== ENGINEERING PROJECTS SECTION STYLES ===== */
#engineering {
    background-color: var(--bg-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 20px;
}

.project-card-full {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    background-color: var(--bg-primary);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-secondary);
}

.project-card-full:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.project-content {
    display: flex;
    flex-direction: column;
}

.project-photos {
    display: flex;
    flex-direction: column;
    margin-right: 20px;
}

.photos-heading {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-primary);
    padding-bottom: 10px;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    align-items: start;
}

/* Photos grid responsive adjustments */
@media (max-width: 1023px) {
    .photos-grid {
        gap: 15px;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 767px) {
    .photos-grid {
        gap: 12px;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .photos-grid {
        gap: 10px;
    }
}

.project-photo {
    aspect-ratio: 4/3;
    border-radius: 8px;
    border: 2px solid var(--border-primary);
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    padding: 10px;
    transition: border-color 0.3s ease;
}

.project-photo:hover {
    border-color: var(--accent-primary);
}

/* Actual project photos */
.project-photo-container {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-primary);
    transition: all 0.3s ease;
    background-color: var(--bg-primary);
    position: relative;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Project photo container responsive adjustments */
@media (max-width: 1023px) {
    .project-photo-container {
        max-width: 280px;
    }
}

@media (max-width: 767px) {
    .project-photo-container {
        max-width: 100%;
        flex: none;
    }
}

@media (max-width: 480px) {
    .project-photo-container {
        max-width: 100%;
    }
}

.project-photo-container:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-primary);
}

.project-photo-container:hover .project-photo-img {
    transform: scale(1.05);
}

.project-photo-container:hover .photo-overlay {
    opacity: 1;
}

/* Photo overlay for zoom indication */
.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 35px; /* Account for caption height */
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.zoom-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.zoom-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.project-photo-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.5s ease;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Project photo image responsive adjustments */
@media (max-width: 1023px) {
    .project-photo-img {
        height: 140px;
    }
}

@media (max-width: 767px) {
    .project-photo-img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .project-photo-img {
        height: 180px;
    }
}

.project-photo-container:hover .project-photo-img {
    transform: scale(1.03);
}

.photo-caption {
    padding: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-primary);
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark mode navbar background fix - REMOVED: Using data-theme attribute instead */

/* ===== CONTACT PAGE LANDING ===== */
        .contact-landing {
    display: block;
    position: relative;
    background: var(--bg-primary);
    margin-top: -100px;
    padding-top: 100px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible; /* Allow natural scrolling */
}

/* Contact landing responsive adjustments */
@media (max-width: 1023px) {
    .contact-landing {
        padding-top: 90px;
        margin-top: -90px;
        display: block;
    }
}

@media (max-width: 767px) {
    .contact-landing {
        padding-top: 80px;
        margin-top: -80px;
        display: block;
    }
}

@media (max-width: 480px) {
    .contact-landing {
        padding-top: 70px;
        margin-top: -70px;
        display: block;
    }
}

.contact-landing-content {
    text-align: center;
    max-width: 1200px;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    display: block;
    padding-top: 100px;
}

/* Contact landing content responsive adjustments */
@media (max-width: 1023px) {
    .contact-landing-content {
        padding: 0 20px;
        padding-top: 90px;
    }
}

@media (max-width: 767px) {
    .contact-landing-content {
        padding: 0 16px;
        padding-top: 80px;
    }
}

@media (max-width: 480px) {
    .contact-landing-content {
        padding: 0 12px;
        padding-top: 70px;
    }
}

.contact-landing-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
    animation: gentleFadeInUp 1.2s ease-out;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    word-wrap: break-word;
    overflow-wrap: break-word;
    user-select: none;
    text-align: center;
    width: 100%;
}

.contact-landing-title:hover {
    color: var(--accent-primary) !important;
    text-shadow: 0 0 30px var(--shadow-accent) !important;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    letter-spacing: 0.1em !important;
}

.contact-landing-intro {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-secondary);
    animation: gentleFadeInUp 1.2s ease-out 0.4s both;
    max-width: 700px;
    margin: 0 auto 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    text-align: center;
    width: 100%;
}

.contact-landing-intro:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 15px var(--shadow-secondary);
    transform: scale(1.10);
}

/* Contact scroll indicator */
.contact-scroll-indicator {
    color: var(--text-tertiary);
    font-size: 1.8rem;
    animation: gentleBounce 3s infinite, gentleFadeInUp 1.2s ease-out 0.8s both;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-scroll-indicator:hover {
    opacity: 1;
    transform: translateY(-2px);
    color: var(--accent-tertiary);
}

/* Responsive adjustments for contact landing */
@media (max-width: 768px) {
    .contact-landing-title {
        font-size: 2.2rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
        user-select: none;
    }
    
    .contact-landing-title:hover {
        color: var(--accent-primary) !important;
        text-shadow: 0 0 30px var(--shadow-accent) !important;
        transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
        letter-spacing: 0.1em !important;
    }
    
    .contact-landing-intro {
        font-size: 1.2rem;
    }
}

.photo-caption {
    padding: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
    background-color: var(--bg-secondary);
    font-weight: 500;
}

/* Project Cards with Modal */
.project-card-expandable {
    background: var(--card-bg) !important; /* Use theme-specific background */
    border-radius: 12px; /* Rounded corners like bio cards */
    padding: 40px;
    box-shadow: 0 4px 20px var(--card-shadow), 0 0 15px var(--neon-glow); /* Enhanced shadow with neon glow like bio cards */
    transition: all 0.5s ease, box-shadow var(--transition-speed) ease, background-color var(--transition-speed) ease;
    border: 2px solid var(--accent-primary); /* Neon blue border like bio cards */
    overflow: hidden;
    transform-origin: center;
    cursor: pointer;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    z-index: 15; /* Above particles but below images, same as bio cards */
}

/* Project cards responsive adjustments */
@media (max-width: 1023px) {
    .project-card-expandable {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .project-card-expandable {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .project-card-expandable {
        padding: 20px;
    }
}

.project-card-expandable:hover {
    transform: translateY(-4px) scale(1.05);
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 25px var(--neon-glow-strong), 0 0 50px var(--neon-glow), 0 16px 64px var(--shadow-primary);
}

/* Project Modal */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.project-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-primary);
    border-radius: 20px;
    max-width: 1400px;
    width: 95%;
    max-height: 95vh;
    overflow: hidden;
    box-shadow: 0 25px 50px var(--shadow-primary);
    animation: modalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: color var(--transition-speed) ease;
}

/* Modal responsive adjustments */
@media (max-width: 1023px) {
    .project-modal-content {
        width: 98%;
        max-width: 1200px;
    }
}

@media (max-width: 767px) {
    .project-modal-content {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        max-height: 100vh;
    }
}

@media (max-width: 480px) {
    .project-modal-content {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        max-height: 100vh;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.project-modal-header {
    padding: 30px 30px 20px 30px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.project-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #6b7280;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.project-modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.project-modal-body {
    padding: 15px 25px 20px 25px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Compact modal layout */
.project-modal .project-main-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 25px;
    align-items: start;
    height: 100%;
    overflow-y: auto;
}

.project-modal .project-text-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding-right: 10px;
}

.project-modal .project-section {
    margin-bottom: 10px;
}

.project-modal .project-section h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.project-modal .project-list {
    margin: 0;
    padding-left: 1rem;
}

.project-modal .project-list li {
    margin-bottom: 6px;
    font-size: 1rem;
    line-height: 1.5;
}

.project-modal .skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.project-modal .skills-heading {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.project-modal .skill-tag {
    font-size: 0.85rem;
    padding: 4px 8px;
    white-space: nowrap;
}

.project-modal .project-photos {
    max-height: none;
    overflow: visible;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-modal .photos-heading {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.project-modal .simple-website-link {
    font-size: 1rem;
    margin-top: 15px;
}

.project-modal .photos-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.project-modal .project-photo-img {
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    width: 100%;
}

.project-photo-placeholder {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-primary);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-tertiary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-style: italic;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-preview {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-section {
    flex: 1;
}

.project-header {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-primary);
    padding-bottom: 15px;
}

.project-name {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    transition: all 0.4s ease;
    position: relative;
}

.project-card-expandable:hover .project-name {
    color: var(--text-tertiary);
}

.project-company {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
    letter-spacing: 0.01em;
}

.learn-more-btn {
    color: var(--accent-primary);
    border: none;
    background: none;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 20px;
    transition: all 0.3s ease;
    justify-content: center;
    opacity: 0.8;
    flex-shrink: 0; /* Prevent button from shrinking */
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
}

/* Override for volunteer cards to use relative positioning */
.volunteer-card-expandable .learn-more-btn {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 20px;
    justify-content: center;
}

.learn-more-btn:hover {
    opacity: 1;
    color: var(--accent-tertiary);
}

.learn-more-btn.expanded {
    background: var(--gradient-secondary);
    box-shadow: 0 8px 32px var(--shadow-primary);
}

.btn-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.project-expanded {
    margin-top: 30px;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    overflow-y: auto;
    max-height: 80vh;
}

.project-content-full {
    padding: 20px 0;
    border-top: 1px solid var(--border-tertiary);
}

.project-main-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 30px;
}

.project-details {
    display: flex;
    flex-direction: column;
}

.project-footer {
    width: 100%;
    border-top: 1px solid var(--border-tertiary);
    padding-top: 20px;
    display: flex;
    justify-content: center;
}

.project-footer .project-links {
    margin-top: 0;
}

/* Show Less button styling */
.show-less-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.show-less-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #c0392b, #a93226);
}

/* Simple website link styling */
.simple-website-link {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.simple-website-link:hover {
    color: #2980b9;
    transform: translateX(5px);
}

.simple-website-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.simple-website-link:hover::after {
    width: 100%;
}

/* ===== LIGHTBOX STYLES ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    cursor: default;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
}

.project-card {
    background-color: var(--bg-primary);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px var(--shadow-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-tertiary);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-primary);
}

.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.project-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #34495e;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.project-link:hover {
    background-color: #2c3e50;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background-color: #e8f4f8;
    color: #2980b9;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Enhanced project card structure */
.project-section {
    margin-bottom: 40px;
}

.project-subheading {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    margin-top: 24px;
    letter-spacing: -0.01em;
}

.project-list {
    margin: 0;
    padding-left: 24px;
    color: var(--text-secondary);
}

.project-list li {
    margin-bottom: 12px;
    line-height: 1.8;
    font-weight: 400;
}

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

/* Project skills section */
.project-skills {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-tertiary);
}

/* Project links section - below skills */
.project-details .project-links {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-tertiary);
    text-align: center;
}

.skills-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background-color: var(--bg-secondary);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-primary);
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background-color: var(--bg-tertiary);
    transform: translateY(-1px);
}

/* ===== PHOTOGRAPHY SECTION STYLES ===== */
#photography {
    background-color: var(--bg-secondary);
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    align-items: start;
    grid-auto-rows: 1fr;
}

.photo-item {
    background-color: var(--bg-primary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-primary);
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.02);
}

.photo-placeholder {
    width: 100%;
    height: 250px;
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-tertiary);
}

.photo-caption {
    padding: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== FOOTER STYLES ===== */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 40px 0;
    width: 100%;
    box-sizing: border-box;
    margin-top: 60px;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Footer responsive adjustments */
@media (max-width: 1023px) {
    .footer {
        padding: 25px 0;
    }
}

@media (max-width: 767px) {
    .footer {
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 15px 0;
    }
}

/* ===== PHOTOGRAPHY PAGE LAYOUT ===== */

/* Photography Landing Section */
.photography-landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    position: relative;
}

.photography-landing-container {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.photography-landing-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
    animation: gentleFadeInUp 1.2s ease-out;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    word-wrap: break-word;
    overflow-wrap: break-word;
    user-select: none;
}

.photography-landing-title:hover {
    color: var(--accent-primary) !important;
    text-shadow: 0 0 30px rgba(0, 120, 255, 0.5) !important;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    letter-spacing: 0.1em !important;
}

.photography-landing-intro {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: gentleFadeInUp 1.2s ease-out 0.4s both;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.photography-landing-intro:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 15px rgba(0, 120, 255, 0.25);
    transform: scale(1.10);
}

/* Photography Scroll Indicator */
.photography-scroll-indicator {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    animation: gentleBounce 3s infinite, gentleFadeInUp 1.2s ease-out 0.8s both;
}

.photography-scroll-indicator:hover {
    opacity: 1;
}

/* Photography Main Content */
.photography-main-content {
    min-height: 100vh;
    padding: 6rem 0;
    background: var(--bg-primary);
}

.gallery-section {
    max-width: none;
}

/* Responsive adjustments for photography */
@media (max-width: 768px) {
    .photography-landing-title {
        font-size: 2.2rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
        user-select: none;
    }
    
    .photography-landing-title:hover {
        color: var(--accent-primary) !important;
        text-shadow: 0 0 30px rgba(0, 120, 255, 0.5) !important;
        transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
        letter-spacing: 0.1em !important;
    }
    
    .photography-landing-intro {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }
    
    .photography-landing-container {
        padding: 1.5rem;
    }
}

/* ===== ENGINEERING PAGE LAYOUT ===== */

/* Engineering Landing Section */
.engineering-landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    position: relative;
    transition: color var(--transition-speed) ease;
}

.engineering-landing-container {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.engineering-landing-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
    animation: gentleFadeInUp 1.2s ease-out;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), color var(--transition-speed) ease;
    cursor: pointer;
    word-wrap: break-word;
    overflow-wrap: break-word;
    user-select: none;
}

.engineering-landing-title:hover {
    color: var(--accent-primary) !important;
    text-shadow: 0 0 30px var(--shadow-accent) !important;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    letter-spacing: 0.1em !important;
}

.engineering-landing-intro {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: gentleFadeInUp 1.2s ease-out 0.4s both;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), color var(--transition-speed) ease;
    cursor: default;
}

.engineering-landing-intro:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 15px var(--shadow-secondary);
    transform: scale(1.10);
}

/* Engineering Scroll Indicator */
.engineering-scroll-indicator {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    animation: gentleBounce 3s infinite, gentleFadeInUp 1.2s ease-out 0.8s both;
}

.engineering-scroll-indicator:hover {
    opacity: 1;
}

/* Engineering Main Content */
.engineering-main-content {
    min-height: 100vh;
    padding: 6rem 0;
    background: var(--bg-primary);
    transition: color var(--transition-speed) ease;
}

.projects-section {
    max-width: none;
}

/* Responsive adjustments for engineering */
@media (max-width: 768px) {
    .engineering-landing-title {
        font-size: 2.2rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
        user-select: none;
    }
    
    .engineering-landing-title:hover {
        color: var(--accent-primary) !important;
        text-shadow: 0 0 30px rgba(0, 120, 255, 0.5) !important;
        transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
        letter-spacing: 0.1em !important;
    }
    
    .engineering-landing-intro {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }
    
    .engineering-landing-container {
        padding: 1.5rem;
    }
}

/* ===== BIO PAGE LAYOUT ===== */

/* Bio Landing Section */
.bio-landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    position: relative;
}

.bio-landing-container {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}

.bio-landing-title {
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3rem;
    line-height: 1.2;
    animation: gentleFadeInUp 1.2s ease-out 0.2s both;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
}

.bio-landing-title:hover {
    color: var(--accent-primary) !important;
    text-shadow: 0 0 30px rgba(0, 120, 255, 0.5) !important;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    letter-spacing: 0.1em !important;
}

/* Removed duplicate bio-scroll-indicator rules that were causing conflicts */

.bio-photo-container {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.bio-photo-container .bio-photo {
    width: 400px;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 20px 40px rgba(106, 123, 140, 0.15);
    transition: transform 0.3s ease;
    opacity: 0;
    animation: fadeIn 2s ease-in-out forwards;
}

.bio-photo-container .bio-photo:hover {
    transform: scale(1.02);
}

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



/* Bio Main Content */
.bio-main-content {
    min-height: 100vh;
    padding: 6rem 0;
    background: transparent;
}

.bio-story-section {
    max-width: none;
}

.bio-story-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 3rem;
}

.bio-story-text {
    font-size: 1.1rem;
    line-height: 1.9;
}

.bio-story-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Responsive adjustments for bio */
@media (max-width: 768px) {
    .bio-landing-title {
        font-size: 2.2rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
        user-select: none;
    }
    
    .bio-landing-title:hover {
        color: var(--accent-primary) !important;
        text-shadow: 0 0 30px rgba(0, 120, 255, 0.5) !important;
        transform: scale(1.4) !important;
        transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
        letter-spacing: 0.1em !important;
    }
    
    .bio-photo-container .bio-photo {
        width: 250px;
        max-width: 250px;
    }
    
    .bio-story-container {
        padding: 0 2rem;
    }
    
    .bio-story-text p {
        text-align: left;
    }
}

/* ===== DOCUMENT VIEWER ===== */

/* Document Preview Styling */
.document-viewer {
    max-width: 400px;
    margin: 0 auto;
}

.document-preview {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.document-preview:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Document Stack Effect */
.document-stack {
    position: relative;
    flex-shrink: 0;
}

.document-cover {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
    z-index: 3;
}

.document-stack-effect,
.document-stack-effect-2 {
    position: absolute;
    width: 120px;
    height: 160px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.document-stack-effect {
    top: 4px;
    left: 4px;
    z-index: 2;
}

.document-stack-effect-2 {
    top: 8px;
    left: 8px;
    z-index: 1;
}

/* Document Info */
.document-info {
    flex: 1;
    position: relative;
}

.document-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.document-pages {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin: 0 0 1rem 0;
}

.document-overlay {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.document-preview:hover .document-overlay {
    opacity: 1;
}

/* Document Modal */
.document-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    overflow-y: auto;
}

.document-modal-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    position: relative;
}

.document-page {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.document-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.document-close:hover {
    background: rgba(0,0,0,0.8);
}

.document-page-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 2001;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .document-preview {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .document-modal-content {
        margin: 1rem;
        padding: 1rem;
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet styles */
@media (max-width: 768px) {
    .projects-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .project-modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 0;
    }
    
    .project-modal-header {
        padding: 20px 20px 15px 20px;
    }
    
    .project-modal-body {
        padding: 20px;
    }
    
    .project-modal-close {
        top: 15px;
        right: 15px;
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .main-content {
        margin-top: 120px;
    }
    
    /* Hero responsive */
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn {
        width: 250px;
    }
    
    .links-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .bio-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card-full {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .project-main-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .photos-grid {
        gap: 15px;
    }
    
    .skills-grid {
        gap: 6px;
    }
    
    .skill-tag {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        align-items: start;
        grid-auto-rows: 1fr;
    }
    
    .photo-project-item {
        height: 450px;
        width: 100%;
    }
    
    .contact-links {
        justify-content: center;
    }
}

/* Mobile styles */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    /* Hero mobile */
    .hero-name {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .hero-tagline {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-btn {
        width: 200px;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .quick-link-card {
        padding: 30px 20px;
    }
    
    .card-icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .nav-menu {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-content {
        margin-top: 140px;
    }
    
    .bio-text {
        font-size: 1rem;
    }
    
    .photo-placeholder {
        width: 200px;
        height: 200px;
    }
    
    .project-card {
        padding: 20px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .photo-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
        align-items: start;
        grid-auto-rows: 1fr;
    }
    
    .photo-project-item {
        height: 450px;
        width: 100%;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .contact-link {
        width: 150px;
        text-align: center;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar {
        position: static;
        background-color: transparent;
        border: none;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .section {
        page-break-inside: avoid;
        padding: 20px 0;
    }
    
    .project-card,
    .photo-item {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ===== MULTI-PAGE SPECIFIC STYLES ===== */

/* Section intro text */
.section-intro {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin-top: 60px;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.cta-section h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin: 0 10px;
}

.cta-button:hover {
    background-color: #2980b9;
}

.cta-button.secondary {
    background-color: #34495e;
}

.cta-button.secondary:hover {
    background-color: #2c3e50;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== PHOTOGRAPHY PAGE STYLES ===== */

/* Photography Sections */
.photography-sections {
    margin-bottom: 40px;
    text-align: center;
}

.section-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.section-btn {
    padding: 12px 30px;
    background-color: #ecf0f1;
    color: #2c3e50;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.section-btn:hover,
.section-btn.active {
    background-color: white;
    color: #4B6F81;
    border: 2px solid #4B6F81;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(75, 111, 129, 0.3);
}

.section-btn:not(.active) {
    background-color: #4B6F81;
    color: white;
    border: 2px solid #4B6F81;
}

/* Dark mode for selected tabs */
[data-theme="dark"] .section-btn.active {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--accent-secondary);
}

/* Dark mode for unselected tabs */
[data-theme="dark"] .section-btn:not(.active) {
    background-color: var(--accent-secondary);
    color: white;
    border: 2px solid var(--accent-secondary);
}

.photography-section {
    margin-bottom: 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    letter-spacing: 0.01em;
}

/* Photo Project Item */
.photo-project-item {
    background: var(--card-bg) !important;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--card-shadow), 0 0 15px var(--neon-glow);
    border: 2px solid var(--accent-primary);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 600px;
    margin: 0 auto;
    transform-origin: center;
    height: 450px;
    display: flex;
    flex-direction: column;
    width: 100%;
    z-index: 15;
}

.photo-project-item:hover {
    transform: translateY(-4px) scale(1.05);
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 25px var(--neon-glow-strong), 0 0 50px var(--neon-glow), 0 16px 64px var(--shadow-primary);
}

/* Dark mode override for personal photo items */
[data-theme="dark"] .personal-photo-item {
    z-index: 20; /* Higher z-index to be above particles, same as bio photo */
}

[data-theme="dark"] .personal-photo-item::before {
    background: var(--bg-primary);
    z-index: 19; /* Below the image but above particles */
}

[data-theme="dark"] .personal-photo {
    z-index: 21; /* Ensure image is above particles, same as bio photo */
}

.photo-project-main {
    flex-shrink: 0; /* Prevent image container from shrinking */
}

.project-hero-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
    flex-shrink: 0; /* Prevent image from shrinking */
}

.photo-project-item:hover .project-hero-image {
    transform: scale(1.05);
}

.photo-project-info {
    padding: 25px;
    flex: 1; /* Take up remaining space */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 150px;
    height: 150px;
    position: relative;
}

.photo-project-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    text-align: center;
}

.photo-project-caption {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.photo-project-location {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #4B6F81;
    font-weight: 500;
    margin-bottom: 20px;
    display: block;
}



.btn-arrow {
    transition: transform 0.3s ease;
}

.photo-project-item:hover .btn-arrow {
    transform: translateX(4px);
}

/* Photography CTA Section */
.photography-cta {
    text-align: center;
    margin-top: 60px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.photography-cta h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #222222;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
}

.photography-contact-btn {
    display: inline-block;
    background-color: rgb(0, 123, 255);
    color: white;
    padding: 15px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.photography-contact-btn:hover {
    background-color: rgb(0, 100, 220);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    color: white;
    text-decoration: none;
}

/* Personal Photography Grid */
.personal-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 95%;
    max-width: none;
    margin: 0 auto;
    padding: 20px;
}

.personal-photo-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #f5f5f5;
    position: relative;
    z-index: 20; /* Higher z-index to be above particles, same as bio photo */
}

/* Particle-free zone around personal photos */
.personal-photo-item::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--bg-primary);
    border-radius: 8px;
    z-index: 19; /* Below the image but above particles */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.personal-photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.personal-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 21; /* Ensure image is above particles, same as bio photo */
}

.personal-photo-item:hover .personal-photo {
    transform: scale(1.1);
}

/* Responsive design for personal grid */
@media (max-width: 768px) {
    .personal-photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
        width: 90%;
    }
}

@media (max-width: 480px) {
    .personal-photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
        width: 95%;
    }
}

/* Gallery Modal - Slideshow Style */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.gallery-slideshow-container {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    padding: 10px;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-close:hover {
    color: #ccc;
    background: rgba(0, 0, 0, 0.7);
}

.gallery-main-image {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-large-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.gallery-nav-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.gallery-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.gallery-nav-btn:active {
    transform: scale(0.95);
}

.gallery-counter {
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    min-width: 80px;
    text-align: center;
}



/* Responsive Design for Gallery */
@media (max-width: 768px) {
    .gallery-modal-close {
        top: 10px;
        right: 10px;
        font-size: 2rem;
        width: 50px;
        height: 50px;
    }
    
    .gallery-nav-bottom {
        gap: 20px;
        margin-top: 15px;
    }
    
    .gallery-nav-btn {
        font-size: 1.8rem;
        padding: 10px 14px;
        width: 50px;
        height: 50px;
    }
    
    .gallery-counter {
        font-size: 1rem;
        padding: 6px 12px;
        min-width: 70px;
    }
}

/* Photo Categories */
.photo-categories {
    margin-bottom: 40px;
    text-align: center;
}

.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: #ecf0f1;
    color: #2c3e50;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #3498db;
    color: white;
}

/* Enhanced photo items */
.photo-info {
    padding: 20px;
}

.photo-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.photo-location {
    display: inline-block;
    background-color: #e8f4f8;
    color: #2980b9;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 10px;
}

/* Photography Philosophy */
.photography-philosophy {
    margin-top: 60px;
    padding: 40px;
    background-color: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

.photography-philosophy h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.photography-philosophy p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Fade in animation for photo filtering */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== DJ PAGE STYLES ===== */

/* DJ Landing Section */
.dj-landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    padding: 0 20px;
}

.dj-landing-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.dj-landing-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
    animation: gentleFadeInUp 1.2s ease-out;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    word-wrap: break-word;
    overflow-wrap: break-word;
    user-select: none;
}

.dj-landing-title:hover {
    color: var(--accent-primary) !important;
    text-shadow: 0 0 30px var(--shadow-accent) !important;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    letter-spacing: 0.1em !important;
}

.dj-landing-intro {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0;
    animation: gentleFadeInUp 1.2s ease-out 0.4s both;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.dj-landing-intro:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 15px var(--shadow-secondary);
    transform: scale(1.10);
}

.dj-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    animation: gentleBounce 3s infinite, gentleFadeInUp 1.2s ease-out 0.8s both;
}

.dj-scroll-indicator .scroll-arrow {
    font-size: 2rem;
    color: var(--accent-tertiary);
    margin-bottom: 8px;
}

.dj-scroll-indicator .scroll-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* DJ Main Content */
.dj-main-content {
    padding: 80px 0;
    background: var(--bg-primary);
}

.dj-services {
    margin-bottom: 80px;
}

.dj-services h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.dj-services-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--card-bg) !important;
    border: 2px solid var(--accent-primary);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--card-shadow), 0 0 15px var(--neon-glow);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    transform-origin: center;
    z-index: 15;
}

.service-card:hover {
    transform: translateY(-4px) scale(1.05);
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 25px var(--neon-glow-strong), 0 0 50px var(--neon-glow), 0 16px 64px var(--shadow-primary);
}

.service-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.service-card p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.service-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.service-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-photo {
    transform: scale(1.05);
}

/* DJ Service Card Button Override */
.service-card .learn-more-btn {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 20px;
    justify-content: center;
    color: var(--accent-primary);
    border: none;
    background: none;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    opacity: 0.8;
    flex-shrink: 0;
}

.service-card .learn-more-btn:hover {
    opacity: 1;
                    color: var(--accent-tertiary);
            }
            

            
/* ===== CONTACT FORM STYLES ===== */
.contact-form-section,
.contact-links-section {
    background: transparent !important;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 15px var(--neon-glow);
    z-index: 15;
    transition: border-color var(--transition-speed) ease,
                box-shadow var(--transition-speed) ease;
}

/* Service Modal */
.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-overlay);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.service-modal-content {
    background: var(--card-bg);
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 600px;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
}

.service-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--card-border);
    background: var(--card-bg);
    border-radius: 12px 12px 0 0;
}

.service-modal-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.02em;
}

.service-modal-close {
    font-size: 2.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    padding: 5px;
}

.service-modal-close:hover {
    color: var(--text-primary);
}

.service-modal-body {
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.service-modal-image {
    border-radius: 12px;
    overflow: hidden;
}

.service-modal-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.service-modal-info h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    margin-top: 25px;
    letter-spacing: -0.02em;
}

.service-modal-info p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-modal-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-modal-features li {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.service-modal-features li::before {
    content: "✓";
    color: rgb(0, 123, 255);
    font-weight: 600;
    position: absolute;
    left: 0;
}

.service-modal-contact {
    margin-top: 30px;
    padding: 25px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    text-align: center;
}

.service-modal-contact p {
    margin-bottom: 20px;
}

.service-contact-btn {
    display: inline-block;
    background-color: rgb(0, 123, 255);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.service-contact-btn:hover {
    background-color: rgb(0, 100, 220);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    color: white;
    text-decoration: none;
}

/* Responsive Design for Service Modal */
@media (max-width: 968px) {
    .service-modal-content {
        min-width: 0;
        max-width: 95vw;
    }
    
    .service-modal-body {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-modal-header {
        padding: 20px;
    }
    
    .service-modal-header h3 {
        font-size: 1.5rem;
    }
    
    .service-modal-body {
        padding: 20px;
    }
}

/* DJ CTA Section */
.dj-cta {
    text-align: center;
    margin-top: 60px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.dj-cta h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #222222;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
}

.dj-contact-btn {
    display: inline-block;
    background-color: rgb(0, 123, 255);
    color: white;
    padding: 15px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.dj-contact-btn:hover {
    background-color: rgb(0, 100, 220);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    color: white;
    text-decoration: none;
}

/* Responsive Design for DJ Page */
@media (max-width: 768px) {
    .dj-landing-title {
        font-size: 2.2rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
        user-select: none;
    }
    
    .dj-landing-title:hover {
        color: var(--accent-primary) !important;
        text-shadow: 0 0 30px rgba(0, 120, 255, 0.5) !important;
        transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
        letter-spacing: 0.1em !important;
    }
    
    .dj-landing-intro {
        font-size: 1.1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dj-services h2 {
        font-size: 2rem;
    }
}

/* ===== CONTACT PAGE STYLES ===== */

/* Contact content layout */
.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    overflow-x: hidden;
    overflow-y: visible; /* Let body handle scrolling */
}

/* Contact information */
.contact-info {
    text-align: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    margin-top: 60px;
}

.contact-info h3,
.contact-form-container h3 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    margin-top: 5px;
}

.contact-details h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.contact-details span {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.contact-link-item:hover .contact-details span {
    color: #2980b9;
}

.contact-details p {
    color: #666;
    font-size: 0.95rem;
    margin: 5px 0;
}

/* Contact form */
.contact-form {
    background-color: var(--bg-primary);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-primary);
}

/* Horizontal contact links layout */
.contact-links-horizontal {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.contact-link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 200px;
    text-decoration: none;
    color: inherit;
}

.contact-link-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(77, 166, 255, 0.4), 0 0 50px rgba(77, 166, 255, 0.2), 0 16px 64px rgba(106, 123, 140, 0.12);
}

.contact-link-item .contact-icon {
    font-size: 1.5rem;
    margin-right: 15px;
}

.contact-link-item .contact-details h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.contact-link-item .contact-details span {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
}

.contact-link-item:hover .contact-details span {
    color: #2980b9;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

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

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--accent-tertiary);
}

.form-note {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--bg-tertiary);
    border-left: 4px solid var(--accent-primary);
    border-radius: 5px;
}

.form-note p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-note {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--bg-tertiary);
    border-left: 4px solid var(--accent-primary);
    border-radius: 5px;
}

.form-note p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Interests section */
.interests-section {
    margin-top: 60px;
}

.interests-section h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 40px;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.interest-item {
    background-color: var(--bg-primary);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--shadow-primary);
    text-align: center;
    transition: transform 0.3s ease;
}

.interest-item:hover {
    transform: translateY(-3px);
}

.interest-item h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.interest-item p {
    color: var(--text-tertiary);
    line-height: 1.6;
}

/* ===== RESPONSIVE UPDATES FOR MULTI-PAGE ===== */

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-links-horizontal {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        max-width: 400px;
    }
    
    .contact-link-item {
        width: 100%;
        max-width: 350px;
        justify-content: center;
        padding: 20px 25px;
    }
    
    .category-filter {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .interests-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 200px;
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .section-intro {
        font-size: 1.1rem;
    }
    
    .photography-philosophy {
        padding: 25px;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}



/* Focus styles for keyboard navigation */
.nav-link:focus,
.contact-link:focus,
.project-link:focus,
.cta-button:focus,
.filter-btn:focus,
.submit-btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Ensure sufficient color contrast */
@media (prefers-contrast: high) {
    .section-title {
        color: #000;
    }
    
    .bio-text p,
    .project-description,
    .photo-caption {
        color: #000;
    }
}

/* ===== VOLUNTEERING PAGE STYLES ===== */

/* Volunteering Landing */
.volunteering-landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.volunteering-landing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.volunteering-landing-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
    animation: gentleFadeInUp 1.2s ease-out;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    word-wrap: break-word;
    overflow-wrap: break-word;
    user-select: none;
}

.volunteering-landing-title:hover {
    color: var(--accent-primary) !important;
    text-shadow: 0 0 30px var(--shadow-accent) !important;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    letter-spacing: 0.1em !important;
}

.volunteering-landing-intro {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: gentleFadeInUp 1.2s ease-out 0.4s both;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.volunteering-landing-intro:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 15px var(--shadow-secondary);
    transform: scale(1.10);
}

/* Volunteering Scroll Indicator */
.volunteering-scroll-indicator {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    animation: gentleBounce 3s infinite, gentleFadeInUp 1.2s ease-out 0.8s both;
}

.volunteering-scroll-indicator:hover {
    opacity: 1;
}

/* Volunteering Main Content */
.volunteering-main-content {
    min-height: 100vh;
    padding: 6rem 0;
    background: var(--bg-primary);
}

.volunteer-section {
    max-width: none;
}

/* Responsive adjustments for volunteering */
@media (max-width: 768px) {
    .volunteering-landing-title {
        font-size: 2.2rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
        user-select: none;
    }
    
    .volunteering-landing-title:hover {
        color: var(--accent-primary) !important;
        text-shadow: 0 0 30px var(--shadow-accent) !important;
        transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
        letter-spacing: 0.1em !important;
    }
    
    .volunteering-landing-intro {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }
    
    .volunteering-landing-container {
        padding: 1.5rem;
    }
    
    .volunteer-experiences {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .volunteer-cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Additional mobile adjustments for smaller screens */
@media (max-width: 480px) {
    .volunteer-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 15px;
    }
    
    .volunteer-card {
        padding: 20px;
        margin-bottom: 20px;
    }
}

.volunteer-experiences {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.volunteer-experiences h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: -0.02em;
}

.volunteer-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 20px;
}

.volunteer-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px var(--shadow-primary);
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
    transform-origin: center;
}

.volunteer-card:hover {
    transform: translateY(-4px) scale(1.05);
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 25px var(--neon-glow-strong), 0 0 50px var(--neon-glow), 0 16px 64px var(--shadow-primary);
}

.volunteer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.volunteer-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

.volunteer-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-tertiary);
    font-weight: 500;
    background: var(--bg-tertiary);
    padding: 4px 12px;
    border-radius: 20px;
}

.volunteer-role {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--accent-secondary);
    margin-bottom: 15px;
    font-weight: 500;
}

.volunteer-description {
    margin-bottom: 15px;
}

.volunteer-description p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    letter-spacing: 0.01em;
}

.volunteer-impact {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--accent-secondary);
    font-weight: 500;
    padding-top: 15px;
    border-top: 1px solid var(--border-primary);
}

.volunteer-organization {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--accent-secondary);
    margin-bottom: 20px;
    font-weight: 500;
}

.volunteer-section {
    margin-bottom: 20px;
}

.volunteer-subheading {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    letter-spacing: -0.01em;
}

.volunteer-list {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    padding-left: 20px;
    letter-spacing: 0.01em;
}

.volunteer-list li {
    margin-bottom: 8px;
}

.volunteer-list li:last-child {
    margin-bottom: 0;
}

.volunteer-links {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-primary);
}

.volunteer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--accent-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 8px;
    background: var(--bg-tertiary);
}

.volunteer-link:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
    transform: translateX(3px);
}

.link-icon {
    font-size: 1.1rem;
}

.main-project {
    border-left: 4px solid var(--accent-secondary);
    position: relative;
}

/* Volunteer Expandable Cards */
.volunteer-card-expandable {
    background: var(--card-bg) !important;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px var(--card-shadow), 0 0 15px var(--neon-glow);
    border: 2px solid var(--accent-primary);
    transition: all 0.3s ease;
    transform-origin: center;
    cursor: pointer;
    z-index: 15;
}

.volunteer-card-expandable:hover {
    transform: translateY(-4px) scale(1.05);
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 25px var(--neon-glow-strong), 0 0 50px var(--neon-glow), 0 16px 64px var(--shadow-primary);
}

.volunteer-preview {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.volunteer-expanded {
    display: none;
    overflow-y: auto;
    max-height: 80vh;
    padding: 20px 0;
    border-top: 1px solid var(--border-primary);
    margin-top: 20px;
}

/* Volunteer Modal Styles */
.volunteer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.volunteer-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-secondary);
    border-radius: 20px;
    max-width: 1400px;
    width: 95%;
    max-height: 95vh;
    overflow: hidden;
    box-shadow: 0 25px 50px var(--shadow-primary);
    animation: modalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

.volunteer-modal-header {
    padding: 25px 30px 20px 30px;
    border-bottom: 1px solid var(--border-primary);
    position: relative;
}

.volunteer-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-tertiary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.volunteer-modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.volunteer-modal-body {
    padding: 15px 25px 20px 25px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.volunteer-modal .volunteer-main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    overflow-y: auto;
    padding-right: 10px;
}

.volunteer-modal .volunteer-section {
    margin-bottom: 15px;
}

.volunteer-modal .volunteer-subheading {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.volunteer-modal .volunteer-list {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    padding-left: 18px;
}

.volunteer-modal .volunteer-list li {
    margin-bottom: 6px;
}

/* Additional responsive styles for volunteer content */
@media (max-width: 768px) {
    .volunteer-experiences h3 {
        font-size: 1.6rem;
    }
    
    .volunteer-card, .volunteer-card-expandable {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .volunteer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .volunteer-title {
        font-size: 1.2rem;
    }
    
    .volunteer-modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 0;
    }
    
    .volunteer-modal-header {
        padding: 20px 20px 15px 20px;
    }
    
    .volunteer-modal-body {
        padding: 20px;
    }
    
    .volunteer-modal-close {
        top: 15px;
        right: 15px;
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }
}

/* Contact page responsive styles */
@media (max-width: 768px) {
    .contact-content {
        padding: 0 15px;
        margin-top: 30px;
    }
    
    .contact-links-horizontal {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .contact-link-item {
        min-width: 250px;
        width: 100%;
        max-width: 300px;
    }
    
    .contact-info h3 {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }
}

/* ===== iOS SPECIFIC FIXES ===== */
/* Ensure proper scrolling and navigation on iPhone */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari specific styles */
    body {
        /* Prevent iOS Safari from hiding content behind the address bar */
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    .hero-main {
        /* Ensure hero section is properly positioned on iOS */
        min-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        padding-top: calc(env(safe-area-inset-top) + 10vh);
        padding-bottom: calc(env(safe-area-inset-bottom) + 5vh);
    }
    
    /* Ensure navbar doesn't interfere with content */
    .navbar {
        padding-top: env(safe-area-inset-top);
    }
    
    /* Fix for iOS Safari viewport height issues */
    .hero-main,
    .section {
        min-height: -webkit-fill-available;
    }
}

/* Additional mobile fixes for better scrolling */
@media (max-width: 480px) {
    /* Ensure content is scrollable on small screens */
    body {
        overflow-y: scroll; /* Use scroll to ensure consistent scrollbar */
        overflow-x: hidden;
    }
    
    /* Fix hero section positioning on mobile */
    .hero-main {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding: 15vh 0 20vh 0;
        text-align: center;
        width: 100%;
        margin: 0;
    }
    
    /* Ensure hero content is visible and scrollable */
    .hero-container {
        position: relative;
        z-index: 10;
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    /* Make sure text is readable and centered on mobile */
    .hero-name {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 12px;
        text-align: center;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-roles {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 20px;
        text-align: center;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Ensure bottom actions are accessible and centered */
    .bottom-actions {
        position: relative;
        z-index: 10;
        margin-top: 30px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        left: 0;
        right: 0;
        padding: 0 16px;
        box-sizing: border-box;
        top: auto;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 200px;
        padding: 12px 20px;
        font-size: 0.9rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Ensure the entire hero section is scrollable and buttons are accessible */
    .hero-main {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Particle trail effect */
.floating-element .particle-trail {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 40px;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(255, 200, 100, 0.6) 40%, 
        rgba(255, 150, 50, 0.4) 70%, 
        transparent 100%);
    border-radius: 50%;
    animation: particleTrail 0.4s ease-in-out infinite alternate;
    filter: blur(0.5px);
}

/* Atmospheric distortion effect */
.floating-element .atmospheric-distortion {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 30px;
    background: radial-gradient(ellipse at center, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(200, 200, 255, 0.05) 50%, 
        transparent 100%);
    animation: atmosphericDistortion 0.6s ease-in-out infinite alternate;
    filter: blur(3px);
}

@keyframes particleTrail {
    0% {
        opacity: 0.4;
        height: 40px;
        transform: translateX(-50%) scaleY(1);
    }
    100% {
        opacity: 0.8;
        height: 60px;
        transform: translateX(-50%) scaleY(1.2);
    }
}

@keyframes atmosphericDistortion {
    0% {
        opacity: 0.3;
        transform: translateX(-50%) scale(1);
        filter: blur(3px);
    }
    100% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1.1);
        filter: blur(4px);
    }
}

/* Enhanced rocket launch with more realistic physics */
@keyframes rocketLaunch {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) rotate(0deg) scale(0.8);
    }
    3% {
        opacity: 0.3;
        transform: translateY(-5px) translateX(0) rotate(0deg) scale(0.85);
    }
    8% {
        opacity: 1;
        transform: translateY(-20px) translateX(2px) rotate(1deg) scale(0.9);
    }
    20% {
        opacity: 1;
        transform: translateY(-80px) translateX(8px) rotate(3deg) scale(1);
    }
    35% {
        opacity: 1;
        transform: translateY(-200px) translateX(18px) rotate(6deg) scale(1.1);
    }
    50% {
        opacity: 1;
        transform: translateY(-400px) translateX(35px) rotate(10deg) scale(1.2);
    }
    65% {
        opacity: 0.9;
        transform: translateY(-600px) translateX(55px) rotate(14deg) scale(1.3);
    }
    80% {
        opacity: 0.7;
        transform: translateY(-800px) translateX(80px) rotate(17deg) scale(1.4);
    }
    90% {
        opacity: 0.4;
        transform: translateY(-950px) translateX(110px) rotate(19deg) scale(1.5);
    }
    100% {
        opacity: 0;
        transform: translateY(-1100px) translateX(140px) rotate(20deg) scale(1.6);
    }
}

/* Different rocket designs for variety */
.element-1::before {
    /* SpaceX-style rocket with white body and black fins */
    background: linear-gradient(180deg, 
        #ffffff 0%, 
        #f8f9fa 15%, 
        #e9ecef 35%, 
        #dee2e6 55%, 
        #ced4da 75%, 
        #adb5bd 90%, 
        #6c757d 100%);
    clip-path: polygon(
        50% 0%,    /* Sharp nose cone */
        45% 8%,    /* Nose cone */
        40% 18%,   /* Nose cone */
        35% 28%,   /* Nose cone */
        30% 38%,   /* Nose cone */
        25% 48%,   /* Nose cone */
        20% 58%,   /* Nose cone */
        15% 68%,   /* Nose cone */
        10% 78%,   /* Nose cone */
        8% 88%,    /* Nose cone */
        5% 98%,    /* Nose cone */
        0% 100%,   /* Rocket base */
        100% 100%, /* Rocket base */
        95% 98%,   /* Rocket base */
        92% 88%,   /* Rocket base */
        90% 78%,   /* Rocket base */
        85% 68%,   /* Rocket base */
        80% 58%,   /* Rocket base */
        75% 48%,   /* Rocket base */
        70% 38%,   /* Rocket base */
        65% 28%,   /* Rocket base */
        60% 18%,   /* Rocket base */
        55% 8%     /* Nose cone */
    );
}

.element-2::before {
    /* NASA-style rocket with orange/white color scheme */
    background: linear-gradient(180deg, 
        #ffffff 0%, 
        #fff8f0 10%, 
        #ffe8cc 25%, 
        #ffd699 40%, 
        #ffc266 55%, 
        #ffad33 70%, 
        #ff9900 85%, 
        #e68a00 100%);
    clip-path: polygon(
        50% 0%,    /* Rounded nose cone */
        48% 5%,    /* Nose cone */
        45% 12%,   /* Nose cone */
        40% 20%,   /* Nose cone */
        35% 30%,   /* Nose cone */
        30% 40%,   /* Nose cone */
        25% 50%,   /* Nose cone */
        20% 60%,   /* Nose cone */
        15% 70%,   /* Nose cone */
        10% 80%,   /* Nose cone */
        8% 90%,    /* Nose cone */
        5% 100%,   /* Rocket base */
        100% 100%, /* Rocket base */
        95% 90%,   /* Rocket base */
        92% 80%,   /* Rocket base */
        90% 70%,   /* Rocket base */
        85% 60%,   /* Rocket base */
        80% 50%,   /* Rocket base */
        75% 40%,   /* Rocket base */
        70% 30%,   /* Rocket base */
        65% 20%,   /* Rocket base */
        60% 12%,   /* Rocket base */
        55% 5%     /* Nose cone */
    );
}

.element-3::before {
    /* Modern spacecraft with metallic finish */
    background: linear-gradient(180deg, 
        #f8f9fa 0%, 
        #e9ecef 15%, 
        #dee2e6 30%, 
        #ced4da 45%, 
        #adb5bd 60%, 
        #6c757d 75%, 
        #495057 90%, 
        #343a40 100%);
    clip-path: polygon(
        50% 0%,    /* Pointed nose cone */
        42% 10%,   /* Nose cone */
        35% 20%,   /* Nose cone */
        28% 30%,   /* Nose cone */
        22% 40%,   /* Nose cone */
        18% 50%,   /* Nose cone */
        15% 60%,   /* Nose cone */
        12% 70%,   /* Nose cone */
        10% 80%,   /* Nose cone */
        8% 90%,    /* Nose cone */
        5% 100%,   /* Rocket base */
        100% 100%, /* Rocket base */
        95% 90%,   /* Rocket base */
        90% 80%,   /* Rocket base */
        85% 70%,   /* Rocket base */
        80% 60%,   /* Rocket base */
        75% 50%,   /* Rocket base */
        70% 40%,   /* Rocket base */
        65% 30%,   /* Rocket base */
        60% 20%,   /* Rocket base */
        55% 10%    /* Nose cone */
    );
}

/* Different fin designs for each rocket */
.element-1::after {
    /* SpaceX-style grid fins */
    background: linear-gradient(180deg, 
        #212529 0%, 
        #343a40 50%, 
        #495057 100%);
    clip-path: polygon(
        0% 0%,     /* Left fin */
        25% 0%,    /* Left fin */
        30% 100%,  /* Left fin */
        0% 100%,   /* Left fin */
        0% 0%,     /* Center gap */
        40% 0%,    /* Center gap */
        40% 100%,  /* Center gap */
        0% 100%,   /* Center gap */
        0% 0%,     /* Right fin */
        60% 0%,    /* Right fin */
        65% 100%,  /* Right fin */
        40% 100%,  /* Right fin */
        40% 0%,    /* Right fin */
        75% 0%,    /* Right fin */
        80% 100%,  /* Right fin */
        60% 100%,  /* Right fin */
        60% 0%,    /* Right fin */
        100% 0%,   /* Right fin */
        100% 100%, /* Right fin */
        75% 100%   /* Right fin */
    );
}

.element-2::after {
    /* Traditional rocket fins */
    background: linear-gradient(180deg, 
        #495057 0%, 
        #343a40 50%, 
        #212529 100%);
    clip-path: polygon(
        0% 0%,     /* Left fin */
        20% 0%,    /* Left fin */
        25% 100%,  /* Left fin */
        0% 100%,   /* Left fin */
        0% 0%,     /* Center gap */
        50% 0%,    /* Center gap */
        50% 100%,  /* Center gap */
        0% 100%,   /* Center gap */
        0% 0%,     /* Right fin */
        80% 0%,    /* Right fin */
        85% 100%,  /* Right fin */
        50% 100%,  /* Right fin */
        50% 0%,    /* Right fin */
        100% 0%,   /* Right fin */
        100% 100%, /* Right fin */
        80% 100%   /* Right fin */
    );
}

.element-3::after {
    /* Modern delta fins */
    background: linear-gradient(180deg, 
        #6c757d 0%, 
        #495057 50%, 
        #343a40 100%);
    clip-path: polygon(
        0% 0%,     /* Left fin */
        30% 0%,    /* Left fin */
        35% 100%,  /* Left fin */
        0% 100%,   /* Left fin */
        0% 0%,     /* Center gap */
        35% 0%,    /* Center gap */
        35% 100%,  /* Center gap */
        0% 100%,   /* Center gap */
        0% 0%,     /* Right fin */
        70% 0%,    /* Right fin */
        75% 100%,  /* Right fin */
        35% 100%,  /* Right fin */
        35% 0%,    /* Right fin */
        100% 0%,   /* Right fin */
        100% 100%, /* Right fin */
        70% 100%   /* Right fin */
    );
}

/* Dust particles for dark mode */
#dustCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* allows clicks through canvas */
    z-index: 1; /* Behind everything but visible through transparent navbar */
    overflow: hidden;
    contain: strict; /* Prevent layout interference */
    will-change: transform; /* Optimize for animations */
}

/* Only show dust particles in dark mode */
@media (prefers-color-scheme: light) {
    #dustCanvas {
        display: none;
    }
}

/* Also hide dust when theme toggle is not dark */
html:not([data-theme="dark"]) #dustCanvas {
    display: none;
}

/* Fallback for older browsers - ensure canvas is visible in dark mode */
[data-theme="dark"] #dustCanvas {
    display: block !important;
}

/* Ensure canvas is properly positioned even if JavaScript fails */
#dustCanvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* ===== BIO SECTION STYLES ===== */
.bio-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid var(--card-border);
    transition: background-color var(--transition-speed) ease,
                border-color var(--transition-speed) ease;
}

.bio-section:last-child {
    margin-bottom: 0;
}

/* Dark mode settings for volunteer projects (same as engineering projects) */
[data-theme="dark"] .volunteer-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
}

[data-theme="dark"] .volunteer-card:hover {
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 25px rgba(77, 166, 255, 0.4), 0 0 50px rgba(77, 166, 255, 0.2), 0 16px 64px rgba(106, 123, 140, 0.12);
}

/* ===== CONTACT FORM INPUT STYLES ===== */
.contact-form {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: background-color var(--transition-speed) ease,
                border-color var(--transition-speed) ease;
}

.contact-form h3 {
    color: var(--text-primary);
    transition: color var(--transition-speed) ease;
}

.contact-form label {
    color: var(--text-primary);
    transition: color var(--transition-speed) ease;
}

.contact-form input,
.contact-form textarea {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--input-text);
    transition: background-color var(--transition-speed) ease,
                border-color var(--transition-speed) ease,
                color var(--transition-speed) ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 2px var(--neon-glow);
}

/* ===== CONTACT ITEM STYLES ===== */
.contact-item,
.contact-link-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: background-color var(--transition-speed) ease,
                border-color var(--transition-speed) ease,
                box-shadow var(--transition-speed) ease;
}

.contact-item:hover,
.contact-link-item:hover {
    background: var(--bg-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 25px var(--neon-glow-strong), 0 0 50px var(--neon-glow), 0 16px 64px var(--shadow-primary);
}

/* ===== CONTACT TEXT STYLES ===== */
.contact-form-container h3,
.contact-info h3 {
    color: var(--text-primary);
    transition: color var(--transition-speed) ease;
}

.contact-details h4,
.contact-details a {
    color: var(--text-primary);
    transition: color var(--transition-speed) ease;
}

.contact-details a:hover {
    color: var(--accent-primary);
}

/* Prevent text wrapping for contact links */
.contact-details a {
    white-space: nowrap;
}

/* Volunteer Experiences title */
.volunteer-experiences h3 {
    color: var(--text-primary);
    transition: color var(--transition-speed) ease;
}

/* ===== DJ CTA STYLES ===== */
.dj-cta {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    transition: background-color var(--transition-speed) ease,
                border-color var(--transition-speed) ease;
    padding: 30px;
    margin: 40px 0;
    transition: all 0.3s ease;
}

.dj-cta:hover {
    background: var(--bg-primary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .dj-cta {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
}

[data-theme="dark"] .dj-cta:hover {
    background: var(--bg-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 25px rgba(77, 166, 255, 0.2);
}

/* Dark mode settings for Volunteer Experiences title */
[data-theme="dark"] .volunteer-experiences h3 {
    color: var(--text-primary);
}

/* Dark mode settings for volunteer expanded content */
[data-theme="dark"] .volunteer-expanded {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
}

[data-theme="dark"] .volunteer-content-full {
    background: var(--bg-secondary);
}

[data-theme="dark"] .volunteer-main-content {
    background: var(--bg-secondary);
}

[data-theme="dark"] .volunteer-details {
    background: var(--bg-secondary);
}

[data-theme="dark"] .volunteer-section {
    background: transparent;
}

[data-theme="dark"] .volunteer-subheading {
    color: var(--text-primary);
}

[data-theme="dark"] .volunteer-list {
    color: var(--text-primary);
}

[data-theme="dark"] .volunteer-list li {
    color: var(--text-primary);
}

[data-theme="dark"] .volunteer-links {
    border-top: 1px solid var(--border-primary);
}

[data-theme="dark"] .volunteer-link {
    color: var(--text-primary);
    background: var(--bg-primary);
}

[data-theme="dark"] .volunteer-link:hover {
    color: var(--accent-primary);
    background: var(--bg-secondary);
}

[data-theme="dark"] .volunteer-expanded p {
    color: var(--text-primary);
}

/* Dark mode settings for volunteer preview elements */
[data-theme="dark"] .volunteer-preview .volunteer-title {
    color: var(--text-primary);
}

[data-theme="dark"] .volunteer-preview .volunteer-date {
    color: var(--text-tertiary);
}

[data-theme="dark"] .volunteer-preview .volunteer-organization {
    color: var(--accent-secondary);
}

[data-theme="dark"] .volunteer-preview .volunteer-organization strong {
    color: var(--accent-secondary);
}

[data-theme="dark"] .volunteer-preview .volunteer-subheading {
    color: var(--text-primary);
}

[data-theme="dark"] .volunteer-preview p {
    color: var(--text-secondary);
}

/* Make Charity Bike Ride Organizer title use theme color in dark mode */
[data-theme="dark"] .volunteer-card-expandable[data-volunteer="2"] .volunteer-title {
    color: var(--text-primary) !important;
}

/* Dark mode settings for volunteering main content background */
[data-theme="dark"] .volunteering-main-content {
    background: var(--bg-primary);
}

/* Dark mode settings for volunteer modal */
[data-theme="dark"] .volunteer-modal {
    background: rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .volunteer-modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
}

[data-theme="dark"] .volunteer-modal-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
}

[data-theme="dark"] .volunteer-modal-header h3 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .volunteer-modal-header p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .volunteer-modal-close {
    color: var(--text-primary);
    background: var(--bg-primary);
}

[data-theme="dark"] .volunteer-modal-close:hover {
    background: var(--bg-secondary);
    color: var(--accent-primary);
}

[data-theme="dark"] .volunteer-modal-body {
    background: var(--bg-secondary);
}

/* Dark mode settings for volunteer card expandable */
[data-theme="dark"] .volunteer-card-expandable {
    background: var(--card-bg) !important; /* Use theme-specific background */
    border-radius: 12px; /* Rounded corners like bio cards */
    box-shadow: 0 4px 20px var(--card-shadow), 0 0 15px var(--neon-glow); /* Enhanced shadow with neon glow like bio cards */
    border: 2px solid var(--accent-primary); /* Neon blue border like bio cards */
    z-index: 15; /* Above particles but below images, same as bio cards */
}

[data-theme="dark"] .volunteer-card-expandable:hover {
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 25px var(--neon-glow-strong), 0 0 50px var(--neon-glow), 0 16px 64px var(--shadow-primary);
}

/* Dark mode settings for volunteer list in modal */
[data-theme="dark"] .volunteer-modal .volunteer-list {
    color: var(--text-primary);
}

[data-theme="dark"] .volunteer-modal .volunteer-list li {
    color: var(--text-primary);
}

[data-theme="dark"] .volunteer-modal .volunteer-subheading {
    color: var(--text-primary);
}

/* Dark mode settings for volunteer links in modal */
[data-theme="dark"] .volunteer-modal .volunteer-links {
    border-top: 1px solid var(--border-primary);
}

[data-theme="dark"] .volunteer-modal .volunteer-link {
    color: var(--text-primary);
    background: var(--bg-primary);
}

[data-theme="dark"] .volunteer-modal .volunteer-link:hover {
    color: var(--accent-primary);
    background: var(--bg-secondary);
}

/* Dark mode settings for volunteer links in modal */
[data-theme="dark"] .volunteer-modal .volunteer-link:hover {
    color: var(--accent-primary);
    background: var(--bg-secondary);
}

/* Volunteer modal header element styles */
.volunteer-modal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
    margin-bottom: 8px;
}

.volunteer-modal-date {
    font-family: 'Inter', sans-serif;
    color: var(--text-tertiary);
    margin: 0;
    font-size: 0.9rem;
}

.volunteer-modal-organization {
    font-family: 'Inter', sans-serif;
    color: var(--accent-secondary);
    margin: 8px 0 0 0;
    font-size: 1rem;
}

/* ===== CONTACT FORM STYLES ===== */

/* Contact page layout */
.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    width: 100%;
    box-sizing: border-box;
}

.contact-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
    width: 100%;
    box-sizing: border-box;
}

/* Contact form section - Redesigned */
.contact-form-section {
    background: transparent !important; /* Transparent background */
    border: 2px solid #00bfff; /* Neon blue border */
    border-radius: 20px;
    padding: 20px; /* Further reduced for smaller outer card */
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.3); /* Neon blue glow */
    transition: all 0.3s ease;
    min-height: 350px; /* Further reduced for smaller outer card */
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 15; /* Above particles but below images, same as bio cards */
}

.contact-form-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow-primary);
}

.contact-form-section h3.form-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 35px; /* Increased for better spacing */
    margin-top: 0;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

/* Contact form styling - Professional and modern */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Increased for better spacing */
    flex: 1;
    justify-content: flex-start;
    margin: 0;
    padding: 20px 20px 0 20px; /* Added top padding to lower content from the top */
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Override for contact form to ensure proper alignment */
.contact-form .form-group {
    margin-bottom: 0 !important;
}

.form-group label {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem; /* Slightly larger for better readability */
    font-weight: 600; /* Increased weight for better hierarchy */
    color: var(--text-primary);
    margin-bottom: 6px; /* Increased for better spacing */
    letter-spacing: -0.01em;
}

.form-group input,
.form-group textarea {
    padding: 16px 18px; /* Increased padding for better touch targets */
    border: 2px solid var(--border-primary);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem; /* Slightly larger for better readability */
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-sizing: border-box;
    line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(77, 166, 255, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px; /* Increased for better usability */
    max-height: 150px; /* Increased for better usability */
    line-height: 1.6;
}

/* Submit button - Professional styling */
.submit-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 28px; /* Increased padding for better touch target */
    font-family: 'Inter', sans-serif;
    font-size: 1rem; /* Slightly larger */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px; /* Increased for better spacing */
    align-self: flex-start;
    letter-spacing: -0.01em;
    box-shadow: 0 4px 12px rgba(77, 166, 255, 0.2);
}

.submit-btn:hover {
    background: var(--accent-tertiary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(77, 166, 255, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(77, 166, 255, 0.2);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Success and error states - Improved */
.form-success,
.form-error {
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #16a34a;
}

.form-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

/* Contact links section - Redesigned */
.contact-links-section {
    background: transparent !important; /* Transparent background */
    border: 2px solid #00bfff; /* Neon blue border */
    border-radius: 20px;
    padding: 20px; /* Further reduced to match contact form */
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.3); /* Neon blue glow */
    transition: all 0.3s ease;
    min-height: 350px; /* Further reduced to match contact form */
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 15; /* Above particles but below images, same as bio cards */
}

.contact-links-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow-primary);
}

.contact-links-section h3.form-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 35px; /* Increased to match contact form */
    margin-top: 0;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

.contact-links {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    gap: 24px; /* Increased for better spacing */
    margin: 0;
    padding: 0;
}

/* Ensure contact page uses the correct spacing */
.contact-links-section .contact-links {
    justify-content: space-between;
    gap: 24px; /* Increased for better spacing */
}

.contact-link-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 28px; /* Increased padding for better breathing room */
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.contact-link-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-primary);
    background: var(--bg-secondary);
}

.contact-details {
    width: 100%;
}

.contact-details h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.contact-details span {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    word-break: break-all;
}

/* Dark mode: Make contact link text white */
[data-theme="dark"] .contact-link-item .contact-details span {
    color: #ffffff !important;
}

/* Dark mode: Make contact link labels (h4) white */
[data-theme="dark"] .contact-link-item .contact-details h4 {
    color: #ffffff !important;
}

.contact-link-item:hover .contact-details span {
    color: var(--accent-tertiary);
}

/* Success state for form */
.contact-form-section.success {
    border-color: #16a34a;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
}

/* Responsive design - Improved */
@media (max-width: 768px) {
    .contact-sections {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form-section,
    .contact-links-section {
        padding: 40px 25px;
        min-height: 480px;
    }
    
    .contact-links-section .contact-links {
        justify-content: space-between;
        gap: 20px;
    }
    
    .contact-form-section h3.form-title,
    .contact-links-section h3.form-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .contact-content {
        padding: 40px 15px;
    }
}

@media (max-width: 480px) {
    .contact-content {
        padding: 30px 10px;
    }
    
    .contact-form-section,
    .contact-links-section {
        padding: 30px 20px;
        min-height: 450px;
    }
    
    .contact-links-section .contact-links {
        justify-content: space-between;
        gap: 16px;
    }
    
    .contact-form-section h3.form-title,
    .contact-links-section h3.form-title {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }
    
    .contact-sections {
        gap: 25px;
        margin: 30px 0;
    }
}

/* ===== CONTACT FORM SPACING ADJUSTMENTS ===== */
/* Improved spacing for contact form with Name field */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px; /* Slightly reduced gap for better fit */
    flex: 1;
    justify-content: flex-start;
    margin: 0;
    padding: 20px 20px 15px 20px; /* Reduced bottom padding to move button up */
}

.contact-form .form-group {
    margin-bottom: 0 !important; /* Remove default margin since we're using gap */
}

.contact-form .form-group:last-of-type {
    margin-bottom: 12px; /* Add space before submit button */
}

.contact-form .submit-btn {
    margin-top: 8px; /* Reduced space above submit button */
    align-self: flex-start; /* Align button to the left */
    margin-bottom: 0; /* Ensure no bottom margin */
}

/* Ensure form fits comfortably in the inner card */
.contact-form-section {
    min-height: 380px; /* Slightly increased to accommodate Name field */
    display: flex;
    flex-direction: column;
}

.contact-form-section .contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Responsive adjustments for the new form layout */
@media (max-width: 768px) {
    .contact-form-section {
        min-height: 420px; /* Increased for mobile to accommodate Name field */
    }
    
    .contact-form {
        gap: 16px; /* Slightly reduced gap on mobile */
        padding: 20px 20px 12px 20px; /* Adjusted padding for mobile */
    }
    
    .contact-form .submit-btn {
        margin-top: 6px; /* Reduced space on mobile */
    }
}

@media (max-width: 480px) {
    .contact-form-section {
        min-height: 400px; /* Adjusted for smaller screens */
    }
    
    .contact-form {
        gap: 14px; /* Further reduced gap on small screens */
        padding: 18px 18px 10px 18px; /* Adjusted padding for small screens */
    }
    
    .contact-form .submit-btn {
        margin-top: 5px; /* Minimal space on small screens */
    }
}
