/* ============================================
   THE BEARDED GEEK - Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Rajdhani:wght@400;500;600;700&display=swap');

/* ===== RESET & ROOT ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --navy:   #050d1a;
    --navy2:  #091428;
    --navy3:  #0d1f3c;
    --cyan:   #00e5ff;
    --cyan2:  #00b8d4;
    --blue:   #1565c0;
    --silver: #b0bec5;
    --white:  #e8f4f8;
    --glow:   rgba(0,229,255,0.6);
    --glow2:  rgba(0,229,255,0.2);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--navy);
    color: var(--white);
    overflow-x: hidden;
}

/* ===== CANVAS ===== */
#circuit-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ===== LOGO =========== */
.logo-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid var(--cyan);
    box-shadow: 0 0 20px var(--glow);
    overflow: hidden;
    flex-shrink: 0;
    animation: logoPulse 3s ease-in-out infinite;
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(2.3); /* Adjust this to zoom in/out */
    display: block;
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    background: rgba(5,13,26,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--cyan);
    box-shadow: 0 0 30px var(--glow2);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.nav-logo img {
    /*width: 55px;
    height: 55px; */
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 2px solid var(--cyan);
    box-shadow: 0 0 20px var(--glow);
    animation: logoPulse 2s ease-in-out infinite;
}

.nav-logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cyan);
    text-shadow: 0 0 15px var(--glow);
    line-height: 1.2;
}

.nav-logo-text span {
    display: block;
    font-size: 0.65rem;
    color: var(--silver);
    font-weight: 400;
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--cyan);
    border-radius: 2px;
    transition: all 0.3s;
    display: block;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

.nav-links a {
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--silver);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 20px var(--glow2);
    text-shadow: 0 0 10px var(--glow);
}

/* ===== BUTTONS ===== */
.btn-primary {
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: var(--navy);
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-block;
    position: relative;
    overflow: hidden;
    clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
    transition: all 0.3s;
    box-shadow: 0 0 30px var(--glow2);
}

.btn-primary:hover {
    box-shadow: 0 0 50px var(--glow), 0 0 100px var(--glow2);
    transform: translateY(-3px);
}

.btn-outline {
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--cyan);
    text-decoration: none;
    border: 2px solid var(--cyan);
    cursor: pointer;
    display: inline-block;
    clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
    transition: all 0.3s;
}

.btn-outline:hover {
    background: rgba(0,229,255,0.1);
    box-shadow: 0 0 30px var(--glow2);
    transform: translateY(-3px);
}

/* ===== PAGE WRAPPER ===== */
.page-content {
    position: relative;
    z-index: 1;
}

/* ===== SECTION UTILITIES ===== */
section { position: relative; z-index: 1; }

.section-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    letter-spacing: 5px;
    color: var(--cyan);
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--cyan), transparent);
}

.section-label.centered { justify-content: center; }
.section-label.centered::after { display: none; }

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.section-title span {
    color: var(--cyan);
    text-shadow: 0 0 20px var(--glow);
}

.section-title.centered { text-align: center; }

.section-subtitle {
    font-size: 1.15rem;
    color: var(--silver);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 4rem;
}

.section-subtitle.centered {
    margin: 0 auto 4rem;
    text-align: center;
}

