/* ============================================
   AL TAHRIR TV - PREMIUM SATELLITE CHANNEL
   ============================================ */

:root {
    --primary: #0a1e5e;
    --primary-light: #1a3a8f;
    --accent: #ffd700;
    --accent-alt: #f5c518;
    --white: #ffffff;
    --dark: #050d2e;
    --glass: rgba(10, 30, 94, 0.25);
    --glass-border: rgba(255, 255, 255, 0.12);
    --gradient-main: linear-gradient(135deg, #0a1e5e 0%, #1a3a8f 50%, #0d2b7a 100%);
    --gradient-accent: linear-gradient(135deg, #ffd700 0%, #f5c518 100%);
    --gradient-hero: linear-gradient(180deg, #050d2e 0%, #0a1e5e 40%, #1a3a8f 100%);
    --shadow-3d: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(26, 58, 143, 0.3);
    --shadow-card: 0 8px 32px rgba(0,0,0,0.3);
    --font-ar: 'Cairo', 'Tajawal', sans-serif;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

body {
    font-family: var(--font-ar);
    background: var(--dark);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
}

#particles {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 15px 0;
    background: rgba(5, 13, 46, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}
.navbar.scrolled {
    padding: 8px 0;
    background: rgba(5, 13, 46, 0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo-img { height: 50px; transition: var(--transition); }
.navbar.scrolled .nav-logo-img { height: 38px; }
.nav-links {
    display: flex; list-style: none; gap: 8px;
}
.nav-links a {
    color: rgba(255,255,255,0.8); text-decoration: none;
    padding: 8px 18px; border-radius: 25px; font-weight: 600; font-size: 0.95rem;
    transition: var(--transition); position: relative;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--accent); background: rgba(255, 215, 0, 0.1);
}
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 5px;
}
.nav-toggle span {
    width: 28px; height: 3px; background: var(--white);
    border-radius: 3px; transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    background: var(--gradient-hero);
    perspective: 1200px;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(26, 58, 143, 0.4) 0%, transparent 70%);
}
.hero::after {
    content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 150px;
    background: linear-gradient(to top, var(--dark), transparent);
    z-index: 2;
}
.hero-3d-container {
    position: relative; z-index: 3;
    transform-style: preserve-3d;
}
.hero-content {
    text-align: center; padding: 0 20px;
    animation: heroFadeIn 1.5s ease forwards;
}
.logo-3d-wrapper {
    perspective: 800px; display: inline-block; margin-bottom: 30px;
}
.hero-logo {
    width: 320px; max-width: 80vw;
    filter: drop-shadow(0 10px 40px rgba(255, 215, 0, 0.3));
    animation: float3D 6s ease-in-out infinite;
    transform-style: preserve-3d;
}
.hero-title { margin-bottom: 20px; }
.title-line {
    display: block; font-size: 1.5rem; font-weight: 300;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase; margin-bottom: 5px;
}
.title-main {
    display: block; font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 900;
    background: linear-gradient(135deg, var(--white) 0%, var(--accent) 50%, var(--white) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    text-shadow: none;
}
.title-sub {
    display: block; font-size: 1.8rem; font-weight: 600;
    color: var(--accent);
}
.hero-tagline {
    font-size: 1.3rem; color: rgba(255,255,255,0.7);
    margin-bottom: 40px; font-weight: 300;
}
.hero-cta { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 35px; border-radius: 50px; font-family: var(--font-ar);
    font-size: 1.05rem; font-weight: 700; text-decoration: none;
    transition: var(--transition); cursor: pointer; border: none;
    position: relative; overflow: hidden;
}
.btn-primary {
    background: var(--gradient-accent); color: var(--primary);
    box-shadow: 0 4px 25px rgba(255, 215, 0, 0.4);
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 35px rgba(255, 215, 0, 0.6);
}
.btn-outline {
    background: transparent; color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
    border-color: var(--accent); color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 25px rgba(255, 215, 0, 0.2);
}
.pulse-glow::before {
    content: ''; position: absolute; inset: -4px;
    border-radius: 50px;
    background: var(--gradient-accent);
    z-index: -1; opacity: 0;
    animation: pulseGlow 2s ease-in-out infinite;
}

/* ===== SCROLL INDICATOR ===== */
.hero-scroll-indicator {
    position: absolute; bottom: 40px; left: 50%;
    transform: translateX(-50%); z-index: 5;
}
.scroll-arrow {
    width: 30px; height: 50px;
    border: 2px solid rgba(255,255,255,0.3); border-radius: 25px;
    position: relative;
}
.scroll-arrow::before {
    content: ''; position: absolute;
    top: 8px; left: 50%; transform: translateX(-50%);
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    animation: scrollBounce 2s ease-in-out infinite;
}

/* ===== NEWS TICKER ===== */
.news-ticker {
    position: relative; z-index: 10;
    background: linear-gradient(90deg, #c0392b 0%, #e74c3c 50%, #c0392b 100%);
    display: flex; overflow: hidden; height: 45px;
}
.ticker-label {
    background: var(--dark); color: var(--accent);
    padding: 0 25px; display: flex; align-items: center;
    font-weight: 900; font-size: 0.95rem; white-space: nowrap;
    z-index: 2; gap: 8px;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 100%, 0 100%);
    padding-left: 20px;
}
.ticker-content {
    flex: 1; display: flex; align-items: center; overflow: hidden;
}
.ticker-text {
    white-space: nowrap; font-weight: 600; font-size: 0.95rem;
    animation: tickerScroll 25s linear infinite;
    padding-right: 100%;
}

/* ===== SECTIONS ===== */
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
    display: inline-block; padding: 6px 24px;
    background: rgba(255, 215, 0, 0.15); color: var(--accent);
    border-radius: 50px; font-size: 0.9rem; font-weight: 700;
    border: 1px solid rgba(255, 215, 0, 0.3);
    margin-bottom: 15px;
}
.section-title {
    font-size: clamp(2rem, 5vw, 3rem); font-weight: 900;
    margin-bottom: 15px;
}
.section-divider {
    width: 80px; height: 4px; margin: 0 auto;
    background: var(--gradient-accent); border-radius: 2px;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 100px 0; position: relative; z-index: 5;
    background: linear-gradient(180deg, var(--dark) 0%, #0a1540 100%);
}
.about-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.about-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px; padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    transform-style: preserve-3d;
}
.about-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-3d);
    border-color: rgba(255, 215, 0, 0.3);
}
.card-icon {
    width: 80px; height: 80px; margin: 0 auto 20px;
    background: var(--gradient-accent);
    border-radius: 20px; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--primary);
    transform: translateZ(30px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}
.about-card h3 {
    font-size: 1.4rem; margin-bottom: 12px; color: var(--white);
    transform: translateZ(20px);
}
.about-card p {
    color: rgba(255,255,255,0.7); font-size: 1rem; line-height: 1.8;
    transform: translateZ(10px);
}

/* ===== PROGRAMS SECTION ===== */
.programs-section {
    padding: 100px 0; position: relative; z-index: 5;
    background: linear-gradient(180deg, #0a1540 0%, var(--primary) 100%);
}
.programs-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}
.program-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px; padding: 35px 25px;
    text-align: center; position: relative; overflow: hidden;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    transform-style: preserve-3d;
}
.program-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-3d);
    border-color: rgba(255, 215, 0, 0.4);
}
.program-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), transparent);
    opacity: 0; transition: var(--transition);
}
.program-card:hover .program-overlay { opacity: 1; }
.program-icon {
    width: 70px; height: 70px; margin: 0 auto 20px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--accent);
    transition: var(--transition);
}
.program-card:hover .program-icon {
    background: var(--gradient-accent); color: var(--primary);
    transform: scale(1.1) rotateY(180deg);
}
.program-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.program-card p { color: rgba(255,255,255,0.65); font-size: 0.95rem; margin-bottom: 15px; }
.program-time {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--accent); font-size: 0.85rem; font-weight: 600;
}

