/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
   
   :root {
    /* Colors */
    --bg-color: #0c0c0e;
    --surface-color: rgba(26, 26, 30, 0.4);
    --surface-hover: rgba(40, 40, 45, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #9da3b2;
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* Brand Gradients (Gold-Orange-Red) */
    --brand-gold: #FFD700;
    --brand-orange: #FF8C00;
    --brand-red: #E50914;
    
    --gradient-primary: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-orange) 50%, var(--brand-red) 100%);
    --gradient-hover: linear-gradient(135deg, #FFE033 0%, #FF9E26 50%, #FF2631 100%);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Sizes */
    --container-width: 1200px;
    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    
    /* Shadows */
    --glow-primary: 0 0 20px rgba(255, 140, 0, 0.3);
    --glow-secondary: 0 10px 40px -10px rgba(229, 9, 20, 0.4);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Typography
   ========================================================================== */
   
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ==========================================================================
   Background Animations
   ========================================================================== */
   
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(90px);
    opacity: 0.15;
    animation: float 20s infinite ease-in-out alternate;
    border-radius: 50%;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--brand-red);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: var(--brand-gold);
    animation-delay: -5s;
    animation-direction: alternate-reverse;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: var(--brand-orange);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10%, 10%) scale(1.1); }
    100% { transform: translate(-5%, 15%) scale(0.9); }
}

/* ==========================================================================
   Components: Buttons & Reveal
   ========================================================================== */
   
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    background: var(--gradient-hover);
    box-shadow: var(--glow-secondary);
    transform: translateY(-3px);
}

/* Intersection Observer Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Header
   ========================================================================== */
   
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background: rgba(12, 12, 14, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    height: 46px;
    margin-right: 12px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.slogan {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
   
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: clamp(4rem, 8vw, 8rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
   
.stats {
    padding: 6rem 0;
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.stats-grid-large {
    grid-template-columns: repeat(3, 1fr);
}

.stat-card {
    background: var(--surface-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(229, 9, 20, 0.05));
    opacity: 0;
    transition: var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 140, 0, 0.3);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--brand-gold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    line-height: 1;
}

.massive-number {
    font-size: 4.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================================================
   About / Services Section
   ========================================================================== */
   
.about {
    padding: 8rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 50px 40px;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    background: var(--surface-hover);
    transform: translateY(-10px);
    border-color: rgba(255, 140, 0, 0.3);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.8), var(--glow-primary);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 24px;
    display: inline-block;
}

.service-title {
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: #fff;
}

.service-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

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

.service-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: #e0e0e0;
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--brand-orange);
    font-weight: bold;
}

/* ==========================================================================
   Portfolio Section
   ========================================================================== */
   
.portfolio {
    padding: 6rem 0 10rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns for large cards */
    gap: 30px;
}

.custom-app-card {
    display: flex;
    flex-direction: row; /* Desktop: side by side */
    align-items: center;
    padding: 0;
    overflow: hidden;
    cursor: default;
    background: linear-gradient(135deg, rgba(26,26,30,0.6) 0%, rgba(18,18,20,0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    transition: var(--transition-fast);
}

.custom-app-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 140, 0, 0.4);
    background: linear-gradient(135deg, rgba(40,40,45,0.8) 0%, rgba(26,26,30,0.9) 100%);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5), 0 0 20px rgba(255, 140, 0, 0.2);
}

.app-content-wrap {
    padding: 30px;
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-image-wrap {
    width: 45%;
    height: 380px; /* Reduced for smaller cards */
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    padding: 40px 20px 0;
    border-left: 1px solid rgba(255,255,255,0.05);
    border-bottom: none;
}

.app-screenshot {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    transform: translateY(20px);
    transition: transform var(--transition-slow);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}

.custom-app-card:hover .app-screenshot {
    transform: translateY(10px);
}

.app-content-wrap {
    padding: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.app-content {
    margin-bottom: 30px;
}

.app-title {
    font-size: 1.8rem;
    margin-bottom: 6px;
    color: #fff;
    line-height: 1.1;
}

.app-platform {
    color: var(--brand-orange);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.app-features {
    list-style: none;
    margin-bottom: 20px;
}

.app-features li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    color: #e0e0e0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.app-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-gold);
    font-weight: bold;
}

/* Store Badges */
.app-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    background: #000;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 8px 16px 8px 12px;
    color: #fff;
    text-decoration: none;
    transition: var(--transition-fast);
}

.store-badge:hover {
    background: #1a1a1a;
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

.store-icon {
    font-size: 20px;
    margin-right: 8px;
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-small {
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    line-height: 1;
    margin-bottom: 2px;
}

.store-big {
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-heading);
    line-height: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */
   
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: rgba(12, 12, 14, 0.8);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
   
@media (max-width: 1024px) {
    .stats-grid,
    .stats-grid-large {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .stats-grid,
    .stats-grid-large {
        grid-template-columns: 1fr;
    }
    
    .custom-app-card {
        flex-direction: column;
    }
    
    .app-content-wrap {
        width: 100%;
        padding: 30px;
    }
    
    .app-image-wrap {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.05);
        height: 350px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}
