/* --- 0. FONTS --- */
/* Inter font is loaded via Google Fonts link in header.php for better performance */

/* Broadway Font for Header Strip */
@font-face {
    font-family: "Broadway";
    src: url("../font/8094231822.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- 1. CSS VARIABLES & THEME ENGINE --- */
:root {
    /* Motion */
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

    /* Brand */
    --primary: #cc6304;
    /* --primary:rgb(243, 117, 6); */
    --primary-hover: #b35403;
    --primary-dim: rgba(204, 99, 4, 0.15);

    /* Backgrounds */
    --bg-color: #ffffff;
    --surface-color: #f7f7f5;
    --surface-alt: #ffffff;

    /* Text */
    --text-primary: #2e2e2e;
    --text-secondary: #6f6f6f;

    /* UI */
    --border-color: rgba(0, 0, 0, 0.08);
    --divider-color: rgba(0, 0, 0, 0.06);
    --cursor-color: #2e2e2e;

    /* Header strip sizing (used for nav offset) - logo bado & saaf visible */
    --header-strip-height: 78px;
    --header-strip-height-mobile: 82px;
}

[data-theme="dark"] {
    --bg-color: #151515;
    --surface-color: #1f1f1f;
    --surface-alt: #262626;
    --text-primary: #f2f2f2;
    --text-secondary: #b0b0b0;
    --border-color: rgba(255, 255, 255, 0.08);
    --divider-color: rgba(255, 255, 255, 0.06);
    --cursor-color: #cc6304;
    /* Page-level vars (instruments, machines, gallery) */
    --bg-page: #151515;
    --bg-card: #1f1f1f;
    --surface: #1f1f1f;
    --bg-light: #1a1a1a;
    --text-main: #f2f2f2;
    --text-muted: #b0b0b0;
}

[data-theme="dark"] body {
    color-scheme: dark;
}

/* --- 2. GLOBAL RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: background-color 0.5s ease, color 0.5s ease;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.1;
}

.display-text {
    font-size: clamp(3.5rem, 9vw, 9rem);
    letter-spacing: -2px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 2rem;
}

.subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    display: block;
    margin-bottom: 1.5rem;
}

p {
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* --- 3. UI COMPONENTS --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
}

.section-padding {
    padding: 120px 0;
}

/* Section padding mobile responsive */
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-50 {
    margin-top: 50px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-60 {
    margin-bottom: 60px;
}

.mb-80 {
    margin-bottom: 80px;
}

.max-w-500 {
    max-width: 500px;
}

.relative {
    position: relative;
}

.z-2 {
    z-index: 2;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

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

.items-end {
    align-items: flex-end;
}

.items-start {
    align-items: start;
}

.gap-40 {
    gap: 40px;
}

.gap-50 {
    gap: 50px;
}

.wrap {
    flex-wrap: wrap;
}

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

.primary-color {
    color: var(--primary);
}

.italic {
    font-style: italic;
}

.text-sm {
    font-size: 0.8rem;
}

.text-xs {
    font-size: 0.75rem;
}

.uppercase {
    text-transform: uppercase;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.line-height-18 {
    line-height: 1.8;
}

.font-size-11 {
    font-size: 1.1rem;
}

.font-size-3 {
    font-size: 3rem;
}

.font-size-25 {
    font-size: 2.5rem;
}

/* Utility classes mobile responsive */
@media (max-width: 768px) {
    .font-size-3 {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .font-size-25 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    .mb-80 {
        margin-bottom: 50px;
    }

    .mb-60 {
        margin-bottom: 40px;
    }

    .gap-40 {
        gap: 20px;
    }

    .gap-50 {
        gap: 30px;
    }

    .pt-40 {
        padding-top: 30px;
    }

    .h-600 {
        height: clamp(400px, 50vh, 600px);
    }
}

@media (max-width: 480px) {
    .font-size-3 {
        font-size: 2rem;
    }

    .font-size-25 {
        font-size: 1.75rem;
    }

    .mb-80 {
        margin-bottom: 40px;
    }

    .mb-60 {
        margin-bottom: 30px;
    }

    .gap-40 {
        gap: 15px;
    }

    .gap-50 {
        gap: 25px;
    }

    .h-600 {
        height: 400px;
    }
}

.opacity-50 {
    opacity: 0.5;
}

.border-top-1 {
    border-top: 1px solid var(--border-color);
}

.pt-40 {
    padding-top: 40px;
}

.w-full {
    width: 100%;
}

.h-600 {
    height: 600px;
}

/* Magnetic Button */
.btn-magnetic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.btn-magnetic::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 0%;
    bottom: 0;
    left: 0;
    background: var(--primary);
    transition: 0.4s var(--ease-out);
    z-index: -1;
}

.btn-magnetic:hover::after {
    height: 100%;
}

.btn-magnetic:hover {
    color: #fff;
    border-color: var(--primary);
}

/* Gallery Button Arrow Animation */
.gallery-arrow-icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-magnetic:hover .gallery-arrow-icon {
    transform: translateX(6px) scale(1.1);
}

/* Grain Overlay */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.04;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
}

/* --- 4. HEADER STRIP --- */
.header-strip {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    color: #2e2e2e;
    padding: 6px 5vw;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    min-height: var(--header-strip-height);
    height: auto;
    overflow: visible;
}

/* Scroll effect - Hide strip */
.header-strip.scrolled-down {
    transform: translateY(-100%);
}

.header-strip-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
    overflow: visible;
}

.header-strip-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    overflow: visible;
}

.header-strip-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
    overflow: visible;
}

/* Header strip company name - premium identity style */
.header-strip-company-name {
    display: inline-grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 0.35rem 0.7rem 0.35rem 0.35rem;
    border: 1px solid rgba(205, 92, 11, 0.25);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(205, 92, 11, 0.10) 0%, rgba(255, 255, 255, 0.95) 70%);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.header-strip-company-name:hover {
    transform: translateY(-1px);
    border-color: rgba(205, 92, 11, 0.55);
    box-shadow: 0 8px 18px rgba(205, 92, 11, 0.16);
}

.header-strip-monogram {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #cd5c0b;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(205, 92, 11, 0.28);
}

.header-strip-title-group {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
}

.header-strip-brand-word {
    color: #cd5c0b;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-size: 0.88rem;
    transition: color 0.25s ease;
}

.header-strip-legal {
    color: #545454;
    font-weight: 500;
    letter-spacing: 0.02em;
    font-size: 0.7rem;
    transition: color 0.25s ease;
}

.header-strip-premium-tag {
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: rgba(46, 46, 46, 0.08);
    color: #2e2e2e;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.header-strip-company-name:hover .header-strip-brand-word,
.header-strip-company-name:hover .header-strip-legal {
    color: #2e2e2e;
}

@media (max-width: 768px) {
    .header-strip-company-name {
        gap: 0.45rem;
        padding: 0.3rem 0.55rem 0.3rem 0.3rem;
    }

    .header-strip-monogram {
        width: 26px;
        height: 26px;
        font-size: 0.82rem;
    }

    .header-strip-brand-word {
        font-size: 0.8rem;
    }

    .header-strip-legal {
        font-size: 0.62rem;
    }

    .header-strip-premium-tag {
        display: none;
    }
}

.header-strip-company {
    font-weight: 400;
    /* Broadway is a display face; keep weight normal */
    font-size: 1.80rem;
    letter-spacing: 0.4px;
    text-transform: none;
    white-space: nowrap;
    font-family: "Broadway", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.header-strip-company-brand {
    color: #cd5c0b;
    font-family: "Broadway", sans-serif;
    font-size: 1.80rem;
    letter-spacing: 0.12em;
    position: relative;
    display: inline-block;
    text-shadow:
        0 0 1px #fff,
        0.04em 0 0 #ffffff,
        -0.04em 0 0 #ffffff;
    padding-left: 0.11em;
    padding-right: 0.11em;
}

.header-strip-trademark {
    font-family: Arial, sans-serif;
    font-size: 0.5em;
    position: absolute;
    top: 2px;
    right: -0.4em;
    color: #000;
    font-weight: normal;
}

.header-strip-sub-brand {
    color: black;
    font-family: "Broadway", sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-top: 2px;
    letter-spacing: 0px;
    word-spacing: 2px;
    white-space: nowrap;
}

.header-strip-tagline {
    margin-top: 2px;
    font-size: 0.75rem;
    font-family: 'Comic Sans MS', cursive;
    letter-spacing: 0.5px;
    white-space: nowrap;
    color: black;
}

/* Address Section */
.header-strip-address {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    opacity: 0.9;
}

/* Center Section (ISO info) */
.header-strip-center {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: center;
}

.header-strip-icon {
    font-size: 0.7rem;
    color: #2e2e2e;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.header-strip-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-strip-text strong {
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.80rem;
    white-space: nowrap;
}

/* Social Icons */
.header-strip-social {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 20px;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.header-strip-social a {
    color: #2e2e2e;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.header-strip-social a:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* --- NAVIGATION BAR POSITIONING --- */
/* Navbar nu top position header strip ni height jetlu rakhvu */
nav {
    position: fixed;
    top: var(--header-strip-height);
    /* Header strip height */
    width: 100%;
    padding: 20px 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: top 0.3s ease, padding 0.3s ease, background-color 0.3s ease;
}

/* Logo left side positioning */
nav .nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-start;
}

nav .nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: flex-end;
}

/* Jyare header strip hide thay tyare nav upar jay */
nav.header-strip-hidden {
    top: 0;
}

/* --- RESPONSIVE MEDIA QUERIES --- */

/* Tablet & Small Laptops (Max Width: 1024px) */
@media (max-width: 1024px) {

    /* Center text remove karo jagya bachavva mate */
    .header-strip-center {
        display: none;
    }

    .header-strip-content {
        justify-content: space-between;
    }
}

/* Mobile Devices (Max Width: 768px) */
@media (max-width: 768px) {
    .header-strip {
        padding: 6px 5vw;
        min-height: var(--header-strip-height-mobile);
    }

    /* Address hide karo mobile ma cleaning mate */
    .header-strip-address {
        display: none;
    }

    .header-strip-social {
        border-left: none;
        /* Border kadhi nakho */
        padding-left: 0;
    }

    .header-strip-company {
        font-size: 0.98rem;
        font-family: "Broadway";
    }

    .header-strip-company-brand {
        font-size: 0.98rem;
    }

    .header-strip-sub-brand {
        font-size: 0.65rem;
        margin-top: 1px;
    }

    /* Tagline mobile ma show karo */
    .header-strip-tagline {
        font-size: 0.65rem;
        margin-top: 1px;
    }

    /* Navbar adjust karo mobile mate */
    nav {
        top: var(--header-strip-height-mobile);
        /* Header strip mobile height */
        padding: 15px 5vw;
    }

    /* Nav left mobile responsive */
    nav .nav-left {
        gap: 10px;
    }

    /* Nav right mobile responsive */
    nav .nav-right {
        gap: 15px;
    }
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    padding: 20px 5vw;
    border-bottom: 1px solid var(--border-color);
    top: 0 !important;
}

[data-theme="dark"] nav.scrolled {
    background: rgba(28, 28, 26, 0.85);
}

[data-theme="dark"] .header-strip {
    background: linear-gradient(135deg, #171717 0%, #202020 100%);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.55);
    color: var(--text-primary);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .header-strip-icon,
[data-theme="dark"] .header-strip-social a {
    color: var(--text-primary);
}

[data-theme="dark"] .header-strip-social {
    border-left-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .header-strip-social a {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .header-strip-social a:hover {
    background: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .header-strip-company-name {
    background: linear-gradient(135deg, rgba(205, 92, 11, 0.2) 0%, rgba(30, 30, 30, 0.95) 70%);
    border-color: rgba(205, 92, 11, 0.45);
}

[data-theme="dark"] .header-strip-company-name:hover .header-strip-brand-word,
[data-theme="dark"] .header-strip-company-name:hover .header-strip-legal {
    color: #f2f2f2;
}

[data-theme="dark"] .header-strip-legal,
[data-theme="dark"] .header-strip-text strong {
    color: #cecece;
}

[data-theme="dark"] .header-strip-premium-tag {
    background: rgba(255, 255, 255, 0.12);
    color: #f2f2f2;
}

[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .menu-toggle {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.22);
    color: #f2f2f2;
}

[data-theme="dark"] .theme-toggle:hover,
[data-theme="dark"] .menu-toggle:hover,
[data-theme="dark"] .menu-toggle.active {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
    color: var(--primary);
}

[data-theme="dark"] .sidebar-menu {
    background: linear-gradient(135deg, #161616 0%, #1f1f1f 100%);
}

[data-theme="dark"] .sidebar-close {
    background: #232323;
    border-color: rgba(255, 255, 255, 0.16);
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: #1b1b1b;
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.16);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: rgba(242, 242, 242, 0.55);
}

[data-theme="dark"] .footer-links-grid a {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .footer-links-grid a:hover {
    color: var(--primary) !important;
    opacity: 1 !important;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 120px;
}

/* Logo mobile responsive */
@media (max-width: 768px) {
    .logo {
        height: 78px;
    }
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* Nav left and nav right styles are defined within nav selector above */

.theme-toggle {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.05);
}

/* When nav is scrolled (white background) */
nav.scrolled .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--border-color);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

nav.scrolled .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

/* Hamburger Menu Button */
.menu-toggle {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    position: relative;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.05);
}

.menu-toggle.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--primary);
    color: var(--primary);
}

.menu-toggle i {
    font-size: 1.1rem;
    display: block;
}

/* When nav is scrolled (white background) */
nav.scrolled .menu-toggle {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--border-color);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

nav.scrolled .menu-toggle:hover,
nav.scrolled .menu-toggle.active {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

/* Sidebar Menu */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-menu {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    max-width: 85vw;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    border-right: 1px solid var(--border-color);
    z-index: 9999;
    transition: left 0.4s var(--ease-out);
    box-shadow: 10px 0 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-menu.active {
    left: 0;
}

/* Prevent body scroll when sidebar is open */
body.sidebar-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Ensure sidebar content can scroll even when body is locked */
body.sidebar-open .sidebar-content {
    overflow-y: auto !important;
    pointer-events: auto;
}

.sidebar-header {
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0;
    gap: 20px;
}

.sidebar-logo-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
}

.sidebar-header .logo {
    height: 80px;
    flex-shrink: 0;
}

.sidebar-address {
    flex: 1;
    padding-top: 5px;
}

.sidebar-address p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.sidebar-address p:first-child {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.sidebar-address p:last-child {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.sidebar-close {
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    color: var(--text-primary);
    display: block;
}

.sidebar-close:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-dim);
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(204, 99, 4, 0.3);
}

.sidebar-close:hover svg {
    color: var(--primary);
}

.sidebar-close:active {
    transform: rotate(90deg) scale(0.95);
}

.sidebar-content {
    padding: 40px 30px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    overscroll-behavior: contain;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    display: block;
    padding: 20px 0;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: 0.3s;
    position: relative;
}

.sidebar-menu a:hover {
    color: var(--primary);
    padding-left: 20px;
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar-menu a:hover::before {
    transform: scaleY(1);
}

/* Submenu Styles */
.sidebar-menu .has-submenu {
    position: relative;
}

.sidebar-menu .submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.sidebar-menu .submenu-toggle i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.sidebar-menu .has-submenu.active .submenu-toggle i {
    transform: rotate(180deg);
}

.sidebar-menu .submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar-menu .has-submenu.active .submenu {
    max-height: 600px;
    padding: 10px 0 10px 20px;
    overflow: visible;
}

.sidebar-menu .submenu li {
    margin-bottom: 5px;
}

.sidebar-menu .submenu a {
    padding: 15px 0;
    font-size: 1rem;
    font-weight: 400;
    border-bottom: 1px solid transparent;
    color: var(--text-secondary);
}

.sidebar-menu .submenu a:hover {
    color: var(--primary);
    padding-left: 15px;
}

.sidebar-menu .submenu a::before {
    width: 2px;
}

.sidebar-footer {
    padding: 30px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    flex-shrink: 0;
}

.sidebar-footer .btn-magnetic:hover {
    color: #ffffff !important;
}

.sidebar-footer .theme-toggle {
    width: 100%;
    border-radius: 50px;
    margin-bottom: 15px;
}

/* --- 5. HERO SECTION --- */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-color);
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Hero Content Styling */
.hero .container {
    position: relative;
    z-index: 3;
}

.hero .hero-anim {
    position: relative;
    z-index: 3;
}

.hero .subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-top: 80px;
    /* Prevent overlap with navigation */
    display: block;
}

.hero h1.display-text {
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1.display-text .primary-color {
    color: #d4a574;
    background: linear-gradient(135deg, #d4a574 0%, #cc6304 50%, #b35403 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    font-weight: 700;
    position: relative;
}

.hero h1.display-text .primary-color::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #d4a574, #cc6304);
    opacity: 0.6;
}

.hero p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    font-weight: 400;
}

/* Hero CTA Button - Solid Brass Background */
.hero .btn-magnetic {
    background: linear-gradient(135deg, #d4a574 0%, #cc6304 50%, #b35403 100%);
    border: 2px solid transparent;
    color: #ffffff;
    font-weight: 700;
    padding: 22px 48px;
    box-shadow: 0 6px 25px rgba(204, 99, 4, 0.4), 0 2px 10px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero .btn-magnetic::after {
    background: linear-gradient(135deg, #b35403 0%, #cc6304 50%, #d4a574 100%);
}

.hero .btn-magnetic:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(204, 99, 4, 0.6), 0 4px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero .btn-magnetic:active {
    transform: translateY(0);
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    mask-image: linear-gradient(to left, black, transparent);
    -webkit-mask-image: linear-gradient(to left, black, transparent);
}

[data-theme="light"] .hero-bg {
    opacity: 0.8;
    filter: sepia(0.2);
}

/* Hero Slider - Enhanced */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    touch-action: pan-y;
}

.hero-slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    will-change: transform;
    align-items: flex-start;
    justify-content: flex-start;
    /* PRODUCTION FIX: Initial position for first slide (CSS fallback) */
    transform: translateX(0%);
}

.hero-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    position: relative;
    pointer-events: none;
    flex-shrink: 0;
    overflow: hidden;
}

/* PRODUCTION FIX: First slide visible by default (CSS fallback) */
/* Ensures first hero image is visible even if JavaScript fails or loads late */
.hero-slide:first-child {
    pointer-events: auto;
}

.hero-slide.active {
    pointer-events: auto;
}

.hero-slide img,
.hero-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    transform: scale(1.1);
    transform-origin: center center;
    opacity: 0;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* PRODUCTION FIX: First slide image/video visible by default (CSS fallback) */
/* Ensures first hero image/video is visible even if JavaScript fails or loads late */
.hero-slide:first-child img,
.hero-slide:first-child video {
    transform: scale(1);
    opacity: 1;
}

.hero-slide.active img,
.hero-slide.active video {
    transform: scale(1);
    opacity: 1;
}

/* Professional dark overlay for text readability */
/* z-index: 2 ensures overlay is above images (z-index: 0) but below controls (z-index: 10) */
.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.65) 25%,
            rgba(0, 0, 0, 0.45) 50%,
            rgba(0, 0, 0, 0.25) 70%,
            transparent 85%);
    z-index: 2;
    pointer-events: none;
}

[data-theme="dark"] .hero-slide::after {
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.75) 25%,
            rgba(0, 0, 0, 0.55) 50%,
            rgba(0, 0, 0, 0.35) 70%,
            transparent 85%);
}

