/* 
 * VISION360 Custom CSS
 * Modern, Premium, Dark Theme Aesthetic
 */

:root {
    --bg-main: #020815;
    --bg-surface: #0a1128;
    --bg-card: #0d1630;
    --bg-navbar: rgba(2, 8, 21, 0.90);

    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;

    --accent-color: #007bff;
    --accent-hover: #0056b3;
    --accent-light: rgba(0, 123, 255, 0.1);

    --border-color: #27272a;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.7);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 123, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.bg-dark {
    background-color: var(--bg-main);
}

.bg-light-dark {
    background-color: var(--bg-surface);
}

.accent {
    color: var(--accent-color);
}

/* Typography */
.section-heading h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-heading p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.heading-line {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 25px auto;
}

.heading-line.align-left {
    margin-left: 0;
}

/* Base Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Sections */
.section {
    padding: 100px 0;
}

/* Navbar */
.top-threat-bar {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    font-size: 0.85rem;
}

.top-threat-bar .threat-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.top-threat-bar i {
    color: #eab308;
}

.top-threat-bar .threat-link {
    color: var(--accent-color);
    font-weight: 600;
    margin-left: 20px;
}

.top-threat-bar .threat-link:hover {
    text-decoration: underline;
}

.navbar {
    position: fixed;
    top: 40px;
    /* offset by threat bar height */
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.navbar.scrolled {
    background: var(--bg-navbar);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    top: 36px;
    /* offset by threat bar height exactly */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('hero-bg.jpg') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: #d1d5db;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards ease-out;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 123, 255, 0.3);
}

.service-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-content {
    padding: 30px;
    position: relative;
}

.service-icon {
    position: absolute;
    top: -25px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
}

.service-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* About Split Section */
.container-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.feature-list {
    margin-top: 30px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    font-family: var(--font-heading);
}

.feature-list i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    z-index: 10;
    pointer-events: none;
}

.badge {
    position: absolute;
    bottom: 30px;
    left: -10px;
    background: var(--accent-color);
    color: white;
    padding: 15px 25px;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
}

/* Contact Section */
.contact-section {
    background-color: var(--bg-main);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.info-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.info-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: var(--accent-light);
    color: var(--accent-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.info-card h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-card p,
.info-card a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.info-card a:hover {
    color: var(--accent-color);
}

/* Form */
.contact-form-container {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    color: var(--text-primary);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-light);
}

/* Footer */
.footer {
    background-color: #050505;
    padding-top: 80px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: var(--text-secondary);
    max-width: 350px;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.social-links a:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-links h3,
.footer-services h3 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: white;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul a {
    color: var(--text-secondary);
}

.footer ul a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    background-color: #000;
    padding: 25px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid #111;
}

/* Banners */
.stats-banner {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-color));
    padding: 60px 0;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 5px;
    font-family: var(--font-heading);
    font-weight: 800;
}

.stat-item p {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.cta-banner {
    background: url('cta-bg.jpg') center/cover no-repeat fixed;
    position: relative;
    padding: 100px 0;
    text-align: center;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 8, 21, 0.85);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 992px) {

    .container-split,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-navbar);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .threat-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .threat-link {
        margin-left: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}