/* ===================================
   CSS Variables & Base Styles
   =================================== */
:root {
    /* Colors from CrickSnap theme */
    --color-primary: #005ba9;
    --color-primary-light: #0374d3;
    --color-primary-dark: #004781;
    --color-accent: #a5c8ff;

    /* Dark Theme Colors */
    --color-bg-dark: #0a0e14;
    --color-bg-darker: #050810;
    --color-surface: #101419;
    --color-surface-light: #1c2026;

    /* Text Colors */
    --color-text-primary: #e0e2eb;
    --color-text-secondary: #c1c7d4;
    --color-text-muted: #8b93a5;

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

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(165, 200, 255, 0.3);

    /* Typography */
    --font-sans: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Roboto Serif', Georgia, serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-dark);
    color: var(--color-text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===================================
   Video Background - Responsive
   =================================== */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.15;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--color-bg-darker) 0%,
        transparent 50%,
        var(--color-bg-dark) 100%
    );
    z-index: 1;
}

/* ===================================
   Header - Mobile First
   =================================== */
.header {
    position: relative;
    padding: var(--spacing-md) 0;
    z-index: 100;
    background: linear-gradient(to bottom, var(--color-bg-darker), transparent);
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* Playstore Button - Responsive */
.playstore-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--color-surface-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-text-primary);
    transition: all 0.3s ease;
    border: 1px solid rgba(165, 200, 255, 0.1);
}

.playstore-btn:hover {
    background: var(--color-surface);
    border-color: rgba(165, 200, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.playstore-icon {
    width: 24px;
    height: 24px;
    fill: var(--color-accent);
    flex-shrink: 0;
}

.playstore-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.playstore-small {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.playstore-large {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===================================
   Main Content / Hero - Mobile First
   =================================== */
.main-content {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    padding: var(--spacing-lg) 0;
}

/* Hero Text - Mobile First */
.hero-text {
    animation: fadeInUp 0.8s ease-out;
    text-align: center;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    opacity: 0.7;
}

.title-line {
    display: block;
}

.title-line.highlight {
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
}

/* CTA Buttons - Mobile First */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    color: white;
}

.btn-secondary {
    background: var(--color-surface-light);
    color: var(--color-text-primary);
    border: 2px solid rgba(165, 200, 255, 0.2);
}

.btn-secondary:hover {
    background: var(--color-surface);
    border-color: rgba(165, 200, 255, 0.4);
    transform: translateY(-2px);
    color: var(--color-text-primary);
}

.btn-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--spacing-sm);
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.feature-icon {
    width: 20px;
    height: 20px;
    stroke: var(--color-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Hero Image - Mobile First */
.hero-image {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    text-align: center;
}

.image-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: visible;
    display: inline-block;
    max-width: 100%;
}

.image-glow {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(165, 200, 255, 0.15), transparent 70%);
    filter: blur(40px);
    z-index: -1;
    animation: pulse 4s ease-in-out infinite;
}

.app-preview {
    width: 100%;
    max-width: 400px;
    max-height: 750px;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(165, 200, 255, 0.1);
    object-fit: contain;
}

/* ===================================
   Features Section - Mobile First
   =================================== */
.features-section {
    position: relative;
    padding: var(--spacing-xl) 0;
    background: linear-gradient(to bottom, transparent, var(--color-bg-darker));
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card {
    padding: var(--spacing-lg);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(165, 200, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(165, 200, 255, 0.3);
    box-shadow: var(--shadow-lg);
}

.feature-card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.feature-card-description {
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===================================
   Footer - Mobile First
   =================================== */
.footer {
    position: relative;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    background: var(--color-bg-darker);
    border-top: 1px solid rgba(165, 200, 255, 0.1);
}

.footer-tagline {
    color: var(--color-text-muted);
    margin-top: var(--spacing-xs);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--color-accent);
}

.footer-bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(165, 200, 255, 0.1);
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* ===================================
   Blog Nav Link
   =================================== */
.blog-nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

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

/* ===================================
   Blog Index Page
   =================================== */
.blog-index {
    position: relative;
    padding: var(--spacing-lg) 0 var(--spacing-2xl);
    min-height: 60vh;
}

.blog-index-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
}

.blog-index-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xl);
}

.blog-card {
    display: block;
    text-decoration: none;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(165, 200, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(165, 200, 255, 0.3);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-surface-light);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: var(--spacing-md);
}

.blog-card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
}