/* Slider Progress Bar */
.hero-slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 10;
    overflow: hidden;
}

.hero-slider-progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(204, 99, 4, 0.6);
}

.hero-slider-controls {
    position: absolute;
    bottom: 40px;
    right: 5vw;
    z-index: 10;
    display: flex;
    gap: 15px;
    align-items: center;
}

.hero-slider-btn {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-slider-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-slider-btn:hover::before {
    width: 100%;
    height: 100%;
}

.hero-slider-btn:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.35);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(204, 99, 4, 0.4);
}

.hero-slider-btn i {
    position: relative;
    z-index: 1;
    font-size: 1rem;
}

.hero-slider-btn:active {
    transform: scale(0.95);
}

.hero-slider-dots {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.hero-slider-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.hero-slider-dot:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.4);
    border-color: rgba(255, 255, 255, 0.8);
}

.hero-slider-dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 4px;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(204, 99, 4, 0.5);
}

.hero-slider-dot.active::after {
    width: 100%;
    height: 100%;
}

/* Slide Counter */
.hero-slider-counter {
    position: absolute;
    bottom: 40px;
    left: 5vw;
    z-index: 10;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


/* --- 6. MARQUEE STRIP --- */
.marquee-container {
    display: flex;
    flex-direction: column;
    /* Uper-niche line aave */
    gap: 20px;
    /* Be line vacche jagya */
    padding: 60px 0;
    background: var(--surface-color);
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.marquee {
    display: flex;
    white-space: nowrap;
    width: fit-content;
    /* Content jetlu j width */
}

.marquee h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    /* Responsive font size */
    margin: 0;
    padding: 0 40px;
    opacity: 0.8;
    text-transform: uppercase;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 800;
}

/* Marquee mobile responsive */
@media (max-width: 768px) {
    .marquee-container {
        padding: 40px 0;
    }

    .marquee h2 {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .marquee-container {
        padding: 30px 0;
    }

    .marquee h2 {
        padding: 0 15px;
    }
}

/* Hollow Text Effect (Premium Look) */
.hollow {
    -webkit-text-stroke: 1px var(--primary);
    /* Border color */
    color: transparent !important;
    /* Ander thi khali */
    opacity: 0.4 !important;
}

/*  */

/* SERVICES SECTION */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    /* Gap for border effect */
    background: var(--border-color);
    /* Border color */
    margin-top: 80px;
    border: 1px solid var(--border-color);
}

.service-card {
    background: var(--bg-color);
    padding: 60px 40px;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover {
    background: var(--surface-color);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Philosophy Section Specific Animation */
#philosophy .image-reveal {
    clip-path: inset(0 100% 0 0);
    /* Photo sharuat ma hidden raheshe */
    transform: scale(1.1);
    /* Thodu zoom hase */
    transition: all 0.1s ease;
    /* GSAP control karshe */
}

#philosophy .subtitle,
#philosophy .section-title,
#philosophy p {
    opacity: 0;
    /* Text sharuat ma hidden */
    transform: translateY(30px);
}

/* Philosophy Wrapper - Full Height & Pinned */
.philosophy-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Aakhi screen rokse */
    overflow: hidden;
    background-color: var(--bg-color);
}

