/* =========================================
   VARIABLES & DESIGN SYSTEM
========================================= */
:root {
    /* Colors */
    --clr-primary: #000000;
    --clr-accent: #EE5A2A;
    /* Native logo orange */
    --clr-bg-light: #ffffff;
    --clr-bg-gray: #f8f9fa;
    --clr-bg-dark: #121212;
    --clr-text-main: #333333;
    --clr-text-light: #666666;
    --clr-white: #ffffff;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 8rem;

    /* Layout */
    --container-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;

    /* Effects */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px rgba(238, 90, 42, 0.4);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
    --glass-blur: blur(12px);
}

/* =========================================
   RESET & FOUNDATION
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

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

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

ul {
    list-style: none;
}

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

section {
    padding: var(--spacing-xl) 0;
}

/* =========================================
   UTILITIES
========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-accent {
    color: var(--clr-accent);
}

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

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--clr-accent);
    color: var(--clr-white) !important;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--clr-accent) !important;
    border-color: var(--clr-accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: transparent;
    color: var(--clr-white) !important;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    border: 2px solid var(--clr-white);
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-secondary:hover {
    background-color: var(--clr-white);
    color: var(--clr-primary) !important;
    transform: translateY(-2px);
}

/* =========================================
   PRELOADER & SCROLL BAR
========================================= */
/* #preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--clr-primary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    text-align: center;
    color: var(--clr-white);
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 1px;
}

.loader-logo {
    animation: pulse-glow 1.8s ease-in-out infinite;
}

.loader-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.loader-progress-wrap {
    width: 220px;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 99px;
    overflow: hidden;
    margin: 0 auto 0.6rem;
}

#loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #EE5A2A, #ff9f70);
    border-radius: 99px;
    transition: width 0.25s ease;
}

#loader-percent {
    font-size: 0.8rem;
    color: #EE5A2A;
    font-weight: 700;
    letter-spacing: 1px;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
} */
/* PRELOADER BACKGROUND */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--clr-primary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* CENTER CONTENT */
.loader-content {
    text-align: center;
    color: #fff;
    backdrop-filter: blur(12px);
    padding: 2rem 2.5rem;
    border-radius: 20px;
}

/* LOGO (CENTER FOCUS) */
.loader-logo {
    width: 90px;
    margin: 0 auto 20px;
    display: block;
}

/* TEXT */
.loader-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

/* PROGRESS BAR WRAPPER */
.loader-progress-wrap {
    width: 240px;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    overflow: hidden;
    margin: 0 auto 10px;
}

/* PROGRESS BAR */
#loader-bar {
    height: 100%;
    width: 0%;
    border-radius: 50px;
    background: linear-gradient(270deg, #EE5A2A, #ff9f70, #EE5A2A);
    background-size: 300% 100%;
    animation: gradientMove 2s linear infinite;
    transition: width 0.3s ease;
}

/* PERCENT TEXT */
#loader-percent {
    font-size: 0.85rem;
    color: #ff9f70;
    font-weight: 600;
    letter-spacing: 1px;
}


#scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, var(--clr-accent), #ffa000);
    width: 0%;
    z-index: 9998;
    transition: width 0.1s ease;
}

/* =========================================
   NAVIGATION
========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    padding: 1rem 0;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-sm);
    border-bottom: var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-white);
}

header.scrolled .logo {
    color: var(--clr-primary);
}

.logo-accent {
    color: var(--clr-accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn-primary) {
    font-weight: 500;
    position: relative;
    color: var(--clr-white);
}

header.scrolled .nav-links a:not(.btn-primary) {
    color: var(--clr-primary);
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-accent);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--clr-white);
    cursor: pointer;
    transition: color 0.3s ease;
}

header.scrolled .mobile-menu-btn {
    color: var(--clr-primary);
}

/* =========================================
   HERO SECTION
========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&q=80&w=2000') no-repeat center center;
    background-size: cover;
    z-index: -2;
    transform: scale(1.05);
    /* slightly scale up for parallax range */
}

/* ===== HERO IMAGE FIX ===== */
.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    animation: heroZoom 12s ease-in-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: var(--clr-white);
    max-width: 900px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards 0.5s;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--clr-white);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== IMAGE ANIMATION ===== */
