:root {
    --primary: #FF4D8D;
    --primary-dark: #E0437A;
    --secondary: #6C63FF;
    --accent: #00D4AA;
    --dark: #0A0A14;
    --dark-light: #1A1A2E;
    --light: #F5F5FF;
    --gray: #8A8AA3;
    --transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.4);
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Archivo', sans-serif;
    line-height: 1.7;
    color: var(--light);
    background-color: var(--dark);
    background-image: 
        radial-gradient(circle at 5% 15%, rgba(108, 99, 255, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 95% 85%, rgba(255, 77, 141, 0.1) 0%, transparent 25%),
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.02) 2px, rgba(255, 255, 255, 0.02) 4px);
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 120px 0;
    position: relative;
}

/* Animated Background Elements */
.bg-element {
    position: absolute;
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
    animation-duration: 20s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.circle-element {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid var(--secondary);
    top: 15%;
    right: 10%;
    animation-name: float-circle;
}

.triangle-element {
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 260px solid var(--primary);
    top: 40%;
    left: 5%;
    transform: rotate(25deg);
    animation-name: float-triangle;
    animation-duration: 25s;
}

.square-element {
    width: 200px;
    height: 200px;
    border: 2px dashed var(--accent);
    bottom: 10%;
    right: 15%;
    transform: rotate(15deg);
    animation-name: rotate-square;
    animation-duration: 40s;
}

.hexagon-element {
    width: 180px;
    height: 180px;
    background: rgba(108, 99, 255, 0.1);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    top: 20%;
    left: 10%;
    animation-name: float-hexagon;
    animation-duration: 30s;
}

@keyframes float-circle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

@keyframes float-triangle {
    0%, 100% { transform: rotate(25deg) translateY(0); }
    50% { transform: rotate(35deg) translateY(-40px); }
}

@keyframes rotate-square {
    0% { transform: rotate(15deg); }
    100% { transform: rotate(375deg); }
}

@keyframes float-hexagon {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -30px) rotate(90deg); }
    50% { transform: translate(0, -60px) rotate(180deg); }
    75% { transform: translate(-20px, -30px) rotate(270deg); }
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(108, 99, 255, 0.2);
}

header.scrolled {
    padding: 15px 0;
    background: rgba(10, 10, 20, 0.95);
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.logo:hover {
    transform: translateY(-3px);
}

.logo-icon {
    position: relative;
    width: 40px;
    height: 40px;
    margin-right: 12px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(45deg);
    overflow: hidden;
    animation: logo-pulse 3s infinite;
}

@keyframes logo-pulse {
    0%, 100% { transform: rotate(45deg) scale(1); }
    50% { transform: rotate(45deg) scale(1.1); }
}

.logo-icon i {
    transform: rotate(-45deg);
    color: white;
    font-size: 1.2rem;
}

.logo-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-text span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 150px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    opacity: 0;
    animation: fadeInUp 1s 0.2s forwards;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--gray);
    opacity: 0;
    animation: fadeInUp 1s 0.5s forwards;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s 0.8s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    font-family: 'Space Grotesk', sans-serif;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    transform: translateY(-8px);
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    opacity: 0;
    animation: fadeIn 1s 0.3s forwards;
}

.section-title h2 {
    font-size: 3.2rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Services Section - Two Columns with Center Animation */

.services-container{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr);
  gap: 40px;
}

/* columns should just stack naturally */
.services-column{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.service-card {
    background: rgba(26, 26, 46, 0.7);
    border-radius: 20px;
    padding: 35px 30px;
    transition: var(--transition);
    border: 1px solid rgba(108, 99, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.left-column .service-card:nth-child(1) { animation: cardAppear 0.8s 0.1s forwards; }
.left-column .service-card:nth-child(2) { animation: cardAppear 0.8s 0.3s forwards; }
.left-column .service-card:nth-child(3) { animation: cardAppear 0.8s 0.5s forwards; }

.right-column .service-card:nth-child(1) { animation: cardAppear 0.8s 0.2s forwards; }
.right-column .service-card:nth-child(2) { animation: cardAppear 0.8s 0.4s forwards; }
.right-column .service-card:nth-child(3) { animation: cardAppear 0.8s 0.6s forwards; }

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    z-index: 10;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.6rem;
    color: var(--secondary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient);
    color: white;
    transform: rotate(15deg) scale(1.1);
    animation: iconSpin 1s;
}

@keyframes iconSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(15deg) scale(1.1); }
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: white;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.service-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 5px;
    font-family: 'Space Grotesk', sans-serif;
}

