/* CSS Variables & Theme */
:root {
    /* Colors */
    --color-bg: #0f172a;
    /* Slate 900 */
    --color-bg-alt: #1e293b;
    /* Slate 800 */
    --color-bg-darker: #020617;
    /* Slate 950 */
    --color-text: #f8fafc;
    /* Slate 50 */
    --color-text-muted: #94a3b8;
    /* Slate 400 */

    --color-primary: #d4af37;
    /* Metallic Gold */
    --color-primary-hover: #b5952f;
    --color-accent: #38bdf8;
    /* Sky 400 */

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --header-height: 80px;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    /* background-color: var(--color-bg); Removed to show image */
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.bg-darker {
    background-color: rgba(2, 6, 23, 0.6);
    /* Semi-transparent darker bg */
    backdrop-filter: blur(5px);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-primary);
}

.text-gold {
    color: var(--color-primary);
}

.text-link {
    color: var(--color-primary);
    font-weight: 500;
    margin-right: 1.5rem;
    display: inline-block;
}

.text-link:hover {
    color: #fff;
    transform: translateX(5px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Dropdowns */
.nav-item {
    position: relative;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.nav-item>a {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--color-bg-alt);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

/* Wide Dropdown for Consulting */
.wide-dropdown {
    min-width: 400px;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

/* Search */
.search-container {
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 40px;
    /* Collapsed width */
    transition: width 0.4s ease;
}

.search-container:hover,
.search-container:focus-within {
    width: 200px;
}

.search-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
}

.search-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-text-muted);
    color: #fff;
    padding: 5px;
    margin-left: 5px;
    width: 100%;
    outline: none;
}

/* Buttons */
.btn-primary {
    background: var(--color-primary);
    color: #000;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero-visuals {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 4rem;
    text-align: center;
    position: relative;
    z-index: 2;
    /* Removed radial gradient to show global background */
}

/* Global Background */
.site-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/bg_main.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.site-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    /* Heavy overlay for text readability */
    z-index: -1;
    pointer-events: none;
}

/* Satellite Animations */
.satellite-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.sat {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8), 0 0 20px 5px var(--color-primary);
}

.sat-1 {
    top: 15%;
    left: -10px;
    animation: orbit1 25s linear infinite;
}

.sat-2 {
    top: 40%;
    right: -10px;
    animation: orbit2 35s linear infinite;
}

.sat-3 {
    top: 70%;
    left: -10px;
    animation: orbit1 40s linear infinite reverse;
}

.sat-4 {
    top: 25%;
    left: 30%;
    animation: orbit3 45s linear infinite;
}

@keyframes orbit1 {
    0% {
        transform: translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateX(100vw);
        opacity: 0;
    }
}

@keyframes orbit2 {
    0% {
        transform: translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateX(-100vw);
        opacity: 0;
    }
}

@keyframes orbit3 {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translate(50vw, 50vh);
        opacity: 0;
    }
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 3rem;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.visuals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.visual-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease;
}

.visual-card:hover {
    transform: translateY(-10px);
    z-index: 10;
}

.visual-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.visual-card:hover img {
    transform: scale(1.05);
}

.visual-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(4px);
    font-weight: 600;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Consulting Grid Section */
.consulting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.consult-item {
    background: var(--color-bg-alt);
    padding: 2rem 1rem;
    text-align: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 500;
    transition: all 0.3s;
    cursor: default;
}

.consult-item:hover {
    background: var(--color-bg-darker);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-5px);
}

/* Services List Section */
.services-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.service-list-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: var(--color-bg-alt);
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
    transition: all 0.3s;
}

.service-list-card:hover {
    background: #253045;
    transform: translateX(10px);
}

.service-list-card h3 {
    font-size: 1.25rem;
    width: 30%;
}

.service-list-card p {
    color: var(--color-text-muted);
    width: 65%;
}

/* About Split */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Contact Form */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-body);
}

/* Footer */
footer {
    background: #000;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-1 {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: 0.3s;
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--color-bg-darker);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        padding: 2rem;
    }

    .nav-links.mobile-active {
        display: flex;
    }

    .nav-item {
        height: auto;
        margin-bottom: 2rem;
        width: 100%;
        justify-content: center;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        display: none;
        margin-top: 1rem;
    }

    .nav-item:hover .dropdown-menu {
        display: block;
    }

    .dropdown-grid {
        display: block;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2rem;
    }

    .service-list-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .service-list-card h3,
    .service-list-card p {
        width: 100%;
    }

    .about-split {
        grid-template-columns: 1fr;
    }
}