/**
 * Quincey AV Solutions - Modern Design System
 * Blue gradient theme with cutting-edge effects
 */

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
    /* Modern Blue Gradient Colors */
    --color-primary: #0066FF;
    --color-primary-dark: #0052CC;
    --color-primary-light: #3385FF;
    --color-secondary: #00D4FF;
    --color-accent: #7C3AED;

    /* Dark Theme Background */
    --color-bg-dark: #0A0E17;
    --color-bg-darker: #050810;
    --color-bg-card: rgba(15, 23, 42, 0.8);
    --color-bg-card-hover: rgba(30, 41, 59, 0.9);

    /* Text Colors */
    --color-text: #E2E8F0;
    --color-text-muted: #94A3B8;
    --color-text-dark: #1E293B;
    --color-white: #FFFFFF;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0066FF 0%, #00D4FF 100%);
    --gradient-accent: linear-gradient(135deg, #7C3AED 0%, #0066FF 100%);
    --gradient-dark: linear-gradient(180deg, #0A0E17 0%, #1E293B 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(0, 102, 255, 0.15) 0%, transparent 70%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;

    /* Container */
    --container-max: 1280px;
    --container-padding: 1.5rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.3);
    --shadow-glow-lg: 0 0 80px rgba(0, 102, 255, 0.4);
    --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-tooltip: 500;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

::selection {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ============================================
   Cursor Glow Effect
   ============================================ */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* ============================================
   Layout
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

section {
    position: relative;
    padding: var(--spacing-4xl) 0;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.5rem); }

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

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-md);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-base);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.5);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.3);
    color: var(--color-secondary);
}

.btn-secondary:hover {
    background: rgba(0, 102, 255, 0.2);
}

.btn-full {
    width: 100%;
}

.btn.sent {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    cursor: default;
    pointer-events: none;
}

.btn.sent:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    padding: var(--spacing-md) 0;
    transition: all var(--transition-base), transform 0.3s ease;
}

.header.header-hidden {
    transform: translateY(-100%);
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.header.scrolled::before {
    opacity: 1;
}

.nav {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    z-index: 10;
}

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

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

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-muted);
    padding: var(--spacing-sm) 0;
    position: relative;
    transition: color var(--transition-fast);
}

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

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

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

.nav-cta {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--gradient-primary);
    color: var(--color-white) !important;
    border-radius: var(--radius-md);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    box-shadow: var(--shadow-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 28px;
    padding: 4px 0;
    z-index: 10;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all var(--transition-base);
}

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

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

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0, 102, 255, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(0, 102, 255, 0.3);
    top: -200px;
    left: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(0, 212, 255, 0.2);
    bottom: -150px;
    right: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: rgba(124, 58, 237, 0.2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-xl);
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero-title {
    margin-bottom: var(--spacing-lg);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-2xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-3xl);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-scroll {
    position: absolute;
    bottom: var(--spacing-2xl);
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.scroll-dot {
    position: absolute;
    top: 0;
    width: 3px;
    height: 10px;
    background: var(--color-primary);
    border-radius: 3px;
    left: -1px;
    animation: scrollDown 2s infinite ease-in-out;
}

@keyframes scrollDown {
    0% { top: 0; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { top: 50px; opacity: 0; }
}

/* ============================================
   Services Section
   ============================================ */
.services {
    background: var(--color-bg-darker);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--spacing-lg);
}

.service-card {
    position: relative;
    padding: var(--spacing-2xl);
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    cursor: pointer;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 102, 255, 0.3);
    box-shadow: var(--shadow-glow);
}

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

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-white);
}

.service-card h3 {
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
}

.service-card p {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-secondary);
    transition: gap var(--transition-base);
}

.service-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-base);
}

.service-card:hover .service-link {
    gap: var(--spacing-md);
}

.service-card:hover .service-link svg {
    transform: translateX(4px);
}

/* Tilt Effect */
[data-tilt] {
    transform-style: preserve-3d;
}

/* ============================================
   About Section with Parallax
   ============================================ */
