/* ============================================
   THEVERTECH - COMPLETE CSS WITH PERFECT DARK/LIGHT THEME
   Version: 3.0 - All Sections Fixed
   ============================================ */

/* ============================================
   CSS VARIABLES & THEME SYSTEM
   ============================================ */

/* DEFAULT THEME: DARK MODE */
:root {
    /* Brand Colors (Theme Independent) */
    --gradient-start: #cd01fd;
    --gradient-end: #580166;
    --gradient-primary: linear-gradient(135deg, #cd01fd 0%, #580166 100%);

    /* Dark Theme Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #151515;
    --bg-tertiary: #1a1a1a;
    --bg-elevated: #202020;

    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-tertiary: #888888;

    --border-light: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(205, 1, 253, 0.2);

    --overlay-light: rgba(0, 0, 0, 0.5);
    --overlay-medium: rgba(0, 0, 0, 0.7);
    --overlay-heavy: rgba(0, 0, 0, 0.9);

    /* Shadows for Dark Theme */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 8px 32px rgba(205, 1, 253, 0.2);

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Exo 2', sans-serif;

    /* Spacing */
    --section-padding: 100px;
    --section-padding-mobile: 60px;

    /* Effects */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-quick: all 0.3s ease;
    --transition-theme: all 0.3s ease-in-out;
}

/* LIGHT THEME */
body.light-theme {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f5;
    --bg-elevated: #ffffff;

    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-tertiary: #999999;

    --border-light: rgba(0, 0, 0, 0.08);
    --border-medium: rgba(0, 0, 0, 0.12);
    --border-accent: rgba(205, 1, 253, 0.15);

    --overlay-light: rgba(255, 255, 255, 0.5);
    --overlay-medium: rgba(255, 255, 255, 0.7);
    --overlay-heavy: rgba(255, 255, 255, 0.9);

    /* Shadows for Light Theme */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 8px 32px rgba(205, 1, 253, 0.15);
}

/* ============================================
   GLOBAL RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--bg-primary);
    transition: var(--transition-theme);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: var(--transition-theme);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    transition: var(--transition-theme);
}

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

/* ============================================
   GRADIENT TEXT UTILITY
   ============================================ */
.gradient-text,
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* ============================================
   SECTION UTILITIES
   ============================================ */
section {
    padding: var(--section-padding) 0;
    position: relative;
    background: var(--bg-primary);
    transition: var(--transition-theme);
}

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gradient-start);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    font-family: var(--font-secondary);
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-block;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-end) 0%, var(--gradient-start) 100%);
    z-index: -1;
    transition: var(--transition-smooth);
    opacity: 0;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(205, 1, 253, 0.35);
    color: #ffffff;
}

.btn-outline-light,
.btn-outline-white {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-medium);
}

.btn-outline-light:hover,
.btn-outline-white:hover {
    background: var(--bg-elevated);
    border-color: var(--gradient-start);
    color: var(--text-primary);
}

.btn-gradient {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(205, 1, 253, 0.4);
    color: #ffffff;
}

/* ============================================
   PRELOADER
   ============================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.logo-anim {
    font-size: clamp(3rem, 8vw, 5rem);
    font-family: var(--font-secondary);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: pulseCenter 2s ease-in-out infinite;
}

@keyframes pulseCenter {

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

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.loading-bar {
    width: 250px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.loading-bar::after {
    content: '';
    display: block;
    width: 50%;
    height: 100%;
    background: #ffffff;
    animation: loading 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(300%);
    }
}

/* ============================================
   WHATSAPP FLOAT BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
    color: #ffffff;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    padding: 20px 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: var(--bg-elevated);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.navbar-brand {
    font-family: var(--font-secondary);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-family: var(--font-secondary);
    font-weight: 500;
    color: var(--text-secondary) !important;
    padding: 8px 20px !important;
    margin: 0 5px;
    transition: var(--transition-quick);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.navbar-toggler {
    border: none;
    padding: 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(205, 1, 253, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
}

.hero-dark-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(205, 1, 253, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-content-centered {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-tagline {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--gradient-start);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-main-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hero-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-stats-row {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem;
    background: var(--bg-elevated);
    border-radius: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
}

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

.stat-value {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: var(--border-light);
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--gradient-start);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--gradient-end);
    top: 50%;
    right: 10%;
    animation-delay: 5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--gradient-start);
    bottom: 10%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--border-medium);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--gradient-start);
    border-radius: 2px;
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Fade Up Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    background: var(--bg-secondary);
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.strength-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.strength-item:hover {
    transform: translateX(10px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-md);
}

.strength-item i {
    color: var(--gradient-start);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.strength-item h4 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.strength-item p {
    color: var(--text-secondary);
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-box {
    text-align: center;
    padding: 2rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-box h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-box p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   APPROACH/WORKFLOW SECTION - FIXED
   ============================================ */
