/* ==========================================================================
   MASCODE - OFFICIAL WEBSITE STYLESHEET
   Design Inspiration: Vercel, Linear, Stripe, Supabase
   Colors: #081526 (Primary BG), #10203A (Secondary BG), #1E88E5 (Accent Blue)
   Typography: Space Grotesk (Headings), Inter (Body)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & DESIGN SYSTEM TOKENS
   -------------------------------------------------------------------------- */
:root {
    --bg-primary: #081526;
    --bg-secondary: #10203A;
    --bg-card: #0E1B2E;
    --bg-card-hover: #142640;
    --bg-glass: rgba(8, 21, 38, 0.85);

    --accent-primary: #1E88E5;
    --accent-hover: #42A5F5;
    --accent-light: #64B5F6;
    --accent-glow: rgba(30, 136, 229, 0.25);
    --accent-glow-strong: rgba(30, 136, 229, 0.45);

    --text-primary: #FFFFFF;
    --text-secondary: #B8C2CC;
    --text-muted: #7E8B9B;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(30, 136, 229, 0.3);
    --border-glow: rgba(30, 136, 229, 0.5);

    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(30, 136, 229, 0.25);

    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

    --container-max-width: 1240px;
    --navbar-height: 80px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-primary);
    overflow-x: hidden;
    position: relative;
}

/* Subtle Ambient Background Grid & Glow Blobs */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(30, 136, 229, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 60%, rgba(16, 32, 58, 0.6) 0%, transparent 50%),
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

p:last-child {
    margin-bottom: 0;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY & GRADIENTS
   -------------------------------------------------------------------------- */
.text-gradient {
    background: linear-gradient(135deg, #FFFFFF 30%, var(--accent-light) 70%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 4rem auto;
}

.section-subtitle-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(30, 136, 229, 0.12);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   4. BUTTONS & BADGES
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(30, 136, 229, 0.35);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.5);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.btn-glow:hover::after {
    opacity: 1;
}

.btn-icon {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

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

.btn-disabled, .btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-badge.live {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.soon {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.live .badge-dot {
    background-color: #10B981;
    box-shadow: 0 0 8px #10B981;
}

.soon .badge-dot {
    background-color: #F59E0B;
}

/* --------------------------------------------------------------------------
   5. NAVBAR & HEADER
   -------------------------------------------------------------------------- */
.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    z-index: 1000;
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.navbar-wrapper.scrolled {
    background-color: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--border-color);
}

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

.navbar-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-primary);
    transition: width var(--transition-fast);
    border-radius: 2px;
}

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

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.mobile-toggle:hover {
    background: rgba(0, 180, 255, 0.15);
    border-color: var(--accent-primary);
}

.mobile-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-primary);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: 100%;
    background: rgba(8, 21, 38, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem 2rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    z-index: 1001;
}

.mobile-menu.active {
    display: block;
    animation: fadeInDown 0.3s ease forwards;
}

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

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.mobile-nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    color: var(--accent-primary);
    background: rgba(0, 180, 255, 0.1);
    border-color: rgba(0, 180, 255, 0.25);
}


.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mobile-nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: block;
    padding: 0.5rem 0;
}

.mobile-nav-link:hover {
    color: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
    padding-top: calc(var(--navbar-height) + 4rem);
    padding-bottom: 5rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-badge-location {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1.1rem;
    background: rgba(30, 136, 229, 0.1);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
}

.hero-badge-location i {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-subheadline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Visual Interactive Code/Product Preview Box */
.hero-visual-card {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    overflow: hidden;
    position: relative;
}

.hero-visual-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.card-window-bar {
    background: rgba(16, 32, 58, 0.8);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

/* ==========================================================================
   INTERACTIVE HERO SHOWCASE WIDGET
   ========================================================================== */
.interactive-hero-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 180, 255, 0.2);
    overflow: hidden;
    position: relative;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.interactive-hero-widget:hover {
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 45px rgba(0, 180, 255, 0.3);
}

.widget-window-header {
    background: rgba(10, 25, 45, 0.95);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    gap: 0.5rem;
    flex-wrap: wrap;
}

.widget-tabs {
    display: flex;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 3px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.widget-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.35rem 0.7rem;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--transition-fast);
}

.widget-tab i, .widget-tab svg {
    width: 13px;
    height: 13px;
}

.widget-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.widget-tab.active {
    background: var(--accent-primary);
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 180, 255, 0.4);
}

