@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;1,400&family=IBM+Plex+Sans:wght@200;300;400;500;600&display=swap');

:root {
    /* Base Design Tokens & Theme Variables */
    /* Enforces visual consistency across all UI components */
    --bg: #000000;
    --text: #ffffff;
    --accent: #ffffff;
    --dim: #888888;
    --border: rgba(255, 255, 255, 0.1);
    --card-bg: #0a0a0a;
    --transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    --mesh-color: rgba(255, 255, 255, 0.03);
    --grid-color: rgba(255, 255, 255, 0.05);
    --glow: rgba(255, 255, 255, 0.05);
    --scan-color: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] {
    --bg: #ffffff;
    --text: #000000;
    --accent: #000000;
    --dim: #666666;
    --border: rgba(0, 0, 0, 0.08);
    --card-bg: #ffffff;
    --mesh-color: rgba(0, 0, 0, 0.01);
    --grid-color: rgba(0, 0, 0, 0.02);
    --glow: rgba(0, 0, 0, 0.02);
    --scan-color: rgba(0, 0, 0, 0.02);
}

.lang-switcher a {
    color: var(--text) !important;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.lang-switcher a.active {
    font-weight: 700;
    border-bottom: 1px solid var(--text);
}

.lang-switcher a:not(.active) {
    opacity: 0.4;
}

.lang-switcher a:hover {
    opacity: 1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'IBM Plex Sans', sans-serif;
    transition: background-color var(--transition), color var(--transition);
    overflow-x: hidden;
    line-height: 1.8;
}

/* Core Typography & Font Architecture */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    letter-spacing: -0.03em;
}

.mono {
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* Layout & Grid System (Atomic Design Principles) */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* Global Navigation Header (Fixed/Sticky Logic) */
header {
    height: 100px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(var(--bg), 0.8);
    backdrop-filter: blur(20px);
}

header .container {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 32px;
    transition: var(--transition);
}

nav ul {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 3vw, 3rem);
    list-style: none;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.6;
    transition: var(--transition);
}

nav a:hover,
nav a.active {
    opacity: 1;
    color: var(--text);
}

nav a.active {
    border-bottom: 2px solid var(--text);
    padding-bottom: 5px;
    font-weight: 500;
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

#theme-toggle:hover {
    background: var(--border);
}

.cta-button {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    text-decoration: none;
    padding: 0.8rem 1.8rem;
    border: 1px solid var(--text);
    color: var(--text);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cta-button:hover {
    background: var(--text);
    color: var(--bg) !important;
}

/* Viewport Segments & Interactive Blocks */
section {
    padding: 10rem 0;
}

.section-label {
    margin-bottom: 2rem;
    color: var(--dim);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center !important;
    align-items: center !important;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center center;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center !important;
    text-align: center !important;
}

.hero .badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    margin-bottom: 3rem;
    color: var(--dim);
    font-size: 0.75rem;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
    max-width: 1400px;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

.hero h1 span.outline {
    color: transparent;
    -webkit-text-stroke: 1px var(--text);
    opacity: 1;
}

.hero .sub-headline {
    font-size: 1.1rem;
    color: var(--dim);
    max-width: 800px;
    margin-bottom: 5rem;
    line-height: 1.8;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.float-item {
    position: absolute;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: var(--text);
    opacity: 0.1;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    white-space: nowrap;
}

/* CTA Group */
.cta-group {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
}

.cta-button.solid {
    background: var(--text);
    color: var(--bg) !important;
    border-color: var(--text);
}

.cta-button.ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.cta-button.ghost:hover {
    border-color: var(--text);
    background: transparent;
    color: var(--text);
}

/* Toggle Switch */
.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.toggle-label {
    cursor: pointer;
    transition: var(--transition);
}

.toggle-label.active {
    color: var(--text);
    opacity: 1;
}

.toggle-label:not(.active) {
    color: var(--dim);
    opacity: 0.4;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: var(--text);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider:before {
    transform: translateX(30px);
}

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

.problem-card {
    background: var(--card-bg);
    padding: 3rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.problem-card:hover {
    border-color: var(--text);
    transform: translateY(-5px);
}

.problem-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.problem-card p {
    color: var(--dim);
    font-size: 1rem;
}

.problem-card .icon {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    font-size: 1.5rem;
    opacity: 0.2;
    transition: var(--transition);
}

.problem-card:hover .icon {
    opacity: 1;
    transform: translate(5px, -5px);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    border: 1px solid var(--border);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
    transition: var(--transition);
    background: var(--card-bg);
}

.service-card:hover {
    border-color: var(--text);
}

.service-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--dim);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tech-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border);
    color: var(--dim);
    border-radius: 2px;
}

.service-card .details-link {
    margin-top: auto;
    color: var(--text);
    text-decoration: none;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: var(--transition);
}

.service-card:hover .details-link {
    opacity: 1;
    transform: translateX(5px);
}

.live-indicator {
    color: #ff0000;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.live-indicator::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #ff0000;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff0000;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Tech Stack Ribbon */
.tech-stack-ribbon {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 3rem 0;
    overflow: hidden;
}

.tech-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.tech-item {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    color: var(--dim);
    transition: var(--transition);
}

.tech-item:hover {
    color: var(--text);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 8rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.form-group {
    position: relative;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    color: var(--text);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.1rem;
    transition: var(--transition);
    outline: none;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: var(--dim);
    pointer-events: none;
    transition: var(--transition);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -1.5rem;
    font-size: 0.7rem;
    color: var(--text);
}

.form-group input:focus, 
.form-group textarea:focus {
    border-bottom-color: var(--text);
}

.contact-info h3 {
    margin-bottom: 2rem;
}

.contact-info p {
    color: var(--dim);
    margin-bottom: 1rem;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    color: var(--text);
    text-decoration: none;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    padding: 1rem 2rem;
    transition: var(--transition);
}

.whatsapp-link:hover {
    border-color: var(--text);
    background: var(--text);
    color: var(--bg);
}

/* Case Studies */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 4rem;
}

.case-card {
    border: 1px solid var(--border);
    padding: 3rem;
    background: var(--card-bg);
    transition: var(--transition);
}

.case-card h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.case-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .case-card {
        width: calc(100% - 40px);
        margin: 0 auto;
        padding: 2rem;
        box-sizing: border-box;
    }
    
    .case-card h3 {
        font-size: 1.75rem !important;
    }
    
    .case-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .container {
        padding: 0 20px;
    }
    
    header {
        height: 80px;
    }

    header .container {
        grid-template-columns: 1fr auto;
    }

    nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: 0;
        background: var(--bg);
        overflow: hidden;
        transition: var(--transition);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 999;
    }

    nav.active {
        height: calc(100vh - 80px);
    }

    nav ul {
        flex-direction: column;
        gap: 2rem;
    }

    nav a {
        font-size: 1.2rem;
    }

    .hide-mobile {
        display: none !important;
    }

    #mobile-menu-toggle {
        background: none;
        border: none;
        color: var(--text);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 10px;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 12vw, 3.5rem);
        margin-bottom: 2rem;
    }

    .hero .sub-headline {
        font-size: 1rem;
        margin-bottom: 3rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .cta-button {
        width: 100%;
        padding: 1rem;
        min-height: 50px;
        font-size: 0.9rem;
    }

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

    .service-card {
        min-height: auto;
        padding: 2rem;
    }

    .problem-card {
        padding: 2rem;
    }

    .contact-grid {
        gap: 4rem;
    }

    .tech-list {
        justify-content: center;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 12vw !important;
        line-height: 1.2;
    }
    
    section {
        padding: 6rem 0;
    }
}

