/* ==========================================
   HAPTAGS GLOBAL STYLES & DESIGN SYSTEM
========================================== */

:root {
    /* Color Palette - Premium Corporate */
    --bg-dark: #FEFEFC;
    --bg-surface: #FFFFFF;
    --bg-surface-elevated: #FFFFFF;
    --bg-alt: #F3F7FB;
    --bg-secondary: #F8FAFC;
    
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-active: #1E40AF;
    --primary-light: #DBEAFE;
    --primary-very-light: #EFF6FF;
    
    --accent: #38BDF8;
    
    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --text-caption: #94A3B8;
    
    --border-color: #E2E8F0;
    --border-header: #D7E6F5;
    --border-input: #CBD5E1;
    
    --shadow-soft: 0 8px 24px rgba(15,23,42,.05);
    --shadow-medium: 0 16px 40px rgba(15,23,42,.08);
    --shadow-strong: 0 20px 60px rgba(15,23,42,.12);

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

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-theme {
    --bg-dark: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(79, 172, 254, 0.15);
    --bg-header-scrolled: rgba(248, 250, 252, 0.8);
    --bg-glass-card: rgba(255, 255, 255, 0.7);
    --shadow-glass-card: 0 20px 50px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(0, 0, 0, 0.05);
    --bg-alt: #f1f5f9;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

/* Remove light theme since we're permanent light */
body.light-theme {
    --bg-dark: #FEFEFC;
    --bg-surface: #FFFFFF;
    --bg-surface-elevated: #FFFFFF;
    --bg-alt: #F3F7FB;
    --bg-secondary: #F8FAFC;
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-active: #1E40AF;
    --primary-light: #DBEAFE;
    --primary-very-light: #EFF6FF;
    --accent: #38BDF8;
    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --text-caption: #94A3B8;
    --border-color: #E2E8F0;
    --border-header: #D7E6F5;
    --border-input: #CBD5E1;
    --shadow-soft: 0 8px 24px rgba(15,23,42,.05);
    --shadow-medium: 0 16px 40px rgba(15,23,42,.08);
    --shadow-strong: 0 20px 60px rgba(15,23,42,.12);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

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

section {
    position: relative;
}

.section {
    padding: 120px 0;
}

.alt-bg {
    background-color: var(--bg-alt);
}

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

button, input, select, textarea {
    font-family: inherit;
}

/* Typography Presets */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
}

h2.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
    background: none;
}

body.light-theme h2.section-title {
    background: linear-gradient(135deg, #0f172a 0%, #165dff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-secondary);
}

.section-header {
    margin-bottom: 64px;
    max-width: 600px;
}

.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Badges & Accents */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    background: var(--primary-very-light);
    color: var(--primary);
    border: none;
    margin-bottom: 24px;
}

.google-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.c-green { color: #10b981; }
.c-red { color: #f43f5e; }
.c-cyan { color: #06b6d4; }
.c-blue { color: #3b82f6; }
.c-purple { color: #a855f7; }
.c-orange { color: #f97316; }
.c-yellow { color: #eab308; }
.c-grey { color: var(--text-muted); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(37,99,235,.20);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--primary-hover);
    box-shadow: 0 16px 40px rgba(37,99,235,.30);
}

.btn-secondary {
    background: #FFFFFF;
    color: var(--text-primary);
    border: 1px solid #D6E4F5;
}

.btn-secondary:hover {
    background: var(--primary-very-light);
    border-color: #D6E4F5;
    transform: translateY(-3px);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-link i {
    transition: transform var(--transition-fast);
}

.btn-link:hover i {
    transform: translateX(4px);
}

/* Navigation Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all 0.3s ease;
    background: #EAF4FF;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #D7E6F5;
    box-shadow: 0 4px 24px rgba(15,23,42,.05);
}

#main-header.scrolled {
    height: 70px;
    background: rgba(234,244,255,0.95);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.logo-text span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.nav-cta {
    background: var(--primary);
    border: none;
    padding: 12px 24px;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-links a.nav-cta:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37,99,235,.20);
}

.nav-links a.nav-cta::after {
    display: none;
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
    transform-origin: center;
}

.mobile-nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 992px) {
    .mobile-nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-surface);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: right var(--transition-normal);
        z-index: 999;
        border-left: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        right: 0;
    }
}

/* Hero Section */
#hero {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 40px);
    display: flex;
    align-items: center;
    background-image: radial-gradient(circle at top right, rgba(37,99,235,.08), transparent 45%),
                      radial-gradient(circle at bottom left, rgba(56,189,248,.06), transparent 50%);
    background-color: var(--bg-dark);
}

.hero-bg-shapes .shape {
    display: none;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: 10%;
    right: 15%;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: 20%;
    left: 10%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        padding-bottom: 60px;
    }
}

.hero-content h1 {
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 580px;
    line-height: 1.7;
}

@media (max-width: 992px) {
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

@media (max-width: 992px) {
    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 24px 0;
    margin-top: 32px;
    background: #ffffff;
}

@media (max-width: 992px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 16px;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.stat-item:last-child {
    border-right: none;
}

@media (max-width: 992px) {
    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        padding: 16px;
    }
    .stat-item:nth-child(even) {
        border-left: 1px solid rgba(0, 0, 0, 0.06);
    }
    .stat-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .stat-item {
        border-left: none !important;
    }
}

.stat-item i {
    font-size: 1.8rem;
    color: #165dff;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #000000;
    -webkit-text-fill-color: #000000;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

/* Floating Code Window */
.hero-visual {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 992px) {
    .hero-visual {
        justify-content: center;
        margin-top: 30px;
    }
}

.glass-dashboard {
    width: 100%;
    max-width: 460px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    animation: none;
    transition: all 0.3s ease;
}

.glass-dashboard:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.dashboard-header {
    background: #ffffff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dashboard-header .dots {
    display: flex;
    gap: 6px;
    margin-right: 16px;
}

.dashboard-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.title-bar {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.project-tracker-body {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 20px;
}

.project-header-info {
    margin-bottom: 16px;
}

.proj-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #000000;
}

.proj-status {
    font-size: 0.85rem;
    color: #165dff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.milestones-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #E5E7EB;
    border-radius: 100px;
    overflow: hidden;
}

.progress-line-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 100px;
}

.percentage-display {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    align-self: flex-end;
}

.milestone-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.milestone-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    text-align: left;
    padding: 0;
    border: none;
    transition: none;
    cursor: default;
}

.step-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.milestone-step.done .step-icon {
    color: var(--primary);
}

.milestone-step.active-step .step-icon {
    color: var(--accent);
}

.milestone-step.pending .step-icon {
    color: var(--text-muted);
}

.step-text {
    display: flex;
    flex-direction: column;
}

.step-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 2px;
}

.step-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.spinner-small {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.animate-float {
    animation: floating 4s ease-in-out infinite;
}

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

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

.service-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.service-card::before {
    display: none;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.service-icon {
    color: var(--primary);
    margin-bottom: 24px;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--primary-very-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.service-link {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link i {
    transition: transform var(--transition-fast);
}

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

.service-card:hover .service-link i {
    transform: translateX(4px);
}

/* Interactive Cost Estimator */
.estimator-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 48px;
    box-shadow: var(--shadow-medium);
}

@media (max-width: 992px) {
    .estimator-container {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }
}

.estimator-group {
    margin-bottom: 36px;
}

.estimator-group:last-child {
    margin-bottom: 0;
}

.group-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.estimator-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.option-btn {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 16px 20px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.option-btn i {
    font-size: 1.2rem;
}

.option-btn:hover {
    border-color: var(--primary-light);
    color: var(--text-primary);
    background: var(--primary-very-light);
}

.option-btn.active {
    background: var(--primary-very-light);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-soft);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.checkbox-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: all var(--transition-normal);
}

.checkbox-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-indicator {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.checkbox-card:hover {
    border-color: rgba(255,255,255,0.15);
}

.checkbox-card input:checked ~ .checkbox-indicator {
    border-color: var(--primary);
    background-color: var(--primary);
}

.checkbox-card input:checked ~ .checkbox-indicator::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
    color: #000;
}

.checkbox-card input:checked {
    border-color: var(--primary);
}

.checkbox-card.checked-state {
    border-color: rgba(0, 242, 254, 0.4);
    background: rgba(0, 242, 254, 0.02);
}

.checkbox-info {
    display: flex;
    flex-direction: column;
}

.feature-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.feature-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Range input styled */
.range-container {
    padding: 10px 0;
}

#complexity-range {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: var(--bg-surface-elevated);
    outline: none;
    border: 1px solid var(--border-color);
}

#complexity-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
    transition: transform var(--transition-fast);
}

#complexity-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

.range-labels span.active {
    color: var(--primary);
    font-weight: 600;
}

/* Estimator Results Card */
.estimator-results {
    display: flex;
    align-items: stretch;
}

.results-card {
    flex: 1;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-soft);
}

.results-card h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.result-stat {
    margin-bottom: 24px;
}

.result-stat .label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 8px;
}

.result-stat .value {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.result-stat .budget-value {
    font-size: 2.2rem;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.results-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.results-footer p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Portfolio grid & mock shots */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 24px;
    border-radius: 100px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--primary-light);
    background: var(--primary-very-light);
}

.filter-btn.active {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    font-weight: 600;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.portfolio-item {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.portfolio-item:hover {
    border-color: var(--primary-light);
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.portfolio-img {
    height: 280px;
    background: #0d0f1a;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.portfolio-info {
    padding: 32px;
}

.project-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 8px;
}

.portfolio-info h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.portfolio-info p {
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Styling CSS Project screenshots placeholders */
.mock-screenshot {
    width: 80%;
    height: 80%;
    background: #1e2235;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mock-header {
    height: 28px;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
}

.mock-header .dots {
    display: flex;
    gap: 4px;
}

.mock-header .dot {
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
}

.mock-header .url {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    font-family: monospace;
}

.mock-content {
    flex: 1;
    display: flex;
    padding: 16px;
    gap: 12px;
}

.mock-sidebar {
    width: 40px;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
}

.mock-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mock-block {
    height: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
}

.mock-block.large {
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(79, 172, 254, 0.1));
}

.mock-row {
    display: flex;
    gap: 8px;
}

.mock-row .mock-block {
    flex: 1;
}

/* Mobile frame */
.mock-screenshot.mock-mobile-1 {
    width: 130px;
    height: 90%;
    background: none;
    border: none;
}

.mock-phone-frame {
    width: 100%;
    height: 100%;
    background: #0f111a;
    border: 4px solid #2d3142;
    border-radius: 20px;
    position: relative;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.mock-phone-camera {
    width: 40px;
    height: 8px;
    background: #2d3142;
    border-radius: 10px;
    align-self: center;
    margin-bottom: 8px;
}

.mock-phone-screen {
    flex: 1;
    background: #141724;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phone-nav {
    height: 12px;
    background: rgba(255,255,255,0.04);
    border-radius: 4px;
}

.phone-chart {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-progress {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.03);
    border-top-color: var(--primary);
    animation: rotateCircle 3s linear infinite;
}

@keyframes rotateCircle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.phone-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.phone-list .line {
    height: 6px;
    background: rgba(255,255,255,0.04);
    border-radius: 2px;
}

/* Code block project mock */
.mock-content.code-style {
    flex-direction: column;
    background: #090a0f;
    font-family: monospace;
    font-size: 0.7rem;
    color: #4facfe;
    overflow-y: auto;
}

/* Crypto project mock */
.mock-content.crypto-style {
    flex-direction: column;
    gap: 12px;
}

.crypto-header {
    display: flex;
    justify-content: space-between;
}

.crypto-header .mini-block {
    width: 30px;
    height: 10px;
    background: rgba(255,255,255,0.05);
}

.crypto-header .mini-block.active {
    background: var(--primary);
    width: 45px;
}

.crypto-chart-line {
    height: 50px;
    background: linear-gradient(180deg, rgba(0, 242, 254, 0.08), transparent);
    border-bottom: 2px solid var(--primary);
    position: relative;
}

.crypto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.crypto-grid .grid-item {
    height: 25px;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
}

/* Why Choose Us & Load Simulator */
.why-us-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

@media (max-width: 992px) {
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.why-us-content h2 {
    font-size: 2.2rem;
    margin-bottom: 24px;
}

.why-us-content p {
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.strength-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

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

.strength-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--primary-very-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: none;
}

.strength-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.strength-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Load Simulator UI */
.why-us-interactive {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 992px) {
    .why-us-interactive {
        justify-content: center;
    }
}

.scheduler-container {
    width: 100%;
    max-width: 420px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-medium);
}

.scheduler-container h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.scheduler-container p.desc {
    font-size: 0.85rem;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.calendar-selector, .slots-selector {
    margin-bottom: 24px;
}

.days-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.day-circle-btn {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 10px 4px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    outline: none;
}

.day-circle-btn:hover {
    border-color: var(--primary-light);
    background: var(--primary-very-light);
    color: var(--text-primary);
}

.day-circle-btn.active {
    background: var(--primary-very-light);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-soft);
}

.day-lbl {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.day-num {
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 2px;
}

.day-month {
    font-size: 0.6rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.slot-btn {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    text-align: center;
}

.slot-btn:hover {
    border-color: var(--primary-light);
    background: var(--primary-very-light);
    color: var(--text-primary);
}

.slot-btn.active {
    background: var(--primary-very-light);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-soft);
}

.booking-success {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 16px;
    border-radius: 8px;
    text-align: left;
}

.booking-success i {
    font-size: 1.3rem;
    margin-top: 2px;
}

.booking-success h5 {
    font-size: 0.95rem;
    color: #10b981;
    margin-bottom: 4px;
}

.booking-success p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Google Review Actions */
.review-actions-container {
    margin: -24px auto 48px auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
    max-width: 800px;
}

.qr-code-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-surface);
    padding: 12px 20px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.qr-code-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-light);
}

.qr-code-card img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    background: #ffffff;
    padding: 2px;
}

.qr-code-info {
    text-align: left;
}

.qr-code-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 2px 0;
}

.qr-code-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* Testimonials slider styles */
.testimonials-slider-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-slider {
    display: flex;
    transition: transform var(--transition-slow);
}

.testimonial-card {
    min-width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.testimonial-card .stars {
    color: #eab308;
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.testimonial-card .quote {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 32px;
}

.client-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #000;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-meta h4.name {
    font-size: 1rem;
    margin-bottom: 2px;
}

.client-meta span.role {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
    padding: 0 24px;
}

.slider-arrow {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.slider-arrow:hover {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.20);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slider-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 100px;
}

/* About Section CSS Coding Mock */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: center;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-visual {
        order: 2;
    }
}

.about-visual {
    position: relative;
    padding-bottom: 40px;
}

.experience-badge {
    position: absolute;
    top: -20px;
    right: -10px;
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-surface-elevated) 100%);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.experience-badge .years {
    font-size: 2.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}

.experience-badge .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 600;
    max-width: 100px;
}

.code-editor-mock {
    background: #0b0d16;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.editor-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 18px;
    display: flex;
    align-items: center;
}

.editor-header .file-name {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.editor-content {
    padding: 24px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.editor-content p {
    font-family: monospace;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.editor-content p strong {
    color: var(--primary);
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 24px;
}

.about-content p {
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 36px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.value-item {
    display: flex;
    gap: 20px;
}

.value-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 2px;
}

.value-item h5 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.value-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Contact Us Styling */
.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 64px;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 24px;
}

.contact-info p {
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

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

.contact-item .icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--primary-very-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.contact-item h5 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-secondary);
}

.contact-item p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
}

.contact-form-wrapper {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-medium);
}

