:root {
    --primary: #00f2ff;
    --primary-glow: rgba(0, 242, 255, 0.4);
    --accent: #ff00ff;
    --accent-glow: rgba(255, 0, 255, 0.4);
    --bg-dark: #0a0a0c;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-main: #e0e0e0;
    --text-dim: #a0a0a0;
    --font-header: 'Outfit', sans-serif;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --radius: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    background-image: url('bg.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.7;
}

/* Dark overlay over the background for readability */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10, 10, 12, 0.88); /* Significantly dimmed */
    backdrop-filter: blur(6px); /* Blurs the background so it feels further back */
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========== INTRO ========== */
#intro-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at center, #1b1b1f 0%, #000 100%);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-out;
}

.intro-active { opacity: 1; }

.gravik-container {
    text-align: center;
    max-width: 700px;
    position: relative;
}

#gravik-mascot {
    width: 55vh;
    max-width: 85%;
    filter: drop-shadow(0 0 50px var(--primary-glow));
    animation: float 6s ease-in-out infinite;
    transform-origin: bottom center;
    cursor: pointer;
    transition: var(--transition);
}

.speech-bubble {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 242, 255, 0.2);
    padding: 28px 36px;
    border-radius: 28px;
    margin-top: -10px;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.08);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1.2s forwards 0.8s;
}

.speech-bubble p {
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1.6;
}

#skip-intro {
    margin-top: 28px;
    padding: 14px 40px;
    background: var(--primary);
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 0 25px var(--primary-glow);
    transition: var(--transition);
    opacity: 0;
    animation: fadeInUp 1s forwards 1.2s;
}

#skip-intro:hover {
    transform: scale(1.08);
    background: #fff;
    box-shadow: 0 0 50px rgba(255,255,255,0.5);
}

/* ========== SMOKE CANVAS ========== */
#smoke-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}

/* ========== MAIN LAYOUT ========== */
.hidden { display: none; }
.visible { display: block; animation: fadeIn 1.2s ease-in; }

main { position: relative; z-index: 2; }

.header {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.logo {
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.85);
}

.logo-silver {
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #c0c0c0 25%,
        #e8e8e8 50%,
        #a0a0a0 75%,
        #d0d0d0 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 1.5px;
    text-shadow: none;
    position: relative;
    filter: drop-shadow(1px 2px 2px rgba(0,0,0,0.6))
           drop-shadow(0px 0px 8px rgba(192,192,192,0.25));
}

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

.nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav a:hover { color: #fff; }

.btn-primary {
    background: var(--primary);
    color: #000 !important;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 700;
}

.btn-primary:hover { box-shadow: 0 0 20px var(--primary-glow); }

/* ========== HERO ========== */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 40px;
}

.hero-title {
    font-family: var(--font-header);
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.accent {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 580px;
    margin-bottom: 40px;
}

.hero-cta { display: flex; gap: 20px; flex-wrap: wrap; }

.btn-primary-large {
    display: inline-block;
    background: var(--primary);
    padding: 16px 36px;
    border-radius: 40px;
    text-decoration: none;
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary-large:hover {
    box-shadow: 0 0 30px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 16px 36px;
    border-radius: 40px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--primary);
}

/* ========== SECTIONS SHARED ========== */
.section { padding: 100px 0; }

.section-title {
    font-family: var(--font-header);
    font-size: 2.8rem;
    margin-bottom: 60px;
    text-align: center;
    font-weight: 800;
}

.glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    transition: var(--transition);
    /* Double-border illusion with outline */
    outline: 1px solid rgba(255,255,255,0.03);
    outline-offset: 4px;
    /* Modern side-shadow */
    box-shadow:
        6px 6px 16px rgba(0, 0, 0, 0.4),
        -2px -2px 10px rgba(255, 255, 255, 0.02),
        inset 0 0 0 1px rgba(255,255,255,0.04);
}

