/* ================================
   CSS Variables & Reset
   ================================ */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --accent-primary: #00d4ff;
    --accent-secondary: #0066ff;
    --accent-glow: rgba(0, 212, 255, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #8892a0;
    --text-muted: #5a6270;
    --border-color: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ================================
   Navigation
   ================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
    backdrop-filter: blur(0px);
    /* Start with no blur at top for clarity */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
}

.logo-text {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 20px var(--accent-glow);
}

.nav-cta {
    padding: 10px 20px !important;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 8px;
    color: var(--bg-primary) !important;
    font-weight: 600 !important;
}

.nav-cta:hover {
    box-shadow: 0 0 30px var(--accent-glow);
}

/* ================================
   Hero Section
   ================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 80px;
    overflow: hidden;
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.5;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black, transparent);
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-tagline {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.hero-headline {
    font-size: clamp(45px, 7.5vw, 78px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 32px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 19px;
    color: var(--text-primary);
    max-width: 650px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

/* ================================
   Buttons
   ================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 12px;
    color: var(--bg-primary);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-medium);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(0, 212, 255, 0.4);
}

.btn-primary.large {
    padding: 20px 40px;
    font-size: 18px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 28px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ================================
   Section Styles
   ================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* ================================
   Portfolio Section
   ================================ */
.portfolio {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.portfolio-grid .video-card:first-child {
    grid-column: 1 / -1;
}

.portfolio-grid .video-card:first-child .video-wrapper {
    aspect-ratio: 16 / 9;
}

@media (max-width: 900px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.video-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    transition: all var(--transition-medium);
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.video-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.play-button {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    transition: all var(--transition-medium);
}

.play-button svg {
    width: 28px;
    height: 28px;
    margin-left: 4px;
}

.video-card:hover .play-button {
    transform: scale(1.1);
    box-shadow: 0 0 40px var(--accent-glow);
}

.placeholder-text {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Video Preview Styles */
.video-preview {
    cursor: pointer;
    background: var(--bg-tertiary);
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.video-preview:hover .video-thumbnail {
    transform: scale(1.05);
    filter: brightness(0.7);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.video-preview:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn .play-bg {
    transition: fill 0.3s ease;
}

.video-preview:hover .video-play-btn .play-bg {
    fill: #cc0000;
}

/* ================================
   Services Section
   ================================ */
.services {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

.service-card {
    position: relative;
    padding: 40px 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-medium);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.service-card.popular {
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.08) 0%, var(--bg-secondary) 100%);
    border-color: var(--accent-primary);
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.1);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--bg-primary);
}

.service-header {
    margin-bottom: 0;
}

.service-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-price {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 24px;
    margin-bottom: 0;
    letter-spacing: -1px;
}

.service-price .price-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
    margin-bottom: -4px;
}

.service-target {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.service-features {
    list-style: none;
    flex: 1;
    margin-bottom: 32px;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
}

.service-features li:last-child {
    border-bottom: none;
}

.feature-icon {
    color: var(--accent-primary);
    font-weight: 700;
}

.service-card.popular .btn-primary {
    width: 100%;
    justify-content: center;
}

/* ================================
   FAQ Section
   ================================ */
.faq {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.faq .section-header .section-subtitle {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-medium);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.faq-item.active {
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.faq-question:hover {
    color: var(--accent-primary);
}

.faq-question span {
    flex: 1;
}

.faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: var(--text-secondary);
    transition: all var(--transition-medium);
}

.faq-item.active .faq-icon {
    stroke: var(--accent-primary);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p,
.faq-answer ul {
    padding: 0 28px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.faq-answer p:last-child {
    padding-bottom: 24px;
}

.faq-answer ul {
    list-style: none;
    margin: 12px 0;
}

.faq-answer ul li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.faq-answer ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.faq-answer ul li strong {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .faq-question {
        padding: 20px 24px;
        font-size: 15px;
    }

    .faq-answer p,
    .faq-answer ul {
        padding: 0 24px;
        font-size: 14px;
    }

    .faq-answer p:last-child {
        padding-bottom: 20px;
    }
}

/* ================================
   Footer CTA Section
   ================================ */
.footer-cta {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
    text-align: center;
}

.footer-cta h2 {
    font-size: clamp(38px, 6vw, 56px);
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-cta p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* ================================
   Footer
   ================================ */
.footer {
    padding: 60px 0 30px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: 32px;
    }
}

.footer-brand p {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 20px var(--accent-glow);
}

.footer-social-row {
    display: flex;
    gap: 40px;
}

.footer-social-row a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-social-row a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ================================
   Animations
   ================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content>* {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-tagline {
    animation-delay: 0.1s;
}

.hero-headline {
    animation-delay: 0.2s;
}

.hero-description {
    animation-delay: 0.3s;
}

.hero-content .btn-primary {
    animation-delay: 0.4s;
}

/* ================================
   Floating Social Icons
   ================================ */
.floating-social {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 100;
    transition: all 0.5s ease;
}

.floating-social.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.floating-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all var(--transition-medium);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.floating-social a:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--accent-glow);
}

@media (max-width: 600px) {
    .floating-social {
        bottom: 24px;
        right: 24px;
    }
}

/* ================================
   Mobile Navigation
   ================================ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    margin: 3px 0;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .logo-text {
        font-size: 24px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 32px 32px;
        gap: 24px;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 18px;
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-cta {
        width: 100%;
        text-align: center;
        margin-top: 16px;
    }

    .hero-headline {
        font-size: clamp(32px, 10vw, 48px);
    }

    .hero-description {
        font-size: 16px;
    }

    .section-title {
        font-size: clamp(28px, 8vw, 40px);
    }

    .footer-cta h2 {
        font-size: clamp(28px, 8vw, 40px);
    }
}

/* Mobile menu overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* ================================
   Email Copy Tooltip
   ================================ */
.email-copy {
    position: relative;
}

.copy-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px 14px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--accent-primary);
}

.email-copy.copied .copy-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-12px);
}

/* Floating social email copy positioning */
.floating-social .copy-tooltip {
    bottom: auto;
    left: auto;
    right: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(-8px);
}

.floating-social .copy-tooltip::after {
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--accent-primary);
}

.floating-social .email-copy.copied .copy-tooltip {
    transform: translateY(-50%) translateX(-12px);
}