/* ==========================================================================
   SHATHYAPRIYAN DIGITAL STUDIO & SOFTWARE AGENCY - MASTER DESIGN SYSTEM
   Aesthetic: Cyberpunk Dark Mode, Glassmorphism, 3D Tilt, Neon Glows & Animations
   ========================================================================== */

:root {
    /* Color Tokens */
    --bg-dark: #05070c;
    --bg-dark-secondary: #0b0f19;
    --bg-card: rgba(14, 20, 34, 0.7);
    --bg-card-hover: rgba(22, 32, 54, 0.9);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(0, 242, 254, 0.4);

    --primary-cyan: #00f2fe;
    --primary-blue: #4facfe;
    --accent-purple: #9d4edd;
    --accent-pink: #f72585;
    --accent-green: #00e676;
    --accent-yellow: #ffb703;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-code: 'Fira Code', monospace;

    /* Motion & Shadows */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-glow-cyan: 0 0 30px rgba(0, 242, 254, 0.4);
    --shadow-glow-purple: 0 0 30px rgba(157, 78, 221, 0.4);
    --shadow-glow-pink: 0 0 30px rgba(247, 37, 133, 0.4);
    --glass-backdrop: blur(24px) saturate(200%);
}

/* Performance & PageSpeed Optimizations */
html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile GPU Acceleration & Below-the-fold Content Visibility */
.services-section,
.portfolio-section,
.templates-section,
.software-section,
.calculator-section,
.testimonials-section,
.contact-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 800px;
}

button, a, input, select, textarea {
    touch-action: manipulation;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-cyan), var(--accent-purple));
    border-radius: 10px;
    box-shadow: var(--shadow-glow-cyan);
}

/* Global Resets */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* 3D Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -2;
    pointer-events: auto;
}

/* Ambient Lighting Orbs */
.ambient-light {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.45;
    animation: floatOrb 20s ease-in-out infinite alternate;
}

.orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--primary-cyan), transparent 70%);
    top: -12%; left: -12%;
}

.orb-2 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--accent-purple), transparent 70%);
    bottom: 5%; right: -12%;
    animation-delay: -7s;
}

.orb-3 {
    width: 450px; height: 450px;
    background: radial-gradient(circle, var(--accent-pink), transparent 70%);
    top: 45%; left: 35%;
    animation-delay: -14s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(80px, 50px) scale(1.15); }
    100% { transform: translate(-50px, 90px) scale(0.9); }
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* Glassmorphism Card Style */
.glass-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), var(--accent-purple), transparent);
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), var(--shadow-glow-cyan);
}

.glass-card:hover::before {
    opacity: 1;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-pink), var(--primary-cyan), var(--accent-purple), var(--accent-green));
    animation: borderGradientShift 3s linear infinite;
}

@keyframes borderGradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.glass-card-inner {
    background: rgba(8, 12, 22, 0.75);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2rem;
}

/* Typography Gradient Helpers */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 40%, var(--accent-purple) 70%, var(--accent-pink) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineText 6s linear infinite;
}

@keyframes shineText { to { background-position: 200% center; } }

.glow-text {
    color: var(--primary-cyan);
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.7), 0 0 40px rgba(0, 242, 254, 0.3);
}

.highlight { color: var(--primary-cyan); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.9rem 1.85rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 14px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    color: #030712;
    box-shadow: var(--shadow-glow-cyan);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 40px rgba(0, 242, 254, 0.75);
    color: #000;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-cyan);
}

.btn-tertiary {
    background: rgba(157, 78, 221, 0.15);
    color: #e0aaff;
    border: 1px solid rgba(157, 78, 221, 0.35);
}

.btn-tertiary:hover {
    background: rgba(157, 78, 221, 0.35);
    box-shadow: var(--shadow-glow-purple);
    transform: translateY(-3px);
}

