/* ============================================
   FIRST FlY Digital Solutions — Design System
   Premium Purple Dark Theme
   ============================================ */

/* ---------- Google Fonts ---------- */
/* ---------- Google Fonts (Moved to HTML for performance) ---------- */
/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Orbitron:wght@400;500;600;700;800;900&display=swap'); */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Primary */
    --primary: #7C3AED;
    --primary-light: #A855F7;
    --primary-glow: rgba(124, 58, 237, 0.4);

    /* Backgrounds */
    --bg-dark: #0F0F1B;
    --bg-surface: #1A1A2E;
    --bg-card: rgba(26, 26, 46, 0.6);

    /* Text */
    --text-white: #FFFFFF;
    --text-muted: #B3B3C6;
    --text-dim: #9393b0;

    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #7C3AED, #A855F7);
    --gradient-hero: linear-gradient(160deg, #0F0F1B 0%, #1A1A2E 40%, #1e1040 100%);

    /* Glow */
    --glow-blur: 25px;
    --glow-opacity: 0.4;

    /* Typography */
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Orbitron', sans-serif;

    --fs-h1: clamp(2.2rem, 5vw, 3.5rem);
    --fs-h2: clamp(1.75rem, 3.5vw, 2.5rem);
    --fs-h3: clamp(1.25rem, 2.5vw, 1.75rem);
    --fs-body: 1rem;
    --fs-small: 0.875rem;

    --lh: 1.6;

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;

    /* Transitions */
    --transition: 0.3s ease;
    --transition-slow: 0.6s ease;

    /* Radius */
    --radius: 16px;
    --radius-sm: 8px;
    --radius-full: 50%;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh);
    color: var(--text-white);
    background: var(--bg-dark);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

button,
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
    color: inherit;
}

/* ---------- Utility ---------- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--fs-body);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: 0 4px 20px var(--primary-glow);
}

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

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 1.5px solid rgba(168, 85, 247, 0.5);
}

.btn-secondary:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

/* Button Ripple */
.btn .ripple {
    position: absolute;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: rippleAnim 0.6s linear;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ---------- Aurora Background ---------- */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background: var(--bg-dark);
}

.aurora-bg::before,
.aurora-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: auroraFloat 20s ease-in-out infinite alternate;
}

.aurora-bg::before {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    left: -100px;
}

.aurora-bg::after {
    width: 500px;
    height: 500px;
    background: var(--primary-light);
    bottom: -150px;
    right: -100px;
    animation-delay: -10s;
}

@keyframes auroraFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(60px, 40px) scale(1.15);
    }

    100% {
        transform: translate(-30px, 60px) scale(1.05);
    }
}

/* Floating abstract shapes */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.floating-shapes span {
    position: absolute;
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: var(--radius);
    animation: floatShape 25s linear infinite;
}

.floating-shapes span:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 15%;
    left: 10%;
    animation-duration: 22s;
}

.floating-shapes span:nth-child(2) {
    width: 50px;
    height: 50px;
    top: 60%;
    left: 80%;
    animation-duration: 28s;
    animation-delay: -5s;
}

.floating-shapes span:nth-child(3) {
    width: 120px;
    height: 120px;
    top: 35%;
    left: 55%;
    animation-duration: 30s;
    animation-delay: -12s;
    border-radius: 50%;
}

.floating-shapes span:nth-child(4) {
    width: 40px;
    height: 40px;
    top: 80%;
    left: 25%;
    animation-duration: 20s;
    animation-delay: -8s;
}

@keyframes floatShape {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-60px) rotate(180deg);
        opacity: 0.12;
    }

    100% {
        transform: translateY(0) rotate(360deg);
        opacity: 0.3;
    }
}

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 15, 27, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 0;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

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

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.navbar-menu a {
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 4px 0;
}

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

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--text-white);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    width: 100%;
}

.navbar-cta {
    margin-left: 12px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 4px;
    background: none;
    border: none;
    -webkit-appearance: none;
    appearance: none;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--text-white);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(15, 15, 27, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 100px 36px 40px;
    gap: 28px;
    transition: right 0.3s ease;
}

.mobile-drawer.open {
    right: 0;
}

.mobile-drawer a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.mobile-drawer a:hover {
    color: var(--text-white);
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: all;
}

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

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    z-index: 1;
}

