/* ===== CSS Variables & Root Styles ===== */
:root {
    --primary-color: #0d2340;
    --primary-dark: #05101f;
    --secondary-color: #d4af37;
    --text-color: #ffffff;
    --bg-color: #05101f;
    --card-bg: #0d2340;
    --border-color: #1a3a5c;
    --hover-color: #f0d050;
    --services-bg: #f8f8f8;
    --services-text: #0d2340;

    --font-primary: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition: all 0.3s ease;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
    overflow-x: hidden;
    padding-top: 80px; /* Space for fixed header */
}

/* ===== Navbar ===== */
.navbar {
    background: rgba(5, 16, 31, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(5, 16, 31, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.navbar-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.logo-svg {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
    transition: var(--transition);
}

.logo-svg:hover {
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.7));
}

.logo-text {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.2;
    background: linear-gradient(to right, #edc967, #d4af37, #f0d050, #b8860b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.logo-sub {
    font-size: 0.65rem;
    display: block;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Menu Toggle Button (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 2.5rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Navbar Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.cta-button {
    background: linear-gradient(90deg, #b8860b 0%, #d4af37 25%, #edc967 50%, #d4af37 75%, #b8860b 100%);
    background-size: 200% auto;
    color: #05101f;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(to right, #020b16 0%, #0d2340 45%, #1a3a5c 100%);
    padding: 4rem 2rem 5rem;
    min-height: 580px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Subtle radial glow behind shield */
.hero::after {
    content: '';
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(21, 48, 89, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: 0px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: 450px;
    font-weight: 400;
}

.hero-button {
    background: linear-gradient(90deg, #b8860b 0%, #d4af37 25%, #edc967 50%, #d4af37 75%, #b8860b 100%);
    background-size: 200% auto;
    color: #05101f;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    align-self: flex-start;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-button:hover {
    background-position: right center;
    color: #05101f;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

/* Hero Graphic */
.hero-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}

.shield-network {
    width: 100%;
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 30px 20px rgba(0, 0, 0, 0.5));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ===== Services Section ===== */
.services {
    background-color: var(--services-bg);
    padding: 4rem 2rem;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.service-card {
    background-color: transparent;
    border: none;
    border-radius: 10px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.service-icon-svg {
    width: 100%;
    height: 100%;
    transition: var(--transition);
}

.service-card:hover .service-icon-svg {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.5;
    letter-spacing: 0.5px;
    color: var(--services-text);
    text-transform: uppercase;
}

.service-card p {
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.7;
    font-weight: 400;
}

/* ===== Additional Sections ===== */
.about, .contact {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-container, .contact-container {
    text-align: center;
}

.about h2, .contact h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: -1px;
}

.about p, .contact p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== About Section Styles ===== */
.about-content {
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    margin-top: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.about-text h4 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-color);
}

.about-text h4:first-of-type {
    margin-top: 1.5rem;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.85;
    max-width: none;
    margin: 1rem 0 1.3rem 0;
    text-align: left;
}

.about-text p strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.about-text ul {
    list-style: none;
    padding-left: 0;
    margin: 1.2rem 0;
    display: grid;
    gap: 0.9rem;
}

.about-text ul li {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 0;
    padding-left: 1.8rem;
    position: relative;
    line-height: 1.7;
}

.about-text ul li strong {
    color: var(--text-color);
    font-weight: 700;
}

.about-text ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1rem;
}

/* ===== Contact Section Styles ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    text-align: left;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.contact-info > p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: none;
    margin-bottom: 2rem;
}

.contact-details {
    margin: 2rem 0;
}

.contact-item {
    margin-bottom: 1.5rem;
    padding: 0.8rem;
    border-left: 3px solid var(--secondary-color);
    padding-left: 1rem;
}

.contact-item strong {
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.3rem;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--secondary-color);
}

.contact-cta {
    margin-top: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    background-color: transparent;
    color: var(--text-color);
    font-family: var(--font-primary);
    border-radius: 4px;
    transition: var(--transition);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    padding: 0.9rem 2rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-button:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background-color: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.form-message.error {
    display: block;
    background-color: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #f44336;
}

/* ===== Responsive Design ===== */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .services-container {
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Tablet Screens (768px and below) */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1rem;
    }

    .logo-text {
        font-size: 0.85rem;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(26, 58, 92, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 2px solid var(--secondary-color);
        text-align: center;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        z-index: 9998;
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .navbar-actions {
        order: 2;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 1rem 0;
    }

    .hero {
        min-height: auto;
        padding: 3rem 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        text-align: center;
        margin: 0 auto;
    }

    .hero-button {
        align-self: center;
    }

    .hero-graphic {
        height: 320px;
        order: -1;
    }

    .services-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 400px;
    }

    .services {
        padding: 3rem 1.5rem;
    }
}

/* Mobile Screens (480px and below) */
@media (max-width: 480px) {
    .navbar-container {
        padding: 0 0.75rem;
        gap: 0.5rem;
    }

    .navbar-logo {
        gap: 0.6rem;
    }

    .logo-svg {
        width: 42px;
        height: 42px;
    }

    .logo-text {
        font-size: 0.75rem;
    }

    .logo-sub {
        font-size: 0.55rem;
    }

    .cta-button {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }

    .nav-menu {
        padding: 1.5rem;
    }

    .hero {
        padding: 2rem 1rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .hero-container {
        gap: 2rem;
        padding: 0.5rem 0;
    }

    .hero-graphic {
        height: 280px;
    }

    .hero-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }

    .service-card {
        padding: 1.5rem 1rem;
    }

    .service-icon {
        width: 70px;
        height: 70px;
    }

    .service-card h3 {
        font-size: 0.9rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }

    .services {
        padding: 2.5rem 1rem;
    }

    .about, .contact {
        padding: 3rem 1rem;
    }

    .about h2, .contact h2 {
        font-size: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text h3 {
        font-size: 1.8rem;
    }

    .about-text h4 {
        font-size: 1.1rem;
    }

    .contact-info h3 {
        font-size: 1.4rem;
    }
}

/* Extra Small Screens (320px and below) */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.4rem;
    }

    .cta-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
    }

    .logo-text {
        font-size: 0.65rem;
    }
}

/* Landscape Mode Adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 450px;
        padding: 2rem;
    }

    .hero-graphic {
        height: 300px;
    }
}