.approach-section {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.approach-dark-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(205, 1, 253, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.workflow-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.workflow-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.workflow-step {
    position: relative;
    text-align: center;
    padding: 1.5rem;
}

.step-circle {
    width: 120px;
    height: 120px;
    background: var(--bg-elevated);
    border: 3px solid var(--border-accent);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition-smooth);
    position: relative;
}

.workflow-step:hover .step-circle {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
    border-color: var(--gradient-start);
}

.step-number {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.step-icon i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.step-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.workflow-connector {
    display: none;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    background: var(--bg-secondary);
}

.service-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 0;
}

.service-card:hover::before {
    opacity: 0.03;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-accent);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.service-features span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features i {
    color: var(--gradient-start);
    font-size: 0.75rem;
}

/* ============================================
   TOOLS SECTION - FIXED WITH MARQUEE
   ============================================ */
.tools-section {
    background: var(--bg-primary);
    padding: var(--section-padding) 0;
    overflow: hidden;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 1.5rem 0;
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 2rem;
}

.marquee-content {
    display: flex;
    gap: 2rem;
    animation: marquee-left 40s linear infinite;
}

.marquee-right .marquee-content {
    animation: marquee-right 40s linear infinite;
}

@keyframes marquee-left {
    0% {
        transform: translateX(0);
    }

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

@keyframes marquee-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.marquee:hover .marquee-content {
    animation-play-state: paused;
}

.tool-badge {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    min-width: 180px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.tool-badge:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-accent);
}

.tool-badge i {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tool-badge span {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */

.portfolio-section {
    background: var(--bg-secondary);
}

/* Filter Buttons */
.portfolio-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 12px 30px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* IMPORTANT FIX: Remove CSS Grid */
.portfolio-grid {
    margin: 0;
}

/* Portfolio Card */
.portfolio-card {
    background: var(--bg-elevated);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-light);
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* Image */
.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

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

/* Overlay */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    transition: var(--transition-smooth);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 0.9;
}

/* Overlay Content */
.portfolio-content h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.portfolio-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.portfolio-stat {
    display: block;
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
}

.view-project-btn {
    background: #ffffff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.view-project-btn i {
    color: var(--gradient-start);
}

.view-project-btn:hover {
    transform: scale(1.1);
}

/* ============================================
   SUCCESS METRICS
   ============================================ */

.success-metrics {
    margin-top: 4rem;
}

.metric-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.metric-card.active {
    background: var(--gradient-primary);
    border-color: transparent;
}

.metric-card.active h3,
.metric-card.active .metric-value,
.metric-card.active .metric-label {
    color: #ffffff;
}

/* Fix Typography */
.metric-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    display: block;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials-section {
    background: var(--bg-primary);
}

/* Wrapper */
.testimonials-carousel-wrapper {
    position: relative;
    /* max-width: 900px; */
    margin: 0 auto;
    padding: 0 70px;
}

/* Carousel */
.testimonials-carousel {
    overflow: hidden;
    border-radius: 20px;
}


@media (max-width: 992px) {
    .testimonial-card-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .testimonial-card-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Track */
.testimonials-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

/* Each Slide */
.testimonial-card-item {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
}

/* Quote */
.quote-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.quote-icon i {
    font-size: 1.5rem;
    color: #ffffff;
}

/* Text */
.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-divider {
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 2rem 0;
}

.testimonial-author {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.testimonial-role {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.testimonial-stars {
    color: #ffa500;
    font-size: 1.125rem;
}

.testimonial-stars i {
    margin-right: 0.25rem;
}

/* Navigation */
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--text-primary);
    z-index: 10;
}

.testimonial-nav:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.testimonial-nav.prev {
    left: 0;
}

.testimonial-nav.next {
    right: 0;
}

/* Indicators */
.testimonial-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.testimonial-indicators .dot {
    width: 12px;
    height: 12px;
    background: var(--border-medium);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-indicators .dot.active {
    background: var(--gradient-start);
    width: 30px;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .testimonials-carousel-wrapper {
        padding: 0 20px;
    }

    .testimonial-card-item {
        padding: 2rem;
    }

    .testimonial-nav {
        display: none;
    }
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background: var(--bg-primary);
    position: relative;
}

/* Gradient Box */
.cta-gradient-bg {
    background: var(--gradient-primary);
    border-radius: 30px;
    padding: 5rem 3rem;
    position: relative;
    overflow: hidden;
}

/* Decorative Blobs */
.cta-gradient-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.cta-gradient-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 50%;
}

/* Content */
.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

/* Title */
.cta-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Text */
.cta-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

/* Button */
.cta-content .btn {
    background: #ffffff;
    color: var(--gradient-end);
    font-size: 1.125rem;
    padding: 16px 40px;
    border-radius: 50px;
    transition: var(--transition-smooth);
}

.cta-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}


/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background: var(--bg-secondary);
}

.contact-form {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 14px 20px;
    border-radius: 12px;
    transition: var(--transition-quick);
}

.form-control:focus,
.form-select:focus {
    background: var(--bg-secondary);
    border-color: var(--gradient-start);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(205, 1, 253, 0.1);
}

.form-control::placeholder {
    color: var(--text-tertiary);
}

.invalid-feedback {
    color: #ff4757;
}

.contact-info-cards {
    display: grid;
    gap: 2rem;
}

.contact-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition-smooth);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-accent);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.75rem;
    color: #ffffff;
}

