/* ============================================
   TECHOLOGY LAB — MASTER STYLESHEET
   Author: Techology Lab
   Version: 1.0
   ============================================ */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    --bg-primary:     #ffffff;
    --bg-secondary:   #f8f9fc;
    --bg-tertiary:    #f1f4f9;
    --bg-card:        #ffffff;
    --bg-card-hover:  #f8f9fc;
    --blue:           #1d4ed8;
    --blue-light:     #dbeafe;
    --purple:         #1d4ed8;
    --purple-light:   #dbeafe;
    --cyan:           #1d4ed8;
    --cyan-light:     #dbeafe;
    --green:          #059669;
    --red:            #dc2626;
    --text-primary:   #0f172a;
    --text-secondary: #475569;
    --text-muted:     #94a3b8;
    --border:         #e2e8f0;
    --border-hover:   #cbd5e1;
    --gradient:       #1d4ed8;
    --gradient-soft:  #eff6ff;
    --glow-purple:    rgba(29, 78, 216, 0.12);
    --shadow-sm:      0 1px 3px rgba(15,23,42,0.07), 0 1px 2px rgba(15,23,42,0.05);
    --shadow-md:      0 4px 16px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.04);
    --shadow-lg:      0 12px 40px rgba(15,23,42,0.1), 0 4px 12px rgba(15,23,42,0.05);
    --shadow-xl:      0 24px 60px rgba(15,23,42,0.12);
    --shadow-card:    0 2px 8px rgba(15,23,42,0.06), 0 0 0 1px rgba(15,23,42,0.04);
    --radius-sm:      8px;
    --radius-md:      14px;
    --radius-lg:      20px;
    --radius-xl:      28px;
    --ease:           cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce:    cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition:     0.25s var(--ease);
    --font-body:      'Inter', sans-serif;
    --font-head:      'Space Grotesk', sans-serif;
    --container:      1280px;
    --section-py:     clamp(5rem, 9vw, 8rem);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.loading { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding: var(--section-py) 0; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; color: var(--text-primary); }
h1 { font-size: clamp(2.6rem, 5.5vw, 5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); letter-spacing: -0.015em; }
p { color: var(--text-secondary); line-height: 1.7; }

/* Gradient text */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    padding: 0.7rem 1.6rem;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.28);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(109, 40, 217, 0.38);
}
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-hover);
}
.btn-outline:hover {
    border-color: var(--purple);
    color: var(--purple);
    background: var(--purple-light);
    transform: translateY(-2px);
}
.btn-ghost {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1.5px solid var(--border);
}
.btn-ghost:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.btn-xl { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-large { padding: 0.8rem 1.8rem; }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; border-radius: var(--radius-md); }

