/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Terminal cursor animation */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #1a1a1a !important; /* Force terminal background always */
    backdrop-filter: none; /* Remove blur effects */
    z-index: 1000;
    padding: 0.5rem 0;
    transition: none; /* Remove transitions that might cause color changes */
    border-bottom: 2px solid #333 !important; /* Force terminal border always */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); /* Terminal depth shadow */
}

.nav-container {
    max-width: 1200px;
    margin: 0;
    padding: 0 20px;
    display: flex;
    justify-content: space-between; /* Distribute space between logo and nav items */
    align-items: center;
    gap: 3rem;
}

.nav-logo .logo-img {
    display: block;
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #dbeafe;
    font-weight: 500;
    position: relative;
    padding: .4rem .2rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #ffffff;
}
.nav-menu a:after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg,#3b82f6,#60a5fa);
    transition: width .35s ease;
    border-radius: 2px;
}
.nav-menu a:hover:after { width: 100%; }

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #e0e7ff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #000000 100%); /* Terminal black/gray gradient */
    color: white;
    padding-top: 200px;
    position: relative;
}


.hero-container {
    max-width: 1400px; /* Wider container to use more space */
    margin: 0 auto;
    padding: 0 20px;
    display: grid; /* Use grid for better layout */
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 3rem; /* Space between columns */
    width: 100%;
    align-items: start;
}

.hero-content {
    max-width: none; /* Remove width restriction */
    margin-top: 0;
    margin-left: 0; /* Align to left instead of center */
    margin-right: 0; 
    text-align: left; /* Left align text */
}

.hero-title {
    font-size: clamp(0.541rem, 3.38vw, 2.028rem); /* Increased by 1.3x */
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.1;
    letter-spacing: -0.5px;
    
    /* Linux Terminal Styling */
    font-family: 'Courier New', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: #1a1a1a;
    color: #ff4d00; /* Bright reddish-orange */
    box-shadow: 0 0 20px rgba(255, 77, 0, 0.6);
    text-shadow: 0 0 10px rgba(255, 200, 0, 0.9);
    padding: 20px 60px; /* Increased horizontal padding for more space */
    border-radius: 8px;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
    max-width: none; /* Remove width restriction */
    width: fit-content; /* Auto-adjust width to content */
    min-width: 600px; /* Ensure minimum width for full text */
    height: auto; /* Let height adjust automatically */
    display: inline-block; /* Change to inline-block for proper one-liner */
    margin: 0; /* Remove auto centering */
    white-space: nowrap; /* Force everything to stay on one line */
}

.hero-logo {
    height: 3rem; /* Adjust logo size to fit with text */
    width: auto;
    margin-right: 1rem;
    vertical-align: middle;
    filter: brightness(0) saturate(100%) invert(47%) sepia(96%) saturate(4456%) hue-rotate(92deg) brightness(98%) contrast(107%); /* Make logo green to match terminal theme */
}

.terminal-prompt {
    color: #ffae00; /* Golden yellow */
    opacity: 0.9;
}

.typewriter {
    color: #ff5e00; /* Orange-red */
}

.cursor {
    color: #ffd000; /* Yellow for blinking cursor */
    animation: blink 1.5s infinite;
    margin-left: 2px;
}

.highlight {
    color: #3b82f6;
}

.hero-tagline {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    max-width: 520px;
    color: #cbd5e1;
    line-height: 1.5;
    font-weight: 400;
}

.spacer {
    height: 1rem;
}

.widgets-container {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    justify-content: center; /* Center the contact button */
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg,#2563eb,#3b82f6 60%,#60a5fa);
    color: #fff;
    box-shadow: 0 4px 14px -4px rgba(59,130,246,0.6);
}