.blog-card-description {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .blog-index {
        padding: var(--spacing-xl) 0 var(--spacing-2xl);
    }

    .blog-index-title {
        font-size: 3rem;
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.15;
    }
    50% {
        opacity: 0.3;
    }
}

/* ===================================
   TABLET BREAKPOINT (≥576px - Small)
   =================================== */
@media (min-width: 576px) {
    .logo-text {
        font-size: 1.75rem;
    }

    .playstore-icon {
        width: 26px;
        height: 26px;
    }

    .playstore-small {
        font-size: 0.7rem;
    }

    .playstore-large {
        font-size: 0.95rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .btn {
        font-size: 1.05rem;
        padding: 1rem 1.75rem;
    }

    .btn-icon {
        width: 20px;
        height: 20px;
    }

    .cta-buttons {
        flex-direction: row;
    }

    .btn {
        width: auto;
    }

    .feature-item {
        font-size: 1rem;
    }

    .feature-icon {
        width: 22px;
        height: 22px;
    }

    .app-preview {
        max-width: 450px;
    }

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

    .feature-card-icon {
        font-size: 2.75rem;
    }

    .feature-card-title {
        font-size: 1.35rem;
    }
}

/* ===================================
   TABLET BREAKPOINT (≥768px - Medium)
   =================================== */
@media (min-width: 768px) {
    .header {
        padding: var(--spacing-lg) 0;
    }

    .logo-image {
        width: 48px;
        height: 48px;
    }

    .logo-text {
        font-size: 2rem;
    }

    .playstore-btn {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .playstore-icon {
        width: 28px;
        height: 28px;
    }

    .playstore-small {
        font-size: 0.7rem;
    }

    .playstore-large {
        font-size: 1rem;
    }

    .main-content {
        padding: var(--spacing-xl) 0;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 3rem;
        margin-bottom: var(--spacing-xl);
    }

    .cta-buttons {
        margin-bottom: var(--spacing-xl);
    }

    .features-list {
        gap: var(--spacing-md);
    }

    .app-preview {
        max-width: 500px;
    }

    .features-section {
        padding: var(--spacing-2xl) 0;
    }

    .section-title {
        font-size: 2.75rem;
        margin-bottom: var(--spacing-xl);
    }

    .feature-card {
        padding: var(--spacing-xl);
    }

    .feature-card-icon {
        font-size: 3rem;
        margin-bottom: var(--spacing-md);
    }

    .feature-card-title {
        font-size: 1.5rem;
    }

    .feature-card-description {
        font-size: 1rem;
    }

    .footer {
        padding: var(--spacing-2xl) 0 var(--spacing-lg);
    }

    .footer-bottom {
        padding-top: var(--spacing-lg);
    }
}

/* ===================================
   DESKTOP BREAKPOINT (≥992px - Large)
   =================================== */
@media (min-width: 992px) {
    .main-content {
        min-height: calc(100vh - 120px);
        padding: var(--spacing-2xl) 0;
    }

    .hero-text {
        animation: fadeInLeft 1s ease-out;
        text-align: left;
    }

    .hero-image {
        animation: fadeInRight 1s ease-out;
    }

    .cta-buttons {
        justify-content: flex-start;
    }

    .feature-item {
        justify-content: flex-start;
    }

    .hero-title {
        font-size: 3.5rem;
    }

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

    .btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .app-preview {
        max-width: 550px;
    }

    .image-glow {
        top: -20%;
        left: -20%;
        width: 140%;
        height: 140%;
        filter: blur(60px);
    }

    .section-title {
        font-size: 3rem;
        margin-bottom: var(--spacing-2xl);
    }

    .feature-card:hover {
        transform: translateY(-12px);
    }
}

/* ===================================
   DESKTOP BREAKPOINT (≥1200px - XL)
   =================================== */
@media (min-width: 1200px) {
    .logo-text {
        font-size: 2rem;
    }

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

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

    .app-preview {
        max-width: 600px;
    }
}

/* ===================================
   LARGE DESKTOP (≥1400px - XXL)
   =================================== */
@media (min-width: 1400px) {
    .hero-title {
        font-size: 4.5rem;
    }

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

    .app-preview {
        max-width: 650px;
    }

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

/* ===================================
   Reduced Motion Support
   =================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   Touch Device Optimizations
   =================================== */
@media (hover: none) and (pointer: coarse) {
    .playstore-btn:hover,
    .btn:hover,
    .feature-card:hover,
    .footer-link:hover {
        transform: none;
    }

    .playstore-btn:active,
    .btn:active {
        transform: scale(0.98);
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .video-background,
    .header,
    .footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