.contact-form h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid var(--border-input);
    border-radius: 14px;
    padding: 14px 18px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* Success Alert Styles */
.form-success-alert {
    text-align: center;
    padding: 40px 20px;
}

.form-success-alert i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.form-success-alert h4 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.form-success-alert p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Footer Section */
footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 32px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 48px;
    margin-bottom: 64px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand p {
    font-size: 0.9rem;
    margin-top: 20px;
    margin-bottom: 24px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer-socials a i {
    font-size: 1.2rem;
    display: inline-block;
}

.footer-socials a:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-very-light);
}

.footer-links h4 {
    font-size: 1.05rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-newsletter h4 {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-newsletter p {
    font-size: 0.85rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.newsletter-form {
    display: flex;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    padding: 6px;
}

.newsletter-form input {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 16px;
    color: var(--text-primary);
    outline: none;
    font-size: 0.85rem;
}

.newsletter-form button {
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    padding: 0 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.newsletter-success-msg {
    font-size: 0.8rem;
    color: var(--primary);
    margin-top: 8px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--text-secondary);
}

.footer-bottom a:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   THEME TOGGLE BUTTON
   ========================================================================== */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all var(--transition-fast);
    margin-left: 12px;
}

.theme-toggle-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
    transform: scale(1.05);
}

/* ==========================================================================
   TECHNOLOGY MATRIX STACK
   ========================================================================== */
.tech-matrix-container {
    width: 100%;
}

.tech-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tech-tab-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-heading);
}

