/* 
    COSMOS DEFENCE - DESIGN SYSTEM (VANILLA CSS)
    Colors: Dark Navy, Teal, Deep Blue
*/

:root {
    /* Colors */
    --primary: #0A192F;
    --primary-dark: #020C1B;
    --secondary: #64FFDA;
    --accent: #172A45;
    --light: #CCD6F6;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --white: #ffffff;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(10, 25, 47, 0.8);

    /* Fonts */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hidden {
    display: none !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.py-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 1. Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary);
    color: var(--light);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 2. Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--white);
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(90deg, var(--secondary) 0%, #00B4D8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.uppercase-tracking {
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.font-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* 3. Layout Components */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.grid {
    display: grid;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.text-center {
    text-align: center;
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-image {
        display: none;
    }

    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .topbar {
        display: none !important;
    }

    .main-header {
        top: 0 !important;
    }

    .nav-links {
        display: none !important;
    }

    .hero {
        padding: 120px 0 4rem !important;
        text-align: center;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-content .flex-col {
        align-items: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content .flex {
        justify-content: center;
    }

    .section {
        padding: 3.5rem 0 !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-grid .flex {
        justify-content: center;
    }

    .lg-row {
        flex-direction: column !important;
    }

    .container {
        padding: 0 1.25rem !important;
    }

    /* Contact Form & Grid adjustments */
    div[style*="padding: 4rem"] {
        padding: 2rem !important;
    }

    div[style*="border-radius: 3rem"] {
        border-radius: 1.5rem !important;
    }

    h2[style*="font-size: 2.5rem"] {
        font-size: 1.75rem !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .card-grid {
        grid-template-columns: 1fr !important;
    }
}

.md-hidden {
    display: block;
}

.lg-block {
    display: none;
}

@media (min-width: 768px) {
    .md-hidden {
        display: none !important;
    }

    .md-flex {
        display: flex !important;
    }

    .flex-md-row {
        flex-direction: row !important;
    }

    .md-w-1-2 {
        width: 50% !important;
    }
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
        gap: 2.5rem;
    }

    .lg-row {
        flex-direction: row !important;
    }

    .lg-block {
        display: block !important;
    }

    .lg-w-1-2 {
        width: 50% !important;
    }
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.gap-16 {
    gap: 4rem;
}

.w-full {
    width: 100%;
}

.h-full {
    width: 100%;
}

.object-cover {
    object-fit: cover;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

@media (max-width: 767px) {
    .copyright-section {
        flex-direction: column;
        text-align: center;
        justify-content: center !important;
    }
}

#mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--primary-dark) !important;
    z-index: 99;
    padding: 2rem !important;
    border-top: 1px solid var(--border);
    transition: var(--transition);
}

#mobile-menu nav a {
    font-size: 1.25rem;
    font-weight: 600;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: block;
    text-decoration: none;
}

.topbar {
    background-color: var(--primary-dark);
    color: var(--gray-500);
    font-size: 0.875rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.main-header {
    position: fixed;
    width: 100%;
    z-index: 100;
    top: 36px;
    background-color: var(--glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav-links {
    display: none;
}

.nav-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary);
}

/* 5. Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(100, 255, 218, 0.3);
}

.btn-primary:hover {
    background-color: var(--white);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* 6. Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-color: var(--primary);
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--primary) 20%, rgba(10, 25, 47, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* 7. Cards & Feature Sections */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: rgba(23, 42, 69, 0.4);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: var(--transition);
}

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

/* 8. Footer */
.main-footer {
    background-color: var(--primary-dark);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border);
}

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

/* Responsive adjustments */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 2rem;
    }
}

@media (max-width: 767px) {
    .main-header {
        top: 0;
    }

    .topbar {
        display: none;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}