/* ===== LIVE SECTION ===== */
.live-section {
    padding: 100px 0; position: relative; z-index: 5;
    background: linear-gradient(180deg, var(--primary) 0%, #0a1540 100%);
}
.live-tag {
    background: rgba(231, 76, 60, 0.2) !important;
    color: #e74c3c !important;
    border-color: rgba(231, 76, 60, 0.4) !important;
    display: inline-flex !important; align-items: center; gap: 8px;
}
.live-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #e74c3c; display: inline-block;
    animation: livePulse 1.5s ease-in-out infinite;
}
.live-player-wrapper {
    border-radius: 24px; overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-3d);
}
.live-player {
    aspect-ratio: 16/9; max-height: 500px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
}
.player-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 20px;
}
.player-logo { width: 200px; opacity: 0.5; }
.live-badge {
    background: #e74c3c; color: white; padding: 6px 20px;
    border-radius: 50px; font-weight: 700; font-size: 0.9rem;
    display: flex; align-items: center; gap: 8px;
    animation: liveBadgePulse 2s ease-in-out infinite;
}
.player-placeholder p { color: rgba(255,255,255,0.5); font-size: 1.1rem; }

/* ===== SOCIAL SECTION ===== */
.social-section {
    padding: 100px 0; position: relative; z-index: 5;
    background: linear-gradient(180deg, #0a1540 0%, var(--dark) 100%);
}
.social-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}
.social-card {
    display: flex; flex-direction: column; align-items: center;
    padding: 35px 20px; border-radius: 24px;
    text-decoration: none; color: var(--white);
    background: var(--glass); border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    transform-style: preserve-3d;
}
.social-card:hover {
    transform: translateY(-12px) rotateY(5deg) scale(1.05);
    box-shadow: var(--shadow-3d);
}
.social-icon-wrap {
    width: 70px; height: 70px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; margin-bottom: 15px;
    transition: var(--transition);
    transform: translateZ(25px);
}
.social-name { font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.social-handle { color: rgba(255,255,255,0.5); font-size: 0.85rem; }

/* Social card colors */
.facebook:hover { border-color: #1877f2; }
.facebook .social-icon-wrap { background: #1877f2; }
.youtube:hover { border-color: #ff0000; }
.youtube .social-icon-wrap { background: #ff0000; }
.twitter:hover { border-color: #1da1f2; }
.twitter .social-icon-wrap { background: #1a1a2e; border: 2px solid #fff; }
.instagram:hover { border-color: #e4405f; }
.instagram .social-icon-wrap { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.telegram:hover { border-color: #0088cc; }
.telegram .social-icon-wrap { background: #0088cc; }
.tiktok:hover { border-color: #ff0050; }
.tiktok .social-icon-wrap { background: #010101; border: 2px solid #ff0050; }

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 100px 0; position: relative; z-index: 5;
    background: linear-gradient(180deg, var(--dark) 0%, #0a1540 100%);
}
.contact-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.contact-card {
    background: var(--glass); border: 1px solid var(--glass-border);
    border-radius: 24px; padding: 40px 30px; text-align: center;
    backdrop-filter: blur(10px); transition: var(--transition);
}
.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-3d);
    border-color: rgba(255, 215, 0, 0.3);
}
.contact-card i {
    font-size: 2.5rem; color: var(--accent); margin-bottom: 15px;
}
.contact-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.contact-card p { color: rgba(255,255,255,0.7); }

/* ===== FOOTER ===== */
.footer {
    position: relative; z-index: 5;
    background: var(--dark); padding: 50px 0 20px;
    border-top: 1px solid var(--glass-border);
}
.footer-content {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 30px; margin-bottom: 30px;
}
.footer-brand { display: flex; align-items: center; gap: 15px; }
.footer-logo { height: 50px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--glass); border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--white); text-decoration: none; font-size: 1.1rem;
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--gradient-accent); color: var(--primary);
    transform: translateY(-3px) scale(1.1);
}
.footer-bottom {
    text-align: center; padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.85rem; }

/* ===== ANIMATIONS ===== */
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float3D {
    0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
    25% { transform: translateY(-15px) rotateX(3deg) rotateY(5deg); }
    50% { transform: translateY(-8px) rotateX(-2deg) rotateY(-3deg); }
    75% { transform: translateY(-20px) rotateX(4deg) rotateY(-5deg); }
}
@keyframes shimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}
@keyframes pulseGlow {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.05); }
}
@keyframes scrollBounce {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 28px; opacity: 0.3; }
}
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}
@keyframes liveBadgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
    50% { box-shadow: 0 0 20px 8px rgba(231, 76, 60, 0); }
}

/* Scroll reveal */
.about-card, .program-card, .social-card, .contact-card {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.about-card.visible, .program-card.visible, .social-card.visible, .contact-card.visible {
    opacity: 1; transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.active {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(5, 13, 46, 0.98);
        padding: 20px; gap: 5px;
        border-bottom: 1px solid var(--glass-border);
    }
    .nav-toggle { display: flex; }
    .hero-logo { width: 220px; }
    .title-sub { font-size: 1.3rem; }
    .hero-tagline { font-size: 1rem; }
    .social-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .social-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .hero-cta { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; max-width: 280px; }
}
