/*
Theme Name: Service Theme Modern
Theme URI: https://devor.agency/
Description: Модернізована тема Service Theme з ефектами глибини та скломорфізму.
Author: DEVOR Agency
Version: 1.1.0
Text Domain: service-theme
*/

/* ========================================
1. ШРИФТИ
======================================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

/* ========================================
2. DESIGN TOKENS
======================================== */
:root {
    /* Palette */
    --primary-purple: #673393;
    --primary-blue: #354CA0;
    --primary-gradient: linear-gradient(135deg, #673393 0%, #354CA0 100%);

    --accent-yellow: #FFCC08;
    --accent-yellow-light: #F7E922;
    --accent-gradient: linear-gradient(135deg, #FFCC08 0%, #F7E922 100%);

    /* Backgrounds */
    --bg-main: #EAF2FF;
    --bg-white: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.85);

    /* Text */
    --text-dark: #1a1a1a;
    --text-body: #444444;
    --text-muted: #666666;
    --text-light: #999999;
    --text-white: #FFFFFF;

    /* Shapes */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;

    /* Effects */
    --shadow-sm: 0 4px 12px rgba(53, 76, 160, 0.05);
    --shadow-card: 0 10px 30px rgba(103, 51, 147, 0.08);
    --shadow-hover: 0 15px 40px rgba(103, 51, 147, 0.15);
    --shadow-glow: 0 0 20px rgba(255, 204, 8, 0.4);

    --font-main: 'Roboto', sans-serif;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ========================================
3. RESET & BASE
======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-body);
    font-family: var(--font-main);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
4. LAYOUT & TYPOGRAPHY
======================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
}

/* Modern Gradient Text for Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-dark);
    font-weight: 800;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

/* Special Gradient for H1 and H2 */
h1,
h2 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-blue);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 42px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

/* Decorative underline for titles */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    margin: 12px auto 0;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
}

/* ========================================
5. BUTTONS
======================================== */
.service-button {
    background: var(--primary-gradient);
    color: var(--text-white) !important;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 16px;
    padding: 16px 40px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: var(--transition);
    line-height: 1.4;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(103, 51, 147, 0.3);
}

.service-button::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: 0.5s;
}

.service-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(103, 51, 147, 0.4);
}

.service-button:hover::before {
    left: 100%;
}

.service-button-outline {
    background: transparent;
    color: var(--primary-purple) !important;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 16px;
    padding: 14px 36px;
    border-radius: var(--radius-pill);
    border: 2px solid var(--primary-purple);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: var(--transition);
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.service-button-outline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary-gradient);
    z-index: -1;
    transition: var(--transition);
    border-radius: var(--radius-pill);
}

.service-button-outline:hover {
    color: var(--text-white) !important;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(53, 76, 160, 0.3);
}

.service-button-outline:hover::after {
    width: 100%;
}

/* ========================================
6. HEADER (Glassmorphism)
======================================== */
.site-header {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    max-width: 140px;
}

.logo-placeholder {
    width: 140px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(103, 51, 147, 0.2);
}

.header-badge {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    border-left: 3px solid var(--accent-yellow);
    padding-left: 15px;
    background: rgba(255, 255, 255, 0.5);
    padding: 8px 15px;
    border-radius: var(--radius-sm);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    color: var(--text-dark) !important;
    transition: var(--transition);
}

.header-phone:hover {
    color: var(--primary-purple) !important;
    transform: scale(1.05);
}

.header-phone svg {
    color: var(--primary-purple);
    flex-shrink: 0;
    transition: var(--transition);
}

.header-phone:hover svg {
    color: var(--accent-yellow);
    transform: rotate(15deg);
}

/* Mobile Menu Toggle */
.menu-toggle-btn {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1001;
}

.menu-toggle-btn span,
.menu-toggle-btn span::before,
.menu-toggle-btn span::after {
    display: block;
    height: 3px;
    background-color: var(--primary-purple);
    border-radius: 3px;
    position: absolute;
    right: 0;
    transition: var(--transition);
}

