/* =========================
   CSS Reset & Variables
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --accent: #10b981;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #cbd5e1;
    --light: #f1f5f9;
    --white: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 0;
    
    /* Animations */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: default;
}

* {
    max-width: 100%;
    box-sizing: border-box;
}

/* Custom Selection */
::selection {
    background: var(--primary);
    color: var(--white);
}

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

/* Smooth Transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

a, button {
    cursor: pointer;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================
   Navigation
   ========================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
}

.logo-icon {
    font-size: 28px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

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

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

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

.btn-primary-nav {
    padding: 12px 28px;
    background: var(--gradient-primary);
    color: var(--white) !important;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary-nav::after {
    display: none;
}

.btn-primary-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 102, 241, 0.4);
}

@media (max-width: 768px) {
    .nav-menu li:last-child {
        margin-top: 20px;
        padding: 0 24px;
    }
    
    .nav-menu .btn-primary-nav {
        display: inline-block;
        width: 100%;
        margin: 0;
        padding: 16px 24px;
        text-align: center;
        border-radius: 12px;
        font-size: 17px;
        font-weight: 700;
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    }
    
    .nav-menu .btn-primary-nav:hover {
        transform: none;
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

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

.sphere-1 {
    width: 500px;
    height: 500px;
    background: var(--gradient-primary);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.sphere-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-secondary);
    bottom: -10%;
    left: -10%;
    animation-delay: 5s;
}

.sphere-3 {
    width: 350px;
    height: 350px;
    background: var(--gradient-accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(50px, -50px);
    }
    66% {
        transform: translate(-50px, 50px);
    }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
}

.badge-icon {
    font-size: 18px;
}

.hero-title {
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

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

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--gray-light);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        max-width: 100%;
        margin: 0 auto;
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-title {
        font-size: 22px;
    }
    
    .hero-subtitle {
        font-size: 13px;
    }
    
    .hero-cta .btn {
        max-width: 260px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 280px;
    }
    
    .stat-item {
        padding: 20px 16px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .services-grid .service-card {
        min-width: 280px;
        width: 88%;
    }
    
    .testimonials-grid .testimonial-card {
        min-width: 300px;
        width: 92%;
    }
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 42px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--gray);
    font-size: 13px;
    font-weight: 500;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--gray);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--gray);
    border-radius: 3px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 8px;
    }
    100% {
        opacity: 0;
        top: 20px;
    }
}

/* =========================
   Section Styles
   ========================= */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

@media (max-width: 768px) {
    .section-header {
        margin: 0 auto 40px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
}

.section-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
    line-height: 1.7;
}

/* =========================
   Services Section
   ========================= */
.services {
    padding: var(--section-padding);
    background: var(--light);
}

.services-slider-wrapper {
    position: relative;
}

.services-slider-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(to left, var(--light), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

@media (max-width: 768px) {
    .services-slider-wrapper::after {
        opacity: 1;
    }
}

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

.slider-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-light);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.slider-dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-slow);
    position: relative;
    border: 1px solid transparent;
    overflow: hidden;
    text-align: center;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.service-card.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.service-card.featured .service-title,
.service-card.featured .service-description {
    color: var(--white);
}

.service-card.featured:hover {
    transform: translateY(-10px);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
    line-height: 1;
}

.service-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
    min-height: 60px;
    display: flex;
    align-items: center;
}

.service-description {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 0;
}


/* =========================
   Why Us Section
   ========================= */
.why-us {
    padding: var(--section-padding);
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-us-description {
    font-size: 18px;
    color: var(--gray);
    margin: 24px 0 40px;
    line-height: 1.8;
}

.why-us-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.feature-content p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.6;
}

.why-us-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    position: relative;
}

.visual-card {
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}

.visual-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.visual-card.card-1 {
    grid-column: 1 / 2;
}

.visual-card.card-2 {
    grid-column: 2 / 3;
    margin-top: 40px;
}

.visual-card.card-3 {
    grid-column: 1 / 3;
}

.card-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.visual-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.visual-card p {
    font-size: 14px;
    color: var(--gray);
}

/* =========================
   Testimonials Section
   ========================= */
.testimonials {
    padding: var(--section-padding);
    background: var(--white);
}

.testimonials-slider-wrapper {
    position: relative;
}

