/* ========================================
   XUNLIYUN TECH - Premium Corporate Website
   Deep Blue Luxury Design System
   ======================================== */

/* CSS Variables - Design Tokens */
:root {
    /* Primary Colors - Deep Blue Palette */
    --primary-dark: #0a1628;
    --primary-blue: #1a3a5c;
    --primary-medium: #2d5a87;
    --primary-light: #4a7db0;
    --accent-gold: #c9a961;
    --accent-gold-light: #e0c88a;
    
    /* Neutral Colors */
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e9ecef;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --black: #000000;
    
    /* Gradient Colors */
    --gradient-dark: linear-gradient(135deg, #0a1628 0%, #1a3a5c 100%);
    --gradient-gold: linear-gradient(135deg, #c9a961 0%, #e0c88a 100%);
    --gradient-blue: linear-gradient(180deg, #1a3a5c 0%, #2d5a87 50%, #4a7db0 100%);
    
    /* Typography */
    --font-primary: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-secondary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-xxl: 8rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.25);
    --shadow-gold: 0 8px 32px rgba(201, 169, 97, 0.3);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--dark-gray);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
    margin-bottom: var(--space-md);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--space-md);
    font-size: 1rem;
    line-height: 1.8;
}

a {
    color: var(--primary-medium);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--accent-gold);
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-xxl) 0;
    position: relative;
}

.section-dark {
    background: var(--gradient-dark);
    color: var(--white);
}

.section-light {
    background: var(--off-white);
}

.grid {
    display: grid;
    gap: var(--space-lg);
}

.flex {
    display: flex;
}

.text-center {
    text-align: center;
}

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

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 169, 97, 0.2);
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.98);
    box-shadow: var(--shadow-lg);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.logo svg {
    width: 50px;
    height: 50px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text .company {
    font-size: 1.2rem;
    color: var(--accent-gold);
}

.logo-text .slogan {
    font-size: 0.7rem;
    color: var(--light-gray);
    font-family: var(--font-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    align-items: center;
}

.nav-link {
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
    padding: var(--space-sm) 0;
    position: relative;
    transition: var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition-base);
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: var(--space-sm);
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    background: var(--gradient-dark);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 900"><defs><linearGradient id="g1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%231a3a5c;stop-opacity:1" /><stop offset="100%" style="stop-color:%230a1628;stop-opacity:1" /></linearGradient></defs><rect fill="url(%23g1)" width="1440" height="900"/><circle cx="200" cy="200" r="300" fill="%232d5a87" opacity="0.3"/><circle cx="1200" cy="700" r="400" fill="%234a7db0" opacity="0.2"/></svg>');
    background-size: cover;
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.6; }
    25% { transform: translateY(-100px) translateX(50px); opacity: 0.3; }
    50% { transform: translateY(-200px) translateX(-30px); opacity: 0.6; }
    75% { transform: translateY(-100px) translateX(20px); opacity: 0.3; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.3) 0%, rgba(10, 22, 40, 0.7) 100%);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: var(--space-lg);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
    background: linear-gradient(135deg, var(--white) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-subtitle {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: var(--space-xl);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.7s;
    color: var(--light-gray);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: var(--space-xl);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.9s;
    color: var(--medium-gray);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.1s;
}

.btn {
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 600;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(201, 169, 97, 0.4);
    color: var(--primary-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.3s, bounce 2s infinite 2s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-20px); }
    60% { transform: translateX(-50%) translateY(-10px); }
}

.hero-scroll svg {
    width: 40px;
    height: 40px;
    fill: var(--accent-gold);
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-gold);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--medium-gray);
    max-width: 600px;
    margin: var(--space-lg) auto 0;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features {
    padding: var(--space-xxl) 0;
    background: var(--off-white);
}

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

.feature-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-base);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-blue);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    transition: var(--transition-bounce);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--white);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--primary-dark);
}