.menu-toggle-btn span {
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle-btn span::before {
    content: '';
    width: 100%;
    top: -8px;
}

.menu-toggle-btn span::after {
    content: '';
    width: 70%;
    top: 8px;
}

.menu-toggle-btn.active span {
    background-color: transparent;
}

.menu-toggle-btn.active span::before {
    top: 0;
    transform: rotate(45deg);
    background-color: var(--primary-purple);
}

.menu-toggle-btn.active span::after {
    top: 0;
    width: 100%;
    transform: rotate(-45deg);
    background-color: var(--primary-purple);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px 20px;
    background: var(--bg-white);
    border-top: 1px solid #eee;
    animation: slideDown 0.3s ease;
}

.mobile-menu.open {
    display: flex;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    color: var(--text-dark) !important;
}

@media (max-width: 768px) {
    .header-right {
        display: none;
    }

    .header-badge {
        display: none;
    }

    .menu-toggle-btn {
        display: flex;
        align-items: center;
    }

    .header-inner {
        height: 70px;
    }
}

/* ========================================
7. HERO SECTION
======================================== */
.hero-section {
    background: linear-gradient(145deg, #0d0820 0%, #1a0f35 35%, #1c1560 65%, #0f1a4a 100%);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

/* Animated mesh gradient blobs */
.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(103, 51, 147, 0.55) 0%, transparent 65%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: blobFloat 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(53, 76, 160, 0.5) 0%, transparent 65%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: blobFloat 10s ease-in-out infinite reverse;
}

@keyframes blobFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(20px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-15px, 20px) scale(0.95);
    }
}

/* Extra accent blob */
.hero-section .hero-accent-blob {
    position: absolute;
    top: 40%;
    left: 30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 204, 8, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: blobFloat 12s ease-in-out infinite 2s;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 24px;
    /* Override gradient text for dark bg — use bright white+yellow */
    background: linear-gradient(135deg, #ffffff 0%, #FFCC08 60%, #f7a800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleReveal 0.8s ease both;
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 40px;
    max-width: 540px;
    animation: titleReveal 0.8s ease 0.15s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: titleReveal 0.8s ease 0.3s both;
}

/* Override outline button for dark hero */
.hero-section .service-button-outline {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(8px);
}

.hero-section .service-button-outline:hover {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
}

.hero-image {
    position: relative;
    animation: titleReveal 0.8s ease 0.2s both;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(103, 51, 147, 0.4);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 60px rgba(103, 51, 147, 0.5);
}

/* Glowing ring behind hero image */
.hero-image::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: calc(var(--radius-lg) + 20px);
    background: linear-gradient(135deg, rgba(103, 51, 147, 0.4), rgba(255, 204, 8, 0.2), rgba(53, 76, 160, 0.4));
    z-index: -1;
    filter: blur(25px);
    opacity: 0.8;
    transition: var(--transition);
}

.hero-image:hover::before {
    opacity: 1;
    filter: blur(35px);
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-description {
        margin: 0 auto 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        max-width: 80%;
        margin: 0 auto;
    }

    .hero-image img {
        transform: none;
    }

    .hero-image:hover img {
        transform: none;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 34px;
    }

    .hero-section {
        padding: 40px 0 60px;
    }
}

/* ========================================
7.5 STATS BAR
======================================== */
.stats-bar {
    background: var(--primary-gradient);
    padding: 0;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: shineBar 3s ease-in-out infinite;
}

