/* ============================================
   CSS RESET & NORMALIZE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}


/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Colors - Urban Dark Theme */
    --color-primary-dark: #111827;
    --color-primary-charcoal: #1F2937;
    --color-accent-bright: #EF4444;
    --color-accent-orange: #F97316;
    --color-accent-blue: #3B82F6;
    --color-gray-medium: #6B7280;
    --color-gray-light: #9CA3AF;
    --color-background-light: #F9FAFB;
    --color-background-white: #FFFFFF;
    --color-neon-yellow: #FBBF24;
    --color-neon-green: #10B981;

    /* Fonts */
    --font-primary: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(239, 68, 68, 0.4);
    --shadow-glow-green: 0 0 20px rgba(16, 185, 129, 0.4);
}


/* ============================================
   BASE STYLES
   ============================================ */
body {
    font-family: var(--font-secondary);
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #1F2937 100%);
    color: var(--color-background-white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}


/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(239, 68, 68, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(239, 68, 68, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0;
    animation: gridFadeIn 2s ease forwards;
    pointer-events: none;
    z-index: 1;
}

@keyframes gridFadeIn {
    to {
        opacity: 1;
    }
}


/* ============================================
   ANIMATED ELEMENTS
   ============================================ */
.animated-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.car {
    position: absolute;
    width: 60px;
    height: 30px;
    background: var(--color-accent-bright);
    border-radius: 4px;
    opacity: 0.6;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.car::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 10px solid var(--color-accent-bright);
    transform: translateY(-50%);
}

.car-1 {
    top: 20%;
    left: -100px;
    animation: carMove1 20s linear infinite;
}

.car-2 {
    top: 60%;
    left: -100px;
    animation: carMove2 25s linear infinite 5s;
    background: var(--color-accent-blue);
}

.car-2::before {
    border-left-color: var(--color-accent-blue);
}

@keyframes carMove1 {
    to {
        transform: translateX(calc(100vw + 200px));
    }
}

@keyframes carMove2 {
    to {
        transform: translateX(calc(100vw + 200px));
    }
}

.pedestrian {
    position: absolute;
    width: 20px;
    height: 40px;
    background: var(--color-neon-green);
    border-radius: 10px 10px 5px 5px;
    opacity: 0.5;
    top: 75%;
    left: -50px;
    animation: pedestrianWalk 30s linear infinite;
}

.pedestrian::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--color-neon-green);
    border-radius: 50%;
}

@keyframes pedestrianWalk {
    to {
        transform: translateX(calc(100vw + 100px));
    }
}


/* ============================================
   LAYOUT - CONTAINER
   ============================================ */
.container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    animation: containerFadeIn 1s ease 0.5s forwards;
}

@keyframes containerFadeIn {
    to {
        opacity: 1;
    }
}


/* ============================================
   HEADER SECTION
   ============================================ */
.header {
    margin-bottom: var(--spacing-2xl);
    opacity: 0;
    transform: translateY(-30px);
    animation: slideDown 0.8s ease 0.8s forwards;
}

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

.logo-wrapper {
    position: relative;
    display: inline-block;
}

.logo {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--color-background-white) 0%, var(--color-accent-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
    position: relative;
    text-transform: lowercase;
}

.street-marker {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 4px;
    background: var(--color-accent-bright);
    border-radius: 2px;
    box-shadow: var(--shadow-glow);
}

.tagline {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    color: var(--color-gray-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: var(--spacing-md);
}


/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    margin-bottom: var(--spacing-3xl);
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.2s forwards;
}

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

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--color-accent-bright);
    border-radius: 50px;
    margin-bottom: var(--spacing-lg);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: var(--shadow-glow);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent-bright);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

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

.status-text {
    color: var(--color-accent-bright);
}

.hero-heading {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
    color: var(--color-background-white);
}

.description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
    color: var(--color-gray-light);
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

.decorative-lines {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
}

.line {
    height: 3px;
    background: var(--color-accent-bright);
    border-radius: 2px;
    animation: lineGrow 1s ease forwards;
    transform-origin: left;
    transform: scaleX(0);
}

