/* ==========================================================================
   HOMEPAGE VIDEO & PREMIUM GRID STYLES
   ========================================================================== */

/* ==== 1. Intro Video Section (16:9) ==== */
.video-snap-section {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: center;
    padding: 2rem;
    background: #06080f; /* Match theme */
}

.video-glow-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px; /* Limit max width for ultra-wide screens */
    margin: 0 auto;
    aspect-ratio: 16 / 9; /* FORCES 16:9 ASPECT RATIO */
    border-radius: 16px;
    padding: 3px; /* Glow border thickness */
    background: linear-gradient(90deg, #00e5ff, #0072ff, #a78bfa, #ff00c8, #00e5ff);
    background-size: 400% 400%;
    box-shadow: 0 10px 40px rgba(0, 114, 255, 0.3), 0 0 80px rgba(167, 139, 250, 0.15);
    animation: animeBorder 6s linear infinite, pulsatingGlow 3s ease-in-out infinite alternate;
    transition: transform 0.4s ease;
}

@keyframes animeBorder {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes pulsatingGlow {
    0% { 
        box-shadow: 0 0 20px rgba(0, 229, 255, 0.4), 0 0 40px rgba(167, 139, 250, 0.2);
        filter: hue-rotate(0deg);
    }
    100% { 
        box-shadow: 0 0 50px rgba(0, 229, 255, 0.7), 0 0 100px rgba(167, 139, 250, 0.4);
        filter: hue-rotate(360deg);
    }
}

.video-glow-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 114, 255, 0.5), 0 0 100px rgba(167, 139, 250, 0.25);
}

.video-inner {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.video-inner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    outline: none;
    border: none;
}


/* ==== 2. Premium Info Grid Section ==== */
.premium-grid-section {
    padding: 6rem 1rem;
    background: #06080f;
    min-height: 100vh;
    display: flex;
    align-items: center;
    scroll-snap-align: start;
}

.premium-grid-section .container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Premium Cards Base */
.p-card {
    background: rgba(12, 16, 28, 0.85); /* Darker solid backplate */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Default subtle box-shadow */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.p-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.p-card:hover, .p-card.is-active {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
}

.p-card:hover::before, .p-card.is-active::before {
    opacity: 1;
}

/* Card Content Hierarchy to sit above background effects */
.p-card-icon, .p-card-title, .p-card-content {
    position: relative;
    z-index: 1;
}

.p-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0px 8px 12px rgba(96, 165, 250, 0.4));
}

.p-card-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.p-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.p-card-short {
    font-size: 1.05rem;
    color: #e2e8f0;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.p-card-detailed {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.p-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.p-card-btn:hover {
    background: #fff;
    color: #000;
    transform: translateX(5px);
}

/* ==========================================================================
   COLORFUL NEON GLOW EFFECTS BY CARD INDEX
   ========================================================================== */

