/* ===== VIDGRIP - PROFESSIONAL VIDEO TOOLS ===== */
/* Modern, Animated, Stunning UI */

/* === IMPORTS & FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* === ROOT VARIABLES === */
:root {
    /* Colors */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f5576c;
    --success-color: #00f2fe;
    
    /* Gradients for tools */
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-5: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-6: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    --gradient-7: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --gradient-8: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.25);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* === LEGAL PAGES === */
.legal-page { padding: 60px 0; }
.legal-page .container { max-width: 900px; margin: 0 auto; }
.legal-page h1 { font-size: 32px; margin-bottom: 20px; }
.legal-content h2, .legal-content h3 { margin-top: 24px; margin-bottom: 10px; }
.legal-content p { line-height: 1.8; margin: 10px 0; }
.legal-content ul { padding-left: 18px; }
.legal-content li { margin: 6px 0; }

/* === CONTACT FORM === */
.contact-form{ max-width: 760px; margin: 16px 0 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea{ width: 100%; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 12px; font-family: inherit; }
.contact-form input:focus, .contact-form textarea:focus{ outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(102,126,234,0.15); }
.contact-form input#subject{ grid-column: 1 / span 2; }
.contact-form textarea{ grid-column: 1 / span 2; min-height: 160px; }
.contact-form .btn-cta{ grid-column: 1 / span 2; justify-self: start; }
.contact-form #statusMsg{ grid-column: 1 / span 2; color: #10b981; margin-top: 8px; }

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f0f1f3;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --text-tertiary: #a0aec0;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --bg-tertiary: #4a5568;
    --text-primary: #f7fafc;
    --text-secondary: #e2e8f0;
    --text-tertiary: #cbd5e0;
    --border-color: #4a5568;
    --card-bg: #2d3748;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* === PARTICLE BACKGROUND === */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

/* === HEADER === */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: var(--shadow-md);
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.logo-tagline {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.theme-toggle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    overflow: hidden; /* prevent square artifacts on hover/animation */
    background-clip: padding-box;
    -webkit-mask-image: -webkit-radial-gradient(white, black); /* force circular clip in WebKit */
    mask-image: radial-gradient(circle, #000 99%, transparent 100%);
    clip-path: circle(50% at 50% 50%);
    position: relative;
}

/* Slightly zoomed gradient layer to tuck edges inside the circle */
.theme-toggle::before{
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--primary-gradient);
    transform: scale(1.06);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}
.theme-toggle:focus { outline: none; box-shadow: 0 0 0 3px rgba(102,126,234,0.45); }


.theme-toggle:hover { color: white; border-color: transparent; }
.theme-toggle:hover::before{ opacity: 1; }

.theme-toggle i { position: relative; z-index: 1; transition: transform 0.3s ease; will-change: transform; }
.theme-toggle:hover i { transform: rotate(180deg) scale(1.1); }

/* === HERO SECTION === */
.hero {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0.05;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.8s ease;
}

.hero-badge i {
    color: #fbbf24;
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

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

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.btn-hero {
    padding: 16px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
}

.btn-hero.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-hero.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-hero.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-hero.btn-secondary:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s backwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

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

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-gradient);
    top: -200px;
    right: -100px;
    animation: float 20s infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-gradient);
    bottom: -150px;
    left: -80px;
    animation: float 15s infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--success-gradient);
    top: 50%;
    left: 50%;
    animation: float 25s infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(90deg); }
    50% { transform: translate(-20px, 20px) rotate(180deg); }
    75% { transform: translate(40px, 10px) rotate(270deg); }
}

/* === SECTION HEADERS === */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-secondary);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* === TOOLS SECTION === */
.tools-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.tool-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.tool-card:hover::before {
    opacity: 0.05;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.tool-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--primary-gradient);
    color: white;
    z-index: 2;
}

.tool-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: white;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
}

.gradient-1 { background: var(--gradient-1); }
.gradient-2 { background: var(--gradient-2); }
.gradient-3 { background: var(--gradient-3); }
.gradient-4 { background: var(--gradient-4); }
.gradient-5 { background: var(--gradient-5); }
.gradient-6 { background: var(--gradient-6); }
.gradient-7 { background: var(--gradient-7); }
.gradient-8 { background: var(--gradient-8); }

