/* ===== CSS Variables ===== */
:root {
    --cyan: #00d4ff;
    --cyan-dark: #00a8cc;
    --green: #7ecb20;
    --green-dark: #6ab318;
    --cyan-glow: rgba(0, 212, 255, 0.15);
    --green-glow: rgba(126, 203, 32, 0.15);
}

[data-bs-theme="dark"] {
    --bg-primary: #0a0e17;
    --bg-secondary: #0f1520;
    --bg-card: #131a2b;
    --bg-card-hover: #1a2338;
    --bg-nav: rgba(10, 14, 23, 0.92);
    --text-primary: #e8ecf4;
    --text-secondary: #8892a4;
    --text-muted: #5a6478;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(0, 212, 255, 0.2);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.08);
}

[data-bs-theme="light"] {
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f4f8;
    --bg-nav: rgba(255, 255, 255, 0.92);
    --text-primary: #0f1520;
    --text-secondary: #4a5568;
    --text-muted: #8892a4;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 212, 255, 0.3);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.05);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== Typography ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--cyan), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--cyan-glow), var(--green-glow));
    border: 1px solid var(--border-hover);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-text {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1rem;
}

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

.section-alt {
    background-color: var(--bg-secondary);
}

/* ===== Navbar ===== */
#mainNav {
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    transition: all 0.3s ease;
}

#mainNav.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.brand-text {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.brand-accent {
    color: var(--cyan);
}

.navbar-nav .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--cyan);
    background: var(--cyan-glow);
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: var(--cyan-glow);
}

/* ===== Hero ===== */
.hero-section {
    min-height: 100vh;
    padding: 120px 0 80px;
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--cyan-glow), var(--green-glow));
    border: 1px solid var(--border-hover);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cyan);
    letter-spacing: 0.5px;
}

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

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 540px;
}

/* Buttons */
.btn-accent {
    background: linear-gradient(135deg, var(--cyan), var(--green));
    border: none;
    color: #0a0e17;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
    color: #0a0e17;
}

.btn-outline-light {
    border-radius: 10px;
    font-weight: 600;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-outline-light:hover {
    background: var(--bg-card);
    border-color: var(--border-hover);
    color: var(--cyan);
}

/* Terminal */
.hero-visual {
    width: 100%;
    max-width: 420px;
}

.terminal-window {
    background: #0d1117;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 212, 255, 0.05);
}

.terminal-header {
    background: #161b22;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
    margin-left: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #8b949e;
}

.terminal-body {
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.8;
}

.terminal-line {
    color: #c9d1d9;
}

.terminal-line .prompt {
    color: var(--green);
    font-weight: 600;
}

.terminal-line .cmd {
    color: var(--cyan);
}

.terminal-line.output {
    color: #8b949e;
    padding-left: 1rem;
}

.terminal-line.output.highlight {
    color: #f85149;
    font-weight: 500;
}

.cursor {
    animation: blink 1s step-end infinite;
    color: var(--green);
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ===== Stats Bar ===== */
.stats-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 40px 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--cyan);
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ===== About ===== */
.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cyan-glow);
    border-radius: 10px;
    color: var(--cyan);
    font-size: 1.2rem;
}

.feature-card h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ===== Services ===== */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--green));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

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

.service-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cyan-glow);
    border: 1px solid var(--border-hover);
    border-radius: 12px;
    color: var(--cyan);
    font-size: 1.4rem;
}

.red-team-icon {
    background: rgba(248, 81, 73, 0.1);
    border-color: rgba(248, 81, 73, 0.2);
    color: #f85149;
}

.service-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.premium-badge {
    padding: 4px 12px;
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.2);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #f85149;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.service-card > p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    padding: 4px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

.service-list li:first-child {
    border-top: none;
}

.service-list li i {
    color: var(--green);
    font-size: 1rem;
}

.red-team-card::before {
    background: linear-gradient(90deg, #f85149, var(--cyan));
}

/* ===== Methodology ===== */
.method-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.method-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.method-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.method-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.method-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ===== CTA ===== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
}

.cta-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    position: relative;
}

/* ===== Contact ===== */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cyan-glow);
    border: 1px solid var(--border-hover);
    border-radius: 12px;
    color: var(--cyan);
    font-size: 1.2rem;
}

.contact-item h6 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item a {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: var(--green);
}

.contact-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.form-control,
.form-select {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    background: var(--bg-primary);
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px var(--cyan-glow);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== Footer ===== */
.site-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

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

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

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

    .cta-title {
        font-size: 1.75rem;
    }

    .service-card {
        padding: 24px;
    }

    .contact-card {
        padding: 24px;
    }
}

/* ===== Animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