.center-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
    padding: 160px 2rem 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 500px;
    background: radial-gradient(ellipse, rgba(0,229,255,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero h1 {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    position: relative;
}

.page-hero p {
    font-size: 1.2rem;
    color: var(--silver);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
}

/* ===== HERO (index) ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 2rem 4rem;
    overflow: hidden;
}

.hero-inner {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text h1 span {
    color: var(--cyan);
    text-shadow: 0 0 30px var(--glow);
    display: block;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--silver);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-ring {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-ring::before, .logo-ring::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--cyan);
}

.logo-ring::before {
    width: 100%; height: 100%;
    animation: ringRotate 8s linear infinite;
    border-color: transparent var(--cyan) transparent var(--cyan);
    box-shadow: 0 0 20px var(--glow);
}

.logo-ring::after {
    width: 85%; height: 85%;
    animation: ringRotate 5s linear infinite reverse;
    border-color: var(--cyan) transparent var(--cyan) transparent;
    opacity: 0.6;
}

.logo-ring img {
    width: 480px; height: 480px;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    animation: heroLogoPulse 4s ease-in-out infinite;
    filter: drop-shadow(0 0 30px var(--glow));
}

.orbit-dot {
    position: absolute;
    width: 12px; height: 12px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--cyan);
}

.orbit-dot-1 { animation: orbitDot1 4s linear infinite; }
.orbit-dot-2 { animation: orbitDot2 6s linear infinite; }

/* ===== STATS BAR ===== */
.stats-bar {
    background: rgba(9,20,40,0.8);
    border-top: 2px solid rgba(0,229,255,0.3);
    border-bottom: 2px solid rgba(0,229,255,0.3);
    padding: 2.5rem;
    position: relative;
    z-index: 1;
}

.stats-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--cyan);
    text-shadow: 0 0 20px var(--glow);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1rem;
    color: var(--silver);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== SERVICE CARDS ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: rgba(9,20,40,0.8);
    border: 1px solid rgba(0,229,255,0.2);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,229,255,0.08), transparent);
    transition: left 0.6s;
}

.service-card:hover::before { left: 100%; }

.service-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 40px var(--glow2), inset 0 0 30px rgba(0,229,255,0.05);
    transform: translateY(-8px);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 20px; height: 20px;
    border-top: 2px solid var(--cyan);
    border-right: 2px solid var(--cyan);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 0 15px var(--cyan));
}

.service-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.service-card p {
    color: var(--silver);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.service-features { list-style: none; }

.service-features li {
    color: var(--silver);
    font-size: 0.9rem;
    padding: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border-bottom: 1px solid rgba(0,229,255,0.07);
}

.service-features li:last-child { border-bottom: none; }
.service-features li::before { content: '▸'; color: var(--cyan); font-size: 0.8rem; }

.service-link { text-decoration: none; display: block; }

.service-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cyan);
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-top: 1.5rem;
    transition: all 0.3s;
}

.service-learn-more:hover { gap: 1rem; }

/* ===== ALT BACKGROUND ===== */
.alt-bg { background: rgba(9,20,40,0.5); }

/* ===== TWO COLUMN LAYOUT ===== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* ===== FEATURE LIST ===== */
.feature-list { list-style: none; margin-top: 2rem; }

.feature-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(0,229,255,0.1);
}

.feature-item:last-child { border-bottom: none; }

.feature-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px var(--cyan));
}

.feature-item h4 {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 0.3rem;
}

.feature-item p { font-size: 0.95rem; color: var(--silver); }