.btn-lg { padding: 1.15rem 2.4rem; font-size: 1.08rem; border-radius: 16px; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-icon { width: 48px; height: 48px; padding: 0; border-radius: 12px; }

.glow-btn { position: relative; overflow: hidden; }
.glow-btn::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(30deg);
    transition: 0.7s;
    opacity: 0;
}
.glow-btn:hover::after { opacity: 1; left: 100%; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 0.85rem 0;
    background: rgba(5, 7, 12, 0.9);
    backdrop-filter: var(--glass-backdrop);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1320px; margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
    display: flex; align-items: center; gap: 0.7rem;
    text-decoration: none; font-family: var(--font-heading);
    font-size: 1.55rem; font-weight: 900; color: var(--text-main);
}

.logo-icon {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--accent-purple));
    border-radius: 12px; color: #030712; font-size: 1.25rem;
    box-shadow: var(--shadow-glow-cyan);
    animation: rotateLogo 12s linear infinite;
}

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

.nav-menu { display: flex; align-items: center; gap: 2rem; }

.nav-link {
    color: var(--text-muted); text-decoration: none;
    font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem;
    transition: var(--transition-fast); position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.nav-link::after {
    content: ''; position: absolute; bottom: -6px; left: 0;
    width: 0; height: 2px; background: var(--primary-cyan);
    transition: var(--transition-fast); border-radius: 2px;
    box-shadow: var(--shadow-glow-cyan);
}

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

.hamburger {
    display: none; flex-direction: column; gap: 6px;
    background: none; border: none; cursor: pointer;
}
.hamburger .bar { width: 25px; height: 2px; background-color: var(--text-main); transition: var(--transition-fast); }

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding: 9.5rem 2rem 5rem 2rem;
    max-width: 1320px; margin: 0 auto;
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem;
    align-items: center; position: relative;
}

.hero-content { display: flex; flex-direction: column; align-items: flex-start; }

.badge-pill {
    display: inline-flex; align-items: center; gap: 0.7rem;
    padding: 0.6rem 1.4rem;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 50px; margin-bottom: 1.75rem;
    font-size: 0.9rem; color: var(--primary-cyan); font-weight: 700;
    box-shadow: var(--shadow-glow-cyan);
}

.pulse-dot {
    width: 9px; height: 9px;
    background-color: var(--primary-cyan);
    border-radius: 50%; box-shadow: 0 0 12px var(--primary-cyan);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.8); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 12px rgba(0, 242, 254, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

.hero-title {
    font-family: var(--font-heading); font-size: 4.2rem;
    font-weight: 900; line-height: 1.12; margin-bottom: 1.5rem; letter-spacing: -1.5px;
}

.hero-description {
    font-size: 1.2rem; color: var(--text-muted);
    margin-bottom: 2.5rem; max-width: 640px; line-height: 1.7;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 3.5rem; }

.hero-stats-bar {
    display: flex; align-items: center; gap: 2rem;
    padding: 1.4rem 2rem;
    background: rgba(14, 20, 34, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glow);
    border-radius: 20px; width: 100%;
    box-shadow: var(--shadow-glow-cyan);
}

.stat-card { display: flex; flex-direction: column; }
.stat-number {
    font-family: var(--font-heading); font-size: 1.85rem; font-weight: 900;
    color: var(--primary-cyan); text-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}
.stat-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: var(--border-color); }

/* 3D Control Panel */
.hero-interactive-3d {
    position: relative; height: 500px;
    display: flex; align-items: flex-end; justify-content: center;
}

.control-panel-3d {
    background: rgba(8, 12, 22, 0.85);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--border-glow);
    border-radius: 20px; padding: 1.4rem;
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), var(--shadow-glow-cyan);
    z-index: 10; width: 100%; max-width: 360px;
}

.control-title {
    font-size: 0.88rem; font-weight: 800; color: var(--primary-cyan);
    text-transform: uppercase; letter-spacing: 1.2px;
}

.control-buttons { display: flex; gap: 0.85rem; }

.btn-icon-mode {
    width: 52px; height: 52px; border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted); font-size: 1.3rem; cursor: pointer;
    transition: var(--transition-fast);
}

