/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700;900&family=Outfit:wght@500;700;800&family=Montserrat:wght@700;800;900&display=swap');

:root {
    --primary: #FF9900;
    --primary-dark: #cc7a00;
    --bg-dark: #0A0A0A;
    --bg-card: #151515;
    --text-light: #FFFFFF;
    --text-muted: #A0A0A0;
    --accent: #2D2D2D;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-img {
    height: 70px;
    width: auto;
    /* Removed filter so original black logo is visible on orange BG */
    transition: var(--transition);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #FFFFFF;
    /* Global light bg for now as per hero request */
    color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Base Styles */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 18px 36px;
    background-color: var(--primary);
    color: var(--bg-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    border-radius: 4px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.btn:hover {
    background-color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(249, 178, 51, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--bg-dark);
    color: var(--bg-dark);
}

.btn-outline:hover {
    background: var(--text-light);
    color: var(--bg-dark);
}



/* Stats Section */
.stats {
    padding: 100px 0;
    background: var(--bg-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Services Section */
.services {
    padding: 150px 0;
    background: #F8F8F8;
    /* Lighter grey background */
    color: var(--bg-dark);
}

.section-title {
    margin-bottom: 80px;
}

.section-title span {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 15px;
}

.section-title h2 {
    font-size: 3.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #FFFFFF;
    padding: 50px;
    border-radius: 12px;
    transition: var(--transition);
    border: 2px solid var(--primary);
    /* Permanent outline like difference cards */
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.service-card:hover {
    transform: translateY(-20px);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.service-card .icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--bg-dark);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--bg-dark);
}

.service-card p {
    color: rgba(0, 0, 0, 0.7);
    /* Improved readability on light card */
    font-size: 1rem;
    line-height: 1.6;
}

/* Feature/Split Section */
.feature-split {
    display: flex;
    align-items: center;
    padding: 150px 0;
}

.feature-image {
    flex: 1;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-content {
    flex: 1;
    padding-left: 100px;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-col h4 {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.8rem;
}

@keyframes fadeInLetter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.letter-animate .l {
    display: inline-block;
    opacity: 0;
}

.letter-animate.active .l {
    animation: fadeInLetter 0.4s forwards;
}

/* Micro-animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transition: var(--transition);
}

.reveal.active {
    animation: fadeInUp 1s forwards;
}

/* Nav Bounce Animation */
@keyframes navBounce {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    30% {
        transform: translateY(18px);
        opacity: 1;
    }

    50% {
        transform: translateY(-10px);
    }

    68% {
        transform: translateY(6px);
    }

    82% {
        transform: translateY(-2.5px);
    }

    92% {
        transform: translateY(1px);
    }

    100% {
        transform: translateY(0);
    }
}

.animate-nav-bounce {
    animation: navBounce 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    animation-delay: 0.1s;
}

header#header {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header#header.scrolled {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: rgba(241, 245, 249, 1);
    background-color: rgba(255, 255, 255, 0.98);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

body.dark header#header.scrolled {
    border-color: rgba(30, 41, 59, 0.5);
    background-color: rgba(26, 26, 26, 0.98);
}

#nav-container {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero {
        flex-direction: column;
    }

    .hero-image-side {
        height: 500px;
        clip-path: none;
        margin-top: 50px;
    }

    .hero-image-side::after {
        background: linear-gradient(to top, var(--bg-dark) 5%, transparent 40%);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Difference Section Enhancements */
.difference {
    position: relative;
    overflow: hidden;
}

.difference::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.diff-item {
    background: #FFFFFF;
    padding: 60px 40px;
    border-radius: 12px;
    transition: var(--transition);
    border: 2px solid var(--primary);
    /* Outline always present */
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.diff-item:hover {
    background: #FFFFFF;
    transform: translateY(-20px);
    /* Lifted 20px */
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.25);
    /* Enhanced shadow */
    z-index: 10;
}

.diff-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--bg-dark);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-premium {
    background: var(--primary);
    /* Use orange button for contrast on white section */
    color: var(--bg-dark);
    border: none;
    padding: 20px 40px;
    font-weight: 800;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.1em;
}

.btn-premium:hover {
    background: var(--bg-dark);
    color: #FFFFFF;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 153, 0, 0.3);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .feature-split {
        flex-direction: column;
    }

    .feature-content {
        padding-left: 0;
        margin-top: 50px;
    }
}

/* Marquee Animation */
.marquee-wrapper {
    position: relative;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    padding: 4rem 0;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    width: max-content;
    gap: 40px;
    will-change: transform;
    cursor: grab;
}

.marquee-track:active {
    cursor: grabbing;
}


.marquee-item {
    width: 340px;
    flex-shrink: 0;
    cursor: pointer;
    user-select: none;
    white-space: normal;
    /* Ensure text wraps within the item */
}

.blueprint-grid {
    background-color: #080d14;
    background-image:
        linear-gradient(rgba(255,153,0,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,153,0,0.06) 1px, transparent 1px);
    background-size: 64px 64px;
}

@media (max-width: 640px) {
    .marquee-item {
        width: 200px;
    }
    .marquee-item .project-card > div:first-child {
        height: 260px !important;
    }
    .marquee-item .project-card > div:last-child {
        padding: 1.25rem;
    }
    .marquee-item .project-card h5 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    .marquee-item .project-card p {
        font-size: 0.75rem;
    }
}

/* Reverting to simple -50% but ensuring gap is handled */
@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}