/* ========== ABOUT (TEAM) ========== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.about-card {
    padding: 50px 40px;
    text-align: center;
}

.about-card:hover {
    border-color: var(--primary);
    outline-color: rgba(0,242,255,0.08);
    box-shadow:
        8px 8px 24px rgba(0, 0, 0, 0.5),
        -2px -2px 12px rgba(0, 242, 255, 0.04),
        inset 0 0 0 1px rgba(0,242,255,0.08),
        0 0 30px rgba(0, 242, 255, 0.06);
}

.about-avatar {
    margin-bottom: 24px;
}

.avatar-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border: 3px solid rgba(0, 242, 255, 0.4);
    box-shadow: 0 0 30px var(--primary-glow);
    transition: var(--transition);
    transform-origin: bottom center;
    animation: waveAnim 6s ease-in-out infinite;
}

.avatar-img:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 0 45px var(--primary-glow);
}

.about-card h3 {
    font-family: var(--font-header);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.about-role {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 16px;
}

.about-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* ========== SERVICES ========== */
#services { perspective: 1000px; }

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

.service-card { padding: 40px; }

.service-card:hover {
    border-color: var(--primary);
    outline-color: rgba(0,242,255,0.08);
    box-shadow:
        8px 8px 24px rgba(0, 0, 0, 0.5),
        -2px -2px 12px rgba(0, 242, 255, 0.04),
        inset 0 0 0 1px rgba(0,242,255,0.08),
        0 0 30px rgba(0, 242, 255, 0.06);
}

.tilt {
    transform-style: preserve-3d;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 14px;
    font-family: var(--font-header);
    font-size: 1.2rem;
}

.service-card p {
    color: var(--text-dim);
    font-size: 0.93rem;
}

/* ========== PRICING ========== */
.pricing-banner {
    padding: 25px 40px; 
    margin-top: -10px;
    border-top: 3px solid #ff2a2a; 
    background: linear-gradient(145deg, rgba(255, 42, 42, 0.05), rgba(0,0,0,0)); 
    box-shadow: 0 0 40px rgba(255, 0, 50, 0.15); 
    margin-bottom: 80px; 
    text-align: center;
}

.pricing-banner:hover {
    border-color: #ff2a2a;
    outline-color: rgba(255, 42, 42, 0.08);
    box-shadow:
        8px 8px 24px rgba(0, 0, 0, 0.5),
        -2px -2px 12px rgba(255, 42, 42, 0.04),
        inset 0 0 0 1px rgba(255, 42, 42, 0.08),
        0 0 50px rgba(255, 42, 42, 0.25);
}

/* ========== PORTFOLIO CAROUSEL ========== */
.carousel-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.carousel-track {
    display: flex;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 20px 10px 40px; /* shadow clipping prevention */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.carousel-track::-webkit-scrollbar {
    height: 8px;
}
.carousel-track::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.02);
    border-radius: 4px;
}
.carousel-track::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 255, 0.2);
    border-radius: 4px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(10,10,12,0.8);
    border: 1px solid rgba(0,242,255,0.3);
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
}

.prev-btn { left: -20px; }
.next-btn { right: -20px; }

.case-card { 
    overflow: hidden; 
    padding: 0; 
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: center;
    min-width: 320px;
}

.case-card { overflow: hidden; padding: 0; }

