:root {
    /* Colors */
    --bg-color: #0A0907;
    --accent-color: #D97B2A;
    --secondary-color: #A89070;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-strong: rgba(255, 255, 255, 0.08);
    
    /* Fonts */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Spacing */
    --section-padding-desktop: 8rem 6rem;
    --section-padding-mobile: 5rem 1.5rem;
    
    /* Easing */
    --ease-main: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    opacity: 0; /* Faded in via JS */
}

::selection {
    background: rgba(217, 123, 42, 0.25);
    color: var(--text-primary);
}

h1, h2, h3, h4, .brand-name, .section-title, .hero-title, .featured-title, .stat-number {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s var(--ease-main);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: all 0.3s var(--ease-main);
}

img {
    max-width: 100%;
    display: block;
}

/* Liquid Glass System */
.liquid-glass, .liquid-glass-strong {
    position: relative;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: var(--glass-bg);
    border-radius: 1.5rem;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.liquid-glass-strong {
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    background: var(--glass-bg-strong);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2), 0 20px 50px rgba(0, 0, 0, 0.6);
}

.liquid-glass::before, .liquid-glass-strong::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent 50%, rgba(255, 255, 255, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Animations */
@keyframes flicker {
    0%, 100% { opacity: 1; }
    90% { opacity: 0.9; }
    92% { opacity: 1; }
    94% { opacity: 0.95; }
}

@keyframes pulse-orange {
    0% { box-shadow: 0 0 0 0 rgba(217, 123, 42, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(217, 123, 42, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 123, 42, 0); }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes build-scan {
    0% { transform: translateX(-100%) skewX(-15deg); }
    100% { transform: translateX(200%) skewX(-15deg); }
}

.flicker { animation: flicker 3s infinite; }
.pulse-node { animation: pulse-orange 2s infinite; }
.float { animation: float 4s ease-in-out infinite; }

.fade-up {
    opacity: 0;
}

.fade-up.visible {
    animation: fadeUp 1s var(--ease-main) forwards;
}

.build-scan::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(217, 123, 42, 0.1), transparent);
    transform: translateX(-100%) skewX(-15deg);
    pointer-events: none;
}

.build-scan:hover::after {
    animation: build-scan 1.2s var(--ease-main);
}

/* Scroll Progress */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 1000;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 0;
    width: 100%;
    z-index: 900;
    padding: 0 6rem;
    transition: background 0.3s var(--ease-main);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    color: var(--accent-color);
}