/* Philosophy Footer */
.philosophy-footer {
    position: relative;
    width: 100%;
    padding: 30px 0;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Philosophy footer mobile responsive */
@media (max-width: 480px) {
    .philosophy-footer {
        padding: 25px 0;
    }
}

.philosophy-footer .container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Panels - Ek bijani uper (Stacked) */
.ph-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background-color: var(--bg-color);
    /* Dark/Light theme support */
    z-index: 1;
}

/* Panel 2 starting condition */
.panel-2 {
    z-index: 2;
    /* Uper raheshe */
    clip-path: inset(100% 0 0 0);
    /* Sharuat ma hidden hase (niche thi khulse) */
}

.h-full {
    height: 100%;
}

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

/* Image Styling */
.ph-img-container {
    height: 500px;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.ph-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ph-img-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Mobile responsive fix */
@media (max-width: 768px) {
    .ph-img-container {
        height: 300px;
    }

    .philosophy-wrapper {
        height: auto;
        min-height: 100vh;
    }

    .ph-panel {
        position: relative;
        height: auto;
        padding: 60px 0;
    }

    .panel-2 {
        clip-path: none;
    }

    /* Mobile ma normal scroll rehse */
}


.service-number {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 4rem;
    color: rgba(128, 128, 128, 0.1);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.service-card:hover .service-number {
    color: rgba(204, 99, 4, 0.2);
}

.service-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 500;
    transition: color 0.5s ease, transform 0.5s ease;
    position: relative;
    display: inline-block;
}

.service-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.5s ease;
}

