/* Beautiful Gradient CSS Variables */
:root {
    --primary-color: #667eea;
    --primary-light: #764ba2;
    --primary-dark: #5a67d8;
    --secondary-color: #4a5568;
    --accent-color: #ed8936;
    --success-color: #38b2ac;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;
    --border-color: #e2e8f0;
    
    /* Retro Space Travel Poster Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-mars: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff4e50 100%);
    --gradient-jupiter: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-ocean-world: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #667eea 100%);
    --gradient-coruscant: linear-gradient(135deg, #2d1b69 0%, #764ba2 50%, #f093fb 100%);
    --gradient-sunset: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 50%, #ffd1ff 100%);
    --gradient-deep-space: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --gradient-nebula: linear-gradient(135deg, #2d1b69 0%, #11998e 50%, #38ef7d 100%);
    /* Retro space poster palette */
    --mars-coral: #E55A3C;
    --mars-rust: #C4442D;
    --sky-teal: #65B6A7;
    --sky-mint: #9AD0C5;
    --shadow-navy: #0F2A3C;

    --gradient-aurora: linear-gradient(135deg, var(--sky-teal) 0%, var(--sky-mint) 45%, #6f8ad9 100%);
    --gradient-cool-space: linear-gradient(135deg, #0f2a3c 0%, #1e5f9d 55%, #00c6d4 100%);
    --gradient-vintage-orange: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --gradient-retro-blue: linear-gradient(135deg, #4facfe 0%, #00c6d4 100%);
    --gradient-space-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Enhanced Shadows with Color */
    --shadow-sm: 0 2px 4px rgba(102, 126, 234, 0.1);
    --shadow-md: 0 4px 12px rgba(102, 126, 234, 0.15);
    --shadow-lg: 0 8px 25px rgba(102, 126, 234, 0.2);
    --shadow-xl: 0 12px 35px rgba(102, 126, 234, 0.25);
    --shadow-2xl: 0 25px 50px rgba(102, 126, 234, 0.3);
    
    /* Generous Border Radius */
    --radius-sm: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-2xl: 2.5rem;
    --radius-3xl: 3rem;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem; /* keep consistent height so pages can offset their top padding */
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gradient-secondary);
    color: white;
    border-radius: var(--radius-md);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

/* Language toggle subtle highlight */
.lang-active {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(102,126,234,0.15);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Base gradient always visible */
    --cursor-overlay: radial-gradient(circle at 50% 50%, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 70%);
    background-image: var(--cursor-overlay), var(--gradient-aurora);
    transition: background 0.3s ease;
}

/* Interactive Space Particle Effect */
.hero {
    --star-offset-x: 0px;
    --star-offset-y: 0px;
    --star2-offset-x: 0px;
    --star2-offset-y: 0px;
    --star2-opacity: 0.4;
}

/* Background star layer 1 (farther) */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 15px 25px, rgba(255,255,255,0.35), transparent),
        radial-gradient(1px 1px at 80px 55px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 120px 90px, rgba(255,255,255,0.2), transparent),
        radial-gradient(2px 2px at 180px 120px, rgba(255,255,255,0.25), transparent),
        radial-gradient(1px 1px at 220px 30px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 260px 140px, rgba(255,255,255,0.25), transparent);
    background-repeat: repeat;
    /* denser tile for more stars */
    background-size: 160px 110px;
    animation: float 35s ease-in-out infinite;
    opacity: var(--star2-opacity, 0.4);
    pointer-events: none;
    z-index: 1;
    transform: translate(var(--star2-offset-x), var(--star2-offset-y));
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.2), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 160px 30px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 50px 100px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 180px 60px, rgba(255,255,255,0.2), transparent);
    background-repeat: repeat;
    /* denser tile for more stars */
    background-size: 140px 90px;
    animation: float 25s ease-in-out infinite;
    opacity: var(--star-opacity, 0.6);
    pointer-events: none;
    z-index: 1;
    transform: translate(var(--star-offset-x), var(--star-offset-y));
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero:hover::after {
    opacity: 0.7;
    animation-duration: 18s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 2;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

.hero-title {
    font-family: 'Bebas Neue', var(--font-family);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: #ffffff;
    transition: color 0.3s ease;
}

/* Apple-style gradient text for name */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    text-shadow: none !important;
    /* Fallback for browsers that don't support background-clip */
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 600; /* Apple-style semi-bold */
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.hero-description {
    font-size: 1.125rem;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.6; /* Apple-style line height */
    font-weight: 500; /* Apple-style medium weight */
    transition: color 0.3s ease;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.hero-location i {
    color: var(--accent-color);
}

/* Profile Card */
.profile-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-2xl);
    border: 2px solid rgba(255, 255, 255, 0.2);
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-stellar);
}