@keyframes shineBar {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 36px 20px;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 46px;
    font-weight: 900;
    color: var(--accent-yellow);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -2px;
    text-shadow: 0 0 30px rgba(255, 204, 8, 0.5);
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .stat-item:nth-child(3) {
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }

    .stat-item {
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .stat-item:nth-child(1),
    .stat-item:nth-child(2) {
        border-top: none;
    }
}

/* ========================================
8. WHY US SECTION (Cards)
======================================== */
.why-section {
    background: var(--bg-main);
    position: relative;
    overflow: hidden;
}

.why-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(103, 51, 147, 0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.advantage-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Gradient border reveal on hover */
.advantage-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    padding: 2px;
    background: var(--primary-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
}

/* Top accent bar */
.advantage-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.advantage-card:hover {
    box-shadow: 0 20px 50px rgba(103, 51, 147, 0.18);
    transform: translateY(-10px);
}

.advantage-card:hover::before {
    opacity: 1;
}

.advantage-card:hover::after {
    transform: scaleX(1);
}

.advantage-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(103, 51, 147, 0.1), rgba(53, 76, 160, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: var(--transition);
    color: var(--primary-purple);
    position: relative;
}

/* Pulse ring on hover */
.advantage-icon::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--primary-purple);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.advantage-card:hover .advantage-icon {
    background: var(--primary-gradient);
    color: var(--text-white);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(103, 51, 147, 0.35);
}

.advantage-card:hover .advantage-icon::after {
    opacity: 0.3;
    transform: scale(1.2);
}

.advantage-card h4 {
    font-size: 20px;
    margin-bottom: 14px;
    color: var(--text-dark);
    transition: color 0.3s;
}

.advantage-card:hover h4 {
    color: var(--primary-purple);
}

.advantage-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 0;
    flex-grow: 1;
}

@media (max-width: 992px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
9. SERVICES SECTION
======================================== */
.services-section {
    background: linear-gradient(160deg, #0d0820 0%, #1a0f35 50%, #1c1560 100%);
    position: relative;
    overflow: hidden;
}

/* Override h2 gradient for dark section */
.services-section .section-title {
    background: linear-gradient(135deg, #ffffff 0%, #FFCC08 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-section .section-title::after {
    background: var(--accent-gradient);
}

.services-section::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 204, 8, 0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 44px 40px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--accent-gradient);
    transition: width 0.35s ease;
    border-radius: 5px 0 0 5px;
}

.service-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 204, 8, 0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.service-item:hover {
    border-color: rgba(255, 204, 8, 0.3);
    transform: translateX(6px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 204, 8, 0.2);
}

.service-item:hover::before {
    width: 8px;
}

.service-item:hover::after {
    opacity: 1;
}

.service-number {
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(255, 204, 8, 0.9) 0%, rgba(247, 169, 0, 0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    line-height: 1;
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-item:hover .service-number {
    transform: scale(1.1);
}

.service-item h4 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #ffffff;
}

.service-item p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 0;
    line-height: 1.65;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
10. FAQ SECTION
======================================== */
.faq-section {
    background: var(--bg-main);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-card);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-purple);
    background: rgba(103, 51, 147, 0.02);
}

.faq-chevron {
    flex-shrink: 0;
    transition: var(--transition);
    color: var(--primary-purple);
    stroke-width: 2.5;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent-yellow);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: rgba(234, 242, 255, 0.3);
}

.faq-item.open .faq-answer {
    max-height: 400px;
}

.faq-answer p {
    padding: 0 30px 24px;
    margin: 0;
    font-size: 16px;
    color: var(--text-body);
    line-height: 1.7;
}

