:root {
    /* Clean, professional palette - Royal Blue & Soft Charcoal */
    --bg-color: #0f172a;
    --bg-light: #1e293b;
    --card-bg: #1e293b;
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-glow: rgba(59, 130, 246, 0.15);
    --accent: #60a5fa;
    --accent-warm: #f59e0b;
    --accent-glow: rgba(96, 165, 250, 0.2);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;
    --border: rgba(148, 163, 184, 0.15);
    --success: #22c55e;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 120px 0;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-icon {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0, 102, 255, 0.5));
}

.btn-cta {
    background: var(--primary);
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

.btn-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

/* --- HERO SECTION --- */
header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle gradient background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
    z-index: -2;
}

.hero-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    width: 800px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    filter: blur(120px);
    opacity: 0.06;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero-content {
    z-index: 1;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 30px;
    font-weight: 700;
}

.hero-content .subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- TECH STACK (Marquee) --- */
.tech-stack {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-light);
    padding: 30px 0;
    overflow: hidden;
    position: relative;
}

.tech-track {
    display: flex;
    gap: 80px;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.tech-item {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.tech-item:hover {
    opacity: 1;
    color: var(--accent);
}

/* --- SERVICES --- */
.services-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.services-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 70px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 16px;
    position: relative;
    transition: all 0.3s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 102, 255, 0) 0%, rgba(0, 102, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
}

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

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 25px;
    border: 1px solid rgba(0, 102, 255, 0.2);
}

.service-card:hover .icon-box {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.service-card ul {
    list-style: none;
    margin-top: 20px;
}

.service-card ul li {
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-card ul li i {
    color: var(--success);
    font-size: 0.8rem;
}

/* --- STATS SECTION --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.stat-item {
    text-align: center;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- PILLARS SECTION --- */
.pillar-card {
    border-left: 2px solid var(--primary);
    padding-left: 20px;
    background: transparent;
    transition: 0.3s;
}

.pillar-card:hover {
    padding-left: 25px;
    border-left-color: var(--accent);
}

.pillar-title {
    color: var(--text);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* --- FAQ SECTION --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--text);
    padding: 20px 0;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-answer {
    color: var(--text-muted);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-right: 20px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    /* arbitrary height for transition */
    padding-bottom: 20px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* --- SECURITY SECTION --- */
.security-section {
    background: var(--bg-light);
    position: relative;
}

.terminal-window {
    background: #0f1115;
    border-radius: 8px;
    border: 1px solid #333;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Fira Code', monospace;
}

.terminal-header {
    background: #1a1d24;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #333;
}

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

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.terminal-body {
    padding: 30px;
    color: #a0a0a0;
    font-size: 0.95rem;
}

.cmd-line {
    margin-bottom: 15px;
    display: flex;
}

.prompt {
    color: var(--accent);
    margin-right: 10px;
}

.cmd {
    color: #fff;
}

.output {
    color: var(--primary);
    margin-left: 20px;
    margin-bottom: 20px;
}

.log-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #333;
    padding: 8px 0;
}

.log-status {
    color: #00ff88;
}

@keyframes cursor-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 18px;
    background: var(--accent);
    animation: cursor-blink 1s infinite;
    vertical-align: middle;
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid var(--border);
    background: var(--bg-color);
    padding: 60px 0 20px;
    text-align: center;
}

.footer-content {
    margin-bottom: 40px;
}

.footer-cta {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-email {
    font-size: 2rem;
    color: var(--primary);
    font-family: var(--font-heading);
    margin-bottom: 30px;
    display: inline-block;
    transition: 0.3s;
}

.footer-email:hover {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

/* --- ANIMATIONS --- */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.15;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.25;
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-logo {
        font-size: 1.5rem;
    }

    .btn-cta {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

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

    .terminal-body {
        padding: 15px;
        font-size: 0.85rem;
    }

    .log-item {
        flex-direction: column;
        gap: 5px;
    }
}

/* --- LIVE STATUS DOT --- */
.live-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    display: inline-block;
    animation: livePulse 2s infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes livePulse {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    }

    70% {
        transform: scale(1);
        opacity: 0.7;
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }

    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* --- PROCESS SECTION --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
    z-index: -1;
    opacity: 0.3;
}

.process-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    position: relative;
}

.process-number {
    width: 40px;
    height: 40px;
    background: var(--bg-color);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: 700;
    font-family: var(--font-heading);
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-grid::before {
        display: none;
    }
}

/* --- RESPONSIVE MENU --- */
.menu-toggle {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 10px;
    display: none;
    z-index: 2001;
    /* Higher than menu overlay */
    position: relative;
    /* Ensure z-index works */
    padding: 10px;
    /* Increase touch target */
}

.desktop-nav {
    display: flex;
    gap: 30px;
}

.desktop-nav a {
    color: var(--text-muted);
    font-weight: 500;
    transition: 0.3s;
    font-size: 0.95rem;
}

.desktop-nav a:hover {
    color: var(--text);
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .desktop-nav {
        display: none;
    }
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.menu-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 2rem;
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.mobile-link {
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--text);
    font-weight: 700;
    transition: 0.3s;
}

.mobile-link:hover {
    color: var(--primary);
    transform: scale(1.1);
}