.btn-icon-mode:hover, .btn-icon-mode.active {
    background: var(--primary-cyan); color: #030712;
    border-color: var(--primary-cyan); box-shadow: var(--shadow-glow-cyan);
}

.interactive-hint { font-size: 0.78rem; color: var(--text-dim); }

/* Common Sections */
section { padding: 7rem 0; position: relative; }
.section-header { margin-bottom: 4.5rem; }
.section-header.text-center { text-align: center; }

.section-tag {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-size: 0.88rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 2px; color: var(--primary-cyan); margin-bottom: 0.85rem;
    padding: 0.4rem 1.1rem; background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25); border-radius: 30px;
}

.section-title {
    font-family: var(--font-heading); font-size: 3rem; font-weight: 900;
    line-height: 1.18; margin-bottom: 1.15rem; letter-spacing: -0.5px;
}

.section-subtitle { font-size: 1.15rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; }

/* Services Grid */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.25rem; }
.service-card { padding: 2.5rem; display: flex; flex-direction: column; }

.service-icon-box {
    width: 64px; height: 64px; border-radius: 18px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.35);
    color: var(--primary-cyan); font-size: 1.75rem;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.75rem; box-shadow: var(--shadow-glow-cyan);
    transition: var(--transition-fast);
}

.service-card:hover .service-icon-box { transform: scale(1.1) rotate(5deg); background: var(--primary-cyan); color: #030712; }
.service-title { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; margin-bottom: 0.95rem; color: var(--text-main); }
.service-desc { color: var(--text-muted); font-size: 0.98rem; margin-bottom: 1.75rem; flex-grow: 1; line-height: 1.65; }
.service-checklist { list-style: none; margin-bottom: 2rem; }
.service-checklist li { font-size: 0.9rem; color: var(--text-main); display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.75rem; }
.service-checklist li i { color: var(--primary-cyan); font-size: 0.85rem; }
.service-link { color: var(--primary-cyan); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 0.6rem; transition: var(--transition-fast); }
.service-link:hover { gap: 0.9rem; color: #fff; }

/* Portfolio Grid */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2.25rem; margin-top: 2.5rem; }
.portfolio-card { overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.portfolio-img-wrapper { position: relative; height: 240px; overflow: hidden; border-bottom: 1px solid var(--border-color); }
.portfolio-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.portfolio-card:hover .portfolio-img { transform: scale(1.1); }

.portfolio-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(5, 7, 12, 0.2) 0%, rgba(5, 7, 12, 0.9) 100%);
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 1.4rem; opacity: 0.9; transition: var(--transition-smooth);
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; background: linear-gradient(180deg, rgba(5, 7, 12, 0.1) 0%, rgba(5, 7, 12, 0.95) 100%); }

.portfolio-body { padding: 1.75rem; display: flex; flex-direction: column; flex-grow: 1; }
.portfolio-title { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; margin-bottom: 0.65rem; color: var(--text-main); }
.portfolio-desc { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 1.4rem; flex-grow: 1; line-height: 1.65; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.4rem; }
.tech-pill { background: rgba(0, 242, 254, 0.1); border: 1px solid rgba(0, 242, 254, 0.3); color: var(--primary-cyan); padding: 0.3rem 0.75rem; border-radius: 20px; font-size: 0.78rem; font-weight: 700; }
.project-stats-row { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-dim); padding-top: 0.85rem; border-top: 1px solid var(--border-color); }

.creator-filter-tabs { display: flex; justify-content: center; gap: 0.85rem; flex-wrap: wrap; }
.portfolio-filter-btn {
    background: rgba(14, 20, 34, 0.7); border: 1px solid var(--border-color);
    color: var(--text-muted); padding: 0.75rem 1.6rem; border-radius: 30px;
    font-family: var(--font-heading); font-weight: 700; cursor: pointer; transition: var(--transition-fast);
}
.portfolio-filter-btn:hover, .portfolio-filter-btn.active {
    background: var(--primary-cyan); color: #030712; border-color: var(--primary-cyan); box-shadow: var(--shadow-glow-cyan);
}

