/* ============================================
   Ranoviq Technologies - Professional Single Page
   Brand Colors: #6E2CFD (Vibrant Purple) | #51487F (Muted Indigo) | #000000 (Black)
   Logo-optimized color scheme
   ============================================ */

/* ========== CSS Variables - Ranoviq Brand (New Logo) ========== */
:root {
    --primary: #6E2CFD;
    --primary-dark: #5c24e0;
    --primary-light: #8b5cff;
    --secondary: #51487F;
    --dark: #000000;
    --dark-secondary: #0d0d0d;
    --dark-tertiary: #1a1a1a;
    --light: #f8fafc;
    --white: #ffffff;
    --gray: #94a3b8;
    --gradient-dark: linear-gradient(135deg, #000000 0%, #0d0d0d 50%, #1a1a2e 100%);
    --gradient-primary: linear-gradient(135deg, #5c24e0 0%, #6E2CFD 50%, #8b5cff 100%);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    --transition: 0.3s ease;
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-bg-light: rgba(255, 255, 255, 0.7);
    --glass-border-light: rgba(255, 255, 255, 0.3);
    --blur: 20px;
    --blur-strong: 40px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* Base typography & spacing */
body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--light);
    background: var(--dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== Scroll Reveal Animation ========== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Background Shapes (Subtle decorative elements) ========== */
.section-with-shapes {
    position: relative;
    overflow: hidden;
}

.bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.section-with-shapes > *:not(.bg-shapes) {
    position: relative;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-1 { width: 400px; height: 400px; background: rgba(110, 44, 253, 0.15); top: -100px; right: -100px; }
.shape-2 { width: 300px; height: 300px; background: rgba(81, 72, 127, 0.12); bottom: -50px; left: -80px; animation-delay: -7s; }
.shape-3 { width: 350px; height: 350px; background: rgba(110, 44, 253, 0.12); top: 50%; left: -120px; margin-top: -175px; }
.shape-4 { width: 250px; height: 250px; background: rgba(81, 72, 127, 0.08); bottom: 10%; right: -80px; animation-delay: -5s; }
.shape-5 { width: 320px; height: 320px; background: rgba(110, 44, 253, 0.12); top: -80px; right: 10%; animation-delay: -3s; }
.shape-6 { width: 380px; height: 380px; background: rgba(81, 72, 127, 0.1); bottom: -100px; left: 50%; margin-left: -190px; animation-delay: -10s; }
.shape-7 { width: 300px; height: 300px; background: rgba(110, 44, 253, 0.1); top: 20%; right: -100px; animation-delay: -4s; }
.shape-8 { width: 350px; height: 350px; background: rgba(81, 72, 127, 0.12); bottom: -80px; left: -100px; animation-delay: -6s; }
.shape-9 { width: 280px; height: 280px; background: rgba(110, 44, 253, 0.1); top: -60px; left: 20%; animation-delay: -2s; }
.shape-cta { width: 500px; height: 500px; background: rgba(255, 255, 255, 0.03); top: 50%; left: 50%; margin: -250px 0 0 -250px; animation: none; }
.shape-contact { width: 400px; height: 400px; background: rgba(110, 44, 253, 0.08); top: -100px; right: -150px; animation-delay: -8s; }

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(20px, -20px); }
    66% { transform: translate(-15px, 15px); }
}

/* ========== Navigation (Sticky) - Eye-catching header design ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(110, 44, 253, 0.08);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #000000 0%, var(--primary) 50%, #51487F 100%);
    opacity: 0.9;
}

/* Solid background when scrolled */
.header.scrolled {
    background: #ffffff;
    box-shadow: 0 4px 25px rgba(110, 44, 253, 0.12);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    transition: opacity var(--transition);
}

.logo:hover {
    opacity: 0.9;
}

.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition);
}

.logo:hover .logo-img {
    transform: scale(1.02);
}

