/* ============================================
   TAILWIND NOTE:
   Tailwind CSS is loaded via the Play CDN 
   <script> tag in index.html. You can use 
   Tailwind utility classes in your HTML.
   
   This file contains custom styles that 
   extend Tailwind for the KaizenTech site.
   
   FONTS:
   - Body: 'Inter' (Google Fonts)
   - Headings: 'Satoshi' (FontShare)
============================================= */

/* ============================================
   CSS VARIABLES
============================================= */
:root {
    --brand-navy: #112b51;
    --brand-white: #ffffff;
    --bg-primary: #060d18;
    --bg-secondary: #0a1525;
    --bg-tertiary: #0e1f3a;
    --bg-card: #0c1a30;
    --bg-card-hover: #112b51;
    --text-primary: #ffffff;
    --text-secondary: #94a8c7;
    --text-muted: #5a7394;
    --accent: #112b51;
    --accent-light: #3b82f6;
    --accent-bright: #60a5fa;
    --accent-dark: #2563eb;
    --accent-hover: #1a4175;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --accent-glow-strong: rgba(59, 130, 246, 0.3);
    --border: #1a2d4d;
    --border-light: #264573;
    --success: #22c55e;
    --success-glow: rgba(34, 197, 94, 0.15);
    --warning: #f59e0b;
    --font-heading: 'Satoshi', 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --section-padding: 120px;
    --container-width: 1200px;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 999px;
}

/* ============================================
   BASE STYLES — Font Application
============================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Satoshi for ALL headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

input, textarea, select { font-family: inherit; font-size: inherit; }

/* ============================================
   UTILITIES
============================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-accent { color: var(--accent-bright); }
.icon { width: 18px; height: 18px; flex-shrink: 0; }

.btn-arrow {
    font-size: 1.1rem;
    line-height: 1;
    transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow { transform: translate(2px, -2px); }

/* ============================================
   FORM SUCCESS OVERLAY
============================================= */
.form-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 13, 24, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 24px;
}

.form-success-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.form-success-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-success-overlay.visible .form-success-content {
    transform: translateY(0) scale(1);
}

.form-success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-glow);
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: successPulse 2s ease-in-out infinite;
}

.form-success-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--success);
}

@keyframes successPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.2); }
    50% { box-shadow: 0 0 0 15px rgba(34, 197, 94, 0); }
}

.form-success-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-white);
    margin-bottom: 12px;
}

.form-success-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}

.form-success-details {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 28px;
    text-align: left;
}

.form-success-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-success-detail:not(:last-child) {
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 4px;
}

.form-success-detail-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.form-success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ============================================
   SUBMIT BUTTON STATES
============================================= */
.submit-spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   LOADER
============================================= */
.loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    animation: forceHideLoader 0.5s ease 2.5s forwards;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes forceHideLoader {
    to { opacity: 0; visibility: hidden; pointer-events: none; }
}

.loader-content { text-align: center; }

.loader-logo {
    width: 70px; height: 70px;
    background: var(--brand-navy);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: pulse 1.5s ease-in-out infinite;
    overflow: hidden;
}

.loader-logo-img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 8px;
}

.loader-logo-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-white);
    width: 100%; height: 100%;
}

.loader-bar {
    width: 120px; height: 3px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.loader-bar-fill {
    width: 0%; height: 100%;
    background: var(--accent-light);
    border-radius: var(--radius-full);
    animation: loaderFill 1.5s ease forwards;
}

@keyframes loaderFill { to { width: 100%; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* ============================================
   NAVIGATION
============================================= */
.nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-medium);
    backdrop-filter:blur(10px);
    background:rgba(10,21,37,0.75);
}

.nav.scrolled {
    background: rgba(6, 13, 24, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-logo-img-wrapper {
    width: 64px; height: 64px;
    background: transparent;
    border: none;
}

.nav-logo:hover .nav-logo-img-wrapper {
    transform: rotate(-5deg) scale(1.05);
}

.nav-logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    padding: 0;
    border: none;
}

.nav-logo-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-white);
    width: 100%; height: 100%;
}