.show-mobile {
    display: none;
}

@media (max-width: 991px) {
    .show-mobile {
        display: block;
    }
}
/* Check-up Section */
.checkup-section {
    padding: 8rem 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    position: relative;
}

.checkup-input-group {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 3rem 0;
}

.checkup-input {
    flex: 1;
    background: transparent;
    border: 1px solid var(--border);
    padding: 1rem 1.5rem;
    color: var(--text);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.checkup-input:focus {
    border-color: var(--text);
    box-shadow: 0 0 30px var(--glow);
}

.terminal-window {
    display: none;
    background: #050505;
    border: 1px solid var(--border);
    padding: 2rem;
    font-family: 'IBM Plex Mono', monospace;
    color: #00ff00;
    font-size: 0.85rem;
    line-height: 1.6;
    height: 300px;
    overflow-y: hidden;
    position: relative;
    margin-top: 2rem;
}

.terminal-content {
    white-space: pre-wrap;
}

.result-report {
    display: none;
    margin-top: 4rem;
    animation: fadeIn 0.8s ease forwards;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.report-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 2rem;
    border-left: 3px solid #ff0000;
}

.report-card.safe {
    border-left-color: #00ff00;
}

.report-card h4 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: var(--dim);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

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

@media (max-width: 768px) {
    .checkup-input-group {
        flex-direction: column;
    }
}
/* Recommendations Section */
.score-display {
    text-align: center;
    margin: 4rem 0;
    font-family: 'IBM Plex Mono', monospace;
}

.score-value {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
}

.score-label {
    color: var(--dim);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    margin-top: 1rem;
}

.recommendations-container {
    margin-top: 5rem;
    display: grid;
    gap: 1.5rem;
    text-align: left;
}

.recommendation-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-left: 1px solid var(--text);
    transition: var(--transition);
}

.recommendation-card:hover {
    border-left-width: 5px;
}

.rec-index {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--dim);
    margin-bottom: 1.5rem;
    display: block;
}

.rec-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.rec-text {
    color: var(--dim);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Cyber Operations Center Aesthetics */
.checkup-section {
    padding: 8rem 0;
    background: var(--bg);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
}



.scan-line {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--scan-color), transparent);
    z-index: 1;
    pointer-events: none;
    display: none;
}

.scan-active .scan-line {
    display: block;
    animation: scanAnimation 3s linear infinite;
}

@keyframes scanAnimation {
    0% { left: -100%; }
    100% { left: 100%; }
}

.status-blink {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: #ff0000;
    margin-left: 1rem;
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid rgba(255, 0, 0, 0.2);
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hex-flow {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--dim);
    font-size: 0.8rem;
}
/* Hero Quick Scan */
.hero-quick-scan {
    margin: 3rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.hero-quick-scan:hover {
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.02);
}

.quick-scan-form {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.quick-scan-form span.mono {
    font-size: 0.75rem;
    color: var(--dim);
}

.quick-scan-form input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    color: var(--text);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    width: 250px;
    outline: none;
    transition: var(--transition);
}

.quick-scan-form input:focus {
    border-bottom-color: var(--text);
}

.quick-scan-form button {
    background: none;
    border: none;
    color: var(--text);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.quick-scan-form button:hover {
    opacity: 0.7;
}

.quick-scan-form .note {
    font-size: 0.7rem;
    opacity: 0.4;
    margin-left: auto;
}

@media (max-width: 768px) {
    .quick-scan-form {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .quick-scan-form input {
        width: 100%;
    }
    
    .quick-scan-form .note {
        margin-left: 0;
    }
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

#splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

#splash-screen .splash-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

#splash-screen .splash-icon {
    position: relative;
    z-index: 2;
    width: 60px;
    opacity: 0;
    transform: scale(0.8);
    animation: splashReveal 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

@keyframes splashReveal {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.splash-active {
    overflow: hidden !important;
}