.testimonials-slider-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(to left, var(--white), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

@media (max-width: 768px) {
    .testimonials-slider-wrapper::after {
        opacity: 1;
    }
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: var(--light);
    border-radius: 20px;
    padding: 40px;
    transition: var(--transition-slow);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 180deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: var(--transition);
}

.testimonial-card:hover::before {
    opacity: 1;
}

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

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    background: var(--white);
}

.testimonial-stars {
    font-size: 20px;
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 24px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.author-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.author-role {
    font-size: 14px;
    color: var(--gray);
}

/* =========================
   Contact Section
   ========================= */
.contact {
    padding: var(--section-padding);
    background: var(--light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-description {
    font-size: 18px;
    color: var(--gray);
    margin: 24px 0 40px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

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

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.contact-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--dark);
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-dark);
}

.contact-item p {
    color: var(--gray);
    font-size: 15px;
}

.trust-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--white);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.trust-icon {
    color: var(--accent);
    font-weight: 700;
}

.contact-form-wrapper {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 15px;
    font-family: var(--font-family);
    transition: var(--transition);
    background: var(--white);
    color: var(--dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

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

.btn-full {
    width: 100%;
    justify-content: center;
    position: relative;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.contact-form.loading .btn-text {
    display: none;
}

.contact-form.loading .btn-loader {
    display: block;
}

.form-status {
    padding: 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
}

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

/* Bot Protection Styles */
.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.captcha-group {
    background: rgba(99, 102, 241, 0.05);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.captcha-group label {
    color: var(--primary);
    font-weight: 600;
}

#mathQuestion {
    font-weight: 700;
    color: var(--primary);
}

/* =========================
   Footer
   ========================= */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-brand p {
    color: var(--gray-light);
    margin-top: 16px;
    max-width: 300px;
}

.footer-copyright p {
    color: var(--gray-light);
    font-size: 14px;
}

/* =========================
   Back to Top Button
   ========================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    z-index: 999;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.back-to-top:active {
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* =========================
   Responsive Design
   ========================= */
@media (max-width: 1024px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .why-us-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card.featured {
        transform: scale(1);
    }
    
    .service-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .container {
        padding: 0 24px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 76px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        padding: 24px 0 32px;
        gap: 4px;
        max-height: calc(100vh - 76px);
        overflow-y: auto;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 17px;
        padding: 14px 24px;
        display: block;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-badge {
        font-size: 14px;
        padding: 10px 20px;
        margin-bottom: 24px;
    }
    
    .hero-title {
        font-size: clamp(32px, 8vw, 42px);
        line-height: 1.15;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
        max-width: 90%;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-bottom: 40px;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 16px 32px;
        font-size: 16px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .gradient-sphere {
        filter: blur(80px);
        opacity: 0.2;
    }
    
    .why-us-visual {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .visual-card.card-1,
    .visual-card.card-2,
    .visual-card.card-3 {
        grid-column: 1;
        margin-top: 0 !important;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 16px auto 0;
    }
    
    .services-slider-wrapper {
        margin: 0 -24px;
        padding: 0 24px;
        position: relative;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        display: flex;
        padding: 20px 8px 24px 8px;
    }
    
    .services-grid::-webkit-scrollbar {
        display: none;
    }
    
    .services-grid .service-card {
        min-width: 300px;
        max-width: 340px;
        width: 90%;
        scroll-snap-align: center;
        flex-shrink: 0;
        margin: 0 8px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.8);
    }
    
    .slider-dots {
        display: flex;
        justify-content: center;
        padding-top: 20px;
        gap: 12px;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(99, 102, 241, 0.3);
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .slider-dot.active {
        background: var(--primary);
        width: 32px;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
    }
    
    .services .section-header::after,
    .testimonials .section-header::after {
        content: '← Swipe to explore →';
        display: block;
        margin-top: 12px;
        font-size: 13px;
        color: var(--primary);
        font-weight: 600;
        opacity: 0.8;
        letter-spacing: 0.5px;
        background: rgba(99, 102, 241, 0.1);
        padding: 6px 12px;
        border-radius: 20px;
        display: inline-block;
    }
    
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .why-us-features {
        gap: 24px;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 16px;
    }
    
    .feature-icon {
        margin-bottom: 0;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .form-group {
        text-align: left;
    }
    
    .btn-full {
        width: 100%;
        justify-content: center;
        padding: 16px 32px;
        font-size: 16px;
    }
    
    .testimonials-slider-wrapper {
        margin: 0 -24px;
        padding: 0 24px;
        position: relative;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        display: flex;
        padding: 20px 8px 24px 8px;
    }
    
    .testimonials-grid::-webkit-scrollbar {
        display: none;
    }
    
    .testimonials-grid .testimonial-card {
        min-width: 320px;
        max-width: 360px;
        width: 92%;
        scroll-snap-align: center;
        flex-shrink: 0;
        margin: 0 8px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.9);
    }
    
    .testimonial-card {
        padding: 32px 24px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .testimonial-text {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .testimonial-stars {
        font-size: 18px;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .container {
        padding: 0 16px;
        max-width: 100vw;
    }
    
    .hero {
        padding: 80px 0 40px;
        text-align: center;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 8px 16px;
        margin: 16px 16px 16px 16px;
    }
    
    .hero-title {
        font-size: clamp(24px, 7vw, 32px);
        line-height: 1.2;
        margin-bottom: 12px;
        word-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        line-height: 1.5;
        margin: 0 auto 20px;
        max-width: 90%;
    }
    
    .hero-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 28px;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 24px;
        font-size: 15px;
        font-weight: 700;
        justify-content: center;
        text-align: center;
    }

    .hero-cta .btn-primary {
        box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
    }

    .hero-cta .btn-secondary {
        background: rgba(255, 255, 255, 0.95);
        border: 2px solid rgba(203, 213, 225, 0.8);
        color: var(--dark);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    }
    
    .section-header {
        margin: 0 auto 32px;
        text-align: center;
    }
    
    .section-title {
        font-size: clamp(24px, 6vw, 32px);
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .contact .btn,
    .btn-full {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 16px 24px;
    }
    
    .contact-wrapper {
        text-align: center;
    }
    
    .contact-details {
        align-items: flex-start;
        text-align: left;
    }
    
    .contact-item {
        justify-content: flex-start;
        text-align: left;
    }
    
    .stat-item {
        padding: 16px 8px;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(15px);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.9);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
        transition: transform 0.3s ease;
        text-align: center;
    }
    
    .stat-item:hover {
        transform: translateY(-2px);
    }
    
    .stat-number {
        font-size: 20px;
        margin-bottom: 2px;
        line-height: 1;
    }
    
    .stat-label {
        font-size: 11px;
        font-weight: 600;
        color: var(--gray);
        line-height: 1.2;
    }
    
    .service-card {
        padding: 28px 20px;
        min-height: 280px;
        text-align: center;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .service-icon {
        font-size: 40px;
        margin-bottom: 16px;
    }
    
    .service-title {
        font-size: 18px;
        min-height: 48px;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .service-description {
        font-size: 14px;
        line-height: 1.6;
        color: var(--gray);
    }
    
    .testimonial-card {
        padding: 28px 24px;
        text-align: center;
        min-height: 240px;
    }
    
    .testimonial-text {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 20px;
    }
    
    .testimonial-stars {
        font-size: 18px;
        margin-bottom: 16px;
        text-align: center;
        letter-spacing: 2px;
    }
    
    .author-name {
        font-size: 14px;
    }
    
    .author-title {
        font-size: 12px;
    }
    
    .contact-form-wrapper {
        padding: 20px 16px;
        max-width: 100%;
        overflow: hidden;
    }
    
    .hero-background {
        width: 100vw;
        max-width: 100%;
    }
    
    .gradient-sphere {
        max-width: 100vw;
    }
    
    .services-slider-wrapper,
    .testimonials-slider-wrapper {
        max-width: 100vw;
        overflow: hidden;
    }
    
    .services-grid,
    .testimonials-grid {
        max-width: 100%;
    }
    
    .service-icon {
        font-size: 40px;
        margin-bottom: 16px;
    }
    
    .service-title {
        font-size: 19px;
        min-height: 48px;
    }
    
    .service-description {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .testimonials-grid {
        gap: 20px;
    }
    
    .testimonial-stars {
        font-size: 16px;
        letter-spacing: 2px;
    }
    
    .services-grid .service-card,
    .testimonials-grid .testimonial-card {
        min-width: 260px;
        width: 88%;
    }
    
    .service-title {
        font-size: 18px;
    }
    
    .service-description {
        font-size: 13px;
    }
}
