/* ========================================================
   STYLESHEET: Marie Willersinn Portfolio
   Purpose: Complete styling system for professional portfolio
   Features: CSS variables, animations, responsive design, 
            accessibility support (reduced motion), modern design
   ======================================================== */

/* ========== RESET & BASE STYLES ========== */
/* Universal reset for consistent browser rendering */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ========== CSS CUSTOM PROPERTIES (Variables) ==========
   Organized by category for maintainability
   Benefits: Consistent theming, easy dark mode support,
            single-source-of-truth for design tokens ========== */
:root {
    /* COLOR SYSTEM - Blue-focused professional palette */
    --primary-color: #2563eb; /* Royal blue - main accent */
    --primary-dark: #1e40af;  /* Darker blue for hover states */
    --primary-light: #60a5fa; /* Lighter blue for subtle elements */
    --secondary-color: #3b82f6; /* Alternative blue */
    --secondary-dark: #1e3a8a;  /* Very dark blue for backgrounds */
    --accent-color: #06b6d4;    /* Cyan accent for highlights */
    --accent-light: #7dd3fc;    /* Light cyan */
    --text-dark: #0f172a;       /* Primary text color */
    --text-medium: #334155;     /* Secondary text color */
    --text-light: #64748b;      /* Tertiary text (subtle) */
    --bg-light: #f8fafc;        /* Light background */
    --bg-white: #ffffff;        /* Pure white */
    --bg-gradient-start: #1e3a8a; /* Gradient start (dark blue) */
    --bg-gradient-end: #2563eb;   /* Gradient end (primary blue) */
    --border-color: #e2e8f0;    /* Subtle borders */
    --highlight-color: #60a5fa; /* Highlight/focus color */
    --success-color: #10b981;   /* Success state */
    --glass-bg: rgba(255, 255, 255, 0.1);     /* Glassmorphism background */
    --glass-border: rgba(255, 255, 255, 0.2); /* Glassmorphism border */
    
    /* SPACING SYSTEM - Based on 0.5rem unit (8px) */
    --spacing-xs: 0.5rem;  /* 8px  - tight spacing */
    --spacing-sm: 1rem;    /* 16px - small spacing */
    --spacing-md: 1.5rem;  /* 24px - medium spacing */
    --spacing-lg: 2rem;    /* 32px - large spacing */
    --spacing-xl: 3rem;    /* 48px - extra large */
    --spacing-xxl: 4rem;   /* 64px - massive */
    
    /* SECTION PADDING - Vertical rhythm for sections */
    --section-padding: 80px;          /* Standard section vertical padding */
    --section-padding-top: 120px;     /* Top padding for sections */
    --section-padding-top-about: 80px; /* Reduced padding for About */
    
    /* NAVIGATION SYSTEM */
    --navbar-height: 70px;           /* Fixed navbar height */
    --navbar-padding: 1rem;          /* Internal navbar padding */
    --scroll-margin-top: 120px;      /* Offset for scroll-margin-top */
    
    /* BORDER RADIUS SYSTEM - For consistent rounded corners */
    --radius-sm: 8px;    /* Small roundness (subtle) */
    --radius-md: 12px;   /* Medium roundness (default) */
    --radius-lg: 20px;   /* Large roundness (prominent) */
    --radius-full: 50%;  /* Circular (badges, avatars) */
    
    /* TIMING & TRANSITIONS */
    --transition-fast: 0.3s;   /* Quick animations (hovers) */
    --transition-normal: 0.6s; /* Standard animations (scroll) */
    
    /* SHADOW SYSTEM - Depth hierarchy using elevation */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-colored: 0 10px 40px -10px rgba(99, 102, 241, 0.4); /* Colored shadow for emphasis */
    
    /* TYPOGRAPHY SCALE - Modular type system */
    --font-size-base: 1rem;    /* 20px - body text (1rem = 20px due to html { font-size: 20px }) */
    --font-size-sm: 0.875rem;  /* 17.5px - small text, captions */
    --font-size-lg: 1.1rem;    /* 22px - larger text */
    --font-size-xl: 1.5rem;    /* 30px - section headings */
    --font-size-xxl: 2rem;     /* 40px - large headings */
    --font-size-hero: 3.5rem;  /* 70px - hero/main title */
    
    /* LINE HEIGHTS - For readability at different scales */
    --line-height-base: 1.6;     /* Standard line height (1.6x) */
    --line-height-tight: 1.2;    /* Tight spacing (headlines) */
    --line-height-relaxed: 1.8;  /* Relaxed spacing (body) */
}