.tool-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.tool-features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.tool-features span {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.tool-features i {
    color: var(--success-color);
}

.tool-btn {
    width: 100%;
    padding: 14px 25px;
    border-radius: 12px;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.tool-btn:hover {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.02);
}

.tool-btn i {
    transition: transform 0.3s ease;
}

.tool-btn:hover i {
    transform: translateX(5px);
}

/* === STATS SECTION === */
.stats-section {
    padding: 80px 0;
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

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

.stat-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.stat-value {
    font-size: 48px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

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

/* To be continued in next message... */

/* === FEATURES SECTION === */
.features {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    padding: 40px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
}

/* === CTA SECTION === */
.cta-section {
    padding: 100px 0;
    background: var(--primary-gradient);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content h2 {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 35px;
}

.btn-cta {
    padding: 18px 40px;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-cta:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* === FOOTER === */
.footer {
    background: var(--bg-secondary);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo i {
    font-size: 35px;
    color: var(--primary-color);
}

.footer-logo h3 {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}

.footer-tagline {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.footer-desc {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 14px;
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: none;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, filter 0.3s ease;
    overflow: hidden; /* avoid inner square on gradient */
    background-clip: padding-box;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(circle, #000 99%, transparent 100%);
    clip-path: circle(50% at 50% 50%);
    position: relative;
}

/* Always-on zoomed gradient layer for socials */
.social-link::before{
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--primary-gradient);
    transform: scale(1.06);
    transition: filter 0.3s ease;
    pointer-events: none;
    z-index: 0;
}
.social-link i { position: relative; z-index: 1; color: #fff; }

.social-link:focus { outline: none; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.45); }

.social-link:hover { transform: translateY(-3px) scale(1.05); }
.social-link:hover::before{ filter: brightness(1.05); }

/* Ensure icons never paint a square background inside circular buttons */
.theme-toggle i,
.social-link i {
    background: transparent !important;
    line-height: 1;
}

/* Remove tap highlight artifacts on mobile for round buttons */
.theme-toggle,
.social-link { -webkit-tap-highlight-color: transparent; }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-bottom i {
    color: #f56565;
}

/* === SCROLL TO TOP === */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top.active {
    display: flex;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* === TOOL MODAL === */
.tool-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.tool-modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    border-radius: 25px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: #ff4757;
    color: white;
    border-color: transparent;
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    padding: 50px 40px;
}

.modal-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-title i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 35px;
}

/* Upload Area */
.upload-area {
    border: 3px dashed var(--border-color);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 25px 0;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary-color);
    background: var(--bg-primary);
    transform: scale(1.02);
}

.upload-area i {
    font-size: 60px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.upload-area h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.upload-area p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Video Preview */
.video-preview {
    margin: 25px 0;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
    display: none;
}

.video-preview.active {
    display: block;
}

.video-preview video {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
}

/* Progress Bar */
.progress-container {
    margin: 30px 0;
    display: none;
}

.progress-container.active {
    display: block;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* Controls */
.controls {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.controls label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 500;
}

.controls input,
.controls select {
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.controls input:focus,
.controls select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Spinner */
.spinner {
    border: 4px solid var(--bg-secondary);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 30px auto;
    display: none;
}

.spinner.active {
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .header .container {
        padding: 15px 20px;
    }
    
    .nav {
        gap: 15px;
    }
    
    .nav-link {
        display: none;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
    
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-hero {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-description {
        font-size: 16px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cta-content h2 {
        font-size: 32px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-body {
        padding: 40px 25px;
    }
    
    .modal-title {
        font-size: 26px;
    }
    
    .upload-area {
        padding: 40px 25px;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* === SMOOTH SCROLLING === */
html {
    scroll-padding-top: 80px;
}

/* === SELECTION === */
::selection {
    background: var(--primary-color);
    color: white;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}

/* === DROPDOWN MENU === */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 20px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    min-width: 800px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 15px;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.dropdown-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dropdown-col a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.dropdown-col a:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    transform: translateX(5px);
}

.dropdown-col a i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.dropdown-col a.view-all {
    margin-top: 10px;
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
}

.dropdown-col a.view-all:hover {
    transform: translateX(0) scale(1.05);
}

.dropdown-col a.view-all i {
    color: white;
}

/* Mobile Dropdown */
@media (max-width: 768px) {
    .dropdown {
        display: none;
    }
}

/* === TOOLS PAGE === */
.page-hero {
    padding: 60px 0 40px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 10px;
}

.page-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.tools-categories {
    padding: 80px 0;
}

.category-section {
    margin-bottom: 80px;
}

.category-header {
    margin-bottom: 40px;
}

.category-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-header h2 i {
    color: var(--primary-color);
}

.category-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.category-tool-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.category-tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.ctool-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
}

.category-tool-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.category-tool-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.ctool-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ctool-badge.premium {
    background: var(--primary-gradient);
    color: white;
}

.ctool-badge.popular {
    background: var(--secondary-gradient);
    color: white;
}

.ctool-badge.new {
    background: var(--success-gradient);
    color: white;
}

.nav-link.active {
    color: var(--primary-color);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
}

/* Responsive Tools Page */
@media (max-width: 768px) {
    .page-title {
        font-size: 32px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .category-header h2 {
        font-size: 24px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* === TOOL PAGE === */
.tool-page-hero {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.tool-hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-top: 30px;
    align-items: center;
}

.tool-hero-left {
    display: flex;
    gap: 25px;
}

.tool-hero-icon {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    color: white;
    box-shadow: var(--shadow-lg);
}

.tool-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

.tool-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
}

.tool-features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.feature-item i {
    color: var(--success-color);
}

.stats-mini-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.stat-mini {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.stat-mini-value {
    font-size: 36px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-mini-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.tool-interface {
    padding: 80px 0;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 30px;
}

.tool-workspace {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    padding: 50px;
    box-shadow: var(--shadow-md);
}

.upload-area-large {
    border: 3px dashed var(--border-color);
    border-radius: 20px;
    padding: 80px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area-large:hover {
    border-color: var(--primary-color);
    background: var(--bg-secondary);
}

.upload-icon {
    font-size: 80px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
}

.upload-area-large h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.upload-area-large p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.btn-upload {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-upload:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.video-preview-section {
    margin-top: 30px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.preview-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.btn-clear {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    background: #ff4757;
    color: white;
    border-color: transparent;
}

.video-info-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.info-item {
    text-align: center;
}

.info-item strong {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.info-item span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.tool-controls-section {
    margin-top: 30px;
}

.tool-controls-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
}

.control-group {
    margin-bottom: 30px;
}

.control-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
}

.quality-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.quality-option input[type="radio"] {
    display: none;
}

.quality-option label {
    display: block;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.quality-option input:checked + label {
    border-color: var(--primary-color);
    background: var(--bg-secondary);
}

.quality-badge {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.quality-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.btn-process {
    width: 100%;
    padding: 18px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.btn-process:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 600;
}

.how-it-works {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.step-card {
    text-align: center;
    padding: 30px 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
}

.step-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card p {
    color: var(--text-secondary);
}

.related-tools {
    padding: 80px 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.related-card {
    padding: 30px 20px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.related-card i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.related-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Responsive Tool Pages */
@media (max-width: 768px) {
    .tool-hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .tool-hero-left {
        flex-direction: column;
    }
    
    .tool-title {
        font-size: 28px;
    }
    
    .tool-features-list {
        grid-template-columns: 1fr;
    }
    
    .tool-workspace {
        padding: 30px 20px;
    }
    
    .quality-options {
        grid-template-columns: 1fr;
    }
    
    .video-info-box {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === SLIDER INPUTS === */
.slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--bg-secondary);
    outline: none;
    margin: 15px 0;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-gradient);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-gradient);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.control-group input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
}

/* Video element styling */
#previewVideo {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

/* === SPEED PRESETS === */
.speed-presets {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.preset-btn {
    padding: 12px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preset-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color-light);
}

.preset-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

@media (max-width: 768px) {
    .speed-presets {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* === ROTATE & FLIP CONTROLS === */
.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 20px;
    overflow: hidden;
}

.rotate-controls,
.flip-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.flip-controls {
    grid-template-columns: repeat(2, 1fr);
}

.rotate-btn,
.flip-btn {
    padding: 18px 15px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.rotate-btn i,
.flip-btn i {
    font-size: 24px;
    color: var(--primary-color);
}

.rotate-btn:hover,
.flip-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.rotate-btn:active,
.flip-btn:active {
    transform: translateY(0);
}

.current-transform {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
}

@media (max-width: 768px) {
    .rotate-controls {
        grid-template-columns: 1fr;
    }
    
    .flip-controls {
        grid-template-columns: 1fr;
    }
}

/* === VIDEO INFO DETAILS === */
.video-info-detailed h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.info-section {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.info-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.info-grid {
    display: grid;
    gap: 12px;
}

.info-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.info-value {
    color: var(--text-primary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .info-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

/* Video List Items */
.video-list-item {
    display: grid;
    grid-template-columns: 40px 1fr 100px;
    gap: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.video-number {
    width: 30px;
    height: 30px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.video-name {
    font-weight: 500;
    color: var(--text-primary);
}

.video-size {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: right;
}
