:root {
    --deep-blue: #0A192F;
    --vibrant-orange: #FF5A00;
    --off-white: #F8F9FA;
    --white: #FFFFFF;
    --slate: #334155;
    --deep-slate: #0F172A;
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--slate);
    background-color: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: clamp(80px, 10vw, 160px) 0;
}

.bg-light {
    background-color: var(--white);
}

.text-center {
    text-align: center;
}

/* ------------------- Typography ------------------- */
.section-title {
    font-size: clamp(3rem, 5vw, 5rem);
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.section-desc {
    font-size: clamp(1.125rem, 1.5vw, 1.5rem);
    max-width: 600px;
    margin-bottom: 4rem;
}

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

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .nav-links a {
    color: var(--deep-slate);
}

.navbar.scrolled .menu-toggle span {
    background-color: var(--deep-slate);
}

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

.logo img {
    height: clamp(60px, 12vw, 90px);
    object-fit: contain;
    transition: var(--transition-fast);
}

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

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--vibrant-orange);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    margin: 5px 0;
    transition: var(--transition-fast);
}

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

.hero-bg {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: 1;
    will-change: transform;
}

.hero-bg .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeSlideshow 18s infinite linear;
    will-change: opacity, transform;
}

.hero-bg .slide:nth-child(1) { animation-delay: 0s; }
.hero-bg .slide:nth-child(2) { animation-delay: 6s; }
.hero-bg .slide:nth-child(3) { animation-delay: 12s; }

@keyframes fadeSlideshow {
    0% { opacity: 0; transform: scale(1); }
    10% { opacity: 1; }
    33% { opacity: 1; }
    43% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 25, 47, 0.85) 0%, rgba(10, 25, 47, 0.3) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 5%;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    margin-top: clamp(80px, 12vh, 140px);
}

.hero h1 {
    font-size: clamp(2rem, 10vw, 7.5rem);
    color: var(--white);
    max-width: 1000px;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    line-height: 1.05;
}

.hero-sub {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: clamp(2rem, 6vw, 3.5rem);
    max-width: 600px;
}

/* Buttons */
.magnetic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(14px, 3vw, 18px) clamp(28px, 6vw, 40px);
    background-color: var(--vibrant-orange);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: clamp(1rem, 3vw, 1.1rem);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    will-change: transform;
    border: none;
    outline: none;
    box-shadow: 0 10px 20px rgba(255, 90, 0, 0.2);
}

.magnetic-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e55100;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.magnetic-btn:hover::before {
    transform: translateY(0);
}

.btn-text {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

/* ------------------- Why Us ------------------- */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(4rem, 8vw, 8rem);
    align-items: center;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.features-list li h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 2rem;
}

.features-list li h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--vibrant-orange);
    border-radius: 50%;
}

.features-list li p {
    padding-left: 2rem;
}

.why-image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.why-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/5;
}

/* ------------------- Services ------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    margin-top: clamp(3rem, 6vw, 5rem);
}

.service-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-card:hover h3 {
    color: var(--vibrant-orange);
}

.service-img-wrapper {
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.service-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    transition: var(--transition-slow);
    will-change: transform;
}

.service-content h3 {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    margin-bottom: 1rem;
    transition: color var(--transition-fast);
}

.service-cta {
    display: inline-flex;
    align-items: center;
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--deep-slate);
    transition: color var(--transition-fast);
}

.service-cta span {
    margin-left: 0.5rem;
    transition: transform var(--transition-fast);
}

.service-cta:hover {
    color: var(--vibrant-orange);
}

.service-cta:hover span {
    transform: translateX(5px);
}

/* ------------------- Footer ------------------- */
.footer {
    background-color: var(--deep-blue);
    color: var(--off-white);
    padding: 100px 0 0 0;
}

.footer h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: clamp(3rem, 6vw, 4rem);
    margin-bottom: 6rem;
}

.footer-logo {
    height: clamp(50px, 8vw, 70px);
    object-fit: contain;
    margin-bottom: 2rem;
}

.footer-email {
    font-size: clamp(1.2rem, 2.5vw, 2.5rem);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--white);
    display: inline-block;
    margin-bottom: 3rem;
    transition: color var(--transition-fast);
    word-break: break-all;
    overflow-wrap: break-word;
}

.footer-email:hover {
    color: var(--vibrant-orange);
}

.contact-details {
    display: flex;
    gap: 3rem;
}

.contact-details strong {
    display: block;
    color: var(--vibrant-orange);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.footer-locations p {
    margin-bottom: 1.5rem;
}

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

/* ------------------- Animations ------------------- */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

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

/* ------------------- Responsive ------------------- */
@media (max-width: 1024px) {
    .why-grid, .footer-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .why-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--deep-blue);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .navbar.scrolled .menu-toggle.active span {
        background-color: var(--white);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-details {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* ------------------- Preloader ------------------- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.preloader-logo {
    height: clamp(100px, 20vw, 180px);
    object-fit: contain;
}

.loading-bar-container {
    width: 200px;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.loading-bar {
    width: 0%;
    height: 100%;
    background-color: var(--vibrant-orange);
    animation: loading 1.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 60%; }
    100% { width: 100%; }
}

body.loading {
    overflow: hidden;
}