.about {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.about-parallax {
    position: absolute;
    inset: 0;
}

.parallax-layer {
    position: absolute;
    top: -50%;
    left: 0;
    right: 0;
    bottom: -50%;
    will-change: transform;
}

.parallax-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 14, 23, 0.95) 0%,
        rgba(10, 14, 23, 0.8) 50%,
        rgba(10, 14, 23, 0.95) 100%
    );
}

.about-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: var(--spacing-3xl);
}

.about-text {
    max-width: 700px;
}

.about-description {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-white);
}

.feature svg {
    width: 18px;
    height: 18px;
    color: var(--color-secondary);
}

.about-brands {
    padding: var(--spacing-2xl);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
}

.brands-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
}

.brands-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
}

.brand {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-muted);
    opacity: 0.6;
    transition: all var(--transition-base);
}

.brand:hover {
    opacity: 1;
    color: var(--color-white);
}

/* Brand Logos - Greyscale inline */
.brands-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-2xl);
}

.brand-logo {
    height: 32px;
    width: 100px;
    object-fit: contain;
    filter: grayscale(100%) brightness(0) invert(1);
    opacity: 0.6;
    transition: all var(--transition-base);
}

.brand-logo:hover {
    filter: grayscale(0%) brightness(0) invert(1);
    opacity: 1;
}

/* ============================================
   Control4 Certified Section
   ============================================ */
.control4-section {
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-bg-darker) 100%);
    position: relative;
    overflow: hidden;
}

.control4-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(255, 176, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.control4-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.control4-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
}

.control4-logo {
    width: 180px;
    height: auto;
}

.control4-description {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
}

.control4-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.c4-feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-text);
    font-size: 0.95rem;
}

.c4-feature svg {
    width: 20px;
    height: 20px;
    color: #FFB000;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .control4-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .control4-badge {
        justify-self: center;
    }

    .control4-features {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .brands-logos {
        gap: var(--spacing-lg);
        justify-content: center;
    }

    .brand-logo {
        height: 24px;
        width: 80px;
    }

    .control4-features {
        grid-template-columns: 1fr;
    }

    .control4-logo {
        width: 140px;
    }
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery {
    background: var(--color-bg-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-link {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 40%,
        rgba(10, 14, 23, 0.95) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-xl);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    transform: translateY(20px);
    transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-content {
    transform: translateY(0);
}

.gallery-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-xs);
}

.gallery-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-white);
}

.gallery-icon {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-base);
}

.gallery-icon svg {
    width: 20px;
    height: 20px;
    color: var(--color-white);
}

.gallery-item:hover .gallery-icon {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials {
    position: relative;
    overflow: hidden;
}

.testimonials-bg {
    position: absolute;
    inset: 0;
}

.testimonials-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform var(--transition-slow);
}

.testimonial-card {
    flex: 0 0 100%;
    padding: var(--spacing-2xl);
    text-align: center;
}

.testimonial-stars {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xl);
}

.testimonial-stars svg {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.2);
}

.testimonial-stars svg.filled {
    color: #F59E0B;
}

.testimonial-text {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-white);
    margin-bottom: var(--spacing-xl);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

.author-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-white);
}

.author-info {
    text-align: left;
}

.author-info strong {
    display: block;
    color: var(--color-white);
    font-weight: 600;
}

.author-info span {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.slider-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--color-white);
    transition: all var(--transition-base);
}

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

.slider-btn svg {
    width: 20px;
    height: 20px;
}

.slider-dots {
    display: flex;
    gap: var(--spacing-sm);
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all var(--transition-base);
}

.slider-dot.active {
    width: 24px;
    background: var(--gradient-primary);
}

/* ============================================
   FAQ Section
   ============================================ */
.faq {
    background: var(--color-bg-darker);
}

.faq-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.faq-header {
    position: sticky;
    top: 120px;
}

.faq-header .section-tag,
.faq-header .section-title,
.faq-header .section-subtitle {
    text-align: left;
    margin-left: 0;
}

.faq-contact {
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
}