@keyframes heroZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.07);
    }
}


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

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeUp 1s ease forwards 1.5s;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    display: block;
    position: relative;
    transition: border-color var(--transition-normal);
}

.scroll-indicator:hover .mouse {
    border-color: var(--clr-white);
}

.wheel {
    width: 4px;
    height: 6px;
    background: var(--clr-accent);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollMouse 2s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}

@keyframes scrollMouse {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* =========================================
   COMMON SECTION STYLES & UTILITIES
========================================= */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--clr-text-light);
}

.bg-gray {
    background-color: var(--clr-bg-gray);
}

.glass-panel {
    background: var(--clr-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    transition: var(--transition-normal);
}

.glass-panel:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

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

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 2rem;
    color: var(--clr-text-light);
    font-size: 1.05rem;
}

.founders-box {
    margin-top: 2rem;
    padding: 2rem;
}

.founders-box h4 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.founders-box h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--clr-accent);
}

.founder-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.founder-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.founder-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(240, 90, 40, 0.1), rgba(240, 90, 40, 0.05));
    color: var(--clr-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.founder-info h5 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.founder-info span {
    font-size: 0.85rem;
    color: var(--clr-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-image {
    position: relative;
}

.image-wrapper {
    padding: 1rem;
    position: relative;
}

.image-wrapper img {
    border-radius: var(--border-radius-sm);
    width: 100%;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--clr-primary);
    color: var(--clr-white);
    padding: 2rem;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-top: 4px solid var(--clr-accent);
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

.experience-badge .number {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--clr-accent);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* =========================================
   SERVICES SECTION
========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(240, 90, 40, 0.05), transparent);
    z-index: -1;
    opacity: 0;
    transition: var(--transition-normal);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(240, 90, 40, 0.1), rgba(240, 90, 40, 0.05));
    color: var(--clr-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    background: var(--clr-accent);
    color: var(--clr-white);
    transform: rotateY(360deg);
}

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

.service-card p {
    color: var(--clr-text-light);
    font-size: 1rem;
}

/* =========================================
   PROJECTS SECTION
========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.project-card {
    background-color: var(--clr-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.project-img {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--clr-accent);
    color: var(--clr-white);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.project-content p {
    color: var(--clr-text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.read-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--clr-accent);
    font-weight: 600;
    transition: var(--transition-fast);
}

.read-more:hover {
    gap: 0.8rem;
}

/* =========================================
   STATS SECTION
========================================= */
.bg-primary {
    background-color: var(--clr-primary);
}

.text-white {
    color: var(--clr-white);
}

.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6 {
    color: var(--clr-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem 0;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--clr-accent);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* =========================================
   DATA QUALITY SECTION
========================================= */
.dq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.dq-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.dq-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: var(--clr-bg-gray);
    color: var(--clr-accent);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: var(--transition-normal);
}

.dq-item:hover .dq-icon {
    background: var(--clr-accent);
    color: var(--clr-white);
}

.dq-content h3 {
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
}

.dq-content p {
    color: var(--clr-text-light);
    font-size: 0.95rem;
}

/* =========================================
   COLLABORATIONS SECTION
========================================= */
.collab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.collab-card {
    position: relative;
    padding: 3rem;
}

.collab-quote {
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: 4rem;
    color: rgba(240, 90, 40, 0.1);
}

.collab-text {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--clr-text-main);
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

.collab-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    font-size: 3.5rem;
    color: #cccccc;
}

.author-info h4 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--clr-accent);
    font-weight: 500;
}

/* =========================================
   CONTACT SECTION
========================================= */
.contact-section {
    padding-bottom: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

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

.info-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem !important;
}

.info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(240, 90, 40, 0.1);
    color: var(--clr-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.info-text p,
.info-text a {
    color: var(--clr-text-light);
    font-size: 0.95rem;
    word-break: break-all;
}

.info-text a:hover {
    color: var(--clr-accent);
}

.contact-form-wrapper h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: #fafafa;
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 4px rgba(240, 90, 40, 0.1);
    background-color: var(--clr-white);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
}

.error-text {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    display: none;
}

.w-100 {
    width: 100%;
}

.success-message {
    display: none;
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-top: 1.5rem;
    align-items: center;
    gap: 0.5rem;
}

