:root {
    --primary-color: #00f3ff; /* Neon Cyan */
    --secondary-color: #0047AB; /* Cobalt Blue - Darker/Richer */
    --bg-color: #050505; /* Deep Black */
    --bg-darker: #020202;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --glass-bg: rgba(20, 30, 40, 0.4); /* Slightly blue-tinted glass */
    --glass-border: rgba(0, 243, 255, 0.1);
    --card-hover-bg: rgba(0, 243, 255, 0.05);
    --font-main: 'Montserrat', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
    --font-mono: 'Fira Code', monospace; /* New Monospace Font */
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: #fff;
    font-weight: 700;
}

.mono-text {
    font-family: var(--font-mono);
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.mono-heading {
    font-family: var(--font-mono);
    font-weight: 600;
    letter-spacing: -0.5px;
}

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

ul {
    list-style: none;
}

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

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

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

.text-highlight {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.hidden {
    display: none !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-speed);
    font-size: 0.9rem;
    font-family: var(--font-heading); /* Orbitron for buttons */
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px var(--primary-color);
}

.btn-glow {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

.btn-glow:hover {
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.8), 0 0 40px rgba(0, 243, 255, 0.4);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Header */
header {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

header.header-scrolled {
    padding: 10px 0;
    background: rgba(5, 5, 5, 0.98);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
}

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

.nav-menu a {
    font-size: 0.95rem;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-speed);
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-icon {
    display: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at center, #101a25 0%, #050505 80%); /* Updated gradient for Cobalt Blue hint */
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 71, 171, 0.05) 1px, transparent 1px), /* Cobalt grid */
        linear-gradient(90deg, rgba(0, 71, 171, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

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

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-muted);
}

/* Solutions (Cards) */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto 0;
    box-shadow: 0 0 10px var(--primary-color);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    background: var(--card-hover-bg);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.card h3 {
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Tech Stack / Differentials */
.bg-darker {
    background-color: var(--bg-darker);
}

.diff-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.diff-text {
    flex: 1;
}

.text-left {
    text-align: left;
    left: 0;
    transform: none;
    display: block;
}

.text-left::after {
    margin: 10px 0 0;
}

.diff-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.diff-list i {
    font-size: 1.8rem;
    color: var(--secondary-color); /* Cobalt Blue icons for differentials */
    margin-top: 5px;
    filter: drop-shadow(0 0 5px rgba(0, 71, 171, 0.5));
}

.diff-list h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.diff-list p {
    color: var(--text-muted);
}

.diff-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Code Graphic for Diff Section */
.code-graphic {
    width: 320px;
    height: 250px;
    position: relative;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 10px;
    border: 1px solid #333;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.code-line {
    height: 12px;
    background: #222;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.code-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    animation: scan 2s infinite linear;
    opacity: 0.5;
}

.w-80 { width: 80%; }
.w-60 { width: 60%; }
.w-90 { width: 90%; }
.w-40 { width: 40%; }

.floating-icon {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background: var(--bg-darker);
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
    animation: float 4s ease-in-out infinite;
}

@keyframes scan {
    0% { left: -50%; }
    100% { left: 100%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Contact Form */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 50px;
    border-radius: 20px;
    background: rgba(15, 20, 25, 0.6);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
}

.section-subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid #333;
    padding: 10px 0;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-main);
    outline: none;
    transition: border-color var(--transition-speed);
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #666;
    pointer-events: none;
    transition: 0.3s ease all;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
    border-color: var(--primary-color);
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    background: #000;
    padding: 50px 0 20px;
    border-top: 1px solid #111;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.footer-logo img {
    height: 70px;
    margin: 0 auto 5px;
}

.footer-logo p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    color: #fff;
}

.social-links a:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px var(--primary-color);
}

.copyright {
    margin-top: 30px;
    border-top: 1px solid #111;
    padding-top: 20px;
    width: 100%;
    color: #555;
    font-size: 0.8rem;
}

/* Animations / Classes */
.fade-in { opacity: 0; transition: opacity 1s ease-out; }
.fade-in.visible { opacity: 1; }

.fade-in-up { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

.fade-in-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s ease-out; }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }

.fade-in-right { opacity: 0; transform: translateX(50px); transition: all 0.8s ease-out; }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
    header, header.header-scrolled { padding: 10px 0; } /* Force compact header on mobile initially and on scroll */
    .header-container { padding: 0 15px; }
    
    .logo img { height: 50px; } /* Slightly smaller logo on mobile */

    .nav-menu {
        position: fixed;
        top: 80px; 
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        transition: 0.4s;
        text-align: center;
        border-top: 1px solid var(--glass-border);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        margin-bottom: 30px;
        gap: 25px;
    }

    .nav-menu a {
        font-size: 1.2rem;
    }

    /* Hide CTA button on mobile to save space */
    .header-container .btn {
        display: none;
    }
    
    .mobile-menu-icon { 
        display: block; 
        color: #fff;
        z-index: 1001;
        position: relative;
        flex-shrink: 0;
        margin-left: 15px;
        width: 30px;
        text-align: center;
    }
    
    .section-padding { padding: 80px 0; }
    
    #hero {
        padding-top: 100px;
        height: auto;
        min-height: 100vh;
    }

    .hero-content h1 { font-size: 2.2rem; }
    
    .section-title { font-size: 2rem; }
    
    .diff-container { flex-direction: column; gap: 40px; }
    
    .text-left { text-align: center; }
    .text-left::after { margin: 10px auto 0; }

    .diff-list li {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 10px;
    }
    
    .diff-image { width: 100%; }

    .code-graphic { 
        margin: 20px auto 0; 
        width: 90%; 
        max-width: 400px;
        height: 220px;
        padding: 25px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .code-line { height: 12px; margin-bottom: 12px; }

    .cards-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .contact-wrapper {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content p { font-size: 1rem; }
    
    .logo img { height: 45px; } /* Reduce logo slightly on very small screens to fit header */
    .header-container { padding: 0 15px; }
    .nav-menu { top: 65px; height: calc(100vh - 65px); }

    .btn { width: 100%; text-align: center; } /* Full width buttons on mobile */
}