/* ============================================
   NSI Website - Professional & Modern CSS
   Eyes and Ears of the Nation
   ============================================ */

:root {
    --nsi-green: #006a4e;
    --nsi-dark-green: #004d38;
    --nsi-light-green: #00a86b;
    --nsi-gold: #ffb400;
    --nsi-red: #f42a41;
    --bg-dark: #0a0f0d;
    --bg-darker: #050708;
    --card-bg: #111b17;
    --card-hover: #1a2622;
    --text-light: #e0e0e0;
    --text-muted: #a0a0a0;
    --border-color: rgba(0, 106, 78, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Cyber Grid Background */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(0, 106, 78, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 106, 78, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: 0.5px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--nsi-gold), var(--nsi-green));
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--nsi-light-green);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--nsi-gold), #ff9500);
    color: #000;
    border: 2px solid var(--nsi-gold);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff9500, var(--nsi-gold));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 180, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--nsi-gold);
    border: 2px solid var(--nsi-gold);
}

.btn-secondary:hover {
    background: var(--nsi-gold);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 180, 0, 0.3);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
    background: var(--nsi-green);
    color: var(--text-light);
    border: 1px solid var(--nsi-green);
}

.btn-small:hover {
    background: var(--nsi-light-green);
    border-color: var(--nsi-light-green);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
    background: rgba(10, 15, 13, 0.95);
    border-bottom: 2px solid var(--nsi-green);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 2.5rem;
    animation: pulse 2s infinite;
}

.logo-text h1 {
    font-size: 1.8rem;
    color: var(--nsi-gold);
    margin: 0;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--nsi-green);
    margin: 0;
    letter-spacing: 2px;
}

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

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

.nav-menu a {
    color: var(--text-light);
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--nsi-gold);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--nsi-gold);
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--nsi-gold);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu a {
    color: var(--text-light);
    font-weight: 600;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 106, 78, 0.1) 0%, rgba(10, 15, 13, 1) 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 100% 50%, rgba(0, 106, 78, 0.2) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 5%;
}

.scanning-animation {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanning-animation::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid var(--nsi-gold);
    border-radius: 50%;
    animation: scan 3s linear infinite;
}

.scanning-animation::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid var(--nsi-green);
    border-radius: 50%;
    animation: scan 3s linear infinite reverse;
}

@keyframes scan {
    0% { transform: scale(0.8) rotate(0deg); opacity: 1; }
    100% { transform: scale(1.2) rotate(360deg); opacity: 0; }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--nsi-gold), var(--nsi-light-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   THREAT LEVEL INDICATOR
   ============================================ */

.threat-indicator {
    background: linear-gradient(135deg, rgba(0, 106, 78, 0.1), rgba(10, 15, 13, 1));
    padding: 3rem 5%;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.threat-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.threat-container h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--nsi-gold);
}

.threat-gauge {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    max-width: 500px;
    margin: 0 auto;
}

.threat-level {
    margin-bottom: 1.5rem;
}

.threat-bar {
    height: 30px;
    border-radius: 4px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.threat-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    animation: threatPulse 2s ease-in-out infinite;
}

.threat-bar.low {
    background: rgba(0, 170, 107, 0.2);
}

.threat-bar.low::after {
    width: 25%;
    background: #00aa6b;
}

.threat-bar.moderate {
    background: rgba(255, 180, 0, 0.2);
}

.threat-bar.moderate::after {
    width: 50%;
    background: var(--nsi-gold);
}

.threat-bar.substantial {
    background: rgba(255, 100, 0, 0.2);
}

.threat-bar.substantial::after {
    width: 75%;
    background: #ff6400;
}

.threat-bar.severe {
    background: rgba(244, 42, 65, 0.2);
}

.threat-bar.severe::after {
    width: 100%;
    background: var(--nsi-red);
}

@keyframes threatPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.threat-status {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--nsi-gold);
    margin-bottom: 0.5rem;
}

.threat-description {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================
   CONTAINER & SECTIONS
   ============================================ */

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

section {
    padding: 4rem 0;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    text-align: center;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    background: linear-gradient(135deg, rgba(0, 106, 78, 0.05) 0%, rgba(10, 15, 13, 1) 100%);
    border-top: 1px solid var(--border-color);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--nsi-gold), transparent);
    transition: var(--transition);
}

.about-card:hover {
    border-color: var(--nsi-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 106, 78, 0.2);
}

.about-card:hover::before {
    left: 100%;
}

.about-card h3 {
    color: var(--nsi-gold);
    margin-bottom: 1rem;
}

.about-card p {
    line-height: 1.8;
}

/* ============================================
   CAPABILITIES SECTION
   ============================================ */

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

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.capability-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.capability-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 106, 78, 0.1) 0%, transparent 70%);
    transition: var(--transition);
}

.capability-card:hover {
    border-color: var(--nsi-gold);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 106, 78, 0.3);
}

