/* ==================================
   Twirwaneho Technologies - Light Military Theme
   ================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F3F4F3;  /* Very Light Olive-tinted Gray */
    --accent: #556B2F;        /* Olive Drab */
    --accent-hover: #3E4F22;
    --text-pure: #111827;     /* Intense Slate / Almost Black */
    --text-muted: #4B5320;    /* Dark Olive for text */
    --border-light: #D1D5DB;  /* Slate 300 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-pure);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Ambient Background */
.ambient-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: radial-gradient(circle at 10% 20%, rgba(85, 107, 47, 0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: -2;
}

/* Typography & Shared */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.5px; color: var(--text-pure); text-transform: uppercase; }
p { color: var(--text-muted); font-weight: 500; }
.text-center { text-align: center; }

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(85, 107, 47, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 2px; /* Stark corners */
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 2px; /* Stark military corners */
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: #FFFFFF !important;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-pure);
    border-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--text-muted);
}

/* Photo Placeholders */
.photo-slot {
    width: 100%;
    min-height: 350px;
    background: var(--bg-secondary);
    border: 2px dashed var(--accent);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    margin: 20px 0;
    transition: var(--transition);
}
.photo-slot::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(85, 107, 47, 0.05) 10px, rgba(85, 107, 47, 0.05) 20px);
}
.photo-slot span { z-index: 2; background: var(--bg-primary); padding: 8px 16px; border-radius: 2px; box-shadow: var(--shadow-sm); border: 1px solid var(--accent); }

/* Navigation */
#navbar {
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
    background: transparent;
}
#navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-pure);
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 100;
}
.logo svg { width: 32px; height: 32px; }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 100;
    color: var(--text-pure);
}

/* Layout / Grids */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}
.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}
.split-content { flex: 1; }
.split-visual { flex: 1; width: 100%; }

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
}
.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
    color: var(--text-muted);
}
.cta-group {
    display: flex; gap: 16px;
}

/* Sections */
.section { padding: 100px 0; position: relative; z-index: 1; }
.section-bg { background-color: var(--bg-secondary); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }

.section-header { text-align: center; margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 16px; }

/* Features Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 40px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 2;
}
.card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
    width: 52px; height: 52px;
    color: var(--accent);
    background: rgba(85, 107, 47, 0.1);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
}
.card h3 { font-size: 1.3rem; margin-bottom: 12px; }

/* App Store Specific */
.app-header {
    padding: 140px 0 60px;
    text-align: center;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}
.app-card {
    display: flex;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.app-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--accent); }
.app-visual {
    width: 350px;
    padding: 40px;
    border-right: 1px solid var(--border-light);
    display: flex; flex-direction: column; gap: 20px;
    background: var(--bg-secondary);
}
.app-info { padding: 50px; flex: 1; }
.app-info h3 { font-size: 2.5rem; margin-bottom: 16px; }
.app-info p { margin-bottom: 30px; font-size: 1.15rem; }

.app-meta {
    display: flex; gap: 40px; margin-bottom: 30px;
    padding-bottom: 30px; border-bottom: 1px solid var(--border-light);
}
.meta-item { display: flex; flex-direction: column; gap: 6px; }
.meta-val { font-weight: 800; color: var(--text-pure); font-size: 1.2rem; }
.meta-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; }

/* Footer */
footer {
    padding: 60px 0 40px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-light);
}
.footer-content {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 20px;
}
.footer-text { color: var(--text-muted); font-size: 0.9rem; font-weight: 700; text-transform: uppercase; }

/* Animations & Mobile Responsiveness */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* Tactical Background Animations */
.tactical-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    color: var(--accent);
}

.bg-radar {
    position: absolute;
    bottom: -150px; right: -150px;
    width: 600px; height: 600px;
    opacity: 0.15;
    animation: rotateSlow 20s linear infinite;
}

.bg-crosshair {
    position: absolute;
    top: 15%; left: 8%;
    width: 150px; height: 150px;
    opacity: 0.2;
    animation: pulseSlow 5s ease-in-out infinite;
}

.bg-crosshair-2 {
    position: absolute;
    top: 60%; left: 80%;
    width: 250px; height: 250px;
    opacity: 0.15;
    transform: rotate(45deg); /* Add variety */
    animation: pulseSlow 8s ease-in-out infinite alternate;
}

.bg-drone {
    position: absolute;
    top: 30%; left: -150px;
    width: 150px; height: 150px;
    opacity: 0.2;
    animation: flyAcross 30s linear infinite;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseSlow {
    0% { transform: scale(0.95); opacity: 0.03; }
    50% { transform: scale(1.05); opacity: 0.06; }
    100% { transform: scale(0.95); opacity: 0.03; }
}

@keyframes flyAcross {
    0% { transform: translate(-100px, 0) rotate(15deg); }
    50% { transform: translate(50vw, -10vw) rotate(5deg); }
    100% { transform: translate(120vw, 5vw) rotate(25deg); }
}

@media(max-width: 900px) {
    .hamburger { display: block; }
    
    .nav-links {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        transition: var(--transition);
    }
    .nav-links.active {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }
    
    .split-layout { flex-direction: column; gap: 40px; text-align: center; }
    .hero { padding-top: 140px; text-align: center; }
    .hero p { margin-left: auto; margin-right: auto; }
    .cta-group { justify-content: center; }
    .app-card { flex-direction: column; }
    .app-visual { width: 100%; border-right: none; border-bottom: 1px solid var(--border-light); }
    .app-meta { flex-wrap: wrap; gap: 20px; justify-content: space-between; }
    h1 { font-size: 3rem !important; }
}
