/* ==========================================================================
   HOMEPAGE.CSS - DRMHub Theme
   Based on modern glassmorphism and custom gradient palette
   ========================================================================== */

* {
    box-sizing: border-box;
    font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    background: linear-gradient(
        135deg,
        #6366f1,
        #3b82f6,
        #06b6d4
    );
    background-attachment: fixed;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* ==========================================================================
   ENTRY ANIMATIONS (INTEGRATED)
   ========================================================================== */
@keyframes fadeIn { 
    from {
        opacity: 0; 
        transform: translateY(25px);
    } 
    to {
        opacity: 1; 
        transform: translateY(0);
    } 
}

/* ==========================================================================
   NAVIGATION BAR (GLASSMORPHISM)
   ========================================================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    
    /* Immediate animation for the navigation bar */
    animation: fadeIn 0.8s ease;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.logo .hub {
    color: #06b6d4;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    color: white;
    padding: 10px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding: 200px 8% 80px 8%;
    text-align: center;
    max-width: 950px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 24px;
    text-shadow: 0 4px 14px rgba(0,0,0,0.25);
    
    /* The main title starts immediately after the navbar */
    animation: fadeIn 0.8s ease 0.15s backwards;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    
    /* The hero text follows right after */
    animation: fadeIn 0.8s ease 0.3s backwards;
}

/* ==========================================================================
   SERVICES SECTION (CARDS)
   ========================================================================== */
.services {
    padding: 40px 8%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 48px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
    
    /* Service section title */
    animation: fadeIn 0.8s ease 0.45s backwards;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.card {
    background: rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 40px 32px;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transition: transform 0.2s, background 0.2s;
    
    /* Base animation for all cards */
    animation: fadeIn 0.8s ease backwards;
}

/* Sequential entry from left to right of individual cards */
.card:nth-child(1) { animation-delay: 0.6s; }
.card:nth-child(2) { animation-delay: 0.72s; }
.card:nth-child(3) { animation-delay: 0.84s; }

.card:hover {
    transform: translateY(-4px);
    background: rgba(15, 23, 42, 0.35);
}

.card-icon {
    color: #06b6d4;
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.card p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.98rem;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ==========================================================================
   DRM COMPATIBILITY SECTION
   ========================================================================== */
.drm-compatibility {
    width: 100%;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 8%;
    text-align: center;
    margin-top: 40px;
    
    /* Entry of the entire DRM section */
    animation: fadeIn 0.8s ease 0.96s backwards;
}

.drm-compatibility p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.drm-badges {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.drm-badge {
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 18px 36px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
    
    /* Base animation for individual badges */
    animation: fadeIn 0.8s ease backwards;
}

/* Consecutive entry of the two badges */
.drm-badge.widevine { 
    border-bottom: 3px solid #eab308; 
    animation-delay: 1.1s;
}

.drm-badge.playready { 
    border-bottom: 3px solid #00a4ef; 
    animation-delay: 1.22s;
}

.drm-badge.widevine:hover { 
    border-bottom-color: #f59e0b;
    box-shadow: 0 15px 30px rgba(234, 179, 8, 0.15);
}

.drm-badge.playready:hover { 
    border-bottom-color: #0078d4;
    box-shadow: 0 15px 30px rgba(0, 164, 239, 0.15);
}

.badge-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.wv-dot { 
    background-color: #eab308; 
    box-shadow: 0 0 10px #eab308; 
}

.pr-dot { 
    background-color: #00a4ef; 
    box-shadow: 0 0 10px #00a4ef; 
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    text-align: center;
    padding: 40px 8%;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    width: 100%;
    margin-top: 40px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    
    /* Last element to appear at the bottom of the page */
    animation: fadeIn 0.8s ease 1.35s backwards;
}