.nav-logo-text { color: var(--brand-white); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-link-cta {
    background: var(--accent-light);
    color: white !important;
    padding: 8px 20px;
}

.nav-link-cta:hover {
    background: var(--accent-dark) !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle-line {
    width: 24px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-medium);
}

.nav-toggle.active .nav-toggle-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active .nav-toggle-line:nth-child(2) { opacity: 0; }
.nav-toggle.active .nav-toggle-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO
============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg-grid {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-glow { position: absolute; border-radius: 50%; filter: blur(120px); }
.hero-glow-1 { width: 600px; height: 600px; background: var(--accent-light); top: -200px; right: -100px; opacity: 0.07; }
.hero-glow-2 { width: 400px; height: 400px; background: #1a4175; bottom: -100px; left: -100px; opacity: 0.08; }

.hero-content { position: relative; z-index: 1; max-width: 800px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-badge-dot {
    width: 8px; height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: var(--brand-white);
}

.hero-title-accent {
    background: linear-gradient(135deg, var(--accent-bright), #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 40px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-medium);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary { background: var(--accent-light); color: var(--brand-white); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow-strong); }

.btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--accent); border-color: var(--border-light); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border); padding: 14px 28px; }
.btn-outline:hover { border-color: var(--accent-light); color: var(--accent-bright); transform: translateY(-2px); }

.btn-full { width: 100%; justify-content: center; }

/* Hero Stats */
.hero-stats { display: flex; align-items: center; gap: 32px; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-number { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--brand-white); }
.hero-stat-plus { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--accent-bright); }
.hero-stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }
.hero-stat-divider { width: 1px; height: 40px; background: var(--border); }

.hero-scroll-indicator {
    position: absolute; bottom: 40px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center;
    gap: 8px; color: var(--text-muted); font-size: 0.8rem;
    animation: float 3s ease-in-out infinite;
}

.hero-scroll-mouse { width: 24px; height: 38px; border: 2px solid var(--border-light); border-radius: 12px; display: flex; justify-content: center; padding-top: 8px; }
.hero-scroll-wheel { width: 3px; height: 8px; background: var(--accent-bright); border-radius: 2px; animation: scrollWheel 2s ease-in-out infinite; }

@keyframes scrollWheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-10px); } }

/* ============================================
   SECTION HEADERS
============================================= */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-header-left { text-align: left; margin: 0 0 32px 0; }

.section-tag {
    display: inline-block; padding: 6px 14px;
    background: var(--accent-glow); color: var(--accent-bright);
    font-size: 0.85rem; font-weight: 600;
    border-radius: var(--radius-full); margin-bottom: 16px;
    letter-spacing: 0.02em; border: 1px solid rgba(59, 130, 246, 0.2);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700; line-height: 1.15;
    letter-spacing: -0.02em; margin-bottom: 16px;
    color: var(--brand-white);
}

.section-subtitle { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.7; }

/* ============================================
   SERVICES
============================================= */
.services { padding: var(--section-padding) 0; background: var(--bg-secondary); }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.service-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 40px 32px;
    transition: all var(--transition-medium);
    position: relative; overflow: hidden;
}

.service-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent-light), var(--accent-bright));
    opacity: 0; transition: opacity var(--transition-medium);
}

.service-card:hover { border-color: var(--border-light); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); }
.service-card:hover::before { opacity: 1; }

.service-card-number { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 20px; }

.service-card-icon {
    width: 56px; height: 56px;
    background: var(--accent-glow); border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}

.service-card-icon svg { width: 28px; height: 28px; stroke: var(--accent-bright); }
.service-card-title { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 600; margin-bottom: 12px; color: var(--brand-white); }
.service-card-desc { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }
.service-card-list { margin-bottom: 24px; }

.service-card-list li {
    position: relative; padding-left: 20px;
    font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 8px;
}