.feature-card p {
    color: var(--medium-gray);
    line-height: 1.8;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
    padding: var(--space-xxl) 0;
    background: var(--white);
}

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

.service-card {
    background: var(--gradient-dark);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    color: var(--white);
    position: relative;
    overflow: hidden;
    transition: var(--transition-slow);
    border: 1px solid rgba(201, 169, 97, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.1) 0%, transparent 70%);
    transition: var(--transition-slow);
}

.service-card:hover::before {
    top: -30%;
    right: -30%;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-gold);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
}

.service-icon svg {
    width: 35px;
    height: 35px;
    fill: var(--primary-dark);
}

.service-card h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--light-gray);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* ========================================
   MOBILE APP SECTION
   ======================================== */
.mobile-app {
    padding: var(--space-xxl) 0;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.mobile-app::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 800"><defs><linearGradient id="g2" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23c9a961;stop-opacity:0.1" /><stop offset="100%" style="stop-color:%232d5a87;stop-opacity:0.1" /></linearGradient></defs><rect fill="url(%23g2)" width="600" height="800"/></svg>');
    opacity: 0.5;
}

.mobile-app-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.mobile-app-text h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: var(--space-lg);
}

.mobile-app-text h2 span {
    color: var(--accent-gold);
}

.mobile-app-text p {
    color: var(--light-gray);
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
}

.app-features {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.app-features li {
    color: var(--white);
    padding: var(--space-sm) 0;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 1rem;
}

.app-features li svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-gold);
    flex-shrink: 0;
}

.app-stores {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.app-store-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--white);
    color: var(--primary-dark);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-family: var(--font-secondary);
    font-weight: 600;
    transition: var(--transition-base);
}

.app-store-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-dark);
}

.app-store-btn svg {
    width: 30px;
    height: 30px;
}

.app-store-btn .store-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.app-store-btn .store-text span:first-child {
    font-size: 0.7rem;
}

.app-store-btn .store-text span:last-child {
    font-size: 1rem;
}

.mobile-app-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: var(--primary-dark);
    border-radius: 40px;
    border: 4px solid var(--accent-gold);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--gradient-blue);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.phone-screen svg {
    width: 100px;
    height: 100px;
    fill: var(--accent-gold);
    margin-bottom: var(--space-lg);
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats {
    padding: var(--space-xxl) 0;
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: var(--space-xl);
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: var(--light-gray);
}

.stat-item:last-child::after {
    display: none;
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1;
    margin-bottom: var(--space-md);
}

.stat-number span {
    color: var(--accent-gold);
}

.stat-label {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    padding: var(--space-xxl) 0;
    background: var(--off-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--accent-gold);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-image-placeholder {
    width: 100%;
    height: 500px;
    background: var(--gradient-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-placeholder svg {
    width: 150px;
    height: 150px;
    fill: var(--white);
    opacity: 0.3;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
}

.about-text p {
    color: var(--medium-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.about-list {
    list-style: none;
}

.about-list li {
    padding: var(--space-sm) 0;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--primary-dark);
    font-weight: 500;
}

.about-list li svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-gold);
}

/* ========================================
   NEWS SECTION
   ======================================== */
.news {
    padding: var(--space-xxl) 0;
    background: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.news-image {
    width: 100%;
    height: 200px;
    background: var(--gradient-blue);
    position: relative;
    overflow: hidden;
}

.news-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 58, 92, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    fill: var(--white);
    opacity: 0.5;
}

.news-content {
    padding: var(--space-lg);
}

.news-date {
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    color: var(--accent-gold);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-md);
    color: var(--primary-dark);
    transition: var(--transition-base);
}

.news-card:hover h3 {
    color: var(--accent-gold);
}

.news-card p {
    color: var(--medium-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary-medium);
    font-weight: 600;
    margin-top: var(--space-md);
    transition: var(--transition-base);
}

.news-link:hover {
    color: var(--accent-gold);
    gap: var(--space-md);
}

.news-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    padding: var(--space-xxl) 0;
    background: var(--gradient-dark);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
}

.contact-info p {
    color: var(--light-gray);
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
}

.contact-details {
    list-style: none;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    color: var(--white);
}

.contact-details li svg {
    width: 30px;
    height: 30px;
    fill: var(--accent-gold);
    flex-shrink: 0;
    margin-top: 5px;
}

.contact-details li strong {
    display: block;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--accent-gold);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-details li span,
.contact-details li a {
    color: var(--light-gray);
    font-size: 1rem;
}

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

.contact-form {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.2);
}

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