/* ===== CODE/SCREEN MOCKUP ===== */
.screen-wrap {
    background: var(--navy2);
    border: 2px solid rgba(0,229,255,0.3);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 0 60px rgba(0,229,255,0.15), inset 0 0 40px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.screen-header { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.screen-dot { width: 12px; height: 12px; border-radius: 50%; }

.screen-content {
    background: var(--navy);
    border-radius: 6px;
    padding: 1.5rem;
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    color: var(--cyan);
    line-height: 2;
}

.screen-line { margin-bottom: 0.3rem; }
.screen-line .pink   { color: #ff4081; }
.screen-line .yellow { color: #ffd740; }
.screen-line .green  { color: #69ff47; }
.screen-line .gray   { color: var(--silver); }
.screen-line .blue   { color: #82aaff; }

.scan-line {
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 3px;
    background: linear-gradient(to right, transparent, var(--cyan), transparent);
    animation: scanScreen 3s ease-in-out infinite;
    opacity: 0.7;
}

/* ===== PROCESS STEPS ===== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, var(--cyan), var(--blue), var(--cyan));
    z-index: 0;
}

.process-step { text-align: center; position: relative; z-index: 1; }

.step-num {
    width: 80px; height: 80px;
    border: 2px solid var(--cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--cyan);
    background: var(--navy);
    box-shadow: 0 0 20px var(--glow2);
    position: relative;
}

.step-num::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(0,229,255,0.2);
    animation: stepPulse 2s ease-in-out infinite;
}

.process-step h4 {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: var(--cyan);
    margin-bottom: 0.7rem;
}

.process-step p { font-size: 0.9rem; color: var(--silver); line-height: 1.6; }

/* ===== TECH GRID ===== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.tech-chip {
    background: rgba(9,20,40,0.9);
    border: 1px solid rgba(0,229,255,0.2);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.tech-chip:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 20px var(--glow2);
    transform: translateY(-4px);
}

.tech-chip span:first-child {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 8px var(--cyan));
}

.tech-chip span:last-child {
    font-family: 'Orbitron', monospace;
    font-size: 0.65rem;
    color: var(--cyan);
    letter-spacing: 1px;
}

/* ===== INFO BOXES ===== */
.info-box {
    background: rgba(0,229,255,0.05);
    border-left: 4px solid var(--cyan);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 4px 4px 0;
}

.info-box.warning { background: rgba(255,0,110,0.05); border-left-color: #ff006e; }
.info-box.success { background: rgba(0,255,159,0.05); border-left-color: #00ff9f; }

.info-box-title {
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 0.7rem;
}

.warning .info-box-title { color: #ff006e; }
.success .info-box-title { color: #00ff9f; }
.info-box p, .info-box li { color: var(--silver); font-size: 0.95rem; line-height: 1.7; }

/* ===== CODE BLOCKS ===== */
.code-block {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--cyan);
    border-left: 4px solid var(--cyan);
    border-radius: 4px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    position: relative;
    box-shadow: 0 0 20px rgba(0,229,255,0.1);
}

.code-block::before {
    content: attr(data-language);
    position: absolute;
    top: 0; right: 0;
    padding: 0.3rem 1rem;
    background: var(--cyan);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 700;
    border-bottom-left-radius: 4px;
    font-family: 'Orbitron', monospace;
}

.code-block code {
    color: #69ff47;
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
}

.code-block .hl  { color: #ff4081; }
.code-block .cm  { color: var(--silver); font-style: italic; }
.code-block .kw  { color: #ffd740; }
.code-block .fn  { color: #82aaff; }

/* ===== CTA STRIP ===== */
.cta-strip {
    background: linear-gradient(135deg, rgba(21,101,192,0.2), rgba(0,229,255,0.05));
    border-top: 2px solid rgba(0,229,255,0.2);
    border-bottom: 2px solid rgba(0,229,255,0.2);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cta-strip::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,229,255,0.08) 0%, transparent 70%);
    animation: ctaPulse 4s ease-in-out infinite;
    pointer-events: none;
}

.cta-strip h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1rem;
    position: relative;
}

.cta-strip h2 span { color: var(--cyan); text-shadow: 0 0 30px var(--glow); }

.cta-strip p {
    font-size: 1.15rem;
    color: var(--silver);
    margin-bottom: 2.5rem;
    position: relative;
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.contact-card {
    background: rgba(5,13,26,0.8);
    border: 1px solid rgba(0,229,255,0.2);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.contact-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 30px var(--glow2);
    transform: translateY(-4px);
}

.contact-card .contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 0 10px var(--cyan));
}

.contact-card h4 {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    color: var(--cyan);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.contact-card p { color: var(--silver); font-size: 0.95rem; }
.contact-card a { color: var(--cyan); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
footer {
    position: relative;
    z-index: 1;
    background: rgba(5,13,26,0.95);
    border-top: 2px solid rgba(0,229,255,0.2);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-inner { max-width: 1400px; margin: 0 auto; }

footer img {
    width: 70px; height: 70px;
    border-radius: 50%;
    border: 2px solid var(--cyan);
    margin-bottom: 1rem;
    box-shadow: 0 0 20px var(--glow2);
}

.footer-brand {
    font-family: 'Orbitron', monospace;
    color: var(--cyan);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

footer p { color: var(--silver); font-size: 0.9rem; margin-bottom: 0.4rem; }
footer a { color: var(--cyan); text-decoration: none; }

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.footer-links a {
    color: var(--silver);
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--cyan);
    text-shadow: 0 0 10px var(--glow);
}

.footer-copy { font-size: 0.8rem !important; opacity: 0.5; margin-top: 1rem !important; }

/* ===== ANIMATIONS ===== */
@keyframes logoPulse {
    0%,100% { box-shadow: 0 0 20px var(--glow); }
    50% { box-shadow: 0 0 40px var(--glow), 0 0 60px var(--glow2); }
}

@keyframes ringRotate { to { transform: rotate(360deg); } }

@keyframes heroLogoPulse {
    0%,100% { filter: drop-shadow(0 0 20px var(--glow)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 50px var(--glow)); transform: scale(1.03); }
}

@keyframes orbitDot1 {
    0% { transform: rotate(0deg) translateX(190px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(190px) rotate(-360deg); }
}

@keyframes orbitDot2 {
    0% { transform: rotate(180deg) translateX(165px) rotate(-180deg); }
    100% { transform: rotate(540deg) translateX(165px) rotate(-540deg); }
}

@keyframes scanScreen {
    0% { top: 0; }
    100% { top: 100%; }
}

@keyframes stepPulse {
    0%,100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.3; }
}

@keyframes ctaPulse {
    0%,100% { transform: translate(-50%,-50%) scale(1); }
    50% { transform: translate(-50%,-50%) scale(1.2); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    opacity: 0;
    will-change: opacity, transform;
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-logo { display: none; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .two-col { grid-template-columns: 1fr; gap: 3rem; }
    .two-col.reverse { direction: ltr; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid::before { display: none; }
    .tech-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; max-width: 400px; }
}

@media (max-width: 768px) {
    .hero-text h1 { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    .page-hero h1 { font-size: 2rem; }
    .cta-strip h2 { font-size: 1.8rem; }

    nav { position: fixed; } /* keep nav fixed so hamburger dropdown anchors correctly */
    .nav-inner { padding: 0 1rem; }
    .hamburger { display: flex; }
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(5,13,26,0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 0 1rem;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease, visibility 0s linear 0.4s, border-bottom-color 0.4s ease;
        border-bottom: 2px solid transparent;
        z-index: 999;
    }
    .nav-links.active {
        max-height: 520px;
        padding: 1rem 1rem;
        visibility: visible;
        border-bottom-color: var(--cyan);
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
        transition: max-height 0.4s ease, padding 0.4s ease, visibility 0s linear 0s, border-bottom-color 0.4s ease;
    }
    .nav-links a {
        width: 100%;
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid rgba(0,229,255,0.1);
    }
    .nav-links a:last-child { border-bottom: none; }

    .services-grid { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-inner { grid-template-columns: 1fr; }
    .section-inner { padding: 4rem 1rem; }
    .hero { padding: 120px 1rem 3rem; }
    .page-hero { padding: 140px 1rem 60px; }

    .service-card { padding: 2rem 1.5rem; }
    .process-grid { grid-template-columns: 1fr; }

    .hero-buttons { flex-direction: column; width: 100%; }
    .btn-primary, .btn-outline {
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
    }

    footer { padding: 2rem 1rem; }
    .footer-links { gap: 1rem; font-size: 0.7rem; }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 1.8rem; line-height: 1.2; }
    .section-title { font-size: 1.5rem; }
    .page-hero h1 { font-size: 1.6rem; }
    .tech-grid { grid-template-columns: 1fr; }
    .tech-chip { padding: 1rem; }
    .service-icon { font-size: 2.5rem; }
    .stat-item h3 { font-size: 2rem; }
    .nav-logo-text { font-size: 0.9rem; }
    .nav-logo img { width: 45px; height: 45px; }
}