.tech-tab-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    background: var(--bg-surface-elevated);
}

.tech-tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #07080d;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}

body.light-theme .tech-tab-btn.active {
    color: #ffffff;
}

.tech-grids-wrapper {
    position: relative;
    min-height: 250px;
}

.tech-grid {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    width: 100%;
    animation: fadeIn var(--transition-normal) forwards;
}

.tech-grid.active {
    display: grid;
}

.tech-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 24px;
    text-align: center;
    transition: all var(--transition-normal);
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.08);
}

.tech-card i {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: inline-block;
}

.tech-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-family: var(--font-heading);
}

.tech-card span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Brand Colors for Tech Icons */
.react-color { color: #61dafb; }
.js-color { color: #f7df1e; }
.html-color { color: #e34f26; }
.vue-color { color: #4fc08d; }
.node-color { color: #339933; }
.python-color { color: #3776ab; }
.database-color { color: #336791; }
.server-color { color: #a18cd1; }
.appstore-color { color: #02569B; }
.apple-color { color: #a2aaad; }
.android-color { color: #3DDC84; }
.aws-color { color: #FF9900; }
.docker-color { color: #2496ed; }
.google-color { color: #4285F4; }
.devops-color { color: #00f2fe; }

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

/* ==========================================================================
   FAQ ACCORDION SECTION
   ========================================================================== */
.faq-accordion-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

body.light-theme .faq-item:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 22px 28px;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
}

.faq-icon {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: transform var(--transition-normal);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease-out;
}

.faq-answer-content {
    padding: 0 28px 22px 28px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.faq-item.active {
    background: var(--bg-surface-elevated);
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.05);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

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

.reveal.reveal-left {
    transform: translateX(-40px);
}

.reveal.reveal-left.revealed {
    transform: translateX(0);
}

.reveal.reveal-right {
    transform: translateX(40px);
}

.reveal.reveal-right.revealed {
    transform: translateX(0);
}

/* Stagger delays for grid children */
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }
.reveal.delay-5 { transition-delay: 0.5s; }

/* ==========================================================================
   MOBILE NAV OVERLAY
   ========================================================================== */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

body.nav-open {
    overflow: hidden;
}

/* ==========================================================================
   CTA PULSE ANIMATION
   ========================================================================== */
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 242, 254, 0.2); }
    50% { box-shadow: 0 4px 30px rgba(0, 242, 254, 0.45), 0 0 60px rgba(0, 242, 254, 0.1); }
}

.btn-primary {
    animation: ctaPulse 3s ease-in-out infinite;
}

.btn-primary:hover {
    animation: none;
}

/* ==========================================================================
   GRADIENT ANIMATED BORDER ON HERO DASHBOARD
   ========================================================================== */
@keyframes borderGlow {
    0%, 100% { border-color: rgba(0, 242, 254, 0.2); }
    50% { border-color: rgba(79, 172, 254, 0.4); }
}

.glass-dashboard {
    animation: borderGlow 4s ease-in-out infinite;
}

/* ==========================================================================
   FOCUS-VISIBLE ACCESSIBILITY
   ========================================================================== */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* ==========================================================================
   HOVER GUARDS — only apply hover effects on pointer devices
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
    .service-card:hover {
        transform: translateY(-5px);
        border-color: rgba(0, 242, 254, 0.25);
        box-shadow: 0 10px 30px rgba(0, 242, 254, 0.05);
    }
    .portfolio-item:hover {
        border-color: rgba(0, 242, 254, 0.25);
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    }
    .tech-card:hover {
        transform: translateY(-5px);
        border-color: var(--primary);
        box-shadow: 0 10px 30px rgba(0, 242, 254, 0.08);
    }
}

/* Remove hover transforms on touch devices */
@media (hover: none) {
    .service-card:hover,
    .portfolio-item:hover,
    .tech-card:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Active states for touch feedback */
.btn:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

.option-btn:active,
.filter-btn:active,
.tech-tab-btn:active,
.faq-question:active {
    transform: scale(0.98);
    transition-duration: 0.1s;
}

/* ==========================================================================
   PREFERS-REDUCED-MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE — TABLET (≤992px)
   ========================================================================== */
@media (max-width: 992px) {
    .section {
        padding: 70px 0;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2.section-title {
        font-size: 2rem;
    }

    .section-header {
        margin-bottom: 48px;
    }

    /* Mobile Nav Enhancements */
    .nav-links {
        padding: 80px 40px 40px;
        width: 300px;
        background: var(--bg-surface);
        backdrop-filter: blur(20px);
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 12px 0;
    }

    .nav-links a.nav-cta {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        margin-top: 12px;
    }

    .theme-toggle-btn {
        margin: 16px auto 0;
    }

    /* Hero */
    #hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + 20px);
        padding-bottom: 60px;
    }

    .hero-content h1 {
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 1.05rem;
    }

    /* Glass Dashboard */
    .glass-dashboard {
        max-width: 380px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }

    .service-card {
        padding: 32px;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 24px;
    }

    /* Estimator */
    .estimator-container {
        padding: 28px 20px;
    }

    /* Tech Stack */
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 16px;
    }

    .tech-card {
        padding: 24px 16px;
    }

    /* About */
    .about-content h2 {
        font-size: 1.8rem;
    }

    /* Testimonial */
    .testimonial-card {
        padding: 36px 28px;
    }

    .testimonial-card .quote {
        font-size: 1.1rem;
    }

    /* Contact */
    .contact-form-wrapper {
        padding: 32px 24px;
    }

    .contact-info h2 {
        font-size: 1.8rem;
    }

    /* Footer */
    .footer-grid {
        gap: 32px;
    }
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE — MOBILE (≤768px)
   ========================================================================== */
@media (max-width: 768px) {
    .section {
        padding: 56px 0;
    }

    .container {
        padding: 0 16px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2.section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .badge {
        font-size: 0.7rem;
        padding: 5px 12px;
        margin-bottom: 16px;
    }

    /* Hero */
    #hero {
        padding-top: calc(var(--header-height) + 10px);
        padding-bottom: 40px;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }

    .hero-actions {
        margin-bottom: 32px;
    }

    .hero-stats {
        gap: 24px;
        padding-top: 24px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    /* Glass Dashboard */
    .glass-dashboard {
        max-width: 100%;
    }

    .project-tracker-body {
        padding: 16px;
    }

    .milestone-step {
        padding: 6px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 28px 24px;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    /* Estimator */
    .estimator-container {
        padding: 24px 16px;
        border-radius: 12px;
    }

    .estimator-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .option-btn {
        padding: 14px 12px;
        font-size: 0.8rem;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .results-card {
        padding: 28px 20px;
    }

    .results-card h3 {
        font-size: 1.2rem;
    }

    .result-stat .value {
        font-size: 1.5rem;
    }

    .result-stat .budget-value {
        font-size: 1.8rem;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-img {
        height: 200px;
    }

    .portfolio-info {
        padding: 24px 20px;
    }

    .portfolio-info h3 {
        font-size: 1.2rem;
    }

    .portfolio-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    /* Why Us */
    .why-us-content h2 {
        font-size: 1.6rem;
    }

    .why-us-content p {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }

    .strength-list {
        gap: 24px;
    }

    .strength-item h4 {
        font-size: 1rem;
    }

    /* Scheduler */
    .scheduler-container {
        max-width: 100%;
        padding: 24px 20px;
    }

    .days-row {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .day-circle-btn {
        padding: 8px 2px;
    }

    .day-lbl {
        font-size: 0.6rem;
    }

    .day-num {
        font-size: 1rem;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 28px 20px;
    }

    .testimonial-card .quote {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .slider-controls {
        padding: 0 8px;
        margin-top: 24px;
    }

    /* About */
    .about-content h2 {
        font-size: 1.6rem;
    }

    .about-content p {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }

    .experience-badge {
        top: -10px;
        right: 0;
        padding: 16px;
    }

    .experience-badge .years {
        font-size: 2.2rem;
    }

    .editor-content {
        padding: 16px;
        font-size: 0.75rem;
    }

    /* Tech Stack */
    .tech-tabs {
        gap: 8px;
        margin-bottom: 20px;
    }

    .tech-tab-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .tech-card {
        padding: 20px 12px;
        border-radius: 10px;
    }

    .tech-card i {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .tech-card h4 {
        font-size: 0.95rem;
    }

    /* FAQ */
    .faq-question {
        padding: 18px 20px;
        font-size: 0.95rem;
    }

    .faq-answer-content {
        padding: 0 20px 18px 20px;
        font-size: 0.85rem;
    }

    /* Contact */
    .contact-grid {
        gap: 36px;
    }

    .contact-info h2 {
        font-size: 1.6rem;
    }

    .contact-info p {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }

    .contact-item {
        gap: 14px;
    }

    .contact-item .icon {
        width: 42px;
        height: 42px;
    }

    .contact-item p {
        font-size: 0.95rem;
    }

    .contact-form-wrapper {
        padding: 24px 16px;
    }

    .contact-form h3 {
        font-size: 1.2rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    footer {
        padding: 48px 0 24px;
    }

    .footer-grid {
        margin-bottom: 32px;
    }
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE — SMALL MOBILE (≤480px)
   ========================================================================== */
@media (max-width: 480px) {
    .section {
        padding: 44px 0;
    }

    h1 {
        font-size: 1.75rem;
        letter-spacing: -0.01em;
    }

    h2.section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    /* Hero */
    .hero-content p {
        font-size: 0.88rem;
        margin-bottom: 24px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 28px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Estimator */
    .estimator-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .option-btn {
        padding: 12px 8px;
        font-size: 0.75rem;
        gap: 6px;
    }

    .option-btn i {
        font-size: 1rem;
    }

    .group-label {
        font-size: 0.9rem;
    }

    .result-stat .budget-value {
        font-size: 1.5rem;
    }

    /* Portfolio */
    .portfolio-img {
        height: 160px;
    }

    .portfolio-info {
        padding: 20px 16px;
    }

    /* Why Us */
    .strength-item {
        flex-direction: column;
        gap: 12px;
    }

    /* Scheduler */
    .days-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .slots-grid {
        grid-template-columns: 1fr;
    }

    /* Testimonials */
    .testimonial-card .quote {
        font-size: 0.9rem;
    }

    .client-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* About */
    .experience-badge {
        position: relative;
        top: auto;
        right: auto;
        margin: 0 auto 20px;
        width: fit-content;
    }

    .value-item {
        flex-direction: column;
        gap: 10px;
    }

    /* Contact */
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .contact-details {
        gap: 24px;
    }

    /* Tech tabs */
    .tech-tab-btn {
        padding: 7px 12px;
        font-size: 0.72rem;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .tech-card {
        padding: 16px 10px;
    }

    .tech-card i {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }

    .tech-card h4 {
        font-size: 0.85rem;
    }

    .tech-card span {
        font-size: 0.7rem;
    }

    /* FAQ */
    .faq-question {
        padding: 16px;
        font-size: 0.88rem;
        gap: 12px;
    }

    .faq-answer-content {
        padding: 0 16px 16px 16px;
    }
}

/* ==========================================================================
   LIGHT THEME ADDITIONAL REFINEMENTS
   ========================================================================== */
body.light-theme .stat-number {
    background: linear-gradient(135deg, #0f172a 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .glass-dashboard {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

body.light-theme .service-card {
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

body.light-theme .service-card:hover {
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.1);
}

body.light-theme .estimator-container {
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

body.light-theme .portfolio-item:hover {
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
}

body.light-theme .contact-form-wrapper {
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
}

body.light-theme .scheduler-container {
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
}

body.light-theme footer {
    background-color: #f1f5f9;
}

body.light-theme .footer-bottom {
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .btn-primary {
    color: #fff;
}

body.light-theme .nav-links a.nav-cta:hover {
    color: #fff;
}

/* ==========================================
   LEGAL PAGES STYLE (PRIVACY & TERMS)
   ========================================== */
.legal-hero {
    padding: 140px 0 80px 0;
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-alt) 100%);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.legal-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.legal-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.legal-content-section {
    padding: 80px 0;
}

.legal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-soft);
    max-width: 860px;
    margin: 0 auto;
}

.legal-text h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.legal-text h2:first-of-type {
    margin-top: 0;
}

.legal-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.legal-text ul {
    margin-bottom: 24px;
    padding-left: 24px;
}

.legal-text li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.legal-text strong {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 120px 0 60px 0;
    }
    .legal-hero h1 {
        font-size: 2.25rem;
    }
    .legal-card {
        padding: 24px;
        border-radius: 16px;
    }
    .legal-text h2 {
        font-size: 1.4rem;
        margin-top: 30px;
    }
}


