/* ===== CSS Variables ===== */
:root {
    --color-black: #0a0a0f;
    --color-dark-blue: #1D3557;
    --color-navy: #14213d;
    --color-white: #F1FAEE;
    --color-red: #E63946;
    --color-red-dark: #c1121f;
    --color-gray: #8d99ae;
    --color-gray-light: #adb5bd;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(230, 57, 70, 0.3);

    --container-max: 1200px;
    --section-padding: 100px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--color-black);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul {
    list-style: none;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-gray-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--color-gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.section-intro, .section-text {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    text-align: center;
    color: var(--color-gray-light);
    font-size: 1.1rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-medium);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(230, 57, 70, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-red);
}

.btn-secondary:hover {
    background: var(--color-red);
    transform: translateY(-3px);
}

/* ===== Language Selector ===== */
.language-selector {
    display: flex;
    gap: 8px;
    margin-left: 24px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

/* Hide mobile language selector on desktop */
.nav-menu .language-selector {
    display: none;
}

.lang-btn {
    width: 36px;
    height: 26px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0.6;
    transition: all var(--transition-fast);
    padding: 0;
}

.lang-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lang-btn.active {
    opacity: 1;
    box-shadow: 0 0 0 2px var(--color-red);
}

.flag-icon {
    width: 100%;
    height: 100%;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-medium);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    height: 40px;
    width: auto;
}

.logo-svg {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-gray-light);
    position: relative;
    padding: 8px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-red);
    transition: width var(--transition-medium);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-white);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition-fast);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 15, 0.9) 0%,
        rgba(29, 53, 87, 0.7) 50%,
        rgba(10, 10, 15, 0.85) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.title-main {
    display: block;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-gray-light) 50%, var(--color-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        filter: drop-shadow(0 0 20px rgba(230, 57, 70, 0.3));
    }
    to {
        filter: drop-shadow(0 0 40px rgba(230, 57, 70, 0.6));
    }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--color-gray-light);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--color-gray);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--color-red);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheel 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes wheel {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

/* ===== Services Section ===== */
.services {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--color-black) 0%, var(--color-navy) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin: 3rem 0;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-medium);
}

.service-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-red);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    padding: 16px;
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
    border-radius: 16px;
    color: var(--color-white);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--color-white);
}

.service-card p {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

.services-conclusion {
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: center;
    color: var(--color-gray-light);
    font-size: 1.1rem;
    font-style: italic;
}

/* ===== About Section ===== */
.about {
    padding: var(--section-padding) 0;
    background: var(--color-navy);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.about-image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--color-red);
    border-radius: 16px;
    z-index: -1;
}

.about-content {
    padding-left: 20px;
}

.about-content .section-title {
    text-align: left;
}

.about-content p {
    color: var(--color-gray-light);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-red);
}

.stat-label {
    color: var(--color-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== References & Works Sections ===== */
.references, .works {
    padding: var(--section-padding) 0;
}

.references {
    background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-black) 100%);
}

.works {
    background: var(--color-black);
}

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

.video-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-medium);
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-red);
    box-shadow: var(--shadow-lg);
}

.video-card.featured {
    border-color: var(--color-red);
    box-shadow: var(--shadow-glow);
}

.video-card.featured::before {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: var(--color-red);
    border-radius: 50%;
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    cursor: pointer;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(230, 57, 70, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-medium);
}

.video-thumbnail:hover .play-icon {
    opacity: 1;
}

.play-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--color-white);
    margin-left: 4px;
}

.video-info {
    padding: 16px;
}

.video-info h4 {
    font-size: 0.95rem;
    color: var(--color-white);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-info p {
    font-size: 0.85rem;
    color: var(--color-gray);
}

/* Video Modal */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
}

.video-modal-content iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: var(--color-red);
    border: none;
    border-radius: 50%;
    color: var(--color-white);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.video-modal-close:hover {
    transform: scale(1.1);
    background: var(--color-red-dark);
}

/* ===== Pricing Section ===== */
.pricing {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--color-black) 0%, var(--color-navy) 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 2rem;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px 24px;
    transition: all var(--transition-medium);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(29, 53, 87, 0.3) 100%);
    border-color: var(--color-red);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-red);
    color: var(--color-white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-header h3 {
    font-size: 1.1rem;
    color: var(--color-white);
    margin-bottom: 16px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.price .amount {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-red);
    white-space: nowrap;
}

.price .period {
    color: var(--color-gray);
    font-size: 0.85rem;
    white-space: nowrap;
}

.pricing-desc {
    text-align: center;
    color: var(--color-gray);
    font-size: 0.95rem;
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-gray-light);
    font-size: 0.9rem;
}

.pricing-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-red);
    border-radius: 50%;
    flex-shrink: 0;
}

.pricing-note {
    text-align: center;
    color: var(--color-white);
    font-size: 1.1rem;
    font-weight: 500;
}

/* ===== Contact Section ===== */
.contact {
    padding: var(--section-padding) 0;
    background: var(--color-navy);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid var(--color-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-red);
}

.contact-item h4 {
    font-size: 0.9rem;
    color: var(--color-gray);
    font-weight: 400;
    margin-bottom: 4px;
}

.contact-item a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-white);
}

.contact-item a:hover {
    color: var(--color-red);
}

.contact-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-image img {
    width: 100%;
    height: auto;
}

/* ===== Footer ===== */
.footer {
    padding: 40px 0;
    background: var(--color-black);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo .logo-svg,
.footer-logo .logo-img {
    height: 36px;
}

.footer-text {
    color: var(--color-gray);
    font-size: 0.9rem;
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Mobile Responsive ===== */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-content {
        padding-left: 0;
    }

    .about-content .section-title {
        text-align: center;
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-image {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    /* Mobile Navigation */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-navy);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        transition: right var(--transition-medium);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Language selector mobile - hide from navbar */
    .nav-container > .language-selector {
        display: none;
    }

    /* Language selector inside mobile menu */
    .nav-menu .language-selector {
        display: flex;
        margin-left: 0;
        margin-top: 20px;
        background: rgba(255, 255, 255, 0.05);
        padding: 8px;
        border-radius: 8px;
    }

    /* Video grid mobile */
    .video-grid {
        grid-template-columns: 1fr;
    }

    /* Pricing mobile */
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    /* Stats mobile */
    .stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .stat {
        flex: 1 1 100px;
    }
}

@media (max-width: 480px) {
    .hero-subtitle {
        padding: 0 16px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .service-card {
        padding: 24px 16px;
    }

    .pricing-card {
        padding: 24px 16px;
    }

    .price .amount {
        font-size: 2rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== All Videos Page Styles ===== */
.all-videos-page {
    padding-top: 100px;
}

.all-videos-page .container {
    padding-top: 40px;
    padding-bottom: 80px;
}

.all-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination button {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.pagination button:hover,
.pagination button.active {
    background: var(--color-red);
    border-color: var(--color-red);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-gray);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.back-link:hover {
    color: var(--color-white);
}

.back-link svg {
    width: 20px;
    height: 20px;
}