.service-card:hover .service-title {
    color: var(--primary);
    transform: translateX(10px);
}

.service-card:hover .service-title::after {
    width: 100%;
}

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

/* RESPONSIVE FOR SERVICES */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
        border: none;
        gap: 20px;
        background: transparent;
    }

    .service-card {
        border: 1px solid var(--border-color);
        padding: 40px 30px;
    }

    .service-number {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .service-title {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 30px 20px;
    }

    .service-number {
        font-size: 2.5rem;
    }

    .service-title {
        font-size: 1.25rem;
    }
}

/* --- STICKY PROCESS CARDS (UPDATED FOR STACKING) --- */

/* 1. આ સેક્શનને 100vh હાઈટ આપવી જેથી સ્ક્રીન પર ફિક્સ લાગે */
.section-padding[style*="background: var(--surface-color)"] {
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* વર્ટીકલ સેન્ટર */
    position: relative;
    overflow: hidden;
    /* સ્ક્રોલ બાર ન આવે */
}

/* Flex parent inside container width fix (prevents overflow on 100% zoom) */
.section-padding[style*="background: var(--surface-color)"]>.container {
    width: 100%;
}

/* Process header spacing (replaces inline style for responsive fitting) */
.process-header {
    text-align: center;
    margin-bottom: clamp(20px, 4vh, 60px);
}

