:root {
    /* Color Palette */
    --primary-color: #0a192f;
    /* Deep Navy Blue */
    --primary-light: #172a45;
    /* Lighter Navy */
    --primary-dark: #020c1b;
    /* Darker Navy */
    --accent-color: #d4af37;
    /* Metallic Gold */
    --accent-light: #f3cf55;
    /* Light Gold */
    --accent-dark: #aa8c2c;
    /* Dark Gold */
    --text-color: #333333;
    /* Dark Grey */
    --text-light: #8892b0;
    /* Light Blue-Grey */
    --bg-light: #f8f9fa;
    /* Off-white */
    --bg-white: #ffffff;
    /* Pure White */
    --white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-gold: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-color) 100%);

    /* Typography */
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Shadows & Effects */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--white);
    transition: var(--transition);
    z-index: -1;
    opacity: 0.2;
}

.btn-primary:hover::after {
    width: 100%;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mb-3 {
    margin-bottom: var(--spacing-lg);
}

/* Section Styles */
.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 10px auto 0;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 20px 0;
}

.navbar.scrolled {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

/* Mobile Menu */
.hamburger {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.7);
    /* Deep Navy Overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #cbd5e1;
}

/* Cards (Services/Projects) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--accent-color);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.card-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-link:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

/* Floating CTA */
.cta-wrapper {
    position: relative;
    z-index: 10;
    margin-bottom: -100px;
    /* Pulls the footer up */
}

.cta-card {
    background: var(--white);
    padding: 60px;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cta-content h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.cta-content p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Footer v3 */
.footer {
    background: radial-gradient(circle at top right, #0f2c52 0%, #020c1b 100%);
    color: var(--white);
    padding: 180px 0 0;
    /* Extra padding for floating CTA */
    font-size: 0.95rem;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    /* Keeps overflown content hidden if needed */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 80px;
}

.footer-logo img {
    height: 45px;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
    /* Make logo white if PNG allows, otherwise remove filter */
    opacity: 0.9;
    padding: 0;
    background: none;
    border-radius: 0;
}

.footer-desc {
    color: #a8b2d1;
    /* Lighter text for V3 */
    margin-bottom: 30px;
    line-height: 1.8;
    font-weight: 300;
}

.footer-heading {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 35px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-links li {
    margin-bottom: 18px;
}

.footer-links a {
    color: #a8b2d1;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    font-weight: 300;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-links i {
    font-size: 0.7rem;
    margin-right: 12px;
    color: rgba(212, 175, 55, 0.5);
    /* Muted Gold */
    transition: var(--transition);
}

.footer-links a:hover i {
    color: var(--accent-color);
}

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    color: #a8b2d1;
    font-weight: 300;
}

.footer-contact i {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-top: 3px;
}

/* Minimalist Newsletter */
.newsletter-form {
    margin-top: 10px;
    position: relative;
}

.newsletter-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 15px 0;
    border-radius: 0;
    margin-bottom: 0;
    transition: var(--transition);
    font-weight: 300;
}

.newsletter-input:focus {
    outline: none;
    border-bottom-color: var(--accent-color);
    background: transparent;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.btn-subscribe {
    position: absolute;
    right: 0;
    bottom: 15px;
    background: transparent;
    color: var(--accent-color);
    border: none;
    padding: 0;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 1.2rem;
    width: auto;
}

.btn-subscribe:hover {
    color: var(--white);
    background: transparent;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 0;
}

.social-icon {
    width: auto;
    height: auto;
    background: transparent;
    display: inline-block;
    border-radius: 0;
    color: #a8b2d1;
    transition: var(--transition);
    border: none;
    font-size: 1.2rem;
}

.social-icon:hover {
    background: transparent;
    color: var(--accent-color);
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    background: transparent;
    /* Seamless blend */
    color: #8892b0;
    font-size: 0.9rem;
    font-weight: 300;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-links a {
    margin-left: 30px;
    color: #8892b0;
    transition: var(--transition);
    font-weight: 300;
}

.footer-bottom-links a:hover {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 992px) {
    .cta-card {
        text-align: center;
        justify-content: center;
        padding: 40px;
    }

    .footer {
        padding-top: 150px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .cta-wrapper {
        margin-bottom: -60px;
    }

    .footer {
        padding-top: 120px;
    }

    .navbar .nav-menu {
        display: none;
        /* Hide for now, implement js toggle */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        padding: 20px;
        box-shadow: var(--shadow-md);
    }

    .navbar .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}