.service-price span {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 400;
}

/* Service card CTA */
.service-actions{
  margin-top: 18px;
}

.service-cta{
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  text-align: center;
  font-size: 0.95rem;
}

.service-cta i{
  font-size: 0.95rem;
}



/* Center Animation - Video Editing Process Visualization */
.center-animation{
  position: relative;   /* ВАЖНО: чтобы title/subtitle позиционировались от этого блока */
  width: 220px;
  justify-content: flex-start;
  height: auto; 
  padding-top: 400px; 
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* keep your existing animation sizes, but bind container width */
.animation-container{
  position: relative;   /* ВАЖНО: чтобы line/connection позиционировались внутри контейнера */
  width: 220px;
  height: 520px;        /* можно 480–560 на вкус */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0;
}


.animation-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 90%;
    background: var(--gradient);
    border-radius: 2px;
    overflow: hidden;
}

.animation-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: lineFlow 3s infinite linear;
}

@keyframes lineFlow {
    0% { top: -100%; }
    100% { top: 100%; }
}

.animation-node {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(26, 26, 46, 0.9);
    border: 3px solid var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
    transition: var(--transition);
    animation: nodePulse 3s infinite;
}

.animation-node:nth-child(1) { animation-delay: 0s; }
.animation-node:nth-child(2) { animation-delay: 0.5s; }
.animation-node:nth-child(3) { animation-delay: 1s; }
.animation-node:nth-child(4) { animation-delay: 1.5s; }
.animation-node:nth-child(5) { animation-delay: 2s; }
.animation-node:nth-child(6) { animation-delay: 2.5s; }

@keyframes nodePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.4);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(108, 99, 255, 0);
    }
}

.animation-node:hover {
    background: var(--gradient);
    color: white;
    border-color: var(--primary);
    transform: scale(1.2);
}

.animation-node::after {
    content: attr(data-step);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: var(--transition);
}

.animation-node:hover::after {
    opacity: 1;
}

.animation-connection {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 100%;
    background: rgba(108, 99, 255, 0.3);
    z-index: 1;
}

.animation-title {
    position: absolute;
    top: 345px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(26, 26, 46, 0.8);
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(108, 99, 255, 0.3);
    backdrop-filter: blur(5px);
}

.animation-subtitle {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
    max-width: 200px;
}

/* Floating particles in the center */
.animation-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.5;
    animation: particleFloat 10s infinite linear;
}

.particle:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.particle:nth-child(2) { top: 30%; left: 80%; animation-delay: 1s; }
.particle:nth-child(3) { top: 60%; left: 10%; animation-delay: 2s; }
.particle:nth-child(4) { top: 80%; left: 70%; animation-delay: 3s; }
.particle:nth-child(5) { top: 40%; left: 40%; animation-delay: 4s; }
.particle:nth-child(6) { top: 20%; left: 60%; animation-delay: 5s; }

@keyframes particleFloat {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    25% { 
        transform: translate(20px, -20px) scale(1.2);
        opacity: 0.7;
    }
    50% { 
        transform: translate(-10px, 30px) scale(0.8);
        opacity: 0.3;
    }
    75% { 
        transform: translate(30px, 10px) scale(1.1);
        opacity: 0.6;
    }
}

/* Pricing Section - Chaotic Layout */
.pricing-section {
    position: relative;
    overflow: hidden;
}

.pricing-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    position: relative;
}

.pricing-card {
    flex: 0 1 350px;
    background: rgba(26, 26, 46, 0.7);
    border-radius: 24px;
    padding: 50px 40px;
    transition: var(--transition);
    border: 1px solid rgba(108, 99, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    animation: pricingAppear 0.8s forwards;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.pricing-card:nth-child(1) { 
    animation-delay: 0.2s;
    transform: rotate(-3deg);
}
.pricing-card:nth-child(2) { 
    animation-delay: 0.4s;
    transform: rotate(2deg);
    margin-top: 40px;
}
.pricing-card:nth-child(3) { 
    animation-delay: 0.6s;
    transform: rotate(-1deg);
    margin-top: -20px;
}

@keyframes pricingAppear {
    0% {
        opacity: 0;
        transform: translateY(50px) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(var(--rotate, 0deg));
    }
}

.pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-20px) scale(1.05) rotate(0deg) !important;
    box-shadow: var(--shadow-hover);
    animation: pricingFloat 3s infinite;
}