.capability-card:hover::before {
    top: -25%;
    right: -25%;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.capability-card h3 {
    color: var(--nsi-gold);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.capability-card p {
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    position: relative;
    z-index: 1;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    color: var(--text-muted);
    position: relative;
}

.feature-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--nsi-gold);
    font-weight: bold;
}

/* ============================================
   THREAT CENTER SECTION
   ============================================ */

.threat-center {
    background: linear-gradient(135deg, rgba(0, 106, 78, 0.05) 0%, rgba(10, 15, 13, 1) 100%);
}

.threat-resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.resource-card:hover {
    border-color: var(--nsi-gold);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 106, 78, 0.2);
}

.resource-card h3 {
    color: var(--nsi-gold);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.resource-card p {
    margin-bottom: 1.5rem;
}

/* ============================================
   CAREERS SECTION
   ============================================ */

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

.career-positions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.position-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.position-card:hover {
    border-color: var(--nsi-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 106, 78, 0.2);
}

.position-card h3 {
    color: var(--nsi-gold);
    margin-bottom: 1rem;
}

.position-details {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.badge {
    display: inline-block;
    background: rgba(0, 106, 78, 0.3);
    color: var(--nsi-gold);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--nsi-gold);
}

.career-info {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.career-info h3 {
    color: var(--nsi-gold);
    margin-bottom: 2rem;
    text-align: center;
}

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

.info-item h4 {
    color: var(--nsi-gold);
    margin-bottom: 0.5rem;
}

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

/* ============================================
   REPORTING PORTAL SECTION
   ============================================ */

.reporting-portal {
    background: linear-gradient(135deg, rgba(0, 106, 78, 0.1) 0%, rgba(10, 15, 13, 1) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.portal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.portal-info h3 {
    color: var(--nsi-gold);
    margin-bottom: 1.5rem;
}

.security-features {
    list-style: none;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 1.5rem;
}

.security-features li {
    padding: 0.7rem 0;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(0, 106, 78, 0.2);
}

.security-features li:last-child {
    border-bottom: none;
}

.security-features li::before {
    content: '✓ ';
    color: var(--nsi-light-green);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* ============================================
   FORM STYLES
   ============================================ */

.report-form {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--nsi-gold);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--nsi-gold);
    background: rgba(0, 106, 78, 0.1);
    box-shadow: 0 0 10px rgba(255, 180, 0, 0.2);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group.checkbox input {
    width: auto;
    margin: 0;
}

.form-group.checkbox label {
    margin: 0;
    display: inline;
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
    font-style: italic;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg-darker);
    border-top: 2px solid var(--nsi-green);
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--nsi-gold);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

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

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

.footer-section a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--nsi-gold);
}

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

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   ============================================ */

/* Extra Small Devices (320px - 374px) */
@media (max-width: 374px) {
    .header-container {
        padding: 0.75rem 2%;
    }

    .logo {
        gap: 8px;
    }

    .logo-icon {
        font-size: 1.8rem;
    }

    .logo-text h1 {
        font-size: 1rem;
    }

    .logo-text p {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }

    .mobile-menu-btn {
        font-size: 1.2rem;
    }

    .hero {
        min-height: 80vh;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .scanning-animation {
        width: 120px;
        height: 120px;
        margin: 0 auto 1.5rem;
    }

    .scanning-animation::before {
        width: 100px;
        height: 100px;
    }

    .scanning-animation::after {
        width: 70px;
        height: 70px;
    }

    h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    h2::after {
        width: 40px;
        bottom: -8px;
    }

    h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
        width: 100%;
    }

    .btn-small {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    section {
        padding: 1.5rem 0;
    }

    .container {
        padding: 0 3%;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .about-grid,
    .capabilities-grid,
    .threat-resources,
    .career-positions {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .capability-card,
    .about-card,
    .resource-card,
    .position-card {
        padding: 1.2rem;
    }

    .card-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }

    .threat-indicator {
        padding: 1.5rem 3%;
    }

    .threat-container h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .threat-gauge {
        padding: 1.2rem;
        max-width: 100%;
    }

    .threat-bar {
        height: 24px;
        margin-bottom: 0.8rem;
    }

    .threat-status {
        font-size: 1rem;
    }

    .threat-description {
        font-size: 0.85rem;
    }

    .portal-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portal-info h3 {
        font-size: 1.2rem;
    }

    .security-features {
        padding: 1rem;
        margin-top: 1rem;
    }

    .security-features li {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }

    .report-form {
        padding: 1.2rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.7rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .form-note {
        font-size: 0.8rem;
        margin-top: 0.8rem;
    }

    .career-info {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .info-item h4 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .info-item p {
        font-size: 0.9rem;
    }

    .badge {
        padding: 0.25rem 0.6rem;
        font-size: 0.75rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 0 3%;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .footer-section p,
    .footer-section ul li {
        font-size: 0.9rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.8rem;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu.active {
        display: block;
    }
}

/* Small Devices (375px - 599px) */
@media (min-width: 375px) and (max-width: 599px) {
    .header-container {
        padding: 0.8rem 3%;
    }

    .logo {
        gap: 10px;
    }

    .logo-icon {
        font-size: 2rem;
    }

    .logo-text h1 {
        font-size: 1.2rem;
    }

    .logo-text p {
        font-size: 0.65rem;
    }

    .hero {
        min-height: 85vh;
        padding: 2.5rem 0;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .scanning-animation {
        width: 140px;
        height: 140px;
        margin: 0 auto 2rem;
    }

    .scanning-animation::before {
        width: 110px;
        height: 110px;
    }

    .scanning-animation::after {
        width: 80px;
        height: 80px;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .container {
        padding: 0 4%;
    }

    section {
        padding: 2rem 0;
    }

    .about-grid,
    .capabilities-grid,
    .threat-resources,
    .career-positions {
        gap: 1.5rem;
    }

    .capability-card,
    .about-card,
    .resource-card,
    .position-card {
        padding: 1.5rem;
    }

    .card-icon {
        font-size: 2.8rem;
    }

    .threat-gauge {
        padding: 1.5rem;
    }

    .portal-content {
        gap: 2rem;
    }

    .report-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Medium Devices (600px - 899px) */
@media (min-width: 600px) and (max-width: 899px) {
    .header-container {
        padding: 1rem 4%;
    }

    .logo-icon {
        font-size: 2.2rem;
    }

    .logo-text h1 {
        font-size: 1.4rem;
    }

    .hero {
        min-height: 90vh;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .scanning-animation {
        width: 160px;
        height: 160px;
    }

    .scanning-animation::before {
        width: 130px;
        height: 130px;
    }

    .scanning-animation::after {
        width: 90px;
        height: 90px;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .container {
        padding: 0 5%;
    }

    section {
        padding: 3rem 0;
    }

    .about-grid,
    .capabilities-grid,
    .threat-resources,
    .career-positions {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .capability-card,
    .about-card,
    .resource-card,
    .position-card {
        padding: 2rem;
    }

    .card-icon {
        font-size: 3rem;
    }

    .threat-gauge {
        max-width: 600px;
    }

    .portal-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .report-form {
        padding: 2rem;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-menu {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .mobile-menu {
        display: none;
    }
}

/* Large Devices (900px - 1199px) */
@media (min-width: 900px) and (max-width: 1199px) {
    .header-container {
        padding: 1rem 4%;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 2.3rem;
    }

    .container {
        padding: 0 5%;
    }

    .about-grid,
    .capabilities-grid,
    .threat-resources,
    .career-positions {
        grid-template-columns: repeat(2, 1fr);
    }

    .portal-content {
        grid-template-columns: 1fr 1fr;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .nav-menu {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }
}

/* Extra Large Devices (1200px and above) */
@media (min-width: 1200px) {
    .header-container {
        padding: 1rem 5%;
    }

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

    h2 {
        font-size: 2.5rem;
    }

    .container {
        padding: 0 5%;
    }

    .about-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .capabilities-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .threat-resources {
        grid-template-columns: repeat(4, 1fr);
    }

    .career-positions {
        grid-template-columns: repeat(4, 1fr);
    }

    .portal-content {
        grid-template-columns: 1fr 1fr;
    }

    .info-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .nav-menu {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }
}

/* Ultra Wide Devices (1600px and above) */
@media (min-width: 1600px) {
    .container {
        max-width: 1500px;
        margin: 0 auto;
    }

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

    .hero-subtitle {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 2.8rem;
    }

    .capability-card,
    .about-card,
    .resource-card,
    .position-card {
        padding: 3rem;
    }

    .card-icon {
        font-size: 3.5rem;
    }
}

/* Landscape Mode Adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 1rem 0;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .scanning-animation {
        width: 100px;
        height: 100px;
        margin: 0 auto 1rem;
    }

    .hero-buttons {
        gap: 0.5rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Tablet Landscape (768px - 1024px landscape) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero {
        min-height: 80vh;
    }

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

    section {
        padding: 2.5rem 0;
    }

    .about-grid,
    .capabilities-grid,
    .threat-resources,
    .career-positions {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        padding: 14px 28px;
        min-height: 48px; /* Minimum touch target size */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .capability-card,
    .about-card,
    .resource-card,
    .position-card {
        padding: 1.5rem;
    }

    .nav-menu a {
        padding: 10px 15px;
        display: block;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
        min-height: 44px; /* Minimum touch target size */
    }
}

/* High DPI Screens (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .cyber-grid {
        background-size: 40px 40px;
    }
}

/* Print Styles */
@media print {
    .header,
    .mobile-menu,
    .hero-buttons,
    .report-form,
    .btn,
    .mobile-menu-btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
    }

    .capability-card,
    .about-card,
    .resource-card,
    .position-card {
        page-break-inside: avoid;
    }
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.capability-card {
    animation: fadeInUp 0.6s ease-out;
}

.about-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scroll behavior */
@supports (scroll-behavior: smooth) {
    html {
        scroll-behavior: smooth;
    }
}

/* Print styles */
@media print {
    .header,
    .mobile-menu,
    .hero-buttons,
    .report-form,
    .btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
    }
}