/* ========== GLOBAL BASE STYLES ========== */
/* Typography and primary styling for entire document */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overscroll-behavior: none;
    /* Avoid content hidden behind fixed navbar */
    padding-top: calc(var(--navbar-height) + 8px);
}

/* Set root font size to 20px (increases from default 16px for better readability) */
html { font-size: 20px; }

p {
    margin-bottom: 1.25rem;
    color: var(--text-medium);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Links: Base styling with transition effects */
a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

/* Links: Hover and focus states for accessibility */
a:hover,
a:focus {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Container: Max-width wrapper for consistent layout width */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 28px;
}

/* Main: Semantic HTML5 wrapper for primary content */
main {
    display: block;
}

/* ========== ACCESSIBILITY: Reduced Motion Support ==========
   Disables animations for users who prefer reduced motion
   (macOS: System Preferences > Accessibility > Display > Reduce motion) */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ========== ACCESSIBILITY: Screen Reader Only Class ==========
   Hides content visually while keeping it available for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Container: Layout max-width and horizontal padding */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== NAVIGATION COMPONENT ========== */
/* Fixed navbar with backdrop blur effect and glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85); /* Slightly transparent white */
    backdrop-filter: blur(12px) saturate(160%);  /* Glassmorphism effect */
    -webkit-backdrop-filter: blur(20px) saturate(180%); /* Safari support */
    box-shadow: 0 6px 18px rgba(16,24,40,0.06); /* Subtle shadow */
    z-index: 1000;
    padding: var(--navbar-padding) 0;
    transition: all var(--transition-fast); /* Smooth transitions */
    border-bottom: 1px solid rgba(16,24,40,0.04); /* Subtle bottom border */
}

/* Navbar container: Flex layout with full edge-to-edge positioning */
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    width: 100%;
    max-width: none;
    margin: 0;
}

/* Brand: Logo/monogram positioned at far left with nice spacing */
.nav-brand {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    animation: slideInLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: transform var(--transition-fast);
    padding-left: 20px;
}

.nav-brand:hover {
    transform: translateX(-5px);
}

/* Monogram: Animated gradient badge with continuous pulse glow effect */
.nav-monogram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 12px rgba(37,99,235,0.15);
    animation: pulseGlow 3s ease-in-out infinite;
    transition: all var(--transition-fast);
}

.nav-brand:hover .nav-monogram {
    box-shadow: 0 6px 20px rgba(37,99,235,0.35);
    transform: scale(1.1);
}

/* Menu: Navigation links positioned at far right edge with large gap */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    flex-shrink: 0;
    padding-right: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 600;
    transition: color var(--transition-fast), transform var(--transition-fast);
    position: relative;
    padding: 0.5rem 0.2rem;
    animation: slideInDown 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation-fill-mode: both;
}

/* Staggered entrance animation for each menu item */
.nav-menu li:nth-child(1) a { animation-delay: 0.1s; }
.nav-menu li:nth-child(2) a { animation-delay: 0.2s; }
.nav-menu li:nth-child(3) a { animation-delay: 0.3s; }
.nav-menu li:nth-child(4) a { animation-delay: 0.4s; }
.nav-menu li:nth-child(5) a { animation-delay: 0.5s; }

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    background-size: 200% 100%;
    border-radius: 2px;
    transition: width var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
    animation: gradientFlow 2s linear infinite;
}

.nav-menu a.active {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
    animation: slideInRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all var(--transition-fast);
    border-radius: 2px;
    transform-origin: center;
}

/* Hamburger animation when menu is open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translateY(11px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translateY(-11px);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px 80px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 25%, #2563eb 50%, #1e40af 75%, #1e3a8a 100%);
    background-size: 200% 200%;
    animation: gradientShift 25s ease infinite;
    color: white;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(30, 64, 175, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(30, 58, 138, 0.2) 0%, transparent 70%);
    opacity: 0.6;
    animation: float 30s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(30,64,175,0.2)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>'),
        linear-gradient(45deg, transparent 30%, rgba(30, 64, 175, 0.15) 50%, transparent 70%);
    opacity: 0.3;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* ========== CUSTOM NAVBAR ANIMATIONS ========== */

/* Slide in from left animation with bounce easing for brand */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide in from top animation with bounce easing for menu items */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse glow animation - breathing effect on monogram */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37,99,235,0.15);
    }
    50% {
        box-shadow: 0 8px 25px rgba(37,99,235,0.35);
    }
}