/* Make this section fit in smaller-height desktops (100% zoom) */
.section-padding[style*="background: var(--surface-color)"] {
    padding: clamp(40px, 7vh, 100px) 0;
}

/* 2. કાર્ડ કન્ટેનરને રિલેટિવ આપવું */
.sticky-card-container {
    position: relative;
    width: min(100rem, 100%);
    height: clamp(380px, 58vh, 560px);
    /* fits better on short desktops */
    margin: 0 auto;
}

/* 3. કાર્ડ્સને એકબીજાની ઉપર ગોઠવવા (Absolute Position) */
.sticky-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);

    /* GSAP માટે શરૂઆતની પોઝીશન */
    will-change: transform;
}

.card-content {
    padding: clamp(28px, 4vw, 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--surface-color);
    /* ટેક્સ્ટ પાછળ બેકગ્રાઉન્ડ હોવું જરૂરી છે */
    min-height: 0;
}

.card-img-wrapper {
    height: 100%;
    width: 100%;
    overflow: hidden;
    min-height: 0;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .sticky-card-container {
        width: 100%;
        height: 650px;
        /* Mobile par card ni height */
    }

    .sticky-card {
        grid-template-columns: 1fr;
        grid-template-rows: 250px 1fr;
    }

    .card-img-wrapper {
        height: 250px;
    }

    .card-content {
        padding: 30px;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .sticky-card-container {
        height: 550px;
    }

    .sticky-card {
        grid-template-rows: 200px 1fr;
    }

    .card-img-wrapper {
        height: 200px;
    }

    .card-content {
        padding: 25px 20px;
    }
}

/* --- 8. SHOWCASE GRID --- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.work-item {
    position: relative;
    overflow: hidden;
    height: 500px;
    border-radius: 4px;
    background: var(--surface-color);
}

.work-item.item-large {
    grid-column: span 2;
    height: 600px;
}

.work-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--ease-out);
    filter: grayscale(30%);
}

.work-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s var(--ease-out);
}

.work-overlay h3 {
    color: #fff;
    font-size: 2rem;
}

/* Work overlay mobile responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        height: 60vh;
    }

    .work-overlay {
        padding: 30px;
    }

    .work-overlay h3 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
}

@media (max-width: 480px) {
    .work-overlay {
        padding: 20px;
    }

    .work-overlay h3 {
        font-size: 1.5rem;
    }
}

.work-overlay p {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.work-item:hover .work-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* CERTIFICATIONS SECTION */
.cert-section {
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.cert-item {
    text-align: center;
    padding: 40px 20px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.cert-item:hover {
    border-color: rgba(204, 99, 4, 0.3);
    background: rgba(204, 99, 4, 0.05);
}

.cert-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.cert-name {
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: 1px;
}

.service-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    transition: 0.3s;
    cursor: pointer;
}

.service-row:last-child {
    border-bottom: 1px solid var(--border-color);
}

.service-row:hover {
    padding-left: 20px;
    background: var(--surface-color);
}

.service-row h3 {
    font-size: 2rem;
}

/* Service row mobile responsive */
@media (max-width: 768px) {
    .service-row {
        padding: 30px 0;
    }

    .service-row h3 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
}

@media (max-width: 480px) {
    .service-row {
        padding: 25px 0;
    }

    .service-row h3 {
        font-size: 1.5rem;
    }
}

.service-row span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}



.service-item {
    padding: 60px 40px;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: 0.4s;
}

/* Service item mobile responsive */
@media (max-width: 768px) {
    .service-item {
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    .service-item {
        padding: 30px 20px;
    }
}

.service-item:hover {
    background: var(--surface-color);
}

.service-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Icon-based services grid layout (for Industries/Manufacturing pages) */
.services-grid-icon {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
}

/* Image reveal / parallax containers */
.image-reveal {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
    background: var(--surface-color);
}

.image-reveal img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    transform: translateY(-10%);
    /* starting position for parallax */
}

/* Link-style button used in these sections + footer */
.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--primary);
    margin-top: 30px;
    transition: 0.3s;
}

.btn-link:hover {
    gap: 15px;
    color: var(--primary);
}

/* Footer (Get a Quote) */
footer {
    padding: 80px 5vw;
    border-top: 1px solid var(--border-color);
}

.footer-big {
    font-size: clamp(3rem, 10vw, 12rem);
    line-height: 0.8;
    color: var(--primary);
    opacity: 0.2;
    text-align: center;
    margin-bottom: 50px;
}

/* Responsive tweaks used by these layouts */

