:root {
    --primary-color: #0A192F; /* Deep Navy */
    --secondary-color: #112240; /* Lighter Navy */
    --accent-color: #FF6B00; /* Construction Orange */
    --accent-hover: #E65A00;
    --text-main: #333333;
    --text-light: #8892B0;
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    --border-color: #E2E8F0;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

.section {
    padding: 6rem 0;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }
.max-w { max-width: 800px; margin-inline: auto; }
.bg-dark { background-color: var(--primary-color); color: var(--white); }
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--white); }
.bg-light-gray { background-color: var(--light-gray); }
.text-accent { color: var(--accent-color); }
.text-white { color: var(--white); }
.text-gray { color: var(--text-light); }
.text-sm { font-size: 0.9rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    height: 50px;
}

.logo-image {
    height: 100%;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.navbar:not(.scrolled) .nav-links a {
    color: var(--white);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

.navbar:not(.scrolled) .mobile-menu-btn {
    color: var(--white);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.05);
    animation: slowZoom 20s ease-out infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 25, 47, 0.9) 0%, rgba(10, 25, 47, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin-left: 5vw;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero .tagline {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

/* Icons */
.icon-lg { width: 32px; height: 32px; color: var(--accent-color); margin-bottom: 1rem; }
.icon-xl { width: 48px; height: 48px; margin-bottom: 1rem; }
.icon-warning { color: var(--accent-color); width: 40px; height: 40px; margin-bottom: 1rem;}
.icon-success { color: #10B981; width: 40px; height: 40px; margin-bottom: 1rem;}
.icon-huge { width: 64px; height: 64px; opacity: 0.8; }

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #555;
}

.glass-card {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    border-color: var(--accent-color);
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Challenge Section */
.challenge h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.challenge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.challenge-card {
    background: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 8px;
    border-top: 4px solid var(--accent-color);
    transition: var(--transition);
}

.challenge-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.challenge-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.challenge-card p {
    color: #A0AEC0;
}

/* Services */
.services h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-pattern { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); }
.bg-pattern-2 { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.bg-pattern-3 { background: linear-gradient(135deg, #064e3b, #10b981); }
.bg-pattern-4 { background: linear-gradient(135deg, #7c2d12, var(--accent-color)); }

.service-content {
    padding: 2rem;
}

.service-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-content ul {
    list-style-type: none;
}

.service-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.95rem;
}

.service-content ul li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

/* Construction Support */
.construction-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.construction-content {
    flex: 1;
}

.construction-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.construction-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #444;
}

.highlight-text {
    font-weight: 600;
    color: var(--primary-color) !important;
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin-top: 2rem !important;
}

.construction-list {
    flex: 1;
}

.glass-panel {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.glass-panel h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 1rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: #333;
}

.check-list li i {
    color: var(--accent-color);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Why Us Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.stat-item p {
    color: #A0AEC0;
    font-size: 0.95rem;
}

/* Industries */
.industry-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.tag {
    background: var(--light-gray);
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
    background-color: #050d1a;
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-light);
    max-width: 400px;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--text-light);
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.slide-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.slide-in-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.slide-in-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }

.is-visible { opacity: 1; transform: translate(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .construction-flex, .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content {
        margin-left: 0;
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
}

/* Canvas Scroll Sequence */
.scroll-sequence {
    position: relative;
    height: 400vh; /* Scroll height to scrub through frames */
    background: #000;
}

.canvas-container {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

#sequence-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.5s ease-out;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.scroll-prompt {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    text-align: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 1s;
}

.scroll-prompt.visible {
    opacity: 1;
}

.scroll-prompt i {
    margin-top: 0.5rem;
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Canvas Hero Text Overlay */
.canvas-hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    color: var(--white);
    max-width: 820px;
    width: 90%;
    padding: 2.5rem 3rem;
    background: linear-gradient(135deg, rgba(10,25,47,0.72) 0%, rgba(10,25,47,0.45) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: auto;
}

.canvas-hero-text.hide {
    opacity: 0;
    transform: translate(-50%, -55%);
    pointer-events: none;
}

.canvas-hero-text h1 {
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.canvas-hero-text p {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: rgba(255,255,255,0.82);
    margin-bottom: 2rem;
    font-weight: 300;
}

.canvas-hero-text .hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