/* Gradient flow animation - animated gradient on underline */
@keyframes gradientFlow {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Slide in from right animation for hamburger button */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Reduce expensive animations on mobile */
@media (max-width: 768px) {
    .hero {
        animation: none;
        background-position: center;
    }
    
    .hero::before {
        animation: none;
        opacity: 0.3;
    }
    
    .project-image {
        animation: none;
    }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .hero {
        animation: none !important;
    }
    
    .hero::before {
        animation: none !important;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
    padding: 0 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.28;
    letter-spacing: -0.015em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1.2s ease-out;
    color: rgba(255, 255, 255, 0.98);
    max-width: 100%;
    text-align: center;
}

/* Large name + animated inline reveal */
.hero-title-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: center;
}

.hero-monogram {
    display: none;
}

.hero-name {
    display: block;
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    color: white;
    text-shadow: 0 2px 8px rgba(14, 30, 60, 0.2);
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-inline {
    display: block;
    font-size: 1.3rem;
    font-weight: 400;
    color: rgba(245, 250, 255, 1);
    opacity: 0;
    transform: translateY(6px);
    animation: revealUp 0.7s ease 0.35s forwards;
}

.hero-role {
    margin: 0.5rem 0 0.8rem 0;
    font-size: 0.9rem;
    color: rgba(235,245,255,0.9);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.95;
    text-align: center;
    animation: fadeInUp 0.9s ease 0.15s both;
}

@keyframes revealUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive scaling */
@media (max-width: 768px) {
    .hero-name { font-size: 2.6rem; }
    .hero-inline { font-size: 1.05rem; }
}

.hero-title br {
    display: block;
    content: "";
    margin-top: 0.3em;
}

.welcome-text {
    color: #e8eefc;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
    padding: 0.15em 0.35em;
    margin-right: 0.25em;
}

.intro-text {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 400;
    font-size: 0.88em;
    letter-spacing: 0.02em;
    display: inline-block;
    margin-right: 0.6em;
    font-style: italic;
}

.welcome-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #60a5fa, #2563eb, transparent);
    border-radius: 1px;
    opacity: 0.8;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.highlight {
    color: var(--bg-white);
    background: linear-gradient(90deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08));
    padding: 0.15em 0.5em;
    border-radius: 8px;
    position: relative;
    display: inline-block;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 1.25rem;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #60a5fa, #2563eb, transparent);
    opacity: 0.7;
    border-radius: 1px;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 0;
    opacity: 0.93;
    animation: fadeInUp 1.2s ease-out 0.3s both;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
    line-height: 1.65;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.96);
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    letter-spacing: 0.015em;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease-out 0.5s both;
    margin-top: 2rem;
    padding-top: 0;
}

.btn {
    padding: 13px 32px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all var(--transition-fast);
    display: inline-block;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    will-change: width, height;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Reduce animation for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .btn::before {
        transition: none;
    }
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    box-shadow: 0 8px 26px rgba(37,99,235,0.12);
    border-color: rgba(255,255,255,0.06);
    font-weight: 500;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 14px 36px rgba(37,99,235,0.14);
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}

.btn-secondary {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(6px);
    color: rgba(255,255,255,0.95);
    border-color: rgba(255,255,255,0.08);
    font-weight: 500;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(16,24,40,0.06);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

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

.scroll-indicator {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(224, 231, 255, 0.7);
    border-radius: 25px;
    position: relative;
    box-shadow: 
        0 0 10px rgba(30, 64, 175, 0.4),
        inset 0 0 8px rgba(37, 99, 235, 0.15);
    background: rgba(30, 64, 175, 0.15);
    backdrop-filter: blur(5px);
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #60a5fa;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(37, 99, 235, 0.6);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 30px; opacity: 0; }
}

/* Section Styles */
section {
    padding: var(--section-padding) 0;
    scroll-margin-top: var(--scroll-margin-top);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    width: 100%;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #3b82f6);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* About Section */
.about {
    background: linear-gradient(180deg, var(--bg-white) 0%, rgba(248,250,252,0.5) 100%);
    padding-top: 60px;
    margin-top: 0;
    scroll-margin-top: var(--scroll-margin-top);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text p {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-relaxed);
}

/* Accent word styling - subtle enhancement */
.accent-word {
    color: inherit;
    font-weight: 500;
    font-style: normal;
}

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

.image-placeholder {
    width: 280px;
    height: 280px;
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(37,99,235,0.15);
    position: relative;
    animation: float 6s ease-in-out infinite;
    border: 8px solid white;
    background: white;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #2563eb, #3b82f6, #60a5fa);
    z-index: -1;
    animation: none;
    opacity: 0;
}

.about-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-full);
    transition: transform var(--transition-fast);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    display: block;
}