/* ===== SECTION HEADER ===== */
.section-head { text-align: center; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-tag {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: var(--purple-light);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 1rem;
}
.section-title { margin-bottom: 1rem; }
.section-sub {
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* ===== LOADER ===== */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 700;
}
.loader-logo em {
    font-style: normal;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.loader-bar-wrap {
    width: 200px;
    height: 3px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}
.loader-bar {
    height: 100%;
    background: var(--blue);
    border-radius: 10px;
    width: 0;
    animation: loaderAnim 1.8s var(--ease) forwards;
}
@keyframes loaderAnim {
    0%   { width: 0%; }
    60%  { width: 75%; }
    100% { width: 100%; }
}

/* ===== CUSTOM CURSOR ===== */
.cursor-outer, .cursor-dot {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s var(--ease), opacity 0.3s;
}
.cursor-outer {
    width: 32px; height: 32px;
    border: 1.5px solid rgba(109, 40, 217, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, border-color 0.2s, left 0.1s, top 0.1s;
}
.cursor-dot {
    width: 6px; height: 6px;
    background: var(--purple);
    transform: translate(-50%, -50%);
}
.cursor-outer.hovered { width: 50px; height: 50px; border-color: var(--purple); background: rgba(109,40,217,0.06); }

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: var(--blue);
    z-index: 9997;
    width: 0;
    transition: width 0.1s linear;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    padding: 1.2rem 0;
    transition: background var(--transition), padding var(--transition), backdrop-filter var(--transition), border-color var(--transition);
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(15,23,42,0.06);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}
.logo-text {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}
.logo-text em {
    font-style: normal;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.nav-link {
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--purple); background: var(--purple-light); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-cta { padding: 0.55rem 1.25rem; font-size: 0.875rem; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.3rem;
    width: 32px;
}
.hamburger span {
    display: block;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    z-index: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}
.mobile-overlay.open { opacity: 1; visibility: visible; }
.mobile-overlay .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}
.mobile-overlay .nav-link {
    font-size: 1.5rem;
    padding: 0.75rem 2rem;
    color: var(--text-primary);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 8rem 0 5rem;
    background: #ffffff;
}
#heroCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.45;
}
.hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite;
}
.hero-glow.g1 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(109,40,217,0.07) 0%, transparent 70%);
    top: -200px; right: -150px;
}
.hero-glow.g2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(14,165,233,0.07) 0%, transparent 70%);
    bottom: -100px; left: -100px;
}
.hero-glow.g3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(109,40,217,0.05) 0%, transparent 70%);
    top: 50%; left: 40%;
}
.hero-container { position: relative; z-index: 1; }
.hero-content { max-width: 780px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1rem;
    background: var(--purple-light);
    border: 1px solid rgba(109, 40, 217, 0.2);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--purple);
    margin-bottom: 1.5rem;
}
.badge-pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.hero-title {
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}
.typewriter-wrap {
    display: inline-block;
    min-width: 200px;
}
.tw-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.tw-cursor {
    display: inline-block;
    color: var(--purple);
    animation: blink 0.8s step-end infinite;
    font-weight: 300;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 2.5rem;
    line-height: 1.75;
}
.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.hstat strong {
    display: block;
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hstat span { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.hstat-div { width: 1px; height: 40px; background: var(--border-hover); }

/* Scroll indicator */
.hero-scroll-btn {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: float 2.5s ease-in-out infinite;
}
.scroll-mouse {
    width: 26px; height: 40px;
    border: 2px solid var(--border-hover);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}
.scroll-wheel {
    width: 4px; height: 8px;
    background: var(--purple);
    border-radius: 4px;
    animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel {
    0%   { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(14px); opacity: 0; }
}
@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(-8px); }
}

/* ===== MARQUEE ===== */
.marquee-wrap {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 0;
    overflow: hidden;
}
.marquee-track { overflow: hidden; position: relative; }
.marquee-track::before, .marquee-track::after {
    content: '';
    position: absolute;
    top: 0; width: 100px; height: 100%;
    z-index: 2;
}
.marquee-track::before { left: 0; background: linear-gradient(to right, var(--bg-secondary), transparent); }
.marquee-track::after  { right: 0; background: linear-gradient(to left, var(--bg-secondary), transparent); }
.marquee-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    will-change: transform;
}
.marquee-inner span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.marquee-inner .mdot { color: var(--purple); font-size: 0.5rem; opacity: 0.5; }
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
}
.svc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    transition: var(--transition);
    cursor: default;
    box-shadow: var(--shadow-sm);
}
.svc-card:hover {
    border-color: rgba(109, 40, 217, 0.25);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.svc-icon {
    width: 52px; height: 52px;
    background: var(--purple-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--purple);
    transition: var(--transition);
}
.svc-card:hover .svc-icon {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 16px rgba(109, 40, 217, 0.3);
}
.svc-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.svc-card p { font-size: 0.9rem; margin-bottom: 1.25rem; }
.svc-features {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
}
.svc-features li {
    font-size: 0.83rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.svc-features li::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--gradient);
    flex-shrink: 0;
}
.svc-link {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--purple);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap var(--transition);
}
.svc-link:hover { gap: 0.6rem; }