.logo i {
    font-size: 1.5rem;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
    position: relative;
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary);
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: opacity var(--transition);
}

.nav-toggle:hover {
    opacity: 0.8;
}

.hamburger {
    width: 24px;
    height: 2px;
    background: #374151;
    transition: var(--transition);
}

.nav-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    width: 100%;
    background: linear-gradient(135deg, #000000 0%, #0d0d14 25%, #1a1a2e 50%, #2d2a52 75%, #3d2d6b 100%);
    padding: 6.5rem 1.5rem 4rem;
    overflow: hidden;
}

/* Hero background shapes */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: heroShapeFloat 25s ease-in-out infinite;
}

.hero-shape-1 { width: 600px; height: 600px; background: rgba(110, 44, 253, 0.25); top: -200px; right: -150px; }
.hero-shape-2 { width: 400px; height: 400px; background: rgba(81, 72, 127, 0.2); bottom: -100px; left: -100px; animation-delay: -8s; }
.hero-shape-3 { width: 300px; height: 300px; background: rgba(110, 44, 253, 0.15); top: 40%; left: 30%; animation-delay: -15s; }

@keyframes heroShapeFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.05); }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(110, 44, 253, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--dark), transparent);
    pointer-events: none;
}

.hero-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    max-width: 560px;
}

.hero-title {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--white);
    animation: heroFadeIn 0.8s ease-out forwards;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(248, 250, 252, 0.85);
    margin-bottom: 2rem;
    animation: heroFadeIn 0.8s ease-out 0.15s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: heroFadeIn 0.8s ease-out 0.3s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: heroFadeIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-illustration {
    position: relative;
    width: 100%;
    max-width: 520px;
}

.hero-illustration img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    border-radius: 8px;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--gradient-primary);
    box-shadow: 0 4px 14px rgba(110, 44, 253, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(110, 44, 253, 0.5);
    background: linear-gradient(135deg, #6E2CFD 0%, #8b5cff 100%);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* ============================================
   Section Styles
   ============================================ */

/* Section spacing - improved rhythm */
section {
    padding: 5.5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* ========== Section Transitions (smooth visual flow) ========== */
section {
    position: relative;
    transition: background 0.5s ease;
}

/* Services Section */
.services {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
}

.services-header {
    text-align: center;
    margin-bottom: 3rem;
}

.services-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.services-header p {
    color: #64748b;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(110, 44, 253, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(110, 44, 253, 0.12);
}

/* Staggered card reveal when section is visible */
.services-grid .service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.services.revealed .service-card {
    opacity: 1;
    transform: translateY(0);
}

.services.revealed .service-card:nth-child(1) { transition-delay: 0.05s; }
.services.revealed .service-card:nth-child(2) { transition-delay: 0.1s; }
.services.revealed .service-card:nth-child(3) { transition-delay: 0.15s; }
.services.revealed .service-card:nth-child(4) { transition-delay: 0.2s; }
.services.revealed .service-card:nth-child(5) { transition-delay: 0.25s; }
.services.revealed .service-card:nth-child(6) { transition-delay: 0.3s; }

.service-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.service-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* About Section */
.about {
    background: var(--gradient-dark);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-text h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.stat:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Our Working Process Section */
.process {
    background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
}

.process-header {
    text-align: center;
    margin-bottom: 3rem;
}

.process-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.process-header p {
    color: #64748b;
    font-size: 1.1rem;
}

.process-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: rgba(110, 44, 253, 0.25);
    z-index: 0;
}

.process-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.process-number {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 24px rgba(110, 44, 253, 0.4);
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover .process-number {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(110, 44, 253, 0.5);
}

.process-content {
    padding: 0 0.5rem;
}

.process-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.process-content p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
}

/* Why Choose Us Section */
.why-us {
    background: #f8fafc;
}

.why-us-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.why-us-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.why-us-visual img {
    width: 100%;
    max-width: 480px;
    height: auto;
}

.why-us-content {
    max-width: 520px;
}

.why-us-heading {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.why-us-subheading {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.why-us-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.why-us-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.why-us-item:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(110, 44, 253, 0.25);
    transform: translateX(4px);
    box-shadow: 0 12px 40px rgba(110, 44, 253, 0.1);
}

.why-us-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: #ffffff;
    border-radius: 12px;
    font-size: 1.25rem;
    transition: all var(--transition);
}

.why-us-item:hover .why-us-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(110, 44, 253, 0.35);
}

.why-us-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.why-us-item p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

/* Portfolio / Recent Projects Section */
.portfolio {
    background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 50%, #f8fafc 100%);
}

.portfolio-header {
    text-align: center;
    margin-bottom: 3rem;
}

.portfolio-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.portfolio-header p {
    color: #64748b;
    font-size: 1.1rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.portfolio-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.portfolio-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.03);
    box-shadow: 0 24px 50px rgba(110, 44, 253, 0.12);
}

.portfolio-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(110, 44, 253, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-overlay i {
    font-size: 2rem;
    color: #ffffff;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    padding: 1.25rem;
}

.portfolio-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    background: rgba(110, 44, 253, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    margin-right: 0.35rem;
    margin-bottom: 0.5rem;
}

.portfolio-tag:last-of-type {
    margin-right: 0;
}

.portfolio-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary);
}