@keyframes pricingFloat {
    0%, 100% { transform: translateY(-20px) scale(1.05); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.pricing-badge {
    position: absolute;
    top: 25px;
    right: -35px;
    background: var(--gradient);
    color: white;
    padding: 10px 40px;
    font-size: 0.9rem;
    font-weight: 600;
    transform: rotate(45deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.pricing-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 10px;
    line-height: 1;
    font-family: 'Space Grotesk', sans-serif;
}

.pricing-price span {
    font-size: 1.2rem;
    color: var(--gray);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin: 30px 0 40px;
}

.pricing-features li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: var(--gray);
}

.pricing-features li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent);
    position: absolute;
    left: 0;
    font-size: 1.1rem;
}

/* Testimonials */
.testimonials-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-style: preserve-3d;
}

.testimonial-card {
    min-width: 100%;
    background: rgba(26, 26, 46, 0.7);
    border-radius: 24px;
    padding: 60px 50px;
    border: 1px solid rgba(108, 99, 255, 0.2);
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    transform: rotateY(10deg);
    transition: transform 0.5s;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.testimonial-card.active {
    transform: rotateY(0deg);
}

.testimonial-text {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 40px;
    color: white;
    line-height: 1.8;
    position: relative;
    padding-left: 30px;
}

.testimonial-text::before {
    content: '"';
    font-size: 5rem;
    color: var(--primary);
    position: absolute;
    top: -20px;
    left: -15px;
    opacity: 0.5;
    font-family: Georgia, serif;
    animation: quotePulse 3s infinite;
}

@keyframes quotePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 25px;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.2);
    animation: avatarRotate 10s infinite linear;
}

@keyframes avatarRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.author-info h4 {
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.author-info p {
    color: var(--gray);
    font-size: 1rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.slider-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.2);
    border: 2px solid rgba(108, 99, 255, 0.4);
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: buttonGlow 3s infinite;
}

@keyframes buttonGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(108, 99, 255, 0.3); }
    50% { box-shadow: 0 0 20px rgba(108, 99, 255, 0.6); }
}

.slider-btn:hover {
    background: var(--gradient);
    border-color: transparent;
    transform: scale(1.1);
    animation: none;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    animation: dotPulse 2s infinite;
}

.dot:nth-child(2) { animation-delay: 0.3s; }
.dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes dotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    transition: transform 0.3s;
}

.dot.active {
    background: var(--primary);
    animation: activeDotPulse 1.5s infinite;
}

@keyframes activeDotPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 77, 141, 0.7); }
    50% { transform: scale(1.2); box-shadow: 0 0 0 10px rgba(255, 77, 141, 0); }
}

.dot.active::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    background: rgba(26, 26, 46, 0.7);
    border-radius: 24px;
    padding: 50px 40px;
    border: 1px solid rgba(108, 99, 255, 0.2);
    backdrop-filter: blur(10px);
    height: fit-content;
    position: sticky;
    top: 120px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: white;
    position: relative;
    display: inline-block;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
    animation: lineGrow 2s infinite;
}

@keyframes lineGrow {
    0%, 100% { width: 60px; }
    50% { width: 80px; }
}

.contact-info p {
    color: var(--gray);
    margin-bottom: 35px;
    line-height: 1.8;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.info-item:hover {
    background: rgba(108, 99, 255, 0.1);
    border-color: rgba(108, 99, 255, 0.3);
    transform: translateX(10px);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary);
    margin-right: 20px;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--accent);
}

.info-content p {
    margin: 0;
    color: white;
}