.image-placeholder:hover .about-portrait {
    transform: scale(1.05);
}

/* Add subtle focus glow on hover */
.image-placeholder:hover {
    box-shadow: 0 25px 70px rgba(37,99,235,0.18);
}

/* Loading state for images */
.about-portrait[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Skills Section */
.skills {
    padding-top: var(--section-padding-top);
    background: linear-gradient(180deg, var(--bg-white) 0%, rgba(242,247,255,0.8) 100%);
    position: relative;
}

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

.skill-card {
    background: rgba(255,255,255,0.98);
    padding: 2.5rem 1.75rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 28px rgba(16,24,40,0.06);
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.15), transparent);
    transition: left 0.5s;
}

.skill-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.4);
    border-color: #60a5fa;
}

.skill-card:hover::after {
    opacity: 1;
}

.skill-icon {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
}

.skill-card h3 {
    font-size: 1.35rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.skill-card p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* Projects Section */
.projects {
    background: linear-gradient(180deg, rgba(242,247,255,0.6) 0%, rgba(232,242,255,0.4) 100%);
    padding-top: var(--section-padding-top);
    position: relative;
}

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

.project-card {
    background: rgba(255,255,255,0.98);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(16,24,40,0.06);
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
    position: relative;
    will-change: transform;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(96,165,250,0.03));
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

.project-card:hover::after {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.project-image {
    height: 220px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.project-placeholder {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.project-content {
    padding: 1.5rem 1.75rem;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.15) 100%);
    color: #2563eb;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all var(--transition-fast);
}

.tag:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.25) 100%);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.project-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    position: relative;
    display: inline-block;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    transition: width var(--transition-fast);
}

.project-link:hover {
    color: #1d4ed8;
}

.project-link:hover::after {
    width: 100%;
}
/* Contact Section */
.contact {
    padding-top: var(--section-padding-top);
    display: flex;
    justify-content: center;
}

.contact-content {
    width: 60%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    justify-content: center;
    align-items: center;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    position: relative;
}

.contact-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #3b82f6, #60a5fa);
    border-radius: 2px 0 0 2px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    border-color: #60a5fa;
}

.contact-item:hover::before {
    opacity: 1;
}

.contact-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    padding: 16px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-family: inherit;
    transition: all var(--transition-fast);
    background: var(--bg-white);
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--primary-light);
}

.form-group textarea {
    resize: vertical;
}

/* ========== EASTER EGG: BEE CURSOR ==========
   A delightful floating bee that follows the mouse or appears on scroll
   Hidden by default (aria-hidden), interactive surprise element */
.bee-cursor {
    position: fixed;
    width: 2.5rem;
    height: 2.5rem;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    user-select: none;
    z-index: 9999;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
    animation: beeBounce 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.bee-cursor:hover {
    opacity: 1;
    transform: scale(1.15);
    animation-play-state: paused;
}

.bee-cursor .bee-icon {
    display: inline-block;
}

/* Bee bounce animation - gentle floating motion */
@keyframes beeBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Mobile: Hide bee on very small screens */
@media (max-width: 480px) {
    .bee-cursor {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 2rem;
        height: 2rem;
        font-size: 1.4rem;
    }
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #0b1220 0%, #0a0f1a 100%);
    color: rgba(255,255,255,0.95);
    text-align: center;
    padding: 2.5rem 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(37,99,235,0.1);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

.footer p {
    position: relative;
    z-index: 1;
    opacity: 0.9;
    margin: 0;
}

/* Footer content layout */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.footer-text {
    font-size: 0.9rem;
    opacity: 0.85;
}

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

.footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(37,99,235,0.08);
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
    border: 1px solid rgba(37,99,235,0.1);
}

.footer-link:hover {
    background: rgba(37,99,235,0.15);
    transform: translateY(-3px);
    border-color: rgba(37,99,235,0.3);
    box-shadow: 0 6px 16px rgba(37,99,235,0.1);
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-light: #000000;
    }
    
    .btn {
        border-width: 2px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-name {
        font-size: 2.2rem;
    }

    .hero-inline {
        font-size: 1.05rem;
    }
    
    .hero-content {
        max-width: 100%;
    }

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

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

    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    html {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .image-placeholder {
        width: 250px;
        height: 250px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-scroll,
    .btn,
    .contact-form {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Contact links styling */
.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-weight: 500;
}

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

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}