.case-img-placeholder {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.case-content { padding: 28px; }

.case-content h3 {
    font-family: var(--font-header);
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.case-content p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.case-tag {
    display: inline-block;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.case-card:hover {
    border-color: var(--primary);
    outline-color: rgba(0,242,255,0.08);
    box-shadow:
        8px 8px 24px rgba(0, 0, 0, 0.5),
        -2px -2px 12px rgba(0, 242, 255, 0.04),
        inset 0 0 0 1px rgba(0,242,255,0.08),
        0 0 30px rgba(0, 242, 255, 0.06);
}

/* ========== REVIEWS ========== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.review-card { padding: 36px; }

.review-stars {
    color: #ffc107;
    font-size: 1.1rem;
    margin-bottom: 16px;
    letter-spacing: 3px;
}

.review-text {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-dim);
    margin-bottom: 24px;
    line-height: 1.7;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #000;
    flex-shrink: 0;
}

.review-author strong {
    display: block;
    font-size: 0.95rem;
}

.review-author span {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.review-card:hover {
    border-color: rgba(255, 193, 7, 0.3);
    outline-color: rgba(255, 193, 7, 0.08);
    box-shadow:
        8px 8px 24px rgba(0, 0, 0, 0.5),
        -2px -2px 12px rgba(255, 193, 7, 0.03),
        inset 0 0 0 1px rgba(255, 193, 7, 0.06),
        0 0 20px rgba(255, 193, 7, 0.04);
}

/* ========== CONTACT ========== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
}

.contact-wrapper:hover {
    border-color: var(--primary);
    outline-color: rgba(0,242,255,0.08);
    box-shadow:
        8px 8px 24px rgba(0, 0, 0, 0.5),
        -2px -2px 12px rgba(0, 242, 255, 0.04),
        inset 0 0 0 1px rgba(0,242,255,0.08),
        0 0 30px rgba(0, 242, 255, 0.06);
}

.contact-info {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    font-family: var(--font-header);
    font-size: 1.8rem;
    margin-bottom: 16px;
}

/* ========== MODAL ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--bg-dark);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 242, 255, 0.2);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: rgb(255, 77, 77);
    transform: rotate(90deg);
}

.modal-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    overflow-y: auto;
}

.modal-img-container {
    background: linear-gradient(135deg, #1a1a2e, #0d0d1a);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    font-size: 6rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-text {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .modal-layout {
        grid-template-columns: 1fr;
    }
    .modal-img-container {
        min-height: 200px;
        font-size: 4rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .modal-text {
        padding: 30px 20px;
    }
}

/* ========== LEAD COLLECTOR BOT ========== */
#lead-collector-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}

.chat-toggle {
    width: 70px;
    height: 70px;
    background: rgba(10, 10, 12, 0.9);
    pointer-events: auto;
    border: 2px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 30px var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    animation: float 4s ease-in-out infinite;
}

.chat-toggle img {
    width: 60%;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px var(--primary-glow);
}

.chat-toggle .tooltiptext {
    visibility: hidden;
    width: 240px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    border-radius: 12px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    right: 85px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid var(--primary);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
    font-size: 0.9rem;
}

.chat-toggle:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

#chat-window {
    width: 380px;
    height: 520px;
    background: rgba(10, 10, 12, 0.98);
    pointer-events: auto;
    border: 1px solid var(--primary);
    border-radius: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px rgba(0, 242, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: bottom right;
    overflow: hidden;
}

#chat-window.hidden {
    opacity: 0;
    transform: scale(0.5) translateY(20px);
    pointer-events: none;
}

.chat-header {
    background: linear-gradient(135deg, rgba(0,242,255,0.1), rgba(0,0,0,0));
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.chat-header img {
    width: 40px;
    border-radius: 50%;
    margin-right: 15px;
}

.chat-header h3 {
    flex-grow: 1;
    font-family: var(--font-header);
    font-size: 1.1rem;
    margin: 0;
    color: #fff;
}

#close-chat {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

#close-chat:hover {
    color: #ff2a2a;
    transform: scale(1.1);
}

.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}
.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0,242,255,0.3);
    border-radius: 3px;
}

.msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: fadeInUp 0.4s ease;
}

.msg-bot {
    background: rgba(255,255,255,0.08);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
}

.msg-user {
    background: var(--primary);
    color: #000;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex-grow: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 12px 15px;
    border-radius: 20px;
    outline: none;
    transition: var(--transition);
}

.chat-input-area input:focus {
    border-color: var(--primary);
}

.chat-input-area button {
    background: var(--primary);
    color: #000;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chat-input-area button:hover:not(:disabled) {
    box-shadow: 0 0 15px var(--primary-glow);
    transform: scale(1.05);
}