.btn-primary:hover {
    background: linear-gradient(135deg,#1d4ed8,#2563eb 60%,#3b82f6);
    transform: translateY(-3px);
}

.btn-secondary {
    background: rgba(59,130,246,0.08);
    color: #e2e8f0;
    border: 1px solid rgba(148,163,184,0.3);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(59,130,246,0.25);
    color: #fff;
}

.hero-visual {
    position: relative; /* Remove absolute positioning */
    bottom: auto;
    right: auto;
    width: 100%; /* Full width of grid column */
    height: 750px; /* Keep same height */
}

/* Visualization widget */
.visualization-widget {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 1rem;
    border: 2px solid #333;
    /* warm glow instead of green */
    box-shadow: 0 0 20px rgba(255, 120, 0, 0.25);
    width: 100%;
    height: 100%;
}

/* SWARM title — fire gradient text */
.visualization-widget h3 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Courier New', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;

    background: linear-gradient(90deg, #ff2d00, #ff7a00 45%, #ffd000);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    text-shadow: 0 0 8px rgba(255,122,0,.35), 0 0 16px rgba(255,208,0,.25);
}

.canvas-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    height: calc(100% - 60px);

    color: #ff4d00;
    font-family: 'Courier New', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    text-shadow: 0 0 6px rgba(255, 120, 0, 0.8), 0 0 12px rgba(255, 200, 0, 0.6);
}

/* Optional highlighted text inside canvas container */
.canvas-container .highlight-text {
    color: #ffd000;
    text-shadow: 0 0 6px rgba(255, 180, 0, 0.9), 0 0 14px rgba(255, 120, 0, 0.7);
}

#interceptionCanvas {
    width: 100%;
    height: 100%;
    border: 1px solid #444;
    border-radius: 4px;
    background: #000000;
    /* warm inner glow */
    box-shadow: inset 0 0 10px rgba(255, 120, 0, 0.15);
}

.battle-status {
    text-align: center;
    font-size: 0.9rem;
    color: #ffae00; /* Warm yellow */
    text-shadow: 0 0 5px rgba(255, 90, 0, 0.8);
    font-weight: 500;
    font-family: 'Courier New', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace; /* Terminal font */
    height: 20px;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: white;
}

.about-section .container {
    margin: 0;
    max-width: none;
}

.about-content {
    max-width: 1200px;
    margin: 0;
    padding: 0 20px;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2937;
    max-width: 900px;
}

.about-text p {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 900px;
}

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

.feature {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: transform 0.3s ease;
    border: 1px solid #e5e7eb;
}

