/* ============================================
   GEORGIA MOTORSPORTS MEDIA - MAIN STYLESHEET
   Part 1: Base, Layout, Navigation, Hero, Sections
   ============================================ */

/* Import Components */
@import url('components.css');

/* CSS Variables */
:root {
    /* Colors */
    --color-primary: #e63946;
    --color-primary-dark: #c1121f;
    --color-secondary: #1d3557;
    --color-accent: #f4a261;
    
    --color-dark: #0a0a0a;
    --color-dark-light: #141414;
    --color-dark-lighter: #1a1a1a;
    --color-gray-900: #212121;
    --color-gray-800: #2d2d2d;
    --color-gray-700: #3d3d3d;
    --color-gray-600: #4d4d4d;
    --color-gray-500: #6b6b6b;
    --color-gray-400: #8b8b8b;
    --color-gray-300: #a3a3a3;
    --color-gray-200: #d4d4d4;
    --color-gray-100: #e5e5e5;
    --color-white: #ffffff;
    
    /* Typography */
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 4rem;
    --container-max: 1200px;
    --container-padding: 1.5rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
    --shadow-xl: 0 12px 48px rgba(0,0,0,0.6);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-dark);
    color: var(--color-gray-200);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Section */
.section {
    padding: var(--section-padding) 0;
}

.section--dark {
    background-color: var(--color-dark-light);
}

.section__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-white);
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--color-gray-400);
    text-align: center;
    margin-bottom: 3rem;
}

.section__text {
    font-size: 1.1rem;
    color: var(--color-gray-300);
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
}

/* ============================================
   NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-normal);
}

.header.scrolled,
.header--solid {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav__logo-img {
    height: 120px;
    width: auto;
    transition: transform var(--transition-fast);
}

@media screen and (max-width: 768px) {
    .nav__logo-img {
        height: 70px;
    }
}

.nav__logo:hover .nav__logo-img {
    transform: scale(1.05);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-white);
    letter-spacing: 3px;
}

.logo-accent {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-primary);
    letter-spacing: 3px;
}

.nav__list {
    display: flex;
    gap: 2.5rem;
}

.nav__link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-gray-200);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-normal);
}

.nav__link:hover,
.nav__link.active {
    color: var(--color-white);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__toggle,
.nav__close {
    display: none;
    font-size: 1.5rem;
    color: var(--color-white);
    cursor: pointer;
}

/* Nav Social Icons - Far Right */
.nav__social {
    display: flex;
    gap: 0.75rem;
    margin-left: 1.5rem;
}

.nav__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-gray-300);
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.nav__social-link:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--color-dark-light);
        padding: 5rem 2rem;
        transition: right var(--transition-normal);
        box-shadow: var(--shadow-xl);
    }
    
    .nav__menu.show-menu {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        gap: 2rem;
    }
    
    .nav__link {
        font-size: 1.2rem;
    }
    
    .nav__close {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }
    
    .nav__toggle {
        display: block;
    }
    
    .nav__social {
        display: none;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.7) 0%,
        rgba(10, 10, 10, 0.5) 50%,
        rgba(10, 10, 10, 0.9) 100%
    );
    z-index: 1;
}

.hero__video-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Mobile hero video - less zoom */
@media screen and (max-width: 768px) {
    .hero__video {
        min-width: auto;
        min-height: auto;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        background: var(--color-dark);
    }
    
    .hero__video-container {
        background: var(--color-dark);
    }
}

.hero__video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-gray-900) 0%, var(--color-dark) 50%, var(--color-gray-800) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1rem;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.hero__title-line {
    display: block;
    color: var(--color-white);
    letter-spacing: 8px;
}

.hero__title-line.accent {
    color: var(--color-primary);
    font-size: 1.2em;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-gray-300);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-gray-400);
    font-size: 0.85rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Page Hero (Inner Pages) */
.page-hero {
    position: relative;
    padding: 10rem 0 4rem;
    background: linear-gradient(135deg, var(--color-gray-900) 0%, var(--color-dark) 100%);
    text-align: center;
}

.page-hero--short {
    padding: 8rem 0 3rem;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.page-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--color-white);
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
    position: relative;
}

.page-hero__subtitle {
    font-size: 1.2rem;
    color: var(--color-gray-400);
    margin-bottom: 1.5rem;
    position: relative;
}

.page-hero__breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--color-gray-500);
    position: relative;
}

.page-hero__breadcrumb a {
    color: var(--color-gray-400);
}

.page-hero__breadcrumb a:hover {
    color: var(--color-primary);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    border: 2px solid transparent;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
}

.btn--outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-gray-600);
}

.btn--outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn--small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn--large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
}

/* ============================================
   SERVICE CARDS (Homepage Preview)
   ============================================ */
.services-preview__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-dark-lighter);
    border: 1px solid var(--color-gray-800);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.service-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--color-white);
}

.service-card__title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-white);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.service-card__text {
    color: var(--color-gray-400);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card__link:hover {
    gap: 0.75rem;
}

/* ============================================
   FEATURED PROJECTS (Homepage)
   ============================================ */
.featured__projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.featured__project {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.featured__browser {
    background: var(--color-gray-900);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-gray-700);
    box-shadow: var(--shadow-lg);
}

.featured__browser-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--color-gray-800);
    border-bottom: 1px solid var(--color-gray-700);
}

.featured__browser-dots {
    display: flex;
    gap: 6px;
}

.featured__browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.featured__browser-dots span:nth-child(1) { background: #ff5f57; }
.featured__browser-dots span:nth-child(2) { background: #febc2e; }
.featured__browser-dots span:nth-child(3) { background: #28c840; }

.featured__browser-url {
    flex: 1;
    padding: 0.4rem 0.75rem;
    background: var(--color-gray-900);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--color-gray-400);
}

.featured__browser-content {
    display: block;
    line-height: 0;
}

.featured__browser-content img {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.featured__browser:hover .featured__browser-content img {
    transform: scale(1.02);
}

.featured__project-info {
    text-align: center;
}

.featured__tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.featured__project-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-white);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.featured__project-text {
    color: var(--color-gray-400);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Broadcast Partner Banner */
.featured__partner {
    margin-bottom: 2rem;
}

.featured__partner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--color-gray-800) 0%, var(--color-gray-900) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-700);
}

.featured__partner-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.featured__partner-logos img {
    height: 50px;
    width: auto;
}

.featured__partner-logos span {
    color: var(--color-primary);
    font-size: 1.25rem;
    font-weight: 700;
}

.featured__partner-text h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-white);
    letter-spacing: 1px;
}

.featured__partner-text p {
    color: var(--color-gray-400);
    font-size: 0.9rem;
}

.featured__cta {
    text-align: center;
}

@media screen and (max-width: 992px) {
    .featured__partner-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .featured__projects {
        grid-template-columns: 1fr;
    }
    
    .featured__partner-logos img {
        height: 40px;
    }
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
}

.stat__number {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat__number::after {
    content: '+';
}

.stat__label {
    font-size: 1rem;
    color: var(--color-gray-400);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta__content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--color-white);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.cta__text {
    font-size: 1.2rem;
    color: var(--color-gray-400);
    margin-bottom: 2rem;
}

.cta__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