.chat-input-area button:disabled, 
.chat-input-area input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.service-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.service-choice-btn {
    background: rgba(0,242,255,0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.service-choice-btn:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 10px var(--primary-glow);
}

.contact-info p {
    color: var(--text-dim);
    margin-bottom: 30px;
}

.contact-links { display: flex; gap: 16px; flex-wrap: wrap; }

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-link:hover {
    border-color: var(--primary);
    background: rgba(0, 242, 255, 0.05);
}

.contact-link-icon { font-size: 1.3rem; }

.contact-form {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(255,255,255,0.02);
    border-left: 1px solid rgba(255,255,255,0.06);
}

.contact-form input,
.contact-form textarea {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 14px 18px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition);
    outline: none;
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0,242,255,0.1);
}

/* ========== FOOTER ========== */
.footer { padding: 60px 0 30px; }

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: 6px;
}

.footer-links { display: flex; gap: 24px; }

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--primary); }

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    color: var(--text-dim);
    font-size: 0.82rem;
}

/* ========== ANIMATIONS ========== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes waveAnim {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.flicker { animation: flickerAnim 2s infinite; }
@keyframes flickerAnim {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; text-shadow: 0 0 10px var(--primary); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 2rem !important; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-form { border-left: none; border-top: 1px solid rgba(255,255,255,0.06); }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
    .nav { flex-wrap: wrap; justify-content: center; gap: 14px; }
    .nav a { font-size: 0.85rem; }
    .container { padding: 0 20px; }
    #gravik-mascot { width: 40vh; }
    .service-card { grid-column: 1 / -1 !important; }
    
    .glass {
        background: rgba(18, 18, 22, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    }
    
    .reviews-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
        gap: 20px;
        margin: 0 -20px;
        padding: 10px 20px 30px 20px;
    }
    .reviews-grid::-webkit-scrollbar {
        display: none;
    }
    .reviews-grid > .review-card {
        min-width: 85vw;
        scroll-snap-align: center;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    #chat-window {
        position: fixed;
        bottom: 0;
        right: 0;
        width: 100vw !important;
        height: 100dvh !important;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
        border: none;
        z-index: 10000;
    }
    #chat-window.hidden {
        transform: translateY(100%);
    }
    .chat-toggle {
        width: 60px;
        height: 60px;
        right: -10px;
    }
    #lead-collector-widget {
        bottom: 20px;
        right: 20px;
    }
    .hero-title { font-size: 2.1rem; }
    .section-title { font-size: 1.8rem !important; }
    .pricing-banner h3 { font-size: 1.2rem !important; }
}

.tilt {
    transform-style: preserve-3d;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

/* Убираем переходы во время tilt для мгновенного отклика */
.tilt.tilting {
    transition: none !important;
}

.card.right-side {
    --tilt-axis: y;
}

/* Star Rating styling */
#star-rating .star {
    color: rgba(255, 255, 255, 0.2);
    transition: color 0.2s ease;
}
#star-rating .star.active {
    color: #ffc107;
}
#star-rating .star:hover ~ .star {
    color: rgba(255, 255, 255, 0.2) !important;
}
#star-rating:hover .star {
    color: #ffc107;
}

/* Animated Review Button */
.btn-review-animated {
    background: linear-gradient(45deg, #FF00FF, #0050FF);
    background-size: 200% 200%;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
    animation: gradientShift 3s ease infinite, glowPulse 3s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-review-animated:hover {
    transform: scale(1.1) translateY(-6px);
    animation: gradientShift 1s ease infinite;
    box-shadow: 0 0 35px rgba(0, 80, 255, 0.6);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 15px rgba(0, 80, 255, 0.4); }
    50% { box-shadow: 0 0 35px rgba(255, 0, 255, 0.7); }
    100% { box-shadow: 0 0 15px rgba(0, 80, 255, 0.4); }
}