.hero-tags {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hero-tags span {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: var(--primary-light);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: var(--fs-h1);
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 800;
}

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

.hero-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero 3D / Visual Area */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual-placeholder {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual-placeholder .orbit {
    position: absolute;
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 50%;
    animation: orbitSpin 20s linear infinite;
}

.hero-visual-placeholder .orbit:nth-child(1) {
    width: 100%;
    height: 100%;
}

.hero-visual-placeholder .orbit:nth-child(2) {
    width: 75%;
    height: 75%;
    animation-duration: 15s;
    animation-direction: reverse;
}

.hero-visual-placeholder .orbit:nth-child(3) {
    width: 50%;
    height: 50%;
    animation-duration: 12s;
}

.hero-visual-placeholder .orbit-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-light);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--primary-glow);
}

.hero-visual-placeholder .orbit:nth-child(1) .orbit-dot {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-visual-placeholder .orbit:nth-child(2) .orbit-dot {
    bottom: 0;
    right: 0;
    transform: translate(50%, 50%);
}

.hero-visual-placeholder .orbit:nth-child(3) .orbit-dot {
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
}

.hero-visual-placeholder .center-glow {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: 0 0 60px var(--primary-glow), 0 0 120px rgba(168, 85, 247, 0.2);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes orbitSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* ---------- GLASSMORPHISM CARD ---------- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: var(--radius);
    padding: 36px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
    z-index: 0;
}

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

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.15),
        0 0 30px rgba(124, 58, 237, 0.08);
}

/* ---------- SERVICES ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card .service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--gradient-primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: var(--fs-small);
}

/* ---------- PORTFOLIO ---------- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-card {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid rgba(124, 58, 237, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(124, 58, 237, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
}

.portfolio-card .portfolio-img-container {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.portfolio-card .portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.08);
}

.portfolio-card-body {
    padding: 24px;
    background: var(--bg-surface);
    flex: 1;
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(124, 58, 237, 0.05);
}

.portfolio-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text-white);
    transition: color 0.3s ease;
}

.portfolio-card:hover h3 {
    color: var(--primary-light);
}

.portfolio-card p {
    font-size: var(--fs-small);
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
    flex: 1;
}

.portfolio-card .result-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-light);
    align-self: flex-start;
}

/* ---------- ABOUT ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.about-content .about-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.about-content .about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
}

.about-content .about-list li::before {
    content: '▸';
    color: var(--primary-light);
    font-weight: 700;
}

.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-visual-box {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(168, 85, 247, 0.06) 100%);
    border: 1px solid rgba(124, 58, 237, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-visual-box .stat-badge {
    position: absolute;
    padding: 16px 24px;
    background: rgba(15, 15, 27, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-sm);
}

.about-visual-box .stat-badge .stat-num {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-light);
}

.about-visual-box .stat-badge .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.about-visual-box .stat-badge:nth-child(1) {
    top: 20%;
    left: 10%;
}

.about-visual-box .stat-badge:nth-child(2) {
    bottom: 25%;
    right: 10%;
}

.about-visual-box .stat-badge:nth-child(3) {
    top: 55%;
    left: 35%;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials-wrapper {
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.6s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 20px;
}

.testimonial-card {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 48px;
}

.testimonial-card .stars {
    margin-bottom: 20px;
    color: #FBBF24;
    font-size: 1.2rem;
    letter-spacing: 4px;
}

.testimonial-card blockquote {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.8;
}

.testimonial-card .client-name {
    font-weight: 600;
    color: var(--text-white);
}

.testimonial-card .client-role {
    font-size: var(--fs-small);
    color: var(--text-dim);
    margin-top: 4px;
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.testimonials-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.testimonials-dots .dot.active {
    background: var(--primary-light);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* ---------- FAQ ---------- */
.faq-list {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(124, 58, 237, 0.25);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    background: none;
    border: none;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
    text-align: left;
}

.faq-question .faq-icon {
    transition: transform 0.3s ease;
    color: var(--primary-light);
    font-size: 1.2rem;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-muted);
    font-size: var(--fs-small);
}

/* ---------- CONTACT FORM ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-info-item .ci-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(124, 58, 237, 0.15);
    color: var(--primary-light);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-item h4,
.contact-info-item .ci-heading {
    font-size: 1rem;
    margin-bottom: 4px;
    margin-top: 0;
}

.contact-info-item p {
    color: var(--text-muted);
    font-size: var(--fs-small);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-size: var(--fs-small);
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

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

.form-group select option {
    background: var(--bg-surface);
}

.form-group .error-msg {
    font-size: 0.75rem;
    color: #F87171;
    margin-top: 6px;
    display: none;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #F87171;
}

.form-group.error .error-msg {
    display: block;
}

/* ---------- CTA SECTION ---------- */
.cta-section {
    padding: 80px 0;
    text-align: center;
}