/* Testimonials Section */
.testimonials {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.testimonials-header {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonials-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.testimonials-header p {
    color: #64748b;
    font-size: 1.1rem;
}

.testimonials-slider {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.testimonials-inner {
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    flex: 0 0 100%;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    box-shadow: 0 12px 40px rgba(110, 44, 253, 0.08);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1rem;
    margin-bottom: 1rem;
    letter-spacing: 0.15em;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    font-size: 1.125rem;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: #64748b;
}

.testimonial-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-btn:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 30px rgba(110, 44, 253, 0.4);
}

.testimonial-prev {
    left: 0.5rem;
}

.testimonial-next {
    right: 0.5rem;
}

/* Pricing Section */
.pricing {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
}

.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.pricing-header p {
    color: #64748b;
    font-size: 1.1rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.pricing-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(110, 44, 253, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(110, 44, 253, 0.12);
}

.pricing-card.pricing-featured {
    background: linear-gradient(135deg, rgba(110, 44, 253, 0.95) 0%, rgba(81, 72, 127, 0.95) 100%);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 24px 50px rgba(110, 44, 253, 0.35);
}

.pricing-card.pricing-featured:hover {
    transform: scale(1.06) translateY(-4px);
    box-shadow: 0 30px 60px rgba(110, 44, 253, 0.4);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #fbbf24;
    color: #000000;
    padding: 0.35rem 1rem;
    border-radius: 20px;
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.pricing-featured .pricing-name {
    color: #ffffff;
}

.pricing-price {
    margin-bottom: 1.5rem;
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.pricing-featured .pricing-amount {
    color: #ffffff;
}

.pricing-period {
    font-size: 1rem;
    color: #64748b;
}

.pricing-featured .pricing-period {
    color: rgba(255, 255, 255, 0.9);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #475569;
}

.pricing-featured .pricing-features li {
    color: rgba(255, 255, 255, 0.95);
}

.pricing-features i {
    color: #22c55e;
    flex-shrink: 0;
}

.pricing-featured .pricing-features i {
    color: #fbbf24;
}

.btn-pricing {
    display: block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: var(--primary);
    color: #ffffff;
    border: none;
}

.btn-pricing:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(110, 44, 253, 0.35);
}

.btn-pricing-featured {
    background: #ffffff;
    color: var(--primary);
}

.btn-pricing-featured:hover {
    background: #f8fafc;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* CTA Section */
.cta {
    width: 100%;
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, #000000 0%, #1a1a2e 50%, #2d2a52 100%);
    text-align: center;
    position: relative;
}

.cta-content {
    max-width: 640px;
    margin: 0 auto;
}

.cta-heading {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    background: #ffffff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.btn-cta:active {
    transform: translateY(-1px);
}

/* ========== Back to Top Button ========== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(110, 44, 253, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 32px rgba(110, 44, 253, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    background: var(--primary);
    box-shadow: 0 12px 40px rgba(110, 44, 253, 0.5);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    background: var(--gradient-dark);
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.contact-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.form-group .required {
    color: #f87171;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:hover,
.contact-form textarea:hover {
    border-color: rgba(110, 44, 253, 0.3);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #94a3b8;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(110, 44, 253, 0.15);
}

.contact-form input.error,
.contact-form textarea.error {
    border-color: #f87171;
}

.form-error {
    font-size: 0.85rem;
    color: #f87171;
    min-height: 1.2em;
}

.btn-submit {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(110, 44, 253, 0.4);
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.contact-info-item i {
    font-size: 1.25rem;
    color: var(--primary);
    margin-top: 0.15rem;
}

.contact-info-item strong {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
}

.contact-info-item p {
    margin: 0;
    color: var(--white);
    font-size: 1rem;
}

.contact-info-item a {
    color: var(--white);
}

.contact-info-item a:hover {
    color: var(--primary-light);
}

.contact-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.contact-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-social a:hover {
    background: var(--primary);
    transform: translateY(-2px);
    color: #ffffff;
}

/* Footer */
.footer {
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-main {
    padding: 4rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
    transition: opacity var(--transition);
}

.footer-logo:hover .footer-logo-img {
    opacity: 0.9;
}

.footer-logo i {
    font-size: 1.75rem;
    color: var(--primary);
}

.footer-desc {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 280px;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.95rem;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-social-icons {
    display: flex;
    gap: 0.75rem;
}

.footer-social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-social-icons a:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-bottom {
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
}

/* ============================================
   Responsive Design
   Tablet: 992px | Mobile: 768px
   ============================================ */

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card:last-child {
        grid-column: 1 / -1;
        max-width: 400px;
        justify-self: center;
    }

    .pricing-card.pricing-featured {
        transform: scale(1.03);
    }

    .pricing-card.pricing-featured:hover {
        transform: scale(1.04);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info-section {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-desc {
        max-width: 100%;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        text-align: center;
    }

    .hero-description {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-illustration {
        max-width: 400px;
        margin: 0 auto;
    }

    .why-us-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .why-us-visual {
        order: -1;
    }

    .why-us-content {
        max-width: 100%;
    }

    .process-timeline {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .process-timeline::before {
        top: 0;
        bottom: 0;
        left: 31px;
        right: auto;
        width: 2px;
        height: 100%;
    }

    .process-step {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 1.5rem;
        padding: 1.5rem 0;
        padding-left: 0;
    }

    .process-step:first-child {
        padding-top: 0;
    }

    .process-number {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .process-content {
        padding: 0.5rem 0 0;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .pricing-card.pricing-featured {
        transform: none;
    }

    .pricing-card.pricing-featured:hover {
        transform: none;
    }

    .footer-main {
        padding: 3rem 0 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-social-icons {
        justify-content: center;
    }

    /* Back to top - mobile positioning */
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }

    /* Tighter section spacing on mobile */
    section {
        padding: 4rem 0;
    }

    .hero {
        padding: 5rem 1rem 3rem;
        min-height: auto;
        padding-top: 6rem;
    }

    .hero-container {
        gap: 2rem;
    }

    .hero-title {
        font-size: clamp(1.875rem, 6vw, 2.5rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-illustration {
        max-width: 320px;
    }

    .why-us-container {
        gap: 1.5rem;
    }

    .why-us-visual img {
        max-width: 360px;
    }

    .why-us-item {
        padding: 1rem;
    }

    .why-us-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
        transition: right var(--transition);
    }

    .nav-menu.active {
        right: 0;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}