.profile-image {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.profile-initials {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.profile-initials::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.status-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: var(--success-color);
    border-radius: 50%;
    border: 3px solid white;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    text-align: center;
}

.stat {
    padding: 0.5rem;
    text-align: center;
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    /* Keep words intact so labels don't split awkwardly */
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Sections */
section {
    padding: 5rem 0;
}

/* Alternating high-contrast panel theming */
/* White panels */
.skills,
.contact {
    background: #ffffff;
}

.skills .section-title,
.contact .section-title {
    color: var(--text-primary);
    text-shadow: none;
}

.skills .section-subtitle,
.contact .section-subtitle {
    color: var(--text-secondary);
    text-shadow: none;
}

/* Color panels (already themed): ensure titles/subtitles are bright */
.about .section-title,
.travel-preview .section-title {
    color: #ffffff;
}

.about .section-subtitle,
.travel-preview .section-subtitle {
    color: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* Add a subtle star overlay to additional sections using the same pattern */
#skills, #contact {
    position: relative;
    overflow: hidden;
}

#skills::after, #contact::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.35), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.2), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.25), transparent),
        radial-gradient(1px 1px at 160px 30px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 50px 100px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 180px 60px, rgba(255,255,255,0.2), transparent);
    background-repeat: repeat;
    background-size: 180px 120px;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

#skills > *, #contact > * { position: relative; z-index: 1; }

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    /* Force a very light panel */
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%) !important;
    background-color: #ffffff !important;
    position: relative;
    transition: background 0.15s ease;
    overflow: hidden;
}

.about::before { display: none; }

/* Animated stars for space sections */
.about::after { display: none; }

.about.show-stars::after {
    opacity: 0.6;
}

@keyframes sparkle {
    from { transform: translateX(0); }
    to { transform: translateX(200px); }
}

/* Cursor-following stars */
.cursor-star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #ffffff 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: starTwinkle 1.5s ease-out forwards;
}

.cursor-star::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 8px;
    background: linear-gradient(to bottom, transparent, #ffffff, transparent);
    transform: translate(-50%, -50%);
}

.cursor-star::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 2px;
    background: linear-gradient(to right, transparent, #ffffff, transparent);
    transform: translate(-50%, -50%);
}

@keyframes starTwinkle {
    0% {
        opacity: 1;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) rotate(360deg);
    }
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* Apple-style high contrast text over gradients */
.about .section-title {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: none;
}

.about .section-subtitle {
    color: var(--text-secondary);
    font-weight: 600;
    text-shadow: none;
}

.about-paragraph {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-weight: 500;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.highlight i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.highlight h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.highlight p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 400;
}

.tech-stack {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 2px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    /* Ensure high contrast for all text inside */
    color: #1a1a2e !important;
}

.tech-stack::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-nebula);
}

.tech-stack h4 {
    margin-bottom: 1rem;
    color: #1a1a2e !important;
    font-weight: 700;
}

.tech-stack .tech-item {
    color: white !important;
    font-weight: 700;
}

.tech-stack h4 {
    color: #1a1a2e !important;
    font-weight: 700;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.tech-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #4c63d2 100%);
    color: white !important;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transition: opacity 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #7c8ef0 0%, #8a5fb8 50%, #5c73e8 100%);
}

.tech-item:hover::before {
    opacity: 0.2;
}