.cta-box {
    padding: 60px 40px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(168, 85, 247, 0.08) 100%);
    border: 1px solid rgba(124, 58, 237, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
    animation: ctaPulse 8s ease-in-out infinite;
}

@keyframes ctaPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.cta-box h2 {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    margin-bottom: 16px;
    position: relative;
}

.cta-box p {
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cta-box .btn {
    position: relative;
}

/* ---------- FOOTER ---------- */
.footer {
    background: rgba(10, 10, 22, 0.8);
    border-top: 1px solid rgba(124, 58, 237, 0.1);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .footer-logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.footer-brand p {
    color: var(--text-muted);
    font-size: var(--fs-small);
    max-width: 300px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-white);
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: var(--fs-small);
    padding: 5px 0;
}

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

.footer-social {
    display: flex;
    gap: 14px;
    margin-top: 20px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.footer-social a svg {
    width: 16px;
    height: 16px;
    fill: var(--text-muted);
}

.footer-social a:hover svg {
    fill: var(--text-white);
}

.footer-bottom {
    border-top: 1px solid rgba(124, 58, 237, 0.08);
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ---------- FLOATING WHATSAPP ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: var(--transition);
    animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

@keyframes whatsappPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 8px rgba(37, 211, 102, 0.1);
    }
}

/* ---------- SCROLL TO TOP ---------- */
.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 96px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid rgba(124, 58, 237, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

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

.scroll-top:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.scroll-top svg {
    width: 18px;
    height: 18px;
    fill: var(--text-white);
}

/* ---------- PAGE HERO (Inner Pages) ---------- */
.page-hero {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: var(--fs-h1);
    font-weight: 800;
    margin-bottom: 16px;
}

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

.page-hero p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ---------- Animations (Scroll Reveal) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(168, 85, 247, 0.3);
    color: var(--text-white);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.5);
}

/* ==========================================================
   TRUST STRIP — Animated Marquee
   ========================================================== */
.trust-strip {
    overflow: hidden;
    background: rgba(124, 58, 237, 0.06);
    border-top: 1px solid rgba(124, 58, 237, 0.1);
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    padding: 14px 0;
    position: relative;
}

.trust-strip-track {
    display: flex;
    width: max-content;
}

.trust-strip-content {
    display: flex;
    align-items: center;
    gap: 28px;
    animation: marqueeScroll 30s linear infinite;
    white-space: nowrap;
}

.trust-strip-content span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.trust-strip-content .trust-divider {
    color: rgba(168, 85, 247, 0.3);
    font-weight: 400;
}

.trust-strip-logos .trust-logo-item {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: rgba(168, 85, 247, 0.55);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================
   BLOG CARDS
   ========================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-grid-full {
    grid-template-columns: repeat(3, 1fr);
}

.blog-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.blog-card .blog-card-img {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 14px;
    position: relative;
}

.blog-card .blog-card-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(168, 85, 247, 0.6);
    color: #fff;
    backdrop-filter: blur(6px);
    z-index: 1;
}

.blog-card .blog-card-body {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card .blog-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    line-height: 1.4;
    margin-bottom: 10px;
    font-weight: 700;
}

.blog-card .blog-card-body h3 a {
    color: var(--text-white);
    transition: color 0.3s ease;
}

.blog-card .blog-card-body h3 a:hover {
    color: var(--primary-light);
}

.blog-card .blog-card-body p {
    color: var(--text-muted);
    font-size: var(--fs-small);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-dim);
    border-top: 1px solid rgba(124, 58, 237, 0.08);
    padding-top: 12px;
    margin-top: auto;
}

.blog-card-meta .blog-card-readtime {
    color: var(--primary-light);
    font-weight: 600;
}

/* ==========================================================
   HERO HEADING SHIMMER
   ========================================================== */
.hero-content h1 .highlight {
    background-size: 200% 100%;
    animation: heroShimmer 4s ease-in-out infinite;
}

@keyframes heroShimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ==========================================================
   ENHANCED CARD SHADOWS
   ========================================================== */
.glass-card {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(124, 58, 237, 0.04);
}

.glass-card:hover {
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.18),
        0 0 40px rgba(124, 58, 237, 0.06);
}

/* ---------- Performance: Layout Shift Layouts ---------- */
#navbar-placeholder {
    min-height: 80px;
    /* Approximate height of navbar */
    display: block;
}

#footer-placeholder {
    min-height: 400px;
    /* Approximate height of footer */
    display: block;
}

@media (max-width: 768px) {
    #navbar-placeholder {
        min-height: 70px;
    }

    #footer-placeholder {
        min-height: 600px;
        /* Footer stacks on mobile */
    }
}