.contact-form .btn {
    width: 100%;
    justify-content: center;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: var(--space-xxl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about .logo {
    margin-bottom: var(--space-lg);
}

.footer-about p {
    color: var(--light-gray);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-links h4 {
    color: var(--white);
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--light-gray);
    font-size: 0.95rem;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    color: var(--light-gray);
    font-size: 0.9rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    color: var(--light-gray);
    font-size: 0.9rem;
    transition: var(--transition-base);
}

.footer-legal a:hover {
    color: var(--accent-gold);
}

/* ========================================
   PAGE HEADERS
   ======================================== */
.page-header {
    padding: var(--space-xxl) 0;
    background: var(--gradient-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 400"><defs><linearGradient id="g3" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%231a3a5c;stop-opacity:0.5" /><stop offset="100%" style="stop-color:%230a1628;stop-opacity:0.5" /></linearGradient></defs><rect fill="url(%23g3)" width="1440" height="400"/></svg>');
    background-size: cover;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
}

.page-header p {
    color: var(--light-gray);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    font-family: var(--font-secondary);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--light-gray);
}

.breadcrumb a:hover {
    color: var(--accent-gold);
}

.breadcrumb span {
    color: var(--accent-gold);
}

/* ========================================
   PRIVACY & TERMS PAGES
   ======================================== */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-xxl) var(--space-lg);
}

.legal-section {
    margin-bottom: var(--space-xl);
}

.legal-section h2 {
    font-size: 2rem;
    margin-bottom: var(--space-lg);
    color: var(--primary-dark);
    position: relative;
    padding-left: var(--space-lg);
}

.legal-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: var(--gradient-gold);
}

.legal-section h3 {
    font-size: 1.5rem;
    margin: var(--space-lg) 0 var(--space-md);
    color: var(--primary-medium);
}

.legal-section p {
    color: var(--dark-gray);
    line-height: 1.9;
    margin-bottom: var(--space-md);
}

.legal-section ul {
    margin: var(--space-md) 0 var(--space-lg) var(--space-xl);
    list-style: disc;
}

.legal-section li {
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

.legal-section a {
    color: var(--primary-medium);
    text-decoration: underline;
}

.legal-section a:hover {
    color: var(--accent-gold);
}

/* Ad Platform Grid */
.ad-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.ad-platform-card {
    background: var(--off-white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-gold);
}

.ad-platform-card h4 {
    color: var(--primary-dark);
    margin-bottom: var(--space-sm);
}

.ad-platform-card p {
    font-size: 0.95rem;
    margin: 0;
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    
    .hero-title { font-size: 3.5rem; }
    .hero-subtitle { font-size: 1.3rem; }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item::after {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition-base);
        box-shadow: var(--shadow-xl);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .mobile-app-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .mobile-app-visual {
        order: -1;
    }
    
    .app-features {
        display: inline-block;
        text-align: left;
    }
    
    .app-stores {
        justify-content: center;
    }
    
    .about-image {
        order: -1;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-description { font-size: 1rem; }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .legal-section h2 {
        font-size: 1.6rem;
    }
    
    .ad-platforms {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .hero-title { font-size: 2rem; }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
    }
    
    .section {
        padding: var(--space-xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-xl);
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Print Styles */
@media print {
    .navbar,
    .hero-scroll,
    .btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    .section {
        page-break-inside: avoid;
    }
}