.service-card-list li::before {
    content: ''; position: absolute; left: 0; top: 8px;
    width: 6px; height: 6px; background: var(--accent-light); border-radius: 50%;
}

.service-card-price { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--accent-bright); padding-top: 20px; border-top: 1px solid var(--border); }

/* ============================================
   WORK / PORTFOLIO
============================================= */
.work { padding: var(--section-padding) 0; }

.work-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.work-filters { display: flex; justify-content: center; gap: 8px; margin-bottom: 48px; flex-wrap: wrap; }

.work-filter { padding: 8px 20px; font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); border-radius: var(--radius-full); border: 1px solid var(--border); transition: all var(--transition-fast); }
.work-filter:hover { color: var(--text-primary); border-color: var(--border-light); }
.work-filter.active { background: var(--accent-light); color: var(--brand-white); border-color: var(--accent-light); }

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.work-card { display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); transition: all var(--transition-medium); }
.work-card.hidden { display: none; }
.work-card:hover { transform: translateY(-4px); border-color: var(--border-light); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); }

.work-card-image {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}
.work-card-image{
overflow:hidden;
}

.work-card-img{
transition:transform 0.6s ease;
}

.work-card:hover .work-card-img{
transform:scale(1.06);
}
.work-card-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; }
.placeholder-icon { font-size: 3rem; opacity: 0.6; }
.placeholder-text { font-size: 0.9rem; opacity: 0.5; margin-top: 0.5rem; }

.work-card-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(6, 13, 24, 0.7); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--transition-medium); }
.work-card:hover .work-card-overlay { opacity: 1; }

.work-card-view { display: flex; align-items: center; gap: 8px; padding: 12px 24px; background: var(--accent-light); color: var(--brand-white); border-radius: var(--radius-full); font-weight: 600; font-size: 0.9rem; transform: translateY(10px); transition: transform var(--transition-medium); }
.work-card:hover .work-card-view { transform: translateY(0); }

.work-card-info { padding: 24px; }
.work-card-category { font-size: 0.8rem; font-weight: 600; color: var(--accent-bright); text-transform: uppercase; letter-spacing: 0.05em; }
.work-card-title { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; margin: 8px 0; color: var(--brand-white); }
.work-card-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
.work-cta { text-align: center; }

/* ============================================
   ABOUT
============================================= */
.about { padding: var(--section-padding) 0; background: var(--bg-secondary); }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.about-image { position: relative; }

.about-image-placeholder { width: 100%; aspect-ratio: 4 / 5; background: var(--bg-tertiary); border-radius: var(--radius-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.9rem; border: 1px solid var(--border); }
.about-image-accent { position: absolute; bottom: -16px; right: -16px; width: 120px; height: 120px; border: 3px solid var(--accent-light); border-radius: var(--radius-lg); z-index: -1; }

.about-text p { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.about-text strong { color: var(--brand-white); }
.about-tools { margin-top: 32px; }
.about-tools-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 12px; }
.about-tools-list { display: flex; flex-wrap: wrap; gap: 8px; }

.about-tool { padding: 6px 16px; background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: var(--radius-full); font-size: 0.85rem; color: var(--text-secondary); transition: all var(--transition-fast); }
.about-tool:hover { border-color: var(--accent-light); color: var(--accent-bright); }
.about-cta { margin-top: 32px; }

/* ============================================
   TESTIMONIALS
============================================= */
.testimonials { padding: var(--section-padding) 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.testimonial-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; transition: all var(--transition-medium); }
.testimonial-card:hover { border-color: var(--border-light); transform: translateY(-4px); }

.testimonial-stars { color: var(--warning); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 20px; }
.testimonial-text { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; background: var(--accent-glow); border: 1px solid rgba(59, 130, 246, 0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 600; color: var(--accent-bright); }
.testimonial-name { font-weight: 600; font-size: 0.95rem; display: block; color: var(--brand-white); }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================
   CONTACT
============================================= */
.contact { padding: var(--section-padding) 0; background: var(--bg-secondary); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-desc { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 40px; }
.contact-methods { display: flex; flex-direction: column; gap: 12px; }

.contact-method { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); transition: all var(--transition-medium); }
.contact-method:hover { border-color: var(--accent-light); background: var(--accent); transform: translateX(4px); }

.contact-method-icon { width: 44px; height: 44px; background: var(--accent-glow); border: 1px solid rgba(59, 130, 246, 0.15); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.contact-method-info { flex: 1; }
.contact-method-label { font-size: 0.8rem; color: var(--text-muted); display: block; }
.contact-method-value { font-weight: 600; font-size: 0.95rem; color: var(--brand-white); }
.contact-method-arrow { color: var(--text-muted); font-size: 1.1rem; transition: all var(--transition-fast); }
.contact-method:hover .contact-method-arrow { color: var(--accent-bright); transform: translate(2px, -2px); }

.contact-form-wrapper { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }

.form-input { width: 100%; padding: 12px 16px; background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); font-size: 0.95rem; transition: all var(--transition-fast); outline: none; }
.form-input:focus { border-color: var(--accent-light); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-input::placeholder { color: var(--text-muted); }

.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a7394' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 120px; }

/* ============================================
   FOOTER
============================================= */
.footer { padding: 64px 0 0; border-top: 1px solid var(--border); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-top: 16px; max-width: 280px; }
.footer-heading { font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; color: var(--brand-white); }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.9rem; color: var(--text-muted); transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--accent-bright); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-muted); }