.brand-name {
    font-size: 1.8rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    padding: 0.8rem 2.5rem;
    border-radius: 9999px !important;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

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

.btn-accent {
    background: var(--accent-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(217, 123, 42, 0.3);
}

.mobile-menu-toggle {
    display: none;
    color: white;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(217, 123, 42, 0.15), transparent 70%),
                linear-gradient(to bottom, transparent 50%, var(--bg-color) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    padding: 0 1.5rem;
}

.accent-label {
    display: block;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(3.5rem, 9vw, 8rem);
    line-height: 1;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-liquid-strong {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(50px);
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-liquid-strong:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.btn-ghost {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-ghost:hover {
    color: var(--accent-color);
}

/* Trust Bar */
.trust-bar {
    border-radius: 0 !important;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
}

.marquee {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 2rem;
}

.accent-dot {
    color: var(--accent-color) !important;
}

/* Services Section */
.services {
    padding: var(--section-padding-desktop);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-featured {
    height: 650px;
    position: relative;
}

.featured-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s var(--ease-main);
}

.service-featured:hover .featured-img {
    transform: scale(1.04);
}

.featured-content {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    z-index: 2;
}

.featured-title {
    font-size: 3.5rem;
    margin-top: 0.5rem;
}

.service-featured::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 9, 7, 0.8), transparent);
}

.section-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.section-title.centered {
    text-align: center;
    margin-bottom: 4rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-card {
    padding: 2rem;
}

.service-icon {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.service-card-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-style: normal;
    font-family: var(--font-body);
    font-weight: 600;
}

.service-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-col {
    padding: 4rem 2rem;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-col:last-child {
    border-right: none;
}

.stat-number {
    display: block;
    font-size: 6rem;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Timeline Section */
.timeline-section {
    padding: var(--section-padding-desktop);
    background: radial-gradient(circle at 50% 50%, rgba(217, 123, 42, 0.03), transparent 70%);
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent-color), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 4rem;
}

.timeline-item.right {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-node {
    position: absolute;
    left: 50%;
    top: 2rem;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-card {
    width: 90%;
    padding: 2.5rem;
    margin: 0 2rem;
}

.timeline-icon {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.timeline-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.timeline-desc {
    color: var(--text-secondary);
}

/* Projects Section */
.projects-section {
    padding: var(--section-padding-desktop);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.bento-item {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.bento-item.tall { grid-row: span 2; }
.bento-item.wide { grid-column: span 2; }

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 9, 7, 0.7), transparent);
    opacity: 0.8;
    transition: opacity 0.3s var(--ease-main);
}

.bento-item:hover .bento-overlay {
    opacity: 1;
}

.bento-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    transition: transform 0.7s var(--ease-main);
}

.bento-item:hover::before {
    transform: scale(1.05);
}

.bento-label {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 2;
}

/* Testimonials Section */
.testimonials-section {
    padding: var(--section-padding-desktop);
    position: relative;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: var(--accent-color);
    filter: blur(120px);
    opacity: 0.08;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.testimonial-card {
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.stars {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.3rem;
}

.quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.6rem;
    line-height: 1.4;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.reviewer {
    font-weight: 500;
    color: var(--text-secondary);
}

/* FAQ Section */
.faq-section {
    padding: var(--section-padding-desktop);
    position: relative;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border-radius: 1rem !important;
}

.faq-trigger {
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
}

.chevron {
    transition: transform 0.4s var(--ease-main);
}

.faq-item.active .chevron {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-main);
}

.faq-content p {
    padding: 0 2rem 2rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Contact Section */
.contact-section {
    padding: var(--section-padding-desktop);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.info-blocks {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.info-block {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.info-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem !important;
    color: var(--accent-color);
}

.info-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.info-value {
    font-size: 1.2rem;
    font-weight: 500;
}

.contact-card {
    padding: 3.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.8rem;
    padding: 1rem;
    color: white;
    font-family: inherit;
    transition: all 0.3s var(--ease-main);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-checkbox input {
    accent-color: var(--accent-color);
    width: 18px;
    height: 18px;
}

.full-width { width: 100%; }

#form-success {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(217, 123, 42, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

#form-success h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hidden { display: none; }

/* Footer */
.footer {
    padding: 6rem 6rem 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto 6rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.footer-contact-info {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.footer-contact-info p { margin-bottom: 0.5rem; }

.subscribe-box {
    display: flex;
    gap: 0.5rem;
    max-width: 350px;
}

.subscribe-box input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 0.8rem 1.5rem;
    color: white;
}

.subscribe-box .btn-accent {
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-nav h4 {
    font-family: var(--font-body);
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.footer-nav ul li { margin-bottom: 1rem; }

.footer-nav ul li a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.certifications {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 950;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    border-radius: 0 !important;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.mobile-links a {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 3rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .navbar { padding: 0 2rem; }
    .services-grid, .contact-grid { gap: 3rem; }
    .section-title { font-size: 3.5rem; }
}

@media (max-width: 992px) {
    .services-grid, .contact-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .nav-links { display: none; }
    .mobile-menu-toggle { display: block; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .stat-col:nth-child(2) { border-right: none; }
    .stat-col:nth-child(3) { border-top: 1px solid rgba(255, 255, 255, 0.1); }
    .stat-col:nth-child(4) { border-top: 1px solid rgba(255, 255, 255, 0.1); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
    .bento-item.tall, .bento-item.wide { grid-row: span 1; grid-column: span 1; }
    .timeline-line { left: 2rem; }
    .timeline-item { padding-right: 0; padding-left: 4rem; justify-content: flex-start; }
    .timeline-item.right { padding-left: 4rem; }
    .timeline-node { left: 2rem; }
}

@media (max-width: 768px) {
    :root {
        --section-padding-desktop: var(--section-padding-mobile);
    }
    .hero-title { font-size: 3.5rem; }
    .stat-number { font-size: 4rem; }
    .form-row { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
}