.faq-contact p {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.faq-item {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: rgba(0, 102, 255, 0.2);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    text-align: left;
    font-weight: 600;
    color: var(--color-white);
    background: transparent;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--color-secondary);
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.faq-icon svg {
    width: 16px;
    height: 16px;
    color: var(--color-text-muted);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-answer p {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    color: var(--color-text-muted);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    position: relative;
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    inset: 0;
}

.contact-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(0, 102, 255, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 212, 255, 0.15) 0%, transparent 50%);
}

.contact-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
}

.contact-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.contact-info .section-tag,
.contact-info .section-title {
    text-align: left;
    margin-left: 0;
}

.contact-description {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-2xl);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.contact-method:hover {
    background: rgba(0, 102, 255, 0.1);
    border-color: rgba(0, 102, 255, 0.2);
}

.method-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.method-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-white);
}

.method-text span {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.method-text strong {
    color: var(--color-white);
    font-weight: 500;
}

.contact-social {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

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

.social-link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.social-link.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
}

.social-link.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: #dc2743;
}

/* Contact Form */
.contact-form-wrapper {
    padding: var(--spacing-2xl);
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-white);
    transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(0, 102, 255, 0.05);
}

.form-group select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select option {
    background: var(--color-bg-dark);
    color: var(--color-white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10B981;
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--color-bg-darker);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-brand .logo {
    margin-bottom: var(--spacing-md);
}

.footer-tagline {
    color: var(--color-text-muted);
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-2xl);
}

.footer-column h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-white);
    margin-bottom: var(--spacing-lg);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-column a,
.footer-column li {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm) var(--spacing-lg);
}

.developer-credit {
    display: flex;
    align-items: center;
    opacity: 0.6;
    transition: opacity var(--transition-base);
}

.developer-credit:hover {
    opacity: 1;
}

.dev-logo {
    height: 50px;
    width: auto;
    filter: invert(1);
    background: cyan;
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--color-white);
    z-index: 10;
    transition: all var(--transition-base);
}

.lightbox-close:hover {
    background: var(--color-primary);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--color-white);
    z-index: 10;
    transition: all var(--transition-base);
}

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

.lightbox-nav.prev {
    left: var(--spacing-lg);
}

.lightbox-nav.next {
    right: var(--spacing-lg);
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.lightbox-caption {
    color: var(--color-white);
    text-align: center;
    margin-top: var(--spacing-md);
    font-size: 1.125rem;
}

/* ============================================
   Scroll to Top Button
   ============================================ */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-full);
    color: var(--color-white);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-lg);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.scroll-top-btn:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal-delay="100"] { transition-delay: 0.1s; }
[data-reveal-delay="200"] { transition-delay: 0.2s; }
[data-reveal-delay="300"] { transition-delay: 0.3s; }
[data-reveal-delay="400"] { transition-delay: 0.4s; }
[data-reveal-delay="500"] { transition-delay: 0.5s; }

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .faq-layout {
        grid-template-columns: 1fr;
    }

    .faq-header {
        position: static;
        text-align: center;
    }

    .faq-header .section-tag,
    .faq-header .section-title,
    .faq-header .section-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-info .section-tag,
    .contact-info .section-title {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-description {
        text-align: center;
    }

    .contact-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    section {
        padding: var(--spacing-3xl) 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-bg-dark);
        flex-direction: column;
        justify-content: center;
        padding: var(--spacing-2xl);
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 1.5rem;
        padding: var(--spacing-md);
    }

    .nav-cta {
        margin-top: var(--spacing-lg);
    }

    .hero {
        min-height: auto;
        padding: 120px 0 var(--spacing-3xl);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .hero-scroll {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .lightbox-nav.prev {
        left: var(--spacing-sm);
    }

    .lightbox-nav.next {
        right: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
    }

    .service-card {
        padding: var(--spacing-lg);
    }

    .testimonial-text {
        font-size: 1.125rem;
    }

    .contact-form-wrapper {
        padding: var(--spacing-lg);
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .header,
    .hero-bg,
    .cursor-glow,
    .lightbox {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