/* Welcome Section Base Styles */
.welcome-section {
    height: 100vh;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.welcome-section .container {
    height: 100%;
    display: flex;
    align-items: center;
}

.welcome-grid {
    height: 100%;
    align-items: center;
}

.welcome-content {
    max-width: 600px;
}

.welcome-content .subtitle {
    font-size: 0.96rem;
}

.welcome-content .section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.welcome-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.welcome-image {
    height: 100%;
    display: flex;
    align-items: center;
    width: 100%;
}

.welcome-image-wrapper {
    width: 100%;
    height: 80%;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

/* Welcome Slider Styles */
.welcome-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.welcome-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.welcome-slide.active {
    opacity: 1;
    z-index: 1;
}

.welcome-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Slider Control Buttons */
.welcome-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
}

.welcome-slider-btn:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.welcome-slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.welcome-slider-prev {
    left: 20px;
}

.welcome-slider-next {
    right: 20px;
}

.welcome-slider-btn svg {
    width: 20px;
    height: 20px;
}

[data-theme="dark"] .welcome-slider-btn {
    background: rgba(28, 28, 26, 0.9);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .welcome-slider-btn:hover {
    background: rgba(28, 28, 26, 1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Welcome Section Responsive */
@media (max-width: 1024px) {
    .welcome-section {
        height: auto;
        min-height: 90vh;
        padding: 60px 0;
    }

    .welcome-section .container {
        height: auto;
    }

    .welcome-grid {
        height: auto;
        gap: 3rem;
    }

    .welcome-image {
        height: 400px;
    }

    .welcome-image-wrapper {
        height: 100%;
    }
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .image-reveal {
        height: 300px;
    }

    /* Welcome Section Mobile */
    .welcome-section {
        height: auto !important;
        min-height: auto;
        padding: 60px 0;
        display: block;
    }

    .welcome-section .container {
        height: auto !important;
        display: block;
    }

    .welcome-grid {
        height: auto !important;
        gap: 2.5rem;
        display: grid;
        grid-template-columns: 1fr;
    }

    /* Image first, then content on mobile */
    .welcome-content {
        max-width: 100% !important;
        order: 2;
        width: 100%;
    }

    .welcome-image {
        height: 350px !important;
        order: 1;
        width: 100%;
    }

    .welcome-image-wrapper {
        height: 100% !important;
        width: 100%;
    }

    .welcome-slider-btn {
        width: 40px;
        height: 40px;
    }

    .welcome-slider-prev {
        left: 10px;
    }

    .welcome-slider-next {
        right: 10px;
    }

    .welcome-slider-btn svg {
        width: 16px;
        height: 16px;
    }

    .welcome-content .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 1.5rem;
    }

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

    /* About Us Section Mobile */
    .bg-surface .grid-2 {
        gap: 2rem;
    }

    .bg-surface .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 1.5rem;
    }

    .bg-surface p {
        font-size: 1rem !important;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .welcome-section {
        padding: 40px 0 !important;
    }

    .welcome-image {
        height: 280px !important;
    }

    .welcome-slider-btn {
        width: 36px;
        height: 36px;
    }

    .welcome-slider-prev {
        left: 8px;
    }

    .welcome-slider-next {
        right: 8px;
    }

    .welcome-slider-btn svg {
        width: 14px;
        height: 14px;
    }

    .welcome-content .subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .welcome-content .section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin-bottom: 1rem;
    }

    .welcome-content p {
        font-size: 0.95rem !important;
    }

    .bg-surface {
        padding: 50px 0 !important;
    }

    .bg-surface .subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .bg-surface .section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin-bottom: 1rem;
    }

    .bg-surface p {
        font-size: 0.95rem !important;
    }
}

/* --- 10. FOOTER --- */
footer {
    --footer-bg: #fbfbf8;
    --footer-wave-fill: var(--footer-bg);
    position: relative;
    z-index: 1;
    overflow: visible;
    padding: 100px 5vw 40px;
    background: var(--footer-bg);
    border-top: 0;
}

[data-theme="dark"] footer {
    --footer-bg: #262626;
    --footer-wave-fill: var(--footer-bg);
    background: var(--footer-bg);
}

.footer-wave {
    position: absolute;
    top: -110px;
    left: 0;
    width: 100%;
    height: 110px;
    line-height: 0;
    color: var(--footer-wave-fill);
    z-index: 2;
    pointer-events: none;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 100%;
}

.footer-wave path {
    fill: currentColor;
}

footer>*:not(.footer-wave) {
    position: relative;
    z-index: 1;
}

/* Footer mobile responsive */
@media (max-width: 768px) {
    footer {
        padding: 60px 5vw 30px;
    }

    .footer-wave {
        top: -78px;
        height: 78px;
    }
}

.footer-cta h2 {
    font-size: clamp(3rem, 7vw, 7rem);
    line-height: 0.9;
    margin-bottom: 40px;
    color: var(--text-primary);
}

/* --- 11. LOADER --- */
.loader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transform-origin: bottom center;
    will-change: transform;
}

.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.loader-spinner {
    width: 80px;
    height: 80px;
    position: relative;
    margin-bottom: 20px;
    opacity: 0;
    transform: scale(0.8);
}

.loader-spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader-spinner-ring:nth-child(1) {
    animation-delay: -0.45s;
    border-top-color: #cc6304;
}

.loader-spinner-ring:nth-child(2) {
    animation-delay: -0.3s;
    border-top-color: #d4a574;
    width: 70px;
    height: 70px;
    top: 5px;
    left: 5px;
}

.loader-spinner-ring:nth-child(3) {
    animation-delay: -0.15s;
    border-top-color: #b35403;
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--primary);
    letter-spacing: 8px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.loader-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

.loader-text img {
    position: relative;
    z-index: 1;
    display: block;
    margin: 0 auto;
    /* Prevent “fati javu” (stretch/upscale) + keep crisp */
    width: min(360px, 80vw);
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
}

.loader-text:has(img)::after {
    display: none;
}

/* When loader text contains an image logo, remove text-specific styling */
.loader-text:has(img) {
    letter-spacing: 0;
    line-height: 0;
    overflow: visible;
}

/* Loader Logo Container */
.loader-logo-container {
    text-align: center;
    padding: 20px;
}

/* Loader Brand Name: "Aarohi" */
.loader-brand-name {
    color: #cd5c0b;
    font-family: 'Broadway', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.8;
    position: relative;
    display: inline-block;
    letter-spacing: 0.12em;
    margin-bottom: 5px;
    text-shadow:
        0 0 1px #fff,
        0.04em 0 0 #ffffff,
        -0.04em 0 0 #ffffff;
    padding-left: 0.11em;
    padding-right: 0.11em;
}