/* 1. Kurumsal Web Çözümleri (Blue/Purple) */
.p-c-1 { box-shadow: 0 10px 40px rgba(96, 165, 250, 0.15), inset 0 0 20px rgba(96, 165, 250, 0.05); border-top: 1px solid rgba(96, 165, 250, 0.3); }
.p-c-1:hover, .p-c-1.is-active { box-shadow: 0 15px 50px rgba(96, 165, 250, 0.4), inset 0 0 30px rgba(96, 165, 250, 0.15); border-color: #60a5fa; }
.p-c-1 .p-card-icon { background: linear-gradient(135deg, #60a5fa, #a78bfa); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.6));}

/* 2. Meta Reklam (Cyan/Blue) */
.p-c-8 { box-shadow: 0 10px 40px rgba(0, 198, 255, 0.15), inset 0 0 20px rgba(0, 198, 255, 0.05); border-top: 1px solid rgba(0, 198, 255, 0.3); }
.p-c-8:hover, .p-c-8.is-active { box-shadow: 0 15px 50px rgba(0, 198, 255, 0.4), inset 0 0 30px rgba(0, 198, 255, 0.15); border-color: #00c6ff; }
.p-c-8 .p-card-icon { background: linear-gradient(135deg, #00c6ff, #0072ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 10px rgba(0, 198, 255, 0.6));}

/* 3. SEO (Pink/Red) */
.p-c-2 { box-shadow: 0 10px 40px rgba(240, 147, 251, 0.15), inset 0 0 20px rgba(240, 147, 251, 0.05); border-top: 1px solid rgba(240, 147, 251, 0.3); }
.p-c-2:hover, .p-c-2.is-active { box-shadow: 0 15px 50px rgba(240, 147, 251, 0.4), inset 0 0 30px rgba(240, 147, 251, 0.15); border-color: #f093fb; }
.p-c-2 .p-card-icon { background: linear-gradient(135deg, #f093fb, #f5576c); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 10px rgba(240, 147, 251, 0.6));}

/* 4. Sosyal Medya (Neon Blue) */
.p-c-4 { box-shadow: 0 10px 40px rgba(79, 172, 254, 0.15), inset 0 0 20px rgba(79, 172, 254, 0.05); border-top: 1px solid rgba(79, 172, 254, 0.3); }
.p-c-4:hover, .p-c-4.is-active { box-shadow: 0 15px 50px rgba(79, 172, 254, 0.4), inset 0 0 30px rgba(79, 172, 254, 0.15); border-color: #4facfe; }
.p-c-4 .p-card-icon { background: linear-gradient(135deg, #4facfe, #00f2fe); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 10px rgba(79, 172, 254, 0.6));}

/* 5. Google Ads (Green/Mint) */
.p-c-3 { box-shadow: 0 10px 40px rgba(67, 233, 123, 0.15), inset 0 0 20px rgba(67, 233, 123, 0.05); border-top: 1px solid rgba(67, 233, 123, 0.3); }
.p-c-3:hover, .p-c-3.is-active { box-shadow: 0 15px 50px rgba(67, 233, 123, 0.4), inset 0 0 30px rgba(67, 233, 123, 0.15); border-color: #43e97b; }
.p-c-3 .p-card-icon { background: linear-gradient(135deg, #43e97b, #38f9d7); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 10px rgba(67, 233, 123, 0.6));}

/* 6. AI Reklam Filmi (Yellow/Pink) */
.p-c-7 { box-shadow: 0 10px 40px rgba(254, 225, 64, 0.15), inset 0 0 20px rgba(250, 112, 154, 0.05); border-top: 1px solid rgba(254, 225, 64, 0.3); }
.p-c-7:hover, .p-c-7.is-active { box-shadow: 0 15px 50px rgba(254, 225, 64, 0.4), inset 0 0 30px rgba(250, 112, 154, 0.15); border-color: #fee140; }
.p-c-7 .p-card-icon { background: linear-gradient(135deg, #fa709a, #fee140); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 10px rgba(254, 225, 64, 0.6));}

/* 7. n8n Otomasyonu (Orange/Red) */
.p-c-6 { box-shadow: 0 10px 40px rgba(255, 117, 140, 0.15), inset 0 0 20px rgba(255, 126, 179, 0.05); border-top: 1px solid rgba(255, 117, 140, 0.3); }
.p-c-6:hover, .p-c-6.is-active { box-shadow: 0 15px 50px rgba(255, 117, 140, 0.4), inset 0 0 30px rgba(255, 126, 179, 0.15); border-color: #ff758c; }
.p-c-6 .p-card-icon { background: linear-gradient(135deg, #ff758c, #ff7eb3); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 10px rgba(255, 117, 140, 0.6));}

/* Simple Reveal on Scroll placeholder style */
.reveal-on-scroll {
    opacity: 1; /* Pre-filled in case IntersectionObserver is gone */
    transition: all 0.6s ease;
}

/* Responsive Grid adjustment */
@media (max-width: 768px) {
    .premium-grid {
        grid-template-columns: 1fr;
    }
}
