@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #0055A4; /* Shield Blue */
    --primary-dark: #003366;
    --accent: #a6ce39; /* Shield Lime Green */
    --accent-glow: rgba(166, 206, 57, 0.3);
    --bg: #050a14;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-border: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-muted: #a0aec0;
    --glass: rgba(255, 255, 255, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Atmosphere */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(0, 85, 164, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(166, 206, 57, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 45px; /* Adjust based on logo proportions */
    width: auto;
    object-fit: contain;
}

.logo span {
    color: var(--accent);
}

.logo-text-hidden {
    display: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    position: relative;
    background: linear-gradient(rgba(5, 10, 20, 0.7), rgba(5, 10, 20, 0.7)), url('hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem; /* Reduced to ensure it fits on one line */
    margin-bottom: 0.5rem;
    white-space: nowrap; /* Forces text to stay on one line */
    background: linear-gradient(135deg, #fff 0%, #a0aec0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content .slogan {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 1.5px solid transparent;
}

.btn:hover {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-3px);
}

.btn-nav {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

/* Services Section Redesign */
.services {
    padding: 2rem 0 5rem 0;
}

.hero-desc {
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

.section-header-centered {
    text-align: center;
}

.section-header-desc {
    margin-top: 1.5rem;
    margin-bottom: 5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.service-item.alt {
    flex-direction: row-reverse;
}

.service-image {
    flex: 0 0 40%; /* Reduced for a "smarter", more compact look */
    perspective: 1000px; /* Prepares for 3D tilt */
    position: relative;
}

.service-image img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 0 15px var(--accent-glow);
    border: 1px solid var(--surface-border);
    transition: transform 0.2s ease-out, box-shadow 0.3s ease;
    cursor: pointer;
}

.service-item:hover .service-image img {
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 30px var(--accent-glow);
}

.service-details {
    flex: 1;
    padding: 0 2rem;
}

.service-tag {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(166, 206, 57, 0.1);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    margin-bottom: 1.5rem;
}

.service-details h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.service-details p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.service-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.service-link:hover {
    gap: 1rem;
}

/* Response for Mobile */
@media (max-width: 992px) {
    .services-list {
        gap: 3rem;
    }

    .service-item, .service-item.alt {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        background: rgba(255, 255, 255, 0.03); /* Framed background */
        padding: 2.5rem 1.5rem;
        border-radius: 30px;
        border: 1px solid var(--surface-border);
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
    
    .service-image {
        width: 100%;
        max-width: 300px; /* Kept compact and 'smart' on mobile */
        margin: 0 auto;
    }

    .service-image img {
        max-height: 250px;
    }

    .service-details {
        padding: 0;
    }

    .service-details h3 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .service-link {
        justify-content: center;
    }
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: rgba(0, 85, 164, 0.05);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-description {
    margin-bottom: 3rem;
}

.contact-link {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

.contact-link:hover {
    text-shadow: 0 0 10px var(--accent-glow);
}

.contact-item i {
    color: var(--accent);
    font-size: 1.5rem;
}

.contact-item div p {
    color: var(--text);
    font-weight: 500;
}

/* Form Styling */
.contact-form-container {
    background: var(--surface);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--surface-border);
}

.contact-form-container h3 {
    margin-bottom: 2rem;
}

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

.form-input {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    color: white;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    background: rgba(0,0,0,0.3);
}

/* Honeypot field - hidden from users */
.hp-field {
    display: none !important;
    visibility: hidden !important;
}

/* Form Status Messages */
.form-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    display: none;
}

.form-status.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.form-status.success {
    background: rgba(166, 206, 57, 0.1);
    color: var(--accent);
    border: 1px solid rgba(166, 206, 57, 0.2);
}

.form-status.error {
    background: rgba(255, 99, 71, 0.1);
    color: #ff6347;
    border: 1px solid rgba(255, 99, 71, 0.2);
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 320px;
    max-width: 450px;
    background: rgba(166, 206, 57, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(166, 206, 57, 0.3);
    color: #fff;
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(166, 206, 57, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: toast-in 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
    transition: all 0.5s ease;
}

.toast.hiding {
    animation: toast-out 0.5s ease forwards;
}

.toast-header {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast-body {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--surface-border);
    text-align: center;
}

footer p {
    font-size: 0.9rem;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        white-space: normal; /* Allows wrapping on mobile */
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .hero-content .slogan {
        font-size: 1rem;
        letter-spacing: 0.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem !important;
        padding: 0 1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