.feature:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.feature p {
    color: #6b7280;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: #f8fafc;
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.contact-section p {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 3rem;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.contact-info strong {
    color: #3b82f6;
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    background: #1a1a1a; /* Terminal dark background */
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #3b82f6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3b82f6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    padding: 8px 16px;
    background: #1e293b;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.social-link:hover {
    background: #3b82f6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr; /* Single column on mobile */
        text-align: center;
        gap: 2rem;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 0.811rem; /* Increased by 1.3x */
        padding: 15px 25px; /* Slightly more horizontal padding for mobile */
        min-width: auto; /* Reset min-width for mobile */
        width: auto; /* Reset width for mobile */
    }
    
    .hero-logo {
        height: 1.5rem; /* Smaller logo on mobile */
        margin-right: 0.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .widgets-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-visual {
        position: static;
        width: 100%;
        height: 375px; /* Reduced by 0.75x from 500px */
        margin-top: 2rem;
    }
    
    #obj-viewer-wrapper { 
        max-width: 100%; 
    }
    #obj-viewer { 
        height: 400px; /* Reasonable mobile height */
        padding: 3px; /* Minimal mobile padding */
        width: 100%; /* Normal width on mobile */
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-visual {
        height: 300px; /* Reduced by 0.75x from 400px */
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .contact-section h2 {
        font-size: 2rem;
    }
    
    .visualization-widget {
        padding: 1rem;
    }
    
    .visualization-widget h3 {
        font-size: 1rem;
    }
    
    #interceptionCanvas {
        height: 600px;
    }
}

@media (max-width: 992px) {
    .hero-visual {
        position: static;
        width: 100%;
        height: 450px; /* Reduced by 0.75x from 600px */
        margin-top: 3rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Success animation */
.success {
    animation: successPulse 0.5s ease;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
} 

/* OBJ Viewer */
/* Tight image wrapper */
#obj-viewer-wrapper {
    margin-top: 1rem;           /* smaller spacing */
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 0.5rem;            /* minimal padding */
    display: inline-block;      /* shrink-wrap to content */
    box-shadow: 0 0 12px rgba(255, 120, 0, 0.25);
    text-align: center;         /* center title + image */
}

/* Viewer box follows image size */
#obj-viewer {
    border-radius: 4px;
    overflow: hidden;
    background: #000000;
    border: 1px solid #444;
    box-shadow: inset 0 0 6px rgba(255, 120, 0, 0.15);
    display: inline-block;      /* shrink to image size */
    padding: 0;                 /* no inner padding */
    width: auto;
    height: auto;
}

/* Image fills the box neatly */
.hornbill-image {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;        /* preserve aspect ratio */
    object-position: center center;
    filter: brightness(1.1) contrast(1.1);
}

/* Title styling */
.obj-viewer-title {
    font-size: 1.2rem;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    text-align: center;

    font-family: 'Courier New', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: #1a1a1a;
    color: #ff4d00;
    text-shadow: 0 0 10px rgba(255, 200, 0, 0.9);
    box-shadow: 0 0 20px rgba(255, 100, 0, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #333;
    display: inline-block;
}


@media (max-width: 768px) {
    #obj-viewer-wrapper { max-width: 100%; }
    #obj-viewer { 
        height: 400px; /* Reasonable mobile height */
        padding: 3px; /* Minimal mobile padding */
        width: 100%; /* Normal width on mobile */
    }
}

/* Capabilities Section */
.capabilities-section {
    background: linear-gradient(180deg, #000000, #1a1a1a 80%, #0a0a0a); /* Terminal gradient */
    padding: 7rem 0 6rem;
    position: relative;
    overflow: hidden;
}
.capabilities-section:before, .capabilities-section:after {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle at center, rgba(0,255,0,0.08), rgba(0,0,0,0)); /* Terminal green glow */
    top: -200px; left: -150px;
    filter: blur(20px);
}
.capabilities-section:after { top: auto; left: auto; bottom: -250px; right: -200px; background: radial-gradient(circle at center, rgba(0,255,0,0.12), rgba(0,0,0,0)); } /* Terminal green glow */
.capabilities-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.capabilities-heading { text-align: center; max-width: 720px; margin: 0 auto 4rem; }
.capabilities-heading h2 { font-size: clamp(2.2rem,4.5vw,3.2rem); color: #fff; margin-bottom: 1rem; letter-spacing: -1px; }
.capabilities-heading p { color: #94a3b8; font-size: 1.1rem; line-height: 1.6; }
.capability-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); }
.capability-card {
    background: linear-gradient(150deg, rgba(255,255,255,0.05), rgba(148,163,184,0.06));
    border: 1px solid rgba(255,255,255,0.06);
    padding: 1.6rem 1.4rem 1.7rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(6px);
    transition: border-color .3s ease, transform .45s cubic-bezier(.22,.99,.35,1), background .4s ease;
}
.capability-card:before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(59,130,246,0.3), transparent 70%);
    opacity: 0; transition: opacity .5s ease;
}
.capability-card:hover { transform: translateY(-8px); border-color: rgba(59,130,246,0.6); }
.capability-card:hover:before { opacity: 0.25; }
.capability-card h3 { color: #fff; font-size: 1.05rem; margin-bottom: .6rem; letter-spacing: .5px; }
.capability-card p { color: #cbd5e1; font-size: .9rem; line-height: 1.5; }

@media (max-width: 768px) {
    .capabilities-section { padding: 5rem 0 4rem; }
    .capabilities-heading { margin-bottom: 3rem; }
    .capability-card { padding: 1.4rem 1.25rem 1.5rem; }
}