.contact-details h4 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-details p,
.contact-details a {
    color: var(--text-secondary);
    margin: 0;
    transition: var(--transition-quick);
}

.contact-details a:hover {
    color: var(--gradient-start);
}

.form-response {
    padding: 1rem;
    border-radius: 12px;
    display: none;
}

.form-response.success {
    background: rgba(46, 213, 115, 0.1);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.3);
    display: block;
}

.form-response.error {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.3);
    display: block;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-tertiary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-light);
}

.footer-text {
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-heading {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition-quick);
}

.footer-links a:hover {
    color: var(--gradient-start);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-contact i {
    color: var(--gradient-start);
    font-size: 1.125rem;
}

.footer-contact a {
    color: var(--text-secondary);
    transition: var(--transition-quick);
}

.footer-contact a:hover {
    color: var(--gradient-start);
}

.footer-divider {
    border: 0;
    height: 1px;
    background: var(--border-light);
    margin: 2.5rem 0;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    background: var(--gradient-primary);
    color: #ffffff;
    transform: translateY(-3px);
    border-color: transparent;
}

.footer-social-spacing {
    margin-right: 0;
}

@media (min-width: 992px) { /* lg screens */
    .footer-social-spacing {
        margin-right: 110px;
    }
}

/* ============================================
   PROJECT MODAL
   ============================================ */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    overflow-y: auto;
}

.project-modal.active {
    display: block;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-heavy);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.modal-container {
    position: relative;
    max-width: 1200px;
    margin: 50px auto;
    background: var(--bg-elevated);
    border-radius: 30px;
    overflow: hidden;
    z-index: 2;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: rotate(90deg);
}

.modal-close i {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.modal-close:hover i {
    color: #ffffff;
}

.modal-header-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.modal-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 3rem;
}

.project-category {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-primary);
    color: #ffffff;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.project-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.project-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.project-section {
    margin-bottom: 2.5rem;
}

.section-heading {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-heading i {
    color: var(--gradient-start);
}

.project-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-tag {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

.project-sidebar {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-light);
    position: sticky;
    top: 20px;
}

.sidebar-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-section:last-of-type {
    border-bottom: none;
}

.sidebar-section h4 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-section h4 i {
    color: var(--gradient-start);
}

.sidebar-section p {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-elevated);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.result-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.result-icon i {
    font-size: 1.25rem;
    color: #ffffff;
}

.result-content h5 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.result-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.modal-cta {
    margin-top: 2rem;
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--border-light);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
    border-color: var(--gradient-start);
}

.theme-toggle i {
    position: absolute;
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.sun-icon {
    color: #ffa500;
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

.moon-icon {
    color: var(--gradient-start);
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

body.light-theme .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

body.light-theme .moon-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 992px) {
    :root {
        --section-padding: 60px;
    }

    .hero-stats-row {
        gap: 1.5rem;
    }

    .stat-divider {
        display: none;
    }

    .workflow-steps {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .modal-container {
        margin: 20px;
    }

    .modal-body {
        padding: 2rem;
    }

    .project-sidebar {
        margin-top: 2rem;
        position: static;
    }

    .testimonials-carousel-wrapper {
        padding: 0 50px;
    }
}

@media (max-width: 768px) {
    .hero-cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta-buttons .btn {
        width: 100%;
    }

    .service-card {
        padding: 2rem;
    }

    .portfolio-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }

    .theme-toggle,
    .whatsapp-float {
        width: 50px;
        height: 50px;
    }

    .theme-toggle {
        bottom: 90px;
        right: 20px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }

    .theme-toggle i {
        font-size: 1.25rem;
    }

    .cta-gradient-bg {
        padding: 3rem 2rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .modal-header-image {
        height: 250px;
    }

    .testimonials-carousel-wrapper {
        padding: 0 40px;
    }

    .testimonial-nav {
        width: 40px;
        height: 40px;
    }

    .testimonial-card-item {
        padding: 2rem;
    }

    .workflow-steps {
        grid-template-columns: 1fr;
    }

    .step-circle {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    .stat-column {
        min-width: 100px;
    }

    .hero-stats-row {
        padding: 1.5rem;
    }

    .stats-grid,
    .metrics-row {
        grid-template-columns: 1fr;
    }

    .testimonial-card-item {
        padding: 1.5rem;
    }

    .section-heading {
        font-size: 1.25rem;
    }

    .tool-badge {
        min-width: 150px;
        padding: 1.25rem 1.5rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--gradient-start);
    outline-offset: 2px;
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    :root {
        --border-light: rgba(255, 255, 255, 0.3);
        --border-medium: rgba(255, 255, 255, 0.5);
    }

    body.light-theme {
        --border-light: rgba(0, 0, 0, 0.3);
        --border-medium: rgba(0, 0, 0, 0.5);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {

    .navbar,
    .whatsapp-float,
    .theme-toggle,
    .scroll-indicator,
    .floating-shapes,
    .cta-section {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}