.contact-form {
    background: rgba(26, 26, 46, 0.7);
    border-radius: 24px;
    padding: 50px 40px;
    border: 1px solid rgba(108, 99, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.contact-form h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: white;
    position: relative;
    display: inline-block;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
    animation: lineGrow 2s infinite reverse;
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: white;
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Archivo', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(255, 77, 141, 0.2);
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
}

/* Company Info Card */
.company-info-card {
    background: rgba(26, 26, 46, 0.7);
    border-radius: 24px;
    padding: 60px 50px;
    border: 1px solid rgba(108, 99, 255, 0.2);
    backdrop-filter: blur(10px);
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.company-info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.company-info-card h3 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: white;
    position: relative;
    z-index: 1;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.info-item-company {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.info-item-company:hover {
    background: rgba(108, 99, 255, 0.1);
    transform: translateY(-10px);
}

.info-item-company h4 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item-company p {
    font-size: 1.2rem;
    color: white;
    font-weight: 500;
}

.business-hours {
    position: relative;
    z-index: 1;
    margin-top: 40px;
}

.business-hours h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: white;
}

.hours-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    background: rgba(10, 10, 20, 0.95);
    padding: 100px 0 30px;
    border-top: 1px solid rgba(108, 99, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 70px;
}

.footer-about {
    position: relative;
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: white;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.footer-logo-text span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-about p {
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--gradient);
    transform: translateY(-5px);
}

.quicklinks h4,
.footer-services h4,
.footer-contact h4 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.quicklinks h4::after,
.footer-services h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.quicklinks ul,
.footer-services ul,
.footer-contact ul {
    list-style: none;
}

.quicklinks li,
.footer-services li,
.footer-contact li {
    margin-bottom: 15px;
}

.quicklinks a,
.footer-services a,
.footer-contact a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.quicklinks a:hover,
.footer-services a:hover,
.footer-contact a:hover {
    color: var(--accent);
    transform: translateX(8px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 25px;
}

.policy-toggle {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

.policy-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.policy-toggle:hover {
    color: var(--accent);
}

.policy-toggle:hover::after {
    width: 100%;
}

.policy-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: rgba(26, 26, 46, 0.5);
    border-radius: 16px;
    margin: 20px 0;
    padding: 0 30px;
}

.policy-content.active {
    max-height: 500px;
    padding: 30px;
    margin-bottom: 30px;
}

.policy-content h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: white;
}

.policy-content ol {
    padding-left: 20px;
    margin-bottom: 25px;
}

.policy-content li {
    margin-bottom: 12px;
    color: var(--gray);
}

.policy-content .company-address {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
    border-left: 4px solid var(--primary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .services-container {
        align-items: start;
        flex-direction: column;
        gap: 60px;
    }
    
    .services-column {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .center-animation {
        order: -1;
        flex: 0 0 100%;
        height: 300px;
        margin-bottom: 40px;
    }
    
    .animation-container {
        width: 90%;
        height: 300px;
        flex-direction: row;
        justify-content: space-around;
    }
    
    .animation-line {
        width: 90%;
        height: 4px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .animation-line::after {
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
        animation: lineFlowHorizontal 3s infinite linear;
    }
    
    @keyframes lineFlowHorizontal {
        0% { left: -100%; }
        100% { left: 100%; }
    }
    
    .animation-node {
        width: 50px;
        height: 50px;
    }
    
    .animation-title {
        top: -50px;
    }
    
    .animation-subtitle {
        bottom: -50px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(10, 10, 20, 0.98);
        flex-direction: column;
        padding: 100px 40px 40px;
        transition: var(--transition);
        backdrop-filter: blur(20px);
        border-left: 1px solid rgba(108, 99, 255, 0.2);
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 0 0 25px 0;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
    
    .animation-container {
        height: 200px;
    }
    
    .animation-node {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .animation-title {
        font-size: 1rem;
        top: -40px;
    }
    
    .animation-subtitle {
        font-size: 0.9rem;
        bottom: -40px;
        max-width: 150px;
    }
    
    .pricing-container {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-card {
        flex: 0 1 100%;
        margin-top: 0 !important;
        transform: none !important;
    }
    
    .pricing-card:hover {
        transform: translateY(-15px) scale(1.03) !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .testimonial-card {
        padding: 40px 30px;
    }
    
    .company-info-card {
        padding: 40px 30px;
    }
}

/* ===== Footer Legal buttons (clean, no "dirt") ===== */
.footer-links{
  display: grid;
  gap: 12px;
  align-items: start;
}

.policy-toggle{
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;

  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(108, 99, 255, 0.2);
  color: var(--gray);

  cursor: pointer;
  transition: var(--transition);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

.policy-toggle:hover{
  color: var(--accent);
  background: rgba(108, 99, 255, 0.10);
  border-color: rgba(108, 99, 255, 0.35);
  transform: translateX(6px);
}

/* ===== Modal ===== */
.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2000;
}

.modal-overlay.is-open{
  display: flex;
}

.modal{
  width: min(900px, 100%);
  max-height: min(80vh, 760px);
  overflow: auto;

  background: rgba(26, 26, 46, 0.85);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: 24px;
  box-shadow: var(--shadow-hover);
  padding: 26px 26px 22px;
  position: relative;
}

.modal-title{
  font-size: 1.8rem;
  margin-bottom: 14px;
  padding-right: 52px;
}

.modal-close{
  position: absolute;
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  border-radius: 14px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(108, 99, 255, 0.25);
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover{
  background: rgba(108, 99, 255, 0.14);
  border-color: rgba(255, 77, 141, 0.35);
  transform: scale(1.06);
}

.modal-body{
  color: var(--gray);
  line-height: 1.85;
}

.modal-body h4{
  color: white;
  margin-top: 18px;
}

.modal-body ol{
  padding-left: 20px;
}

.modal-body li{
  margin: 10px 0;
}

.modal-body .company-address{
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(108, 99, 255, 0.18);
  color: white;
}

/* ===== Legal Policy Modal (works with your current HTML + JS) ===== */
.policy-modal{
  position: fixed;
  inset: 0;
  display: none;                 /* hidden by default */
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2000;

  background: rgba(10, 10, 20, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.policy-modal.is-open{
  display: flex;                 /* JS adds .is-open */
}

.policy-modal__dialog{
  width: min(900px, 100%);
  max-height: min(80vh, 760px);
  overflow: auto;

  background: rgba(26, 26, 46, 0.85);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: 24px;
  box-shadow: var(--shadow-hover);
  padding: 26px 26px 22px;
  position: relative;
}

.policy-modal__title{
  font-size: 1.8rem;
  margin-bottom: 14px;
  padding-right: 52px;
}

.policy-modal__close{
  position: absolute;
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  border-radius: 14px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(108, 99, 255, 0.25);
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

.policy-modal__close:hover{
  background: rgba(108, 99, 255, 0.14);
  border-color: rgba(255, 77, 141, 0.35);
  transform: scale(1.06);
}

.policy-modal__body{
  color: var(--gray);
  line-height: 1.85;
}

.policy-modal__body h4{
  color: white;
  margin-top: 18px;
}

.policy-modal__body ol{
  padding-left: 20px;
}

.policy-modal__body li{
  margin: 10px 0;
}

.policy-modal__body .company-address{
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(108, 99, 255, 0.18);
  color: white;
}

/* ===== Legal buttons styled like footer links (Our Services) ===== */
.footer-contact .footer-links{
  display: grid;
  gap: 14px;
}

.footer-contact .policy-toggle{
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;

  color: var(--gray);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.footer-contact .policy-toggle:hover{
  color: var(--accent);
  transform: translateX(6px);
}

.footer-contact .footer-links{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-contact .footer-links li{ width: 100%; }

.footer-contact .footer-links a,
.footer-contact .footer-links button{
  width: 100%;
  text-align: left;
}

/* Footer Legal: remove underline/line on hover, keep only text animation */
.footer-links a::after,
.footer-links button::after{
  content: none !important;
}

.footer-links a,
.footer-links button{
  text-decoration: none !important;
  background-image: none !important;
  box-shadow: none !important;
  border-bottom: none !important;
}

/* keep only text animation */
.footer-links a:hover,
.footer-links button:hover{
  text-decoration: none !important;
  transform: translateX(6px);   /* если уже есть — можно оставить */
}

/* Manuals (Help Center) */
.manuals-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.manual-card{
  appearance: none;
  border: 1px solid rgba(108, 99, 255, 0.2);
  background: rgba(26, 26, 46, 0.7);
  border-radius: 24px;
  padding: 34px 28px;
  color: var(--light);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

.manual-card::before{
  content:'';
  position:absolute;
  top:0; left:0;
  width:100%; height:5px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.manual-card:hover{
  transform: translateY(-15px) scale(1.03);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.manual-card:hover::before{
  transform: scaleX(1);
}

.manual-icon{
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 99, 255, 0.1);
  color: var(--secondary);
  font-size: 1.5rem;
  margin-bottom: 18px;
  transition: var(--transition);
}

.manual-card:hover .manual-icon{
  background: var(--gradient);
  color: #fff;
  transform: rotate(10deg) scale(1.08);
}

.manual-card h3{
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: #fff;
}

.manual-card p{
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.manual-meta{
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Space Grotesk', sans-serif;
}

.manuals-cta{
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
  border-radius: 20px;
  border: 1px solid rgba(108, 99, 255, 0.2);
  background: rgba(26, 26, 46, 0.55);
  backdrop-filter: blur(10px);
}

.manuals-cta__text{
  color: var(--gray);
  font-size: 1.05rem;
}

/* Manuals Modal (same vibe as policy modal) */
.manuals-modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 10, 20, 0.72);
  backdrop-filter: blur(10px);
  z-index: 2000;
}

.manuals-modal.is-open{ display: flex; }

.manuals-modal__dialog{
  width: min(920px, 100%);
  max-height: 86vh;
  overflow: auto;
  position: relative;
  border-radius: 24px;
  padding: 46px 42px;
  background: rgba(26, 26, 46, 0.85);
  border: 1px solid rgba(108, 99, 255, 0.25);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: fadeInUp 0.35s ease both;
}

.manuals-modal__close{
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(108, 99, 255, 0.25);
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
}

.manuals-modal__close:hover{
  background: rgba(255,255,255,0.10);
  border-color: var(--primary);
  transform: scale(1.05);
}

.manuals-modal__title{
  margin-bottom: 18px;
  font-size: 2rem;
}

.manuals-modal__body p{
  color: var(--gray);
  margin-bottom: 18px;
}

.manuals-modal__body ol{
  margin-left: 18px;
  display: grid;
  gap: 12px;
}

.manuals-modal__body li{
  color: #fff;
}

.manuals-modal__body strong{
  color: var(--accent);
}

/* Responsive */
@media (max-width: 1000px){
  .manuals-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manuals-cta{ flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px){
  .manuals-grid{ grid-template-columns: 1fr; }
  .manuals-modal__dialog{ padding: 40px 22px; }
}

/* ===== Custom dropdown (glass + gradient, animated) ===== */
.select-wrap{
  position: relative;
  width: 100%;
}

/* keep real select for form, but hide it */
.native-select{
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.select-btn{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 16px 18px;
  border-radius: 18px;

  background: rgba(26, 26, 46, 0.65);
  border: 1px solid rgba(108, 99, 255, 0.22);
  color: #fff;

  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.select-btn::before{
  content:'';
  position:absolute;
  top:0; left:0;
  width:100%; height:4px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.select-btn:hover{
  border-color: rgba(255, 77, 141, 0.45);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.select-btn:hover::before{
  transform: scaleX(1);
}

.select-btn:focus{
  outline: none;
  border-color: rgba(255, 77, 141, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 77, 141, 0.18);
}

.select-value{
  font-weight: 600;
  color: #fff;
  opacity: 0.95;
}

.select-chevron{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: transform 0.25s ease, color 0.25s ease;
}

.select-wrap.is-open .select-chevron{
  transform: rotate(180deg);
  color: var(--accent);
}

/* dropdown panel (animated) */
.select-panel{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 12px);

  border-radius: 18px;
  padding: 10px;

  background: rgba(16, 16, 30, 0.88);
  border: 1px solid rgba(108, 99, 255, 0.22);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);

  transform: translateY(-10px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 1200;
}

.select-wrap.is-open .select-panel{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.select-option{
  padding: 12px 12px;
  border-radius: 14px;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.select-option:hover{
  background: rgba(108, 99, 255, 0.14);
  color: #fff;
  transform: translateX(6px);
}

.select-option.is-selected{
  background: rgba(108, 99, 255, 0.22);
  color: #fff;
  border: 1px solid rgba(255, 77, 141, 0.22);
}

.select-option.is-placeholder{
  opacity: 0.75;
}

/* Give space after Service dropdown so "Project Details" sits lower */
#serviceSelect{
  margin-bottom: 18px;
}