.widget-window-body {
    padding: 1.5rem;
    min-height: 280px;
    background: #06101E;
    position: relative;
}

.widget-panel {
    display: none;
    animation: fadeIn 0.35s ease forwards;
}

.widget-panel.active {
    display: block;
}

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

.panel-header-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-light);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.panel-tag i, .panel-tag svg {
    width: 15px;
    height: 15px;
}

.panel-metrics {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.metric-chip {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.metric-chip i, .metric-chip svg {
    width: 13px;
    height: 13px;
    color: var(--accent-primary);
}

/* Graphic Design Canvas Panel */
.design-canvas-preview {
    background: rgba(16, 32, 58, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
}

.canvas-logo-box {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    display: inline-block;
}

.palette-row {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.palette-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.palette-swatch:hover {
    transform: scale(1.25);
}

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

.font-sample {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: #FFFFFF;
    margin-top: 0.25rem;
}

/* Video Studio Timeline Panel */
.video-editor-preview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.video-track-bar {
    background: rgba(16, 32, 58, 0.6);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.8rem;
}

.track-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.timeline-clip {
    height: 22px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.video-clip {
    background: linear-gradient(90deg, #00B4FF 0%, #1E88E5 100%);
    width: 85%;
}

.fx-clip {
    background: linear-gradient(90deg, #F59E0B 0%, #EC4899 100%);
    width: 65%;
    margin-left: 20%;
}

.audio-clip {
    background: linear-gradient(90deg, #10B981 0%, #059669 100%);
    width: 95%;
}

.render-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.render-fill {
    height: 100%;
    width: 78%;
    background: linear-gradient(90deg, #00B4FF, #EC4899);
    animation: renderPulse 2s ease-in-out infinite alternate;
}

@keyframes renderPulse {
    0% { width: 40%; }
    100% { width: 95%; }
}

/* AI Engine Panel */
.ai-processing-preview {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ai-input-box {
    background: rgba(0, 180, 255, 0.08);
    border: 1px solid rgba(0, 180, 255, 0.25);
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--accent-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-output-table {
    background: rgba(16, 32, 58, 0.6);
    border-radius: var(--radius-sm);
    padding: 0.6rem;
    font-size: 0.78rem;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}

.table-row.head {
    font-weight: 600;
    color: var(--text-muted);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.green-text { color: #10B981; font-weight: 600; }
.red-text { color: #EF4444; font-weight: 600; }

.window-dots {
    display: flex;
    gap: 6px;
}


.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.window-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
}

.card-window-content {
    padding: 1.75rem;
}

.code-snippet {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.code-keyword { color: #C792EA; }
.code-func { color: #82AAFF; }
.code-str { color: #ECC48D; }
.code-comment { color: var(--text-muted); }
.code-num { color: #F78C6C; }

/* --------------------------------------------------------------------------
   7. TRUST / HIGHLIGHTS BAR
   -------------------------------------------------------------------------- */
.trust-section {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
}

.trust-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(30, 136, 229, 0.12);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.trust-icon-box i {
    width: 24px;
    height: 24px;
}

.trust-title {
    font-size: 1rem;
    font-weight: 600;
}

.trust-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* --------------------------------------------------------------------------
   8. SERVICES SECTION ("What We Build")
   -------------------------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-light));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(30, 136, 229, 0.12);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    transition: transform var(--transition-fast);
}

.service-card:hover .service-icon-wrapper {
    transform: scale(1.1);
    background: var(--accent-primary);
    color: #FFFFFF;
}

.service-icon-wrapper i {
    width: 28px;
    height: 28px;
}

.service-title {
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
}

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

/* --------------------------------------------------------------------------
   9. PRODUCTS SECTION ("Products We've Built")
   -------------------------------------------------------------------------- */
.products-section {
    background-color: var(--bg-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-smooth);
}

.product-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
}

.product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.product-logo-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
}

.product-logo-box i {
    width: 24px;
    height: 24px;
}

.product-title {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

.product-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.product-action {
    margin-top: auto;
}

/* --------------------------------------------------------------------------
   10. WHY CHOOSE MASCODE
   -------------------------------------------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    transition: all var(--transition-fast);
}

.feature-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
}

.feature-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(30, 136, 229, 0.12);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.feature-title {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

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

/* --------------------------------------------------------------------------
   11. DEVELOPMENT PROCESS TIMELINE
   -------------------------------------------------------------------------- */
.process-section {
    background-color: var(--bg-secondary);
}

.timeline-container {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
}

.timeline-track {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
    position: relative;
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--border-accent));
    z-index: 1;
}

.timeline-step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent-primary);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem auto;
    box-shadow: 0 0 15px rgba(30, 136, 229, 0.3);
    transition: all var(--transition-fast);
}

.timeline-step:hover .step-number {
    background: var(--accent-primary);
    transform: scale(1.1);
}

.step-title {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

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

/* --------------------------------------------------------------------------
   12. TECHNOLOGIES GRID
   -------------------------------------------------------------------------- */
.tech-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
}

.tech-category-title {
    font-size: 1.1rem;
    color: var(--accent-light);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.tech-badge {
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.tech-badge:hover {
    border-color: var(--border-accent);
    background: rgba(30, 136, 229, 0.15);
    color: var(--accent-light);
}

/* --------------------------------------------------------------------------
   13. ACADEMY SECTION
   -------------------------------------------------------------------------- */
.academy-banner {
    background: linear-gradient(135deg, #0F2442 0%, var(--bg-card) 100%);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 4rem 3rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.academy-banner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(30, 136, 229, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.academy-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.academy-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.academy-features-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.academy-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.academy-feature-item i {
    width: 20px;
    height: 20px;
    color: #10B981;
}

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

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.value-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
}

.value-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.value-icon-box {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(30, 136, 229, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.value-title {
    font-size: 1.2rem;
}

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

/* --------------------------------------------------------------------------
   15. CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
}

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.contact-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(30, 136, 229, 0.12);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.contact-val {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.whatsapp-box {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
    width: 100%;
}

.btn-whatsapp:hover {
    background-color: #1EBE5D;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

.form-response-msg {
    margin-top: 1rem;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    display: none;
}

.form-response-msg.success {
    display: block;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10B981;
}

.form-response-msg.error {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
.footer {
    background-color: #050D18;
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3.5rem;
    margin-bottom: 4rem;
}

.footer-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 1.25rem 0 1.5rem 0;
    max-width: 420px;
}

.footer-location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--accent-light);
}

.footer-heading {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.badge-mini {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.badge-mini.live { background: rgba(16, 185, 129, 0.2); color: #10B981; }
.badge-mini.soon { background: rgba(245, 158, 11, 0.2); color: #F59E0B; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--accent-primary);
    color: #FFFFFF;
    transform: translateY(-3px);
}

.social-link i {
    width: 18px;
    height: 18px;
}

/* --------------------------------------------------------------------------
   17. RESPONSIVE BREAKPOINTS (MOBILE-FIRST & TABLET ENHANCEMENTS)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }

    .services-grid, .products-grid, .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-track {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline-track::before {
        top: 0;
        bottom: 0;
        left: 32px;
        width: 2px;
        height: 100%;
    }

    .timeline-step {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        text-align: left;
    }

    .step-number {
        margin: 0;
        flex-shrink: 0;
    }

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

    .academy-banner {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
    }

    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subheadline {
        font-size: 1.05rem;
    }

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

    .services-grid, .products-grid, .features-grid, .tech-categories, .trust-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Sub-Page Hero Header Banners */
.page-hero-banner {
    padding-top: calc(var(--navbar-height) + 3rem);
    padding-bottom: 3.5rem;
    background: linear-gradient(180deg, rgba(16, 32, 58, 0.6) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero-banner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 180, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Floating WhatsApp Action Button */
.floating-whatsapp {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
    animation: wa-pulse 2.5s infinite;
    text-decoration: none;
}

.floating-whatsapp svg, .floating-whatsapp i {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
}

.floating-whatsapp:hover {
    background-color: #1EBE5D;
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp .whatsapp-tooltip {
    position: absolute;
    right: 72px;
    background: #081526;
    color: #FFFFFF;
    border: 1px solid rgba(37, 211, 102, 0.4);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: all var(--transition-fast);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.floating-whatsapp:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

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

/* Product Card Preview Image Wrapper */
.product-img-wrapper {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
    background-color: #06101E;
    border: 1px solid var(--border-color);
    position: relative;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.04);
}

/* Featured Showcase Image Wrappers */
.hero-img-container, .showcase-img-container {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #06101E;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 180, 255, 0.15);
    position: relative;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.hero-img-container:hover, .showcase-img-container:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 180, 255, 0.25);
    border-color: rgba(0, 180, 255, 0.4);
}

.hero-img-container img, .showcase-img-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Team Photo Showcase Card Styles */
.team-photo-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 180, 255, 0.15);
    background: #06101E;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.team-photo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 180, 255, 0.25);
    border-color: rgba(0, 180, 255, 0.4);
}

.team-photo-card img {
    width: 100%;
    height: 380px;
    display: block;
    object-fit: cover;
}

.team-photo-badge {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
    background: rgba(8, 21, 38, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.team-badge-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #FFFFFF;
}

.team-badge-sub {
    font-size: 0.75rem;
    color: var(--accent-light);
}



/* ==========================================================================
   COOL BESPOKE ANIMATIONS & INTERACTION EFFECTS
   ========================================================================== */

/* 1. Animated Gradient Text Flow */
@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.text-gradient {
    background: linear-gradient(135deg, #FFFFFF 0%, #00B4FF 40%, #42A5F5 80%, #64B5F6 100%);
    background-size: 200% 200%;
    animation: gradient-flow 6s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* 2. Floating Ambient Background Glow Orbs */
.hero-section::before, .page-hero-banner::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(0, 180, 255, 0.18) 0%, rgba(30, 136, 229, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: orb-float-1 12s ease-in-out infinite alternate;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(0, 180, 255, 0.04) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: orb-float-2 15s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes orb-float-1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-60px, 80px) scale(1.15); }
    100% { transform: translate(40px, -30px) scale(0.9); }
}

@keyframes orb-float-2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(80px, -50px) scale(1.2); }
    100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* 3. 3D Card Hover Perspective & Glow */
.service-card, .product-card, .feature-card, .hero-visual-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s ease;
    will-change: transform;
}

.service-card:hover, .product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 180, 255, 0.25);
    border-color: rgba(0, 180, 255, 0.4);
}

/* 4. Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* 5. Shimmer Light Beam Effect on Hero Preview Card */
.hero-visual-card {
    position: relative;
    overflow: hidden;
}

.hero-visual-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 45%,
        rgba(0, 180, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.03) 55%,
        transparent 100%
    );
    transform: rotate(30deg) translateY(-100%);
    animation: beam-shimmer 7s ease-in-out infinite;
    pointer-events: none;
}

@keyframes beam-shimmer {
    0%, 20% { transform: rotate(30deg) translateY(-100%); }
    80%, 100% { transform: rotate(30deg) translateY(100%); }
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE DESIGN (IPAD, TABLET, MOBILE & ALL SCREENS)
   ========================================================================== */

/* 1. Large Tablets & iPad Pro (1024px and down) */
@media screen and (max-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-badge-location {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-visual-card {
        max-width: 650px;
        margin: 0 auto;
    }

    .services-grid, 
    .services-grid[style*="repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .academy-banner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2.5rem 2rem;
    }
}

/* 2. iPad Portrait & Mid-size Tablets (992px and down) */
@media screen and (max-width: 992px) {
    .nav-desktop {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .page-hero-title {
        font-size: clamp(2.2rem, 5vw, 3rem);
    }

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

/* 3. Phablets & Small Tablets (768px and down) */
@media screen and (max-width: 768px) {
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .hero-section {
        padding-top: 7rem;
        padding-bottom: 4rem;
    }

    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    .hero-subheadline {
        font-size: 1.05rem;
    }

    .services-grid, 
    .services-grid[style*="repeat(3, 1fr)"],
    .products-grid,
    .trust-grid,
    .about-values-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }

    .service-card, .product-card {
        padding: 1.75rem 1.25rem;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

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

    .code-snippet {
        font-size: 0.8rem;
        padding: 1rem;
    }

    .floating-whatsapp {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
    }

    .floating-whatsapp svg {
        width: 26px;
        height: 26px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* 4. Small Mobile Phones (480px and down) */
@media screen and (max-width: 480px) {
    .navbar-logo .logo-img {
        width: 150px;
        height: auto;
    }

    .hero-badge-location {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.25;
    }

    .hero-subheadline {
        font-size: 0.95rem;
    }

    .btn {
        padding: 0.8rem 1.4rem;
        font-size: 0.9rem;
    }

    .tech-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.55rem;
    }
}

/* Tech Badges Container & Pill Styling */
.tech-badges-container,
div:has(> .tech-badge) {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.5rem;
    align-items: center;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.2;
    color: #94A3B8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin: 0 !important;
}

.tech-badge:hover {
    color: #38BDF8;
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.12);
}

/* ==========================================================================
   5. ENHANCED MOBILE & RESPONSIVE ANIMATIONS SYSTEM
   ========================================================================== */

/* Page Hero Entrance Animations */
@keyframes mobileHeroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(28px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    animation: mobileHeroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-subheadline {
    animation: mobileHeroFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
    opacity: 0;
}

.hero-ctas {
    animation: mobileHeroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

/* Scroll Reveal Base & Staggered Domino Animation */
.reveal {
    opacity: 0;
    transform: translateY(36px) scale(0.95);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease,
                box-shadow 0.35s ease;
    will-change: opacity, transform;
}

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

/* Sequential Stagger Delays for Mobile & Desktop Grids */
.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.12s; }
.reveal:nth-child(3) { transition-delay: 0.19s; }
.reveal:nth-child(4) { transition-delay: 0.26s; }
.reveal:nth-child(5) { transition-delay: 0.33s; }
.reveal:nth-child(6) { transition-delay: 0.4s; }

/* Continuous Ambient Floating & Glow Keyframes */
@keyframes floatHero {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(0.6deg);
    }
}

@keyframes pulseCyanGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(0, 180, 255, 0.25), inset 0 0 15px rgba(0, 180, 255, 0.05);
    }
    50% {
        box-shadow: 0 0 32px rgba(0, 180, 255, 0.55), inset 0 0 20px rgba(0, 180, 255, 0.2);
    }
}

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

@keyframes pulseWhatsApp {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6), 0 8px 25px rgba(0,0,0,0.3);
    }
    50% {
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0), 0 12px 30px rgba(37, 211, 102, 0.4);
    }
}

/* Apply Ambient Keyframe Animations */
.team-photo-card {
    animation: floatHero 5.5s ease-in-out infinite;
}

.btn-glow {
    animation: pulseCyanGlow 2.8s infinite;
}

.floating-whatsapp {
    animation: pulseWhatsApp 2.5s infinite;
}

.section-subtitle-badge {
    background: linear-gradient(90deg, rgba(0, 180, 255, 0.12) 0%, rgba(0, 180, 255, 0.3) 50%, rgba(0, 180, 255, 0.12) 100%);
    background-size: 200% 100%;
    animation: badgeShimmer 3.5s infinite linear;
}

/* Mobile Drawer Menu Staggered Slide In */
.mobile-menu.active .mobile-nav-link {
    animation: mobileHeroFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mobile-menu.active li:nth-child(1) .mobile-nav-link { animation-delay: 0.05s; }
.mobile-menu.active li:nth-child(2) .mobile-nav-link { animation-delay: 0.1s; }
.mobile-menu.active li:nth-child(3) .mobile-nav-link { animation-delay: 0.15s; }
.mobile-menu.active li:nth-child(4) .mobile-nav-link { animation-delay: 0.2s; }
.mobile-menu.active li:nth-child(5) .mobile-nav-link { animation-delay: 0.25s; }
.mobile-menu.active li:nth-child(6) .mobile-nav-link { animation-delay: 0.3s; }

/* Touch & Active Interactions for Mobile Devices */
@media (hover: none) or (max-width: 991px) {
    .service-card:active,
    .product-card:active,
    .team-photo-card:active {
        transform: scale(0.97) translateY(-3px) !important;
        border-color: rgba(0, 180, 255, 0.7) !important;
        box-shadow: 0 14px 35px rgba(0, 180, 255, 0.3) !important;
        transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
    }

    .service-card,
    .product-card {
        transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    }
}