/* ===== STATS SECTION ===== */
.stats-section {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-item { position: relative; padding: 2rem 1rem; }
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 1px; height: 60px;
    background: var(--border-hover);
}
.stat-num {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--blue);
    display: inline-block;
    letter-spacing: -0.03em;
    line-height: 1;
}
.stat-plus {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--blue);
    display: inline-block;
}
.stat-lbl {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
}
.about-visual { position: relative; }
.about-visual-inner { position: relative; padding: 2rem; }
.av-glow {
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(109,40,217,0.06), transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    pointer-events: none;
}
.av-code {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}
.av-code-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.25rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}
.dot {
    width: 12px; height: 12px;
    border-radius: 50%;
}
.dot.red    { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green  { background: #10b981; }
.filename {
    margin-left: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}
.av-code-body {
    padding: 1.5rem 1.75rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.9;
}
.code-line { display: block; }
.ps1 { padding-left: 1em; }
.ps2 { padding-left: 2em; }
.c-kw  { color: #6d28d9; }
.c-var { color: #0369a1; }
.c-op  { color: var(--text-secondary); }
.c-fn  { color: #7c3aed; }
.c-prop{ color: #059669; }
.c-str { color: #0ea5e9; }
.c-cmt { color: var(--text-muted); font-style: italic; }
.av-badge {
    position: absolute;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-md);
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}
.av-b1 { top: 1rem; right: -1rem; animation-delay: 0s; }
.av-b2 { bottom: 30%; right: -2rem; animation-delay: 1s; }
.av-b3 { bottom: 0.5rem; left: -1rem; animation-delay: 2s; }
.av-badge-icon { font-size: 1.4rem; }
.av-badge strong { display: block; font-size: 0.83rem; color: var(--text-primary); }
.av-badge small  { font-size: 0.72rem; color: var(--text-muted); }

.about-content .section-tag { margin-bottom: 1rem; }
.about-desc { margin-bottom: 1.25rem; font-size: 1rem; }
.about-values { margin: 1.75rem 0 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.val-item { display: flex; gap: 1rem; align-items: flex-start; }
.val-check {
    width: 24px; height: 24px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    color: #fff;
    margin-top: 2px;
}
.val-item strong { display: block; font-size: 0.93rem; color: var(--text-primary); margin-bottom: 0.2rem; }
.val-item p { font-size: 0.85rem; margin: 0; }

/* ===== TECHNOLOGIES ===== */
.tech-section { background: var(--bg-secondary); }
.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}
.tech-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition);
    cursor: default;
}
.tech-item:hover {
    border-color: rgba(109, 40, 217, 0.3);
    background: var(--purple-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.ti-icon {
    font-size: 1.8rem;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.6rem;
}
.ti-icon.ti-dark  { background: var(--bg-primary); border-radius: 8px; width: 40px; font-size: 1rem; font-weight: 800; color: var(--text-primary); }
.ti-icon.ti-green { color: #16a34a; }
.ti-icon.ti-node  { color: #15803d; }
.ti-icon.ti-red   { color: #dc2626; font-size: 1.2rem; font-weight: 800; }
.ti-icon.ti-blue  { color: #2563eb; font-size: 0.9rem; font-weight: 800; }
.tech-item span { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }

/* ===== PORTFOLIO ===== */
.pf-filter {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}
.pf-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: var(--transition);
}
.pf-btn:hover, .pf-btn.active {
    background: var(--blue);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 20px rgba(29,78,216,0.25);
}
.pf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.pf-item { transition: var(--transition); }
.pf-item.hidden { display: none; }
.pf-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}
.pf-card:hover {
    border-color: rgba(109, 40, 217, 0.2);
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}
.pf-visual {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.pv-finance { background: #dbeafe; }
.pv-shop    { background: #e0f2fe; }
.pv-health  { background: #bfdbfe; }
.pv-edu     { background: #eff6ff; }
.pv-legal   { background: #dbeafe; }
.pv-prop    { background: #e0f2fe; }
.pv-decor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.pv-emoji { font-size: 3rem; }
.pv-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
}
.pv-bars span {
    display: block;
    width: 8px;
    background: rgba(109, 40, 217, 0.25);
    border-radius: 2px;
    animation: barAnim 2s ease-in-out infinite;
}
.pv-bars span:nth-child(1) { height: 20px; animation-delay: 0s; }
.pv-bars span:nth-child(2) { height: 32px; animation-delay: 0.1s; }
.pv-bars span:nth-child(3) { height: 24px; animation-delay: 0.2s; }
.pv-bars span:nth-child(4) { height: 40px; animation-delay: 0.3s; }
.pv-bars span:nth-child(5) { height: 16px; animation-delay: 0.4s; }
@keyframes barAnim {
    0%, 100% { opacity: 0.3; }
    50%       { opacity: 0.8; }
}
.pf-info { padding: 1.5rem; }
.pf-tag {
    display: inline-block;
    padding: 0.18rem 0.65rem;
    background: var(--purple-light);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--purple);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.75rem;
}
.pf-info h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.pf-info p  { font-size: 0.85rem; margin-bottom: 1rem; }
.pf-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.pf-tech span {
    padding: 0.25rem 0.65rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== PROCESS ===== */
.process { background: var(--bg-secondary); }
.process-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}
.proc-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.75rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
}
.proc-step:hover {
    border-color: rgba(109, 40, 217, 0.25);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.proc-num {
    font-family: var(--font-head);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--purple);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.proc-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.proc-step h3 { font-size: 1.1rem; margin-bottom: 0.75rem; color: var(--text-primary); }
.proc-step p  { font-size: 0.85rem; }
.proc-arrow {
    color: var(--border-hover);
    width: 60px;
    flex-shrink: 0;
    opacity: 0.4;
}

/* ===== TESTIMONIALS ===== */
.testi-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
}
.testi-track {
    display: flex;
    transition: transform 0.5s var(--ease);
}
.testi-card {
    min-width: 100%;
    padding: clamp(2rem, 5vw, 4rem) clamp(2rem, 6vw, 5rem);
    position: relative;
}
.testi-stars {
    font-size: 1rem;
    color: #f59e0b;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}
.testi-card p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 700px;
}
.testi-card p strong { color: var(--text-primary); font-weight: 600; }
.testi-author { display: flex; align-items: center; gap: 1rem; }
.testi-av {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
}
.testi-author strong { display: block; font-size: 0.95rem; color: var(--text-primary); }
.testi-author span   { font-size: 0.82rem; color: var(--text-muted); }
.testi-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}
.testi-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.testi-btn:hover {
    background: var(--blue);
    border-color: transparent;
    color: #fff;
}
.testi-dots {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}
.testi-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--border-hover);
    transition: var(--transition);
    cursor: pointer;
}
.testi-dot.active {
    background: var(--blue);
    width: 24px;
    border-radius: 4px;
}

/* ===== CTA BANNER ===== */
.cta-banner {
    position: relative;
    padding: clamp(4rem, 7vw, 6rem) 0;
    background: #eff6ff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    text-align: center;
}
.cta-glow {
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(109,40,217,0.07), transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 1rem; }
.cta-inner p  { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 2.5rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
}
.contact-info .section-tag { margin-bottom: 1rem; }
.contact-desc { margin: 1.25rem 0 2rem; font-size: 1rem; }
.contact-methods { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.cmethod { display: flex; gap: 1rem; align-items: flex-start; }
.cmethod-icon {
    width: 44px; height: 44px;
    background: var(--purple-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple);
    flex-shrink: 0;
}
.cmethod strong { display: block; font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.cmethod a, .cmethod span { font-size: 0.92rem; color: var(--text-primary); transition: color var(--transition); }
.cmethod a:hover { color: var(--purple); }
.social-links { display: flex; gap: 0.75rem; }
.social-link {
    width: 40px; height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}
.social-link:hover {
    background: var(--blue);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    box-shadow: var(--shadow-md);
}
.contact-form { position: relative; }
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.req { color: var(--purple); }
input, select, textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
select option { background: var(--bg-secondary); color: var(--text-primary); }
input:focus, select:focus, textarea:focus {
    border-color: var(--purple);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}
textarea { resize: vertical; min-height: 120px; }
.form-success, .form-error { display: none; text-align: center; padding: 2rem; margin-top: 1rem; border-radius: var(--radius-md); }
.form-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}
.form-success.show, .form-error.show { display: block; }
.success-check {
    width: 52px; height: 52px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    margin: 0 auto 1rem;
}
.form-success h4 { color: #065f46; margin-bottom: 0.5rem; }
.form-success p  { font-size: 0.9rem; color: #059669; margin: 0; }
.form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border); background: var(--bg-secondary); }
.footer-top { padding: clamp(3rem, 6vw, 5rem) 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 3rem;
}
.footer-brand p {
    font-size: 0.88rem;
    margin: 1.25rem 0 1.5rem;
    max-width: 280px;
}
.footer-socials { display: flex; gap: 0.6rem; }
.footer-socials a {
    width: 36px; height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
}
.footer-socials a:hover {
    background: var(--blue);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
}
.footer-col h4 {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--purple); }
.footer-cta-col p { font-size: 0.85rem; margin-bottom: 1rem; }
.footer-email, .footer-phone {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    transition: color var(--transition);
}
.footer-email:hover, .footer-phone:hover { color: var(--purple); }
.footer-cta-btn { margin-top: 1rem; display: inline-flex !important; }
.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    background: var(--bg-tertiary);
}
.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.8rem; color: var(--text-muted); transition: color var(--transition); }
.footer-legal a:hover { color: var(--purple); }

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

.reveal-up.visible, .reveal-left.visible, .reveal-right.visible {
    opacity: 1;
    transform: none;
}

[data-delay="50"]  { transition-delay: 0.05s; }
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="150"] { transition-delay: 0.15s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="250"] { transition-delay: 0.25s; }
[data-delay="300"] { transition-delay: 0.3s; }

/* ===== RESPONSIVE ===== */

/* XL: 1280px */
@media (max-width: 1280px) {
    .tech-grid { grid-template-columns: repeat(4, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .proc-arrow { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

/* LG: 1024px */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-visual { max-width: 500px; margin: 0 auto; }
    .contact-grid { grid-template-columns: 1fr; }
    .pf-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2)::after { display: none; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* MD: 768px */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hamburger { display: flex; }
    .nav-cta { display: none; }

    .mobile-overlay .nav-menu {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    .mobile-overlay .btn { margin-top: 1rem; display: inline-flex; }

    .hero { padding: 7rem 0 4rem; }
    .hero-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
    .hero-stats { gap: 1.25rem; }
    .hstat-div { display: none; }

    .services-grid { grid-template-columns: 1fr; }
    .pf-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item::after { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-brand { grid-column: 1 / -1; }
    .form-row { grid-template-columns: 1fr; }
    .cta-btns { flex-direction: column; align-items: center; }
    .av-b1, .av-b2, .av-b3 { display: none; }
    .hero-btns { gap: 0.75rem; }
    .btn-xl { padding: 0.8rem 1.5rem; font-size: 0.92rem; }

    /* Mobile menu inside overlay */
    .mobile-overlay { flex-direction: column; padding-top: 6rem; align-items: center; }
    .mobile-overlay .nav-link { font-size: 1.3rem; padding: 0.7rem 2rem; }
}

/* SM: 480px */
@media (max-width: 480px) {
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .pf-filter { gap: 0.5rem; }
    .pf-btn { font-size: 0.8rem; padding: 0.4rem 0.9rem; }
    .hero-btns { flex-direction: column; }
    .hero-btns .btn { width: 100%; justify-content: center; }
    .hero-badge { font-size: 0.78rem; }
}

/* Cursor: touch devices */
@media (hover: none) or (pointer: coarse) {
    .cursor-outer, .cursor-dot { display: none; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .reveal-up, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}
