:root {
    /* Light Mode Colors based on logo */
    --bg-main: #FFFFFF;
    --bg-alt: #F8FAFC; /* Slate 50 */
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: #FFFFFF;
    
    /* Extracted Logo Colors */
    --primary: #55B5D5; /* Middle Bar Blue */
    --primary-light: #84D9FA; /* Top/Bottom Bar Light Blue */
    --primary-glow: rgba(85, 181, 213, 0.3);
    --text-logo: #1C6883; /* Vihcade text color */
    
    --text-main: #0F172A; /* Slate 900 */
    --text-muted: #475569; /* Slate 600 */
    --border-color: #E2E8F0; /* Slate 200 */
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 44px;
}

.logo-bar {
    height: 8px;
    width: 28px;
}

.bar-top { background: var(--primary-light); align-self: flex-start; }
.bar-mid { background: var(--primary); align-self: flex-end; }
.bar-bot { background: var(--primary-light); align-self: flex-start; margin-left: 6px; }

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-logo);
    letter-spacing: 0.5px;
}

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

/* Base Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.section-dark {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    margin-bottom: 60px;
    max-width: 800px;
}

.section-header.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--text-logo);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Glassmorphism for Light Mode */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

/* Spotlight Mouse Micro-interaction */
.glass-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    background: radial-gradient(350px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), var(--primary-glow), transparent 40%);
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}

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

.glass-card > * {
    position: relative;
    z-index: 10;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Animation Keyframes */
@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 30px) scale(1.05); }
}

@keyframes scan {
    0% { top: -10%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}

@keyframes radarPulse {
    0% { transform: scale(0.5); opacity: 0; }
    50% { opacity: 0.3; }
    100% { transform: scale(2.5); opacity: 0; }
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

/* Custom Cursor */
.cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
    transition: opacity 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary);
    color: #FFF;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--text-logo);
    box-shadow: 0 6px 20px rgba(28, 104, 131, 0.3);
    color: #FFF;
}

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

.btn-outline:hover {
    background: var(--primary-glow);
    color: var(--text-logo);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 100;
    transition: var(--transition);
    padding: 20px 0;
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

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

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-logo);
    text-transform: uppercase;
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover {
    color: var(--primary);
}

.contact-info {
    display: flex;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

/* Hero Section & Radar Pulse */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar {
    position: absolute;
    width: 800px; height: 800px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    opacity: 0.5;
}

.radar::before, .radar::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid var(--primary-light);
    animation: radarPulse 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.radar::before {
    width: 200px; height: 200px;
}

.radar::after {
    width: 200px; height: 200px;
    animation-delay: 2s;
}

/* Typing Effect */
.typing-container {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--primary);
    animation: typing 2.5s steps(40, end), blink-caret .75s step-end infinite;
    max-width: 100%;
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary); }
}

.sphere-1 {
    width: 600px; height: 600px;
    background: var(--secondary);
    top: -100px; right: -100px;
}

.sphere-2 {
    width: 500px; height: 500px;
    background: var(--primary);
    bottom: 100px; left: -200px;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-main);
    color: var(--primary);
    border: 1px solid var(--primary-light);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

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

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.icon-lg {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
}

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

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

.about-card p {
    color: var(--text-muted);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    position: relative;
    overflow: hidden;
}

/* Scanning Line Animation */
.service-card .scanner {
    position: absolute;
    left: 0; width: 100%; height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary-light);
    opacity: 0;
    z-index: 5;
    pointer-events: none;
}

.service-card:hover .scanner {
    animation: scan 2s infinite linear;
}

.service-icon {
    width: 60px; height: 60px;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: #FFF;
    border-color: var(--primary);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.service-list {
    list-style: none;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.service-list li i {
    width: 16px; height: 16px;
    color: var(--primary);
}

/* Methodologies */
.methodologies-blocks {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.method-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.method-block.reverse {
    direction: rtl;
}

.method-block.reverse > * {
    direction: ltr;
}

.method-content h3 {
    font-size: 2rem;
    margin-bottom: 24px;
}

.method-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.method-visual {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.circle-diagram {
    display: flex;
    gap: 20px;
}

.circle-diagram .item {
    padding: 20px 30px;
    background: var(--bg-main);
    border: 1px solid var(--primary-light);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 40px;
    justify-content: center;
}

.tech-stack span {
    padding: 10px 20px;
    background: var(--bg-main);
    border-radius: 8px;
    font-family: monospace;
    color: var(--text-logo);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* Industries & Process */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.industry-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.industry-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
}

.industry-item i {
    color: var(--secondary);
    width: 32px; height: 32px;
    flex-shrink: 0;
}

.industry-item h4 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.industry-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 14px; top: 0; bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -46px; top: 0;
    width: 32px; height: 32px;
    background: var(--bg-main);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-logo);
    font-size: 0.9rem;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.timeline-item h4 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

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

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-box {
    text-align: center;
    padding: 40px 24px;
}

.stat-box h4 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

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

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding-top: 80px;
    background: rgba(0,0,0,0.2);
}

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

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

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

.social-links a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.footer-links h3, .footer-contact h3 {
    margin-bottom: 24px;
    font-size: 1.2rem;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 24px 5%;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

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

/* Responsive */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .two-col-layout, .method-block { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .desktop-nav, .contact-info { display: none; }
    .mobile-menu-btn { display: block; }
    
    .hero-title { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    
    .about-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr; }
}
