/* 
 * Unique Builders - Premium CSS Framework 2026
 * Modern, Clean, Construction & Architecture Aesthetic
 */

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

:root {
    --primary: #C5A059; /* Gold Accent */
    --primary-dark: #A68545;
    --primary-accessible: #8B6B23; /* Darker Gold for 4.5:1 contrast on white */
    --secondary: #0A192F; /* Deep Navy */
    --secondary-light: #172A45; /* Navy Lighter */
    --accent: #64FFDA; /* Optional architectural teal accent */
    --steel: #2C3E50; /* Steel Gray */
    --text: #CCD6F6; /* Soft Off-white for high contrast on dark */
    --text-dark: #8892B0; /* Muted slate */
    --text-accessible: #495670; /* Darker Slate for 4.5:1 contrast on white */
    --text-light: #F8F9FA; /* Off-white for dark backgrounds */
    --bg-dark: #020C1B; /* Darkest Navy */
    --bg-light: #F5F5F7;
    --bg-white: #FFFFFF;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(10, 25, 47, 0.7);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --section-padding: 120px 0;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--steel); /* Dark primary text by default */
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.text-light {
    color: white !important;
}

.text-muted {
    color: var(--text-dark) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding);
}

.grid {
    display: grid;
    gap: 32px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

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

.nav-links {
    display: flex;
    gap: 50px; /* Increased gap for better separation */
    align-items: center;
}

.nav-links a:not(.btn) {
    font-weight: 600; /* Slightly bolder for clarity */
    font-size: 14px;
    color: white; /* Default white for Hero */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding: 10px 0;
}

.navbar.scrolled .nav-links a {
    color: var(--secondary); /* Dark color on scroll */
}

/* Hover Effect: Modern Underline */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.logo img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1); /* Ensure white logo on hero */
}

.navbar.scrolled .logo img {
    filter: none; /* Restore original on scroll */
}

.mobile-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white; /* Default white for hero */
    z-index: 1200; /* Higher than nav-links (1001) */
    position: relative;
    transition: var(--transition-fast);
}

.navbar.scrolled .mobile-toggle,
.nav-links.active ~ .mobile-toggle {
    color: var(--secondary) !important; /* Force dark when menu is open or scrolled */
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 56px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--secondary); /* High contrast dark text on gold */
    border-radius: 2px; /* Sharper architectural edges */
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

.btn-outline {
    border: 2px solid var(--primary-accessible);
    color: var(--primary-accessible);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--secondary);
    color: white;
}

/* Cinematic Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
    color: white;
}

.hero-parallax-container {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    z-index: 0;
    pointer-events: none;
}

.hero-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.layer-bg {
    z-index: 1;
}

.layer-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: scale(1.1);
}

.layer-main {
    z-index: 2;
    opacity: 0;
    transition: opacity 3s ease-in-out, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.layer-main.active {
    opacity: 0.8;
}

.layer-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(10, 25, 47, 0.4) 0%, rgba(2, 12, 27, 0.9) 100%);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(48px, 8vw, 96px);
    color: white;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 48px;
    color: var(--text-dark);
    max-width: 600px;
    font-weight: 300;
}

/* Premium Button Glow */
.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 0 0 rgba(197, 160, 89, 0);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.4);
    transform: translateY(-3px);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.6s;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Hero Buttons Container */
.hero-btns {
    display: flex;
    gap: 24px;
}

/* Stats Section */
.stats {
    background: var(--secondary);
    color: white;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-item h3 {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
}

/* Cards (Services) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-white);
    padding: 40px;
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
}

.card:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(10, 25, 47, 0.1);
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: var(--transition-fast);
}

.card:hover::after {
    width: 100%;
}

.card-icon {
    font-size: 32px;
    color: var(--primary-accessible);
    margin-bottom: 24px;
}

.card h3 {
    margin-bottom: 16px;
}

/* Featured Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.project-item {
    position: relative;
    height: 500px;
    overflow: hidden;
    cursor: pointer;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.project-item:hover .project-overlay {
    transform: translateY(0);
    opacity: 1;
}

.project-item:hover img {
    transform: scale(1.1);
}

/* Responsive logic */

@media (max-width: 991px) {
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
    }
    
    .nav-links a:not(.btn) {
        font-size: 20px;
        color: var(--secondary) !important; /* Force dark text on white menu background */
        width: 100%;
        text-align: center;
        padding: 15px 0;
    }

    .nav-links .btn {
        width: 80%;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 40px;
    }
    
    .hero-btns {
        flex-direction: column;
    }
}

/* Micro-animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}