.line-1 {
    width: 60px;
    animation-delay: 1.6s;
}

.line-2 {
    width: 40px;
    animation-delay: 1.8s;
    background: var(--color-neon-yellow);
}

.line-3 {
    width: 50px;
    animation-delay: 2s;
    background: var(--color-neon-green);
}

@keyframes lineGrow {
    to {
        transform: scaleX(1);
    }
}


/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.6s forwards;
}

.contact-text {
    font-size: 1rem;
    color: var(--color-gray-light);
    margin-bottom: var(--spacing-sm);
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    color: var(--color-background-white);
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.email-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.2), transparent);
    transition: left var(--transition-medium);
}

.email-link:hover::before {
    left: 100%;
}

.email-link:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--color-accent-bright);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: var(--color-accent-bright);
}

.email-link:focus {
    outline: 2px solid var(--color-accent-bright);
    outline-offset: 4px;
}

.email-icon {
    font-size: 1.25rem;
}


/* ============================================
   URBAN DECORATIONS
   ============================================ */
.urban-decorations {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    pointer-events: none;
    z-index: 5;
}

.crosswalk {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 20px,
        rgba(255, 255, 255, 0.05) 20px,
        rgba(255, 255, 255, 0.05) 40px
    );
    opacity: 0;
    animation: fadeInUp 1s ease 2.2s forwards;
}

.traffic-light {
    position: absolute;
    bottom: 60px;
    right: 10%;
    width: 30px;
    padding: 8px;
    background: rgba(31, 41, 55, 0.8);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    animation: fadeInUp 1s ease 2.4s forwards;
}

.light {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    opacity: 0.3;
}

.light-red {
    background: #EF4444;
    animation: trafficLightRed 6s ease infinite;
}

.light-yellow {
    background: #FBBF24;
    animation: trafficLightYellow 6s ease infinite;
}

.light-green {
    background: #10B981;
    animation: trafficLightGreen 6s ease infinite;
}

@keyframes trafficLightRed {
    0%, 33% {
        opacity: 1;
        box-shadow: 0 0 10px #EF4444;
    }
    34%, 100% {
        opacity: 0.3;
    }
}

@keyframes trafficLightYellow {
    0%, 33% {
        opacity: 0.3;
    }
    34%, 66% {
        opacity: 1;
        box-shadow: 0 0 10px #FBBF24;
    }
    67%, 100% {
        opacity: 0.3;
    }
}

@keyframes trafficLightGreen {
    0%, 66% {
        opacity: 0.3;
    }
    67%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px #10B981;
    }
}

.map-pin {
    position: absolute;
    bottom: 80px;
    left: 15%;
    width: 30px;
    height: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease 2.6s forwards, pinBounce 2s ease 3.6s infinite;
}

.map-pin::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--color-accent-bright);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: var(--shadow-glow);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.map-pin::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
}

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


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

/* Tablet: 640px - 1024px */
@media (min-width: 640px) {
    .container {
        padding: var(--spacing-xl);
    }

    .header {
        margin-bottom: var(--spacing-3xl);
    }

    .traffic-light {
        width: 40px;
        padding: 10px;
    }

    .light {
        width: 18px;
        height: 18px;
    }
}

/* Desktop: > 1024px */
@media (min-width: 1024px) {
    .container {
        padding: var(--spacing-2xl);
    }

    .description {
        font-size: 1.25rem;
    }

    .car {
        width: 80px;
        height: 40px;
    }

    .pedestrian {
        width: 25px;
        height: 50px;
    }
}

/* Large Desktop: > 1440px */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    .hero-heading {
        font-size: 4rem;
    }

    .description {
        font-size: 1.5rem;
        max-width: 800px;
    }
}

/* Reduce 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;
    }
}


/* ============================================
   ACCESSIBILITY & UTILITIES
   ============================================ */
.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;
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-accent-bright);
    outline-offset: 4px;
}

/* Selection styles */
::selection {
    background: var(--color-accent-bright);
    color: white;
}

::-moz-selection {
    background: var(--color-accent-bright);
    color: white;
}