/* ============================================
   BACK TO TOP
============================================= */
.back-to-top { position: fixed; bottom: 32px; right: 32px; width: 44px; height: 44px; background: var(--accent-light); color: var(--brand-white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all var(--transition-medium); z-index: 100; box-shadow: 0 4px 20px var(--accent-glow-strong); }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* ============================================
   SCROLL ANIMATIONS
============================================= */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.animate-on-scroll.animated { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE — TABLET
============================================= */
@media (max-width: 1024px) {
    :root { --section-padding: 80px; }
    .services-grid { grid-template-columns: 1fr; gap: 16px; }
    .work-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-image { max-width: 400px; margin: 0 auto; }
    .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ============================================
   RESPONSIVE — MOBILE
============================================= */
@media (max-width: 768px) {
    :root { --section-padding: 64px; }

    .nav-links { position: fixed; top: 0; right: -100%; width: 75%; max-width: 320px; height: 100vh; background: var(--bg-secondary); border-left: 1px solid var(--border); flex-direction: column; align-items: flex-start; padding: 80px 32px 32px; gap: 4px; transition: right var(--transition-medium); z-index: 1000; }
    .nav-links.open { right: 0; }
    .nav-link { width: 100%; padding: 12px 16px; font-size: 1rem; }
    .nav-link-cta { margin-top: 16px; text-align: center; justify-content: center; display: flex; }
    .nav-toggle { display: flex; }

    .hero { padding: 100px 0 60px; min-height: auto; }
    .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
    .hero-subtitle { font-size: 1rem; }
    .hero-ctas { flex-direction: column; margin-bottom: 48px; }
    .btn { justify-content: center; width: 100%; }
    .hero-stats { flex-direction: column; align-items: flex-start; gap: 16px; }
    .hero-stat-divider { display: none; }
    .hero-stat { flex-direction: row; align-items: center; gap: 8px; }
    .hero-scroll-indicator { display: none; }

    .work-filters { justify-content: flex-start; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
    .work-filter { white-space: nowrap; flex-shrink: 0; }
    .about-image-accent { display: none; }
    .contact-form-wrapper { padding: 24px; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    /* Success overlay mobile */
    .form-success-content { padding: 32px 24px; }
    .form-success-title { font-size: 1.4rem; }
    .form-success-actions { flex-direction: column; }
    .form-success-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section-title { font-size: 1.75rem; }
    .service-card { padding: 28px 24px; }
    .work-card-info { padding: 20px; }
}