/* Loader Trademark Symbol (R) */
.loader-trademark {
    font-family: Arial, sans-serif;
    font-size: 0.2em;
    position: absolute;
    top: 5px;
    right: -0.3em;
    color: #000;
    font-weight: normal;
}

/* Loader Subtitle: "CORPORATION LLP" */
.loader-sub-brand {
    color: black;
    font-family: "Broadway", sans-serif;
    font-size: clamp(1.2rem, 3vw, 2.3rem);
    text-transform: uppercase;
    margin-top: 5px;
    letter-spacing: 0px;
    word-spacing: 2px;
}

/* Loader Tagline: "Measured in Microns..." */
.loader-tagline {
    color: black;
    font-family: 'Comic Sans MS', cursive;
    font-size: clamp(0.9rem, 2vw, 1.5rem);
    margin-top: 8px;
    letter-spacing: 0.5px;
}

/* Update loader-text when it contains logo container */
.loader-text:has(.loader-logo-container) {
    letter-spacing: 0;
    line-height: 1;
    overflow: visible;
    font-size: inherit;
    color: inherit;
}

.loader-text:has(.loader-logo-container)::after {
    display: none;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.loader-progress {
    width: 300px;
    max-width: 80%;
    height: 2px;
    background: rgba(204, 99, 4, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    opacity: 0;
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #d4a574, #cc6304, #b35403);
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 10px rgba(204, 99, 4, 0.5);
}

.loader-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-shine 1.5s infinite;
}

@keyframes progress-shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.loader-percentage {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-top: 15px;
    opacity: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .loader-spinner {
        width: 60px;
        height: 60px;
    }

    .loader-spinner-ring:nth-child(2) {
        width: 50px;
        height: 50px;
    }

    .loader-spinner-ring:nth-child(3) {
        width: 40px;
        height: 40px;
    }

    .loader-text {
        letter-spacing: 4px;
    }

    .loader-progress {
        width: 250px;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Hero Responsive - Tablet */
    .hero h1.display-text {
        font-size: clamp(2.5rem, 8vw, 5rem);
    }

    .hero p {
        font-size: 1rem;
    }

    .hero .btn-magnetic {
        padding: 18px 36px;
        font-size: 0.75rem;
    }

    .hero-slider-controls {
        bottom: 20px;
        right: 5vw;
        gap: 10px;
    }

    .hero-slider-btn {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }

    .hero-slider-dots {
        gap: 8px;
        padding: 6px 10px;
    }

    .hero-slider-dot {
        width: 6px;
        height: 6px;
    }

    .hero-slider-dot.active {
        width: 24px;
    }

    .hero-slider-counter {
        bottom: 20px;
        left: 5vw;
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .hero-slider-progress {
        height: 2px;
    }

    .sticky-card {
        grid-template-columns: 1fr;
        height: auto;
        top: 0 !important;
        margin-bottom: 40px;
    }

    .sticky-card-container {
        display: flex;
        flex-direction: column;
    }

    /* Disable stacking on mobile */
    .card-img {
        height: 300px;
    }

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

    .work-item.item-large {
        grid-column: span 1;
        height: 400px;
    }

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

@media (max-width: 768px) {
    .sidebar-logo-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .sidebar-header .logo {
        height: 100px;
    }

    .sidebar-address {
        padding-top: 0;
    }

    .sidebar-address p {
        font-size: 0.8rem;
    }

    .sidebar-address p:first-child {
        font-size: 0.85rem;
    }

    .sidebar-address p:last-child {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {

    /* Hero Responsive - Mobile */
    .hero {
        padding: 0 5vw;
    }

    .hero h1.display-text {
        font-size: clamp(2rem, 10vw, 3.5rem);
        margin-bottom: 1rem;
    }

    .hero .subtitle {
        font-size: 0.7rem;
        margin-bottom: 1rem;
        margin-top: 60px;
        /* Prevent overlap on mobile */
    }

    .hero p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .hero .btn-magnetic {
        padding: 16px 32px;
        font-size: 0.7rem;
        width: 100%;
        max-width: 280px;
    }

    .hero-slider-controls {
        flex-direction: column;
        gap: 8px;
    }

    .hero-slider-dots {
        order: -1;
    }

    .hero-slide::after {
        background: linear-gradient(to right,
                rgba(0, 0, 0, 0.8) 0%,
                rgba(0, 0, 0, 0.7) 30%,
                rgba(0, 0, 0, 0.5) 60%,
                transparent 85%);
    }

    /* General button mobile adjustments */
    .btn-magnetic {
        padding: 16px 32px;
        font-size: 0.75rem;
    }

    /* Section title mobile margin */
    .section-title {
        margin-bottom: 1.5rem;
    }
}

/* --- PRODUCT SECTION (PREMIUM GRID) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 લાઈનમાં */
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    position: relative;
    display: block;
    text-decoration: none;
}

.prod-img-box {
    width: 100%;
    height: 400px;
    /* ફિક્સ હાઈટ */
    overflow: hidden;
    position: relative;
    border-radius: 4px;
    background: var(--surface-color);
    margin-bottom: 20px;
}

.prod-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover Effect: Image Zoom */
.product-card:hover .prod-img {
    transform: scale(1.1);
}

/* Hover Overlay */
.prod-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card:hover .prod-overlay {
    opacity: 1;
}

/* Floating View Button */
.view-btn {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transform: scale(0) rotate(-45deg);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover .view-btn {
    transform: scale(1) rotate(0);
}

/* Text Styling */
.prod-info {
    position: relative;
    padding-top: 10px;
    border-top: 1px solid transparent;
    transition: border-color 0.4s;
}

.product-card:hover .prod-info {
    border-color: var(--primary);
}

.prod-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 5px;
}

.prod-title {
    font-size: 1.4rem;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
}

/* Product title mobile responsive */
@media (max-width: 768px) {
    .prod-title {
        font-size: clamp(1.2rem, 4vw, 1.4rem);
    }
}

@media (max-width: 480px) {
    .prod-title {
        font-size: 1.2rem;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        /* ટેબ્લેટ પર 2 */
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
        /* મોબાઈલ પર 1 */
    }

    .prod-img-box {
        height: 300px;
    }
}

/* --- IMAGE MODAL/POPUP --- */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 45px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.3s ease, color 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    transform: rotate(90deg);
    color: var(--primary);
    background: rgba(255, 255, 255, 0.2);
}

.modal-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-align: center;
    font-size: 1.2rem;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    backdrop-filter: blur(10px);
}

/* Make product images clickable */
.prod-img-box {
    cursor: pointer;
}

.prod-img-box:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 85vh;
    }

    .modal-caption {
        bottom: 15px;
        font-size: 1rem;
        padding: 8px 15px;
    }
}

/* --- EXPANDING GALLERY SECTION (100vh PIN) --- */
.gallery-section {
    position: relative;
    width: 100%;
    height: 100vh;
    /* આખી સ્ક્રીન હાઈટ */
    background: var(--bg-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Side Columns */
.gallery-col-side {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 1;
    /* સેન્ટર ઈમેજની પાછળ ન જાય એટલે */
    width: 250px;
}

.gallery-col-side.left-images {
    left: 10%;
    /* ડાબી બાજુ */
}

.gallery-col-side.right-images {
    right: 10%;
    /* જમણી બાજુ */
    align-items: flex-end;
    /* રાઈટ સાઈડ અલાઈન */
}

.gallery-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Center Column (Hero Image) */
.gallery-col-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30vw;
    /* શરૂઆતમાં નાની */
    height: 60vh;
    /* શરૂઆતમાં નાની */
    z-index: 2;
    /* સૌથી ઉપર */
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.center-zoom-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-col-side {
        display: none;
        /* મોબાઈલમાં સાઈડ ઈમેજ નહિ બતાવીએ તો ચાલશે, અથવા નાની કરી શકાય */
    }

    .gallery-col-center {
        width: 80vw;
        height: 50vh;
    }
}







/* Section Base */
.cert-section {
    padding: 100px 5%;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.cert-header {
    margin-bottom: 60px;
    text-align: center;
}

/* Certificate section mobile responsive */
@media (max-width: 768px) {
    .cert-section {
        padding: 60px 5%;
    }

    .cert-header {
        margin-bottom: 40px;
    }

    .cert-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .cert-content h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .cert-section {
        padding: 50px 5%;
    }

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

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Grid Layout */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    perspective: 1000px;
    /* Essential for 3D effect */
}

/* Card Styling */
.cert-card {
    position: relative;
    height: 100%;
    cursor: pointer;
    transform-style: preserve-3d;
}

.card-inner {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cert-card:hover .card-inner {
    border-color: var(--primary);
    box-shadow: 0 10px 30px var(--primary-dim);
}

/* Image Wrapper */
.cert-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.cert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
}

.cert-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.cert-card:hover .cert-overlay {
    opacity: 1;
}

/* Content */
.cert-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cert-date {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.cert-content h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.issuer {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.cert-link {
    margin-top: auto;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.cert-link:hover {
    color: var(--primary);
}

.arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.cert-link:hover .arrow {
    transform: translate(3px, -3px);
}

/* ========== PAGE-LEVEL DARK MODE (about, manufacturing, sectors, resources, get_quote, gallery, our_method, instruments, machines) ========== */
[data-theme="dark"] .bg-white,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .value-card,
[data-theme="dark"] .industry-tag,
[data-theme="dark"] .equipment-card,
[data-theme="dark"] .mi-card,
[data-theme="dark"] .machine-card,
[data-theme="dark"] .card-inner {
    background: var(--surface-color) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .industry-tag {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .industry-tag:hover {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

[data-theme="dark"] section[style*="background: white"],
[data-theme="dark"] section[style*="background:white"] {
    background: var(--surface-color) !important;
}

[data-theme="dark"] .timeline-line-bg {
    background: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .timeline-dot {
    background: var(--surface-color) !important;
    border-color: var(--text-secondary) !important;
}

[data-theme="dark"] .timeline-item.active .timeline-dot {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

[data-theme="dark"] .timeline-year {
    color: rgba(242, 242, 242, 0.25) !important;
}

[data-theme="dark"] .quote-page-wrapper,
[data-theme="dark"] .quote-container,
[data-theme="dark"] .quote-form-wrapper {
    background-color: var(--bg-color) !important;
}

[data-theme="dark"] .category-section,
[data-theme="dark"] .category-section[style*="background"] {
    background: var(--surface-color) !important;
}

[data-theme="dark"] .category-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .mi-section:nth-child(even),
[data-theme="dark"] .mi-section[style*="background"] {
    background: var(--surface-color) !important;
}

[data-theme="dark"] .method-page-wrapper {
    background-color: var(--bg-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .method-content-section,
[data-theme="dark"] .method-content-section[style*="background"] {
    background: var(--surface-color) !important;
}

[data-theme="dark"] body.quote-page-wrapper,
[data-theme="dark"] .quote-page-wrapper {
    background-color: var(--bg-color) !important;
}

[data-theme="dark"] .quote-input:focus {
    background: var(--surface-color) !important;
}

[data-theme="dark"] .process-item.is-active .process-node {
    background: var(--surface-color) !important;
}

[data-theme="dark"] .process-tech-tag {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .cta-btn:hover {
    background: var(--surface-color) !important;
}

/* Gallery section padding responsive */
@media (max-width: 768px) {
    .gallery-section {
        padding-top: 40px !important;
    }

    /* Gallery header button mobile positioning */
    .gallery-section .btn-magnetic[style*="position: absolute"] {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        margin-top: 20px;
        width: 100%;
        justify-content: center;
    }

    /* Gallery header container mobile */
    .gallery-section .container>div[style*="position: relative"] {
        flex-direction: column !important;
        min-height: auto !important;
        padding-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .gallery-section {
        padding-top: 30px !important;
    }

    .gallery-section .btn-magnetic[style*="position: absolute"] {
        font-size: 0.7rem !important;
        padding: 14px 28px !important;
    }
}