/* Subtle staggered animation for tech items */
.tech-item {
    animation: techItemFadeIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.tech-item:nth-child(1) { animation-delay: 0.1s; }
.tech-item:nth-child(2) { animation-delay: 0.2s; }
.tech-item:nth-child(3) { animation-delay: 0.3s; }
.tech-item:nth-child(4) { animation-delay: 0.4s; }
.tech-item:nth-child(5) { animation-delay: 0.5s; }
.tech-item:nth-child(6) { animation-delay: 0.6s; }
.tech-item:nth-child(7) { animation-delay: 0.7s; }
.tech-item:nth-child(8) { animation-delay: 0.8s; }

@keyframes techItemFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.skill-category {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: var(--radius-2xl);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-cosmos);
}

.skill-category:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.skill-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.skill-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: iconShimmer 4s ease-in-out infinite;
}

@keyframes iconShimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.skill-icon i {
    font-size: 1.5rem;
    color: white;
}

.skill-category h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.skill-category ul {
    list-style: none;
    text-align: left;
}

.skill-category li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.skill-category li:last-child {
    border-bottom: none;
}

/* Travel Preview Section */
.travel-preview {
    /* Cool deep-space gradient for readability */
    --cursor-overlay: radial-gradient(circle at 50% 50%, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 70%);
    background-image: var(--cursor-overlay), var(--gradient-cool-space);
    position: relative;
    transition: background 0.15s ease;
}

.travel-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.6) 100%);
    pointer-events: none;
}

/* Apple-style high contrast for travel section */
.travel-preview .section-title {
    color: #ffffff;
    font-weight: 700; /* Apple-style bold */
    letter-spacing: -0.02em; /* Apple-style tight tracking */
    transition: color 0.3s ease;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.travel-preview .section-subtitle {
    color: #ffffff;
    font-weight: 600; /* Apple-style semi-bold */
    transition: color 0.3s ease;
    text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

.travel-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.travel-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.travel-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-stellar);
}

.travel-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-icon {
    font-size: 2rem;
}

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

.preview-photo {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.preview-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.travel-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.25rem;
    color: white;
}

.contact-details h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-cta {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.contact-cta h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-cta p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 2rem 0;
}

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

.footer-right {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero {
        min-height: 100vh;
        padding: 0;
        align-items: center;
        justify-content: center;
        padding-top: 6rem;
        padding-bottom: 2rem;
    }
    
    .hero-content {
        min-height: auto;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
    }
    /* Ensure text appears above image on small screens */
    .hero-text { order: 1; }
    .hero-image { order: 2; }
    
    .hero-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 4rem;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .travel-stats {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .tech-item {
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 0;
    }
    
    .hero {
        min-height: 100vh;
        padding: 0;
        align-items: center;
        justify-content: center;
        padding-top: 5rem;
        padding-bottom: 2rem;
    }
    
    .hero-content {
        min-height: auto;
        gap: 1.5rem;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .hero-container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 0.5rem;
        margin-top: 0;
        word-break: break-word;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 0.875rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .profile-card {
        padding: 1.5rem;
        width: calc(100% - 40px);
        max-width: 420px;
        margin: 0 auto;
    }
    .profile-photo { width: 110px; height: 110px; }

    /* Improve hero stats readability on small screens */
    .profile-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        align-items: start;
    }
    .stat-number { font-size: 1.15rem; margin-bottom: 0.15rem; }
    .stat-label {
        font-size: 0.7rem;
        white-space: normal; /* allow wrap on mobile */
        line-height: 1.15;
        letter-spacing: 0.04em;
    }
}

/* Extra small screens - ensure name is always visible */
@media (max-width: 375px) {
    .hero {
        min-height: 100vh;
        padding-top: 4rem;
        padding-bottom: 2rem;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        align-items: center;
        justify-content: center;
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-top: 0;
        text-align: center;
        width: 100%;
    }
    
    .hero-container {
        padding: 0 0.75rem;
        width: 100%;
        max-width: 100%;
    }
}