/* Software Demo Suite */
.software-demo-wrapper { padding: 2.5rem; }
.demo-tabs-bar { display: flex; gap: 1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1.5rem; margin-bottom: 2.25rem; overflow-x: auto; }
.demo-tab {
    background: transparent; border: none; color: var(--text-muted);
    font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem;
    padding: 0.85rem 1.75rem; border-radius: 12px; cursor: pointer;
    transition: var(--transition-fast); display: inline-flex; align-items: center; gap: 0.7rem; white-space: nowrap;
}
.demo-tab:hover { color: var(--text-main); background: rgba(255, 255, 255, 0.05); }
.demo-tab.active { color: #030712; background: var(--primary-cyan); box-shadow: var(--shadow-glow-cyan); }
.demo-pane { display: none; }
.demo-pane.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.pane-grid { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 2.5rem; }
.pane-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 800; margin-bottom: 1.4rem; color: var(--primary-cyan); display: flex; align-items: center; gap: 0.7rem; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.metric-box { background: rgba(8, 12, 22, 0.8); border: 1px solid var(--border-color); border-radius: 14px; padding: 1.4rem; display: flex; flex-direction: column; }
.m-val { font-family: var(--font-heading); font-size: 2rem; font-weight: 900; color: var(--text-main); }
.m-lbl { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.m-badge { font-size: 0.78rem; font-weight: 800; display: inline-flex; align-items: center; gap: 0.35rem; }
.m-badge.positive { color: var(--accent-green); }

.sim-chart-container { background: rgba(8, 12, 22, 0.8); border: 1px solid var(--border-color); border-radius: 16px; padding: 1.5rem; }
.chart-header { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.75rem; }
.live-dot { background: rgba(0, 230, 118, 0.15); color: var(--accent-green); border: 1px solid var(--accent-green); padding: 0.2rem 0.75rem; border-radius: 20px; font-size: 0.75rem; font-weight: 800; }
.bar-graph { display: flex; align-items: flex-end; justify-content: space-between; height: 200px; padding-top: 1rem; }
.graph-bar { width: 11%; height: var(--height); background: linear-gradient(180deg, var(--primary-cyan), rgba(0, 242, 254, 0.2)); border-radius: 8px 8px 0 0; position: relative; transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.graph-bar.highlight-bar { background: linear-gradient(180deg, var(--accent-pink), rgba(247, 37, 133, 0.2)); box-shadow: 0 0 20px rgba(247, 37, 133, 0.6); }
.bar-lbl { position: absolute; bottom: -26px; left: 50%; transform: translateX(-50%); font-size: 0.78rem; color: var(--text-dim); }

.sim-control-group { margin-bottom: 1.75rem; }
.sim-control-group label { display: block; font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0.7rem; font-weight: 700; }
.form-select, .form-input, .form-textarea { width: 100%; background: rgba(8, 12, 22, 0.85); border: 1px solid var(--border-color); border-radius: 12px; padding: 0.95rem 1.25rem; color: var(--text-main); font-family: var(--font-body); font-size: 0.98rem; outline: none; transition: var(--transition-fast); }
.form-select:focus, .form-input:focus, .form-textarea:focus { border-color: var(--primary-cyan); box-shadow: 0 0 20px rgba(0, 242, 254, 0.3); }
.form-range { width: 100%; accent-color: var(--primary-cyan); margin-top: 0.6rem; }

/* Sprint Table */
.crm-table-container { overflow-x: auto; }
.crm-table { width: 100%; border-collapse: collapse; text-align: left; }
.crm-table th, .crm-table td { padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--border-color); }
.crm-table th { font-family: var(--font-heading); color: var(--primary-cyan); font-weight: 800; font-size: 0.9rem; text-transform: uppercase; }
.status-pill { padding: 0.35rem 0.9rem; border-radius: 20px; font-size: 0.78rem; font-weight: 800; }
.status-pill.active { background: rgba(0, 230, 118, 0.15); color: var(--accent-green); border: 1px solid var(--accent-green); }
.status-pill.pending { background: rgba(255, 183, 3, 0.15); color: var(--accent-yellow); border: 1px solid var(--accent-yellow); }

/* Code Editor */
.code-editor-mock { background: #04060a; border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; }
.editor-header { background: #0a0e17; padding: 0.85rem 1.25rem; display: flex; align-items: center; gap: 0.6rem; border-bottom: 1px solid var(--border-color); }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; } .dot.yellow { background: #ffbd2e; } .dot.green { background: #27c93f; }
.editor-filename { font-family: var(--font-code); font-size: 0.82rem; color: var(--text-dim); margin-left: 0.7rem; }
.code-body { padding: 1.5rem; font-family: var(--font-code); font-size: 0.88rem; color: #a9b7c6; overflow-x: auto; line-height: 1.6; }
.code-keyword { color: #cc7832; font-weight: bold; }
.code-string { color: #6a8759; }
.code-number { color: #6897bb; }
.code-boolean { color: #6897bb; }
.code-comment { color: #808080; font-style: italic; }
.code-function { color: #ffc66d; }

/* Calculator */
.calculator-card { padding: 3.5rem 3rem; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; margin-top: 2.5rem; }
.input-with-symbol { position: relative; display: flex; align-items: center; }
.currency-symbol { position: absolute; left: 1.2rem; color: var(--primary-cyan); font-weight: 900; font-size: 1.2rem; }
.input-with-symbol .form-input { padding-left: 2.4rem; }
.platform-select-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
.platform-check-item { cursor: pointer; }
.platform-check-item input { display: none; }
.check-box { display: flex; align-items: center; gap: 0.7rem; padding: 0.85rem 1.1rem; background: rgba(8, 12, 22, 0.8); border: 1px solid var(--border-color); border-radius: 12px; color: var(--text-muted); font-size: 0.92rem; font-weight: 700; transition: var(--transition-fast); }
.platform-check-item input:checked + .check-box { background: rgba(0, 242, 254, 0.15); border-color: var(--primary-cyan); color: var(--primary-cyan); box-shadow: var(--shadow-glow-cyan); }
.calc-results-display .results-box { display: flex; flex-direction: column; gap: 1.4rem; }
.results-title { font-family: var(--font-heading); font-size: 1.3rem; color: var(--text-main); margin-bottom: 0.5rem; font-weight: 800; }
.result-item { display: flex; justify-content: space-between; align-items: center; }
.r-label { font-size: 0.95rem; color: var(--text-muted); }
.r-value { font-family: var(--font-heading); font-weight: 900; font-size: 1.45rem; }
.highlight-cyan { color: var(--primary-cyan); } .highlight-purple { color: var(--accent-purple); } .highlight-green { color: var(--accent-green); }
.result-divider { height: 1px; background: var(--border-color); margin: 0.6rem 0; }
.roas-badge { background: linear-gradient(135deg, var(--accent-green), var(--primary-cyan)); color: #030712; padding: 0.45rem 1.4rem; border-radius: 30px; font-size: 1.3rem; box-shadow: 0 0 25px rgba(0, 230, 118, 0.6); }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.25rem; }
.testimonial-card { padding: 2.5rem; display: flex; flex-direction: column; }
.stars-row { color: var(--accent-yellow); font-size: 0.95rem; display: flex; gap: 0.35rem; margin-bottom: 1.4rem; }
.testimonial-quote { font-size: 1rem; color: var(--text-muted); font-style: italic; margin-bottom: 2rem; flex-grow: 1; line-height: 1.75; }
.author-info { display: flex; align-items: center; gap: 1.1rem; }
.author-img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-cyan); box-shadow: var(--shadow-glow-cyan); }
.author-name { font-family: var(--font-heading); font-size: 1.08rem; font-weight: 800; }
.author-role { font-size: 0.82rem; color: var(--text-dim); }

/* Direct Contact & Form */
.direct-contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; margin-top: 2.25rem; margin-bottom: 1.25rem; }
.contact-info-card { background: rgba(8, 12, 22, 0.8); border: 1px solid var(--border-color); border-radius: 16px; padding: 1.4rem 1.6rem; display: flex; align-items: center; gap: 1.1rem; transition: var(--transition-fast); }
.contact-info-card:hover { border-color: var(--primary-cyan); box-shadow: 0 0 25px rgba(0, 242, 254, 0.3); transform: translateY(-3px); }
.info-icon { font-size: 1.6rem; color: var(--primary-cyan); background: rgba(0, 242, 254, 0.1); width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(0, 242, 254, 0.35); }
.info-label { display: block; font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; }
.info-value { display: block; font-family: var(--font-heading); font-size: 1rem; font-weight: 800; color: var(--text-main); text-decoration: none; transition: var(--transition-fast); }
a.info-value:hover { color: var(--primary-cyan); }

.contact-wrapper { padding: 4rem 3.5rem; max-width: 950px; margin: 0 auto; }
.project-form { margin-top: 2.75rem; display: flex; flex-direction: column; gap: 1.75rem; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.75rem; }
.form-label { display: block; font-size: 0.95rem; font-weight: 700; color: var(--text-main); margin-bottom: 0.6rem; }
.service-chip-group { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.chip-item input { display: none; }
.chip-text { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.75rem 1.3rem; background: rgba(8, 12, 22, 0.8); border: 1px solid var(--border-color); border-radius: 30px; font-size: 0.92rem; color: var(--text-muted); cursor: pointer; transition: var(--transition-fast); }
.chip-item input:checked + .chip-text { background: var(--primary-cyan); color: #030712; border-color: var(--primary-cyan); font-weight: 800; box-shadow: var(--shadow-glow-cyan); }

.form-response-msg { display: none; padding: 1.25rem; border-radius: 12px; text-align: center; font-weight: 700; margin-top: 1rem; }
.form-response-msg.success { display: block; background: rgba(0, 230, 118, 0.15); border: 1px solid var(--accent-green); color: var(--accent-green); }

/* Footer */
.footer { background: #030509; border-top: 1px solid var(--border-color); padding: 6rem 0 3rem 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 3.5rem; margin-bottom: 4.5rem; }
.footer-logo { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--font-heading); font-size: 1.55rem; font-weight: 900; color: var(--text-main); text-decoration: none; margin-bottom: 1.1rem; }
.footer-tagline { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 1.75rem; max-width: 340px; line-height: 1.65; }
.social-links { display: flex; gap: 1rem; }
.social-links a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color); color: var(--text-muted); display: flex; align-items: center; justify-content: center; text-decoration: none; transition: var(--transition-fast); font-size: 1.1rem; }
.social-links a:hover { background: var(--primary-cyan); color: #030712; box-shadow: var(--shadow-glow-cyan); transform: translateY(-3px); }
.footer-heading { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 800; margin-bottom: 1.4rem; color: var(--text-main); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.92rem; transition: var(--transition-fast); }
.footer-links a:hover { color: var(--primary-cyan); padding-left: 5px; }
.footer-subtext { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.1rem; line-height: 1.6; }
.newsletter-box { display: flex; gap: 0.6rem; }
.newsletter-input { background: rgba(8, 12, 22, 0.85); border: 1px solid var(--border-color); border-radius: 12px; padding: 0.85rem 1.1rem; color: var(--text-main); outline: none; width: 100%; font-size: 0.9rem; }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 2.25rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.88rem; color: var(--text-dim); }
.footer-legal { display: flex; gap: 1.75rem; }
.footer-legal a { color: var(--text-dim); text-decoration: none; }
.footer-legal a:hover { color: var(--text-muted); }

/* Focus Glow & Floating WhatsApp Widget */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--primary-cyan) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.6) !important;
}

.whatsapp-float-btn {
    position: fixed; bottom: 2.2rem; right: 2.2rem;
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4), 0 0 30px rgba(37, 211, 102, 0.6);
    z-index: 999; text-decoration: none; transition: var(--transition-smooth);
    animation: pulseWhatsApp 2.5s infinite;
}

.whatsapp-float-btn:hover {
    transform: scale(1.12) rotate(8deg);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.7), 0 0 50px rgba(37, 211, 102, 0.9);
}

.whatsapp-tooltip {
    position: absolute; right: 72px;
    background: rgba(8, 12, 22, 0.95);
    border: 1px solid rgba(37, 211, 102, 0.5);
    color: #fff; padding: 0.55rem 1.1rem; border-radius: 12px;
    font-size: 0.85rem; font-weight: 700; white-space: nowrap;
    opacity: 0; visibility: hidden; transition: var(--transition-fast);
    pointer-events: none; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.whatsapp-float-btn:hover .whatsapp-tooltip { opacity: 1; visibility: visible; right: 76px; }

@keyframes pulseWhatsApp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.btn-loading { pointer-events: none; opacity: 0.8; }

/* ====================================================================
   TEMPLATE CATEGORY EXPLORER STYLES
   ==================================================================== */
.templates-section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.template-category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.template-tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.template-tab-btn:hover {
    color: var(--text-light);
    border-color: var(--primary-cyan);
    background: rgba(0, 242, 254, 0.08);
}

.template-tab-btn.active {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.3);
}

.template-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.template-card {
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.template-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 242, 254, 0.2);
}

.template-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(5, 7, 12, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

.template-preview-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.template-preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.template-card:hover .template-preview-img img {
    transform: scale(1.08);
}

.template-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.template-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-light);
}

.template-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.template-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
}

.template-features span {
    font-size: 0.88rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.template-actions {
    margin-top: auto;
}

/* ====================================================================
   COMPREHENSIVE RESPONSIVE BREAKPOINTS (DESKTOP, TABLET & MOBILE)
   ==================================================================== */

/* Large Desktop Adjustments (> 1200px) */
@media (min-width: 1200px) {
    .container { max-width: 1280px; }
    .hero-title { font-size: 3.8rem; }
}

/* Medium Desktop & Tablet (993px - 1199px) */
@media (max-width: 1199px) {
    .services-grid, .portfolio-grid, .template-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

/* Tablet & Mobile Landscape (< 992px) */
@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding-top: 7.5rem;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        align-items: center;
        margin: 0 auto;
    }

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

    .hero-stats-bar {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .stat-divider { display: none; }

    .pane-grid, .calc-grid, .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .direct-contact-cards {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .form-group.col-4, .form-group.col-6 {
        width: 100%;
    }
}

/* Mobile Devices (< 768px) */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2.2rem, 7vw, 3rem);
        line-height: 1.2;
    }

    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(5, 7, 12, 0.98);
        backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-menu.open {
        left: 0;
    }

    .nav-link {
        font-size: 1.25rem;
    }

    .hamburger {
        display: flex;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

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

    .services-grid, .portfolio-grid, .template-cards-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .software-demo-wrapper, .calculator-card, .contact-wrapper {
        padding: 1.5rem;
    }

    .demo-tabs-bar {
        flex-direction: column;
    }

    .demo-tab {
        width: 100%;
        justify-content: center;
    }

    .whatsapp-float-btn {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 52px;
        height: 52px;
        font-size: 1.7rem;
    }

    .whatsapp-tooltip {
        display: none;
    }

    .crm-table-container {
        overflow-x: auto;
    }
}

/* Extra Small Phones (< 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .badge-pill {
        font-size: 0.78rem;
        padding: 0.35rem 0.85rem;
    }

    .hero-stats-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 0.5rem;
    }

    .template-category-tabs, .creator-filter-tabs {
        flex-direction: column;
    }

    .template-tab-btn, .portfolio-filter-btn {
        width: 100%;
        justify-content: center;
    }
}
