:root {
    --accent: #E21E23;
    --accent-dark: #C4161B;
    --white: #FFFFFF;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);

    /* Default (Dark Mode) */
    --bg: #0A0A0A;
    --bg-soft: #141414;
    --bg-card: #1C1C1C;
    --primary: #FFFFFF;
    --text: #F2F2F2;
    --text-muted: #A0A0A0;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    --nav-bg: rgba(10, 10, 10, 0.8);
}

[data-theme="light"] {
    --bg: #FFFFFF;
    --bg-soft: #F8F9FA;
    --bg-card: #FFFFFF;
    --primary: #1F1F1F;
    --text: #1A1A1A;
    --text-muted: #666666;
    --border: rgba(0, 0, 0, 0.08);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    --nav-bg: rgba(255, 255, 255, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg);
}

h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.accent-text {
    color: var(--accent);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 106, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.nav-logo {
    height: 65px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    /* Forced dark background */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 0.8rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .nav-logo {
    height: 48px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
    opacity: 0.9;
}

.navbar.scrolled .nav-links a {
    color: var(--white);
    /* Always white in scrolled state too */
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--accent);
    opacity: 1;
}

.nav-cta {
    background: var(--accent);
    color: var(--white) !important;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    box-shadow: 0 4px 14px 0 rgba(226, 30, 35, 0.3);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .menu-toggle span {
    background: var(--white);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    overflow: hidden;
    text-align: center;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #080808;
    /* Darker, more premium base */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    width: 85%;
    max-width: 1000px;
    height: 85%;
    object-fit: contain;
    /* Ensures logo is never cropped */
    opacity: 0.15;
    /* Professional watermark look */
    filter: brightness(1.2);
    transform: none;
    /* Removed the previous zoom */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.4) 100%);
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    background: rgba(255, 106, 0, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent);
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-weight: 400;
    /* Lighter weight for the top line */
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero h1 .accent-text {
    font-size: clamp(2.5rem, 10vw, 5.5rem);
    display: block;
    margin-top: 0.5rem;
    font-weight: 800;
    /* Much bolder for the location */
    letter-spacing: -0.02em;
    color: var(--accent);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* --- Value Prop --- */
.value-prop {
    padding: 8rem 0;
    background: var(--bg-soft);
}

.prop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.prop-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.prop-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.highlight-item {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.highlight-item:hover {
    transform: translateY(-10px);
}

.highlight-item .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.highlight-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.highlight-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Services --- */
.services {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 3rem 2rem;
    border: 1px solid var(--border);
    background: var(--bg);
    border-radius: 12px;
    transition: var(--transition);
}

.service-card:hover {
    background: var(--bg-card);
    transform: translateY(-5px);
    border-color: var(--accent);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
}

.service-card:hover p {
    color: var(--text);
    opacity: 0.8;
}

/* --- Projects --- */
.projects {
    padding: 8rem 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    color: var(--white);
    overflow: hidden;
}

.horizontal-scroll-container {
    padding: 2rem 0;
}

.project-track {
    display: flex;
    gap: 2rem;
    padding: 0 5%;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
}

.project-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.project-item {
    min-width: 400px;
    height: 300px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

/* --- Stats --- */
.stats {
    padding: 5rem 0;
    background: var(--accent);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item .number {
    font-size: 3.5rem;
    font-weight: 800;
}

.stat-item .suffix {
    font-size: 2rem;
    font-weight: 800;
}

/* --- About --- */
.about {
    padding: 10rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.subtitle {
    display: block;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.image-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 500px;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Contact Section --- */
.contact {
    padding: 8rem 0;
    background: var(--bg-soft);
}

.contact-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.contact-info {
    padding: 4rem;
    background: var(--bg-soft);
    color: var(--text);
    border-right: 1px solid var(--border);
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-methods {
    margin-top: 3rem;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    text-decoration: none;
    color: var(--white);
}

.method-item .icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
}

.contact-form-wrapper {
    padding: 4rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--accent);
    outline: none;
}

/* --- Footer --- */
.footer {
    padding: 6rem 0 2rem;
    background: #050505;
    color: var(--text-muted);
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1.5rem;
}

.footer h3,
.footer h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* --- Mobile / Accessibility --- */
.mobile-call-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(226, 30, 35, 0.4);
    z-index: 1001;
    text-decoration: none;
}

/* --- Theme Toggle --- */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.navbar.scrolled .theme-toggle {
    color: var(--white);
    /* Always white toggle */
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

[data-theme="light"] .sun-icon {
    display: none;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

a.email-link {
    cursor: pointer;
    text-decoration: underline;
}

a.email-link:hover {
    opacity: 0.9;
}

@media (max-width: 900px) {

    .prop-grid,
    .about-grid,
    .contact-card,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        display: flex;
        /* Override display:none if any */
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        color: var(--white) !important;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background: var(--white) !important;
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background: var(--white) !important;
    }

    .mobile-call-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 1.2rem;
        letter-spacing: 0.05em;
    }

    .hero h1 .accent-text {
        font-size: clamp(2rem, 12vw, 3.5rem);
        line-height: 1.1;
    }

    .project-item {
        min-width: 300px;
        height: 250px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item:last-child {
        grid-column: span 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}