/* ========================================
11. CONTACT SECTION
======================================== */
.contact-section {
    background: var(--bg-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 20px;
    left: 0;
    transform: none;
}

.contact-info .section-title::after {
    margin: 12px 0 0;
}

.contact-info>p {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    padding: 16px;
    background: var(--bg-main);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.contact-detail-item:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transform: translateX(5px);
}

.contact-detail-item svg {
    flex-shrink: 0;
    color: var(--primary-purple);
}

.contact-detail-item a {
    color: var(--text-dark) !important;
    font-weight: 700;
}

.contact-detail-item a:hover {
    color: var(--primary-purple) !important;
}

/* Form */
.contact-form {
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    font-family: var(--font-main);
    font-size: 16px;
    color: var(--text-dark);
    background: var(--bg-white);
    border: 2px solid #eee;
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
    resize: vertical;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-purple);
    background: var(--bg-white);
    box-shadow: 0 4px 12px rgba(103, 51, 147, 0.1);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-submit-btn {
    width: 100%;
    justify-content: center;
    padding: 18px;
    font-size: 17px;
    margin-top: 10px;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #e74c3c;
    animation: shake 0.4s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info .section-title {
        text-align: center;
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-info .section-title::after {
        margin: 12px auto 0;
    }

    .contact-info>p {
        text-align: center;
    }

    .contact-details {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .contact-form {
        padding: 30px 20px;
    }
}

/* ========================================
12. SUCCESS POPUP
======================================== */
.success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.success-popup.visible {
    opacity: 1;
    visibility: visible;
}

.success-popup-inner {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.success-popup.visible .success-popup-inner {
    transform: scale(1) translateY(0);
}

.success-popup-icon {
    margin-bottom: 24px;
    color: var(--primary-purple);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

.success-popup-inner h3 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 16px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.success-popup-inner p {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0 0 32px;
}

.popup-close-btn {
    padding: 14px 50px;
    min-width: 200px;
}

/* ========================================
14. SCROLL REVEAL ANIMATIONS
======================================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.advantage-card,
.service-item,
.faq-item,
.contact-detail-item {
    animation: fadeUp 0.5s ease both;
}

.advantage-card:nth-child(1) {
    animation-delay: 0.05s;
}

.advantage-card:nth-child(2) {
    animation-delay: 0.12s;
}

.advantage-card:nth-child(3) {
    animation-delay: 0.19s;
}

.advantage-card:nth-child(4) {
    animation-delay: 0.26s;
}

.advantage-card:nth-child(5) {
    animation-delay: 0.33s;
}

.advantage-card:nth-child(6) {
    animation-delay: 0.40s;
}

.service-item:nth-child(1) {
    animation-delay: 0.05s;
}

.service-item:nth-child(2) {
    animation-delay: 0.15s;
}

.service-item:nth-child(3) {
    animation-delay: 0.25s;
}

.service-item:nth-child(4) {
    animation-delay: 0.35s;
}

/* Pulsing CTA button in hero */
.hero-buttons .service-button {
    animation: pulseGlow 3s ease-in-out infinite 1.5s;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(103, 51, 147, 0.3);
    }

    50% {
        box-shadow: 0 4px 30px rgba(103, 51, 147, 0.6), 0 0 0 6px rgba(103, 51, 147, 0.1);
    }
}

/* Yellow accent highlight on section-title underline */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    margin: 12px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(255, 204, 8, 0.5);
}

/* Contact form on dark-ish bg */
.contact-form {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: 0 20px 60px rgba(103, 51, 147, 0.12);
    border: 1px solid rgba(103, 51, 147, 0.1);
}


.site-footer {
    background: #1a1a1a;
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

/* Decorative glow in footer */
.site-footer::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(103, 51, 147, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.footer-brand .footer-tagline {
    font-size: 15px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    max-width: 300px;
}

.footer-heading {
    color: var(--text-white);
    font-size: 18px;
    margin-bottom: 24px;
    font-weight: 700;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logos img {
    max-height: 40px;
    width: auto;
    opacity: 0.9;
}

.footer-logos-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.5;
}

.footer-list li svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--accent-yellow);
}

.footer-list a {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 400;
    transition: var(--transition);
}

.footer-list a:hover {
    color: var(--accent-yellow) !important;
    padding-left: 5px;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7) !important;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--primary-gradient);
    color: var(--text-white) !important;
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(103, 51, 147, 0.4);
}

.footer-bottom {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-list li {
        justify-content: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-brand .footer-tagline {
        margin: 16px auto 0;
    }

    .site-footer {
        padding: 60px 0 0;
    }
}