:root {
    /* Deep Space Theme */
    --bg-dark: #050505; /* Deep Midnight Black */
    --bg-card: #0a0a10;
    --primary: #A020F0; /* Electric Purple */
    --primary-glow: rgba(160, 32, 240, 0.6);
    --secondary: #7000c0;
    --accent: #ccff00; /* Cyber Lime */
    --accent-glow: rgba(204, 255, 0, 0.6);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    
    /* Glassmorphism */
    --glass: rgba(10, 10, 16, 0.6);
    --glass-border: rgba(160, 32, 240, 0.2);
    --glass-blur: blur(12px);
    
    /* Typography */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    
    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --clip-path-slant: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    --clip-path-hex: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(160, 32, 240, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(204, 255, 0, 0.03) 0%, transparent 25%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

/* --- Utilities --- */
.clip-section {
    position: relative;
    z-index: 1;
}

/* Glassmorphism */
.glass-panel {
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(160, 32, 240, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.glass-nav.scrolled {
    height: 70px;
    background: rgba(5, 5, 5, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--primary);
}

.logo sup {
    font-size: 0.6em;
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links li a {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    box-shadow: 0 0 8px var(--accent);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a.active {
    color: var(--primary);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        border-left: 1px solid var(--glass-border);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 100px;
}

/* --- Page Header (Secondary Pages) --- */
.page-header {
    padding-top: 140px; /* Clear fixed nav */
    padding-bottom: 60px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(160, 32, 240, 0.1) 0%, transparent 70%);
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(160, 32, 240, 0.4);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .page-header {
        padding-top: 120px;
        padding-bottom: 40px;
    }
    .page-header h1 {
        font-size: 2.5rem;
    }
}

#neural-network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

.hero-content {
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(160, 32, 240, 0.4);
}

.hero-title span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 0px;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 0 20px var(--glass-border);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: 0 0 30px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-outline:hover {
    background: rgba(204, 255, 0, 0.1);
    box-shadow: 0 0 20px var(--accent-glow);
    text-shadow: 0 0 5px var(--accent);
}

/* --- Sections --- */
.section {
    padding: 100px 0;
    position: relative;
}

.section-dark {
    background-color: #08080c;
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 3rem;
    position: relative;
    display: inline-block;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background: var(--glass);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* Marquee */
.marquee-section {
    padding: 40px 0;
    background: black;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}

.marquee-content {
    display: flex;
    gap: 50px;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
}

.tech-item {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Process Flow Chart */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.process-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border: 1px solid var(--glass-border);
    position: relative;
    transition: var(--transition);
}

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

.step-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 10px;
    right: 20px;
    font-family: var(--font-heading);
}

.process-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

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

.service-card-lg {
    height: 100%;
    padding: 50px;
    background: linear-gradient(145deg, rgba(160, 32, 240, 0.05), rgba(10, 10, 16, 0.8));
    border: 1px solid var(--glass-border);
    clip-path: var(--clip-path-slant);
    transition: var(--transition);
}

.service-card-lg:hover {
    background: linear-gradient(145deg, rgba(160, 32, 240, 0.15), rgba(10, 10, 16, 0.9));
    border-color: var(--accent);
}

/* Projects Masonry */
.projects-masonry {
    column-count: 2;
    column-gap: 40px;
}

.project-item {
    break-inside: avoid;
    margin-bottom: 40px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.project-item img {
    width: 100%;
    transition: transform 0.5s ease;
}

.project-item:hover img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.project-item:hover .project-overlay {
    opacity: 1;
}

/* About Hex Grid */
.hex-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.hex-item {
    width: 200px;
    height: 220px;
    background: var(--bg-card);
    clip-path: var(--clip-path-hex);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border: 1px solid var(--primary); /* Use pseudo-element for real border if needed, simplified here */
    position: relative;
    transition: var(--transition);
}

.hex-item::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-dark);
    clip-path: var(--clip-path-hex);
    z-index: -1;
}

.hex-item:hover {
    background: var(--primary);
    transform: scale(1.1);
    z-index: 10;
}

/* Contact Form */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cyber-map {
    height: 100%;
    min-height: 400px;
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop') center/cover;
    border: 1px solid var(--glass-border);
    position: relative;
    filter: grayscale(100%) contrast(1.2);
    opacity: 0.6;
}

.cyber-map::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(160, 32, 240, 0.2);
    mix-blend-mode: overlay;
}

.floating-input {
    position: relative;
    margin-bottom: 30px;
}

.floating-input input,
.floating-input textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--glass-border);
    padding: 10px 0;
    color: white;
    font-size: 1rem;
    font-family: var(--font-body);
}

.floating-input input:focus,
.floating-input textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.floating-input label {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--text-muted);
    transition: 0.3s ease;
    pointer-events: none;
}

.floating-input input:focus ~ label,
.floating-input input:valid ~ label,
.floating-input textarea:focus ~ label,
.floating-input textarea:valid ~ label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--accent);
}

/* Footer */
.mega-footer {
    background: #020202;
    padding: 80px 0 30px;
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    margin-top: 30px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #4b5563;
    font-size: 0.9rem;
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .projects-masonry { column-count: 1; }
    .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 2.2rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .glass-nav { padding: 0 20px; }
}

/* Staggered Animation Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* --- About Page: Team Section --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

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

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(160, 32, 240, 0.15);
}

.team-img-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    border: 4px solid var(--bg-dark);
    box-shadow: 0 0 0 2px var(--glass-border);
}

.role {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

/* --- Insights Page --- */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
    background: transparent;
    font-family: var(--font-body);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.blog-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.blog-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
    font-family: var(--font-heading);
}

.read-more {
    color: var(--accent);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
}

.newsletter-section {
    background: linear-gradient(45deg, #0f0f16, #1a1a2e);
    padding: 60px 0;
    margin-top: 80px;
    border-top: 1px solid var(--primary);
    text-align: center;
}

/* --- Blog Post Article Styles --- */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-main);
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 50px;
    color: var(--accent);
    font-size: 2rem;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 20px;
}

.share-links {
    display: flex;
    gap: 15px;
    margin-top: 60px;
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
}

.share-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-muted);
}

.share-icon:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(160, 32, 240, 0.1);
}