.map-container {
    width: 100%;
    margin-top: 4rem;
    line-height: 0;
}

.map-container iframe {
    filter: grayscale(80%) contrast(1.2);
    transition: var(--transition-normal);
}

.map-container iframe:hover {
    filter: grayscale(0%) contrast(1);
}

/* Sections specific media queries */
@media (max-width: 991px) {

    .about-grid,
    .collab-grid,
    .contact-grid,
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .projects-grid,
    .dq-grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================
   FOOTER SECTION
========================================= */
.footer {
    background-color: var(--clr-bg-dark);
    color: var(--clr-white);
    padding: 5rem 0 0;
}

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

.footer-about {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    color: #aaaaaa;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--clr-white);
    transition: var(--transition-normal);
}

.social-links a:hover {
    background-color: var(--clr-accent);
    transform: translateY(-3px);
}

.footer h3 {
    color: var(--clr-white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--clr-accent);
}

.footer-links li,
.footer-contact li {
    margin-bottom: 1rem;
    color: #aaaaaa;
}

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

.footer-links i {
    font-size: 0.8rem;
    margin-right: 0.5rem;
    color: var(--clr-accent);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.footer-contact i {
    margin-top: 0.3rem;
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bottom-container p {
    color: #aaaaaa;
    font-size: 0.9rem;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--clr-accent);
    color: var(--clr-white);
    border-radius: 5px;
    transition: var(--transition-normal);
    opacity: 0;
    visibility: hidden;
}

.back-to-top:hover {
    background-color: var(--clr-white);
    color: var(--clr-primary);
    transform: translateY(-5px);
}

/* =========================================
   MEDIA QUERIES & RESPONSIVE DESIGN
========================================= */

/* ── TABLET (≤991px) ── */
@media (max-width: 991px) {

    /* --- Navbar mobile panel --- */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background: #000000;
        border-left: 1px solid rgba(238, 90, 42, 0.2);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 5.5rem 1.5rem 2.5rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: -6px 0 30px rgba(0, 0, 0, 0.6);
        gap: 0.35rem;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    /* Each nav link row */
    .nav-links a:not(.btn-primary) {
        color: rgba(255, 255, 255, 0.7) !important;
        font-size: 0.98rem;
        font-weight: 500;
        width: 100%;
        padding: 0.8rem 1.1rem;
        border-radius: 8px;
        border-left: 3px solid transparent;
        letter-spacing: 0.3px;
        transition: all 0.2s ease;
        display: block;
        background: transparent;
    }

    .nav-links a:not(.btn-primary):hover,
    .nav-links a.active:not(.btn-primary) {
        color: #ffffff !important;
        background: rgba(238, 90, 42, 0.08);
        border-left-color: var(--clr-accent);
        padding-left: 1.5rem;
    }

    /* CTA button in nav */
    .nav-links .btn-primary {
        margin-top: 1.5rem;
        width: 100%;
        text-align: center;
        padding: 0.85rem 1.5rem;
        border-radius: 8px;
        font-size: 0.95rem;
        font-weight: 600;
        letter-spacing: 0.5px;
        box-shadow: 0 0 18px rgba(238, 90, 42, 0.3);
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        padding-top: 1rem;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .mobile-menu-btn .fa-times {
        color: #ffffff !important;
    }

    header.scrolled .nav-links a:not(.btn-primary) {
        color: rgba(255, 255, 255, 0.7);
    }

    /* --- Hero: tablet centered layout --- */
    .hero-section {
        height: 100vh !important;
        min-height: 560px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-grid {
        grid-template-columns: 1fr !important;
        height: auto !important;
        gap: 0 !important;
        padding: 0 !important;
        text-align: center !important;
        justify-items: center;
    }

    .hero-content {
        align-items: center !important;
        text-align: center !important;
        max-width: 560px;
        margin: 0 auto;
    }

    /* Hide 3D visual on tablet and below */
    .hero-visual {
        display: none !important;
    }

    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.15 !important;
        margin-bottom: 1rem !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 420px !important;
        margin-bottom: 2rem !important;
    }

    .hero-actions {
        justify-content: center;
    }

    /* --- Why Partner With Us — cap image height on tablet --- */
    .about-grid img {
        max-height: 320px !important;
        width: 100%;
        object-fit: cover;
        border-radius: 16px;
    }

    /* --- About / Why Us --- */
    .about-grid {
        grid-template-columns: 1fr !important;
    }

    /* --- Stats grid --- */
    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    /* --- Services --- */
    .services-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    /* --- CTA box --- */
    .cta-section .container>div {
        padding: 4rem 2.5rem !important;
    }

    .cta-section h2 {
        font-size: 2.5rem !important;
    }

    /* --- Footer --- */
    .footer-container {
        grid-template-columns: 1fr 1fr !important;
    }

    /* --- Section headings --- */
    .section-title[style] {
        font-size: 2.5rem !important;
    }
}

/* ── MOBILE (≤768px) ── */
@media (max-width: 768px) {

    html {
        font-size: 15px;
    }

    .container {
        padding: 0 1.25rem;
    }

    /* --- Hero: mobile --- */
    .hero-section {
        height: 100svh !important;
        min-height: 540px !important;
        padding-top: 5rem !important;
    }

    .hero-grid {
        gap: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        height: 100% !important;
    }

    /* Definitely no image on mobile */
    .hero-visual {
        display: none !important;
    }

    .hero-content {
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    /* Badge */
    .hero-content>span:first-child {
        font-size: 0.72rem !important;
        letter-spacing: 2px !important;
        margin-bottom: 1rem !important;
        padding: 0.35rem 0.9rem !important;
    }

    .hero-title {
        font-size: 1.55rem !important;
        letter-spacing: -0.5px !important;
        line-height: 1.15 !important;
        margin-bottom: 1rem !important;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        max-width: 90% !important;
        margin: 0 auto 2rem auto !important;
        text-align: center !important;
    }

    .hero-actions {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
        width: 100% !important;
    }

    .hero-actions a {
        padding: 1rem 2rem !important;
        font-size: 0.9rem !important;
        width: 100% !important;
        max-width: 280px !important;
        text-align: center !important;
        letter-spacing: 1px !important;
    }

    /* --- Why Partner image: reduce height on mobile --- */
    .about-grid img {
        max-height: 220px !important;
        width: 100% !important;
        object-fit: cover !important;
        border-radius: 12px !important;
    }

    /* --- Stats --- */
    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }

    .stat-item {
        padding: 1.75rem 1rem !important;
    }

    /* --- Methodology steps --- */
    div[style*="minmax(220px"] {
        grid-template-columns: 1fr 1fr !important;
    }

    /* --- Services --- */
    .services-grid {
        grid-template-columns: 1fr !important;
    }

    .service-card {
        padding: 2rem 1.5rem !important;
    }

    /* --- CTA --- */
    .cta-section {
        padding: 5rem 0 !important;
    }

    .cta-section .container>div {
        padding: 3rem 1.5rem !important;
        border-radius: 20px !important;
    }

    .cta-section h2 {
        font-size: 2rem !important;
    }

    .cta-section p {
        font-size: 1rem !important;
    }

    .cta-section a {
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
    }

    /* --- Footer --- */
    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .bottom-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* --- Generic overrides --- */
    .section-title {
        font-size: 2rem !important;
    }

    .section-subtitle {
        font-size: 1rem !important;
    }

    section {
        padding: 4rem 0 !important;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

/* ── SMALL MOBILE (≤480px) ── */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.9rem !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    div[style*="minmax(220px"] {
        grid-template-columns: 1fr !important;
    }

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

    .hero-visual {
        width: 100%;
    }
}

/* =========================================
   ABOUT PAGE RESPONSIVE
========================================= */
@media (max-width: 991px) {
    .about-hero {
        height: 50vh !important;
        min-height: 320px !important;
    }

    .about-hero .hero-title {
        font-size: 2.4rem !important;
    }

    .about-hero .hero-subtitle {
        font-size: 1rem !important;
        max-width: 500px !important;
    }

    .about-content h3 {
        font-size: 2rem !important;
    }

    .collab-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 768px) {
    .about-hero {
        height: 50vh !important;
        min-height: 260px !important;
    }

    .about-hero .hero-title {
        font-size: 1.7rem !important;
        letter-spacing: 0 !important;
    }

    .about-hero .hero-subtitle {
        font-size: 0.88rem !important;
        max-width: 300px !important;
        margin: 0.75rem auto 0 !important;
        line-height: 1.5 !important;
    }

    .about-content h3 {
        font-size: 1.6rem !important;
        margin-bottom: 1rem !important;
    }

    .about-content p {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
    }

    .collab-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.25rem !important;
    }

    .about-section img,
    .about-grid img {
        max-height: 220px !important;
        object-fit: cover !important;
        border-radius: 12px !important;
    }
}

@media (max-width: 480px) {
    .about-hero .hero-title {
        font-size: 1.45rem !important;
    }

    .about-hero .hero-subtitle {
        font-size: 0.82rem !important;
    }

    .collab-grid {
        grid-template-columns: 1fr !important;
    }
}


/* ── Journey Timeline & Stats Row: Mobile ── */
@media (max-width: 768px) {

    /* Stats: 2-column grid — Since 2023 + 30+ in row 1, 80K+ in row 2 */
    .about-stats-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1.25rem !important;
    }

    .about-stats-row>div {
        min-width: unset !important;
    }

    /* Timeline becomes a left-aligned vertical stack */
    .journey-timeline {
        padding: 0 1rem !important;
    }

    .timeline-line {
        left: 8px !important;
        transform: none !important;
    }

    .timeline-item {
        position: relative;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding-left: 2rem;
        gap: 0.25rem !important;
        margin-bottom: 2.5rem !important;
    }

    .timeline-dot {
        position: absolute !important;
        left: -0.6rem !important;
        top: 0.15rem !important;
    }

    .timeline-left,
    .timeline-right {
        width: 100% !important;
        text-align: left !important;
        padding: 0 !important;
    }

    .timeline-left:empty,
    .timeline-right:empty {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .about-stats-row>div {
        flex: 1 1 100%;
    }
}


/* =========================================
   SERVICES PAGE RESPONSIVE
========================================= */
@media (max-width: 991px) {
    .service-section-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .service-section-grid img {
        max-height: 280px;
        object-fit: cover;
        border-radius: 12px;
    }

    /* Reset order overrides on tablet so image always shows first */
    .service-section-grid [style*="order: 2"] {
        order: 1 !important;
    }

    .service-section-grid [style*="order: 1"] {
        order: 2 !important;
    }
}

@media (max-width: 768px) {
    .service-section-grid img {
        max-height: 200px !important;
    }

    .service-section-grid h2 {
        font-size: 1.6rem !important;
    }

    .service-section-grid p {
        font-size: 0.95rem !important;
    }
}

/* =========================================
   PROJECTS PAGE RESPONSIVE
========================================= */
@media (max-width: 991px) {

    /* Project cards: keep 2 cols on tablet */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    /* Section heading scaling */
    h2[style*="3.5rem"] {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 768px) {

    /* Project cards: single column on mobile */
    .projects-grid {
        grid-template-columns: 1fr !important;
    }

    /* Cards: minmax auto-fit grid also collapses */
    div[style*="minmax(320px, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* Section heading */
    h2[style*="3.5rem"] {
        font-size: 1.8rem !important;
    }

    /* Section top padding */
    section[style*="8rem"] {
        padding: 4rem 0 !important;
    }

    section[style*="margin-bottom: 5rem"] {
        margin-bottom: 2.5rem !important;
    }
}

/* =========================================
   DATA QUALITY PAGE RESPONSIVE
========================================= */
@media (max-width: 991px) {

    /* Image+text grid: single column on tablet */
    .quality-section-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .quality-section-grid img {
        max-height: 280px;
        object-fit: cover;
        border-radius: 12px;
    }

    /* Methodology cards: 2 columns on tablet */
    div[style*="minmax(300px, 1fr)"] {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 768px) {
    .quality-section-grid img {
        max-height: 200px !important;
    }

    /* Methodology cards: single column on mobile */
    div[style*="minmax(300px, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    .glass-panel h3 {
        font-size: 1.1rem !important;
    }
}

/* =========================================
   CONTACT PAGE RESPONSIVE
========================================= */
@media (max-width: 991px) {

    /* Stack contact info panel above form */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .contact-info .glass-panel {
        height: auto !important;
    }

    .contact-section {
        padding: 3rem 0 !important;
    }
}

@media (max-width: 768px) {

    /* Contact hero refinements */
    .about-hero {
        height: 50vh !important;
        min-height: 280px !important;
    }

    .about-hero .hero-bg {
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-position: center center !important;
        transform: none !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        position: absolute !important;
    }

    .about-hero .hero-title {
        font-size: 1.6rem !important;
    }

    .about-hero .hero-subtitle {
        font-size: 0.85rem !important;
        max-width: 90% !important;
    }

    /* ---- About page: Stats row → 2-column grid on mobile ---- */
    .about-content>div[style*="display: flex"] {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1.25rem !important;
    }

    /* ---- Journey timeline: stack vertically on mobile ---- */
    /* ---- Journey timeline mobile: left-to-right simple layout ---- */
    /* .history-section div[style*="display: flex; justify-content: space-between"] {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        gap: 1rem !important;
        margin-bottom: 2rem !important;
        position: relative !important;
        text-align: left !important;
    }

    .history-section div[style*="width: 45%"]:empty {
        display: none !important;
    }

    .history-section div[style*="width: 20px; height: 20px"] {
        width: 14px !important;
        height: 14px !important;
        min-width: 14px !important;
        margin-top: 0.4rem !important;
        flex-shrink: 0 !important;
        order: -1 !important;
    }

    .history-section div[style*="width: 45%; text-align: right"],
    .history-section div[style*="width: 45%; text-align: left"],
    .history-section div[style*="width: 45%; padding-left"],
    .history-section div[style*="width: 45%; padding-right"] {
        width: auto !important;
        flex: 1 !important;
        text-align: left !important;
        padding: 0 !important;
        order: 0 !important;
    }

    .history-section div[style*="position: absolute; left: 50%"] {
        display: none !important;
    } */


    .history-section {
        padding: 3rem 1rem !important;
    }

    /* Remove timeline line */
    .history-section div[style*="position: absolute; left: 50%"] {
        display: none !important;
    }

    /* Remove dots completely */
    .history-section div[style*="width: 20px; height: 20px"] {
        display: none !important;
    }

    /* Timeline item → stack clean */
    .history-section div[style*="display: flex; justify-content: space-between"] {
        display: block !important;
        margin-bottom: 1.8rem !important;
        padding: 1rem 1rem 1.2rem 1rem;
        border-radius: 12px;

        /* Premium background */
        background: rgba(255, 255, 255, 0.04);
        backdrop-filter: blur(6px);

        border: 1px solid rgba(255, 215, 0, 0.15);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);

        transition: all 0.3s ease;
    }

    /* Hide empty divs */
    .history-section div[style*="width: 45%"]:empty {
        display: none !important;
    }

    /* Content full width */
    .history-section div[style*="width: 45%; text-align"],
    .history-section div[style*="width: 45%; padding"] {
        width: 100% !important;
        padding: 0 !important;
        text-align: left !important;
    }

    /* YEAR */
    .history-section h3 {
        font-size: 1.3rem !important;
        color: #EE5A2A !important;
        margin-bottom: 4px;
        font-weight: 600;
    }

    /* TITLE */
    .history-section h4 {
        font-size: 1.05rem !important;
        margin-bottom: 6px;
        color: #ffffff;
    }

    /* TEXT */
    .history-section p {
        font-size: 0.9rem !important;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.75);
    }

    /* Smooth tap effect */
    .history-section div[style*="display: flex"]:active {
        transform: scale(0.97);
    }

    div[style*="grid-template-columns: 1fr 1fr; gap: 1.5rem"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .info-item {
        gap: 1rem !important;
        margin-bottom: 1.25rem !important;
    }

    .info-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
    }

    /* Form inputs: full width comfortable touch targets */
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 1rem !important;
        padding: 0.85rem 1rem !important;
    }

    .contact-form .btn-primary {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .form-submit-wrap {
        display: flex !important;
        justify-content: center !important;
        margin-top: 0.5rem;
    }

    .form-submit-wrap .btn-primary {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }

    /* Map section */
    .map-container {
        height: 250px !important;
    }
}

@media (max-width: 480px) {
    .contact-info h3 {
        font-size: 1.4rem !important;
    }
}

/* ======= RE-INJECTED ESSENTIAL HERO ANIMATIONS ======= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.client-work-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.client-work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.2);
}

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