/* -------------------------------------------------------------
   Adarsh Engineering Fabricators - Design System Stylesheet
   ------------------------------------------------------------- */

/* Custom Reset & Base Definitions */
:root {
    --font-size: 16px;
    --background: #F4F1EB;       /* Premium architectural warm cream to match hero background */
    --foreground: #1F1F1F;       /* Dark Charcoal */
    --card: #F4F1EB;             /* Frosted glass surface matching cream */
    --card-foreground: #1F1F1F;
    --popover: #F4F1EB;
    --popover-foreground: #1F1F1F;
    --primary: #8B1E2D;          /* Primary Maroon accent */
    --primary-foreground: #ffffff;
    --secondary: #3D3B37;        
    --secondary-foreground: #EFF2F4;
    --muted: #D1D1D1;            
    --muted-foreground: #6B6B6B;  /* Secondary Grey text */
    --accent: #8B1E2D;           
    --accent-foreground: #ffffff;
    --destructive: #d4183d;
    --destructive-foreground: #ffffff;
    --border: #D8DADD;           /* Light Grey border */
    --input: transparent;
    --input-background: #EFF2F4;
    --switch-background: #b0ada8;
    --font-weight-medium: 600;
    --font-weight-normal: 400;
    --ring: #8B1E2D;
    --radius: 0.625rem;

    /* Theme Mappings */
    --bg-darker: #EAE6E1;        /* Warm sand stone grey alternating panel background matching hero flooring */
    --bg-dark: var(--background);
    --dot-color: rgba(139, 30, 45, 0.16);     /* Premium micro-dot drafting canvas color */
    --brushed-lines: rgba(139, 30, 45, 0.12);  /* Horizontal architectural panel joints */
    --bg-card: var(--card);
    --bg-card-hover: rgba(139, 30, 45, 0.04);
    --primary-color: var(--primary);
    --primary-bright: #a12334;   /* Slightly brighter deep maroon for hover states */
    --primary-glow: rgba(139, 30, 45, 0.08);
    --primary-glow-strong: rgba(139, 30, 45, 0.2);
    --text-white: var(--foreground);
    --text-grey: #1F1F1F;
    --text-muted: var(--muted-foreground);
    --border-color: var(--border);
    --border-hover: var(--primary);
    
    /* Layout Details */
    --container-width: 1200px;
    --nav-height: 80px;
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 24px;
    --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --font-brand: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark {
    --background: #18191c;       /* Refined charcoal grey background (less stark/dark) */
    --foreground: #f4f4f5;       /* Clean white/light grey text */
    --card: #222326;             /* Matching soft grey card surface */
    --card-foreground: #f4f4f5;
    --popover: #222326;
    --popover-foreground: #f4f4f5;
    --primary: #961B1B;          /* Swatch 1: Maroon primary accent */
    --primary-foreground: #ffffff;
    --secondary: #2a2b2f;
    --secondary-foreground: #f4f4f5;
    --muted: #2a2b2f;
    --muted-foreground: #a1a1aa;  /* Muted cool grey */
    --accent: #730707;           /* Swatch 2: Dark maroon */
    --accent-foreground: #ffffff;
    --destructive: #d4183d;
    --destructive-foreground: #ffffff;
    --border: rgba(255, 255, 255, 0.08);
    --input: #222326;
    --ring: #961B1B;
    --font-weight-medium: 500;
    --font-weight-normal: 400;

    /* Theme Mappings */
    --bg-darker: #121314;        /* Softer alternating dark tone */
    --bg-dark: var(--background);
    --dot-color: rgba(255, 255, 255, 0.15);   /* Premium micro-dot drafting canvas color */
    --brushed-lines: rgba(255, 255, 255, 0.12); /* Horizontal architectural panel joints */
    --bg-card: var(--card);
    --bg-card-hover: #2b2c30;    /* Lighter hover card state */
    --primary-color: var(--primary);
    --primary-bright: #cc2525;
    --primary-glow: rgba(150, 27, 27, 0.15);
    --primary-glow-strong: rgba(150, 27, 27, 0.4);
    --text-white: var(--foreground);
    --text-grey: #e4e4e7;
    --text-muted: var(--muted-foreground);
    --border-color: var(--border);
    --border-hover: var(--primary);
}

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

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-grey);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    background-color: var(--bg-dark);
}

/* Procedural Material Panel Joint & Textured Section Backgrounds */
.about-section {
    background-color: var(--background);
    border-bottom: 1px solid var(--border-color);
}

.services-section {
    background-color: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
}

.workshop-section {
    background-color: var(--background);
    border-bottom: 1px solid var(--border-color);
}

.projects-section {
    background-color: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
}

.ongoing-projects-section {
    background-color: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
}

.safety-section {
    background-color: var(--background);
    border-bottom: 1px solid var(--border-color);
}

.details-section {
    background-color: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
}

.contact-section {
    background-color: var(--background);
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

/* Common Layout Container */
.section-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 100px 24px;
}

/* Custom Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--text-white) 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-bright) 100%);
    color: var(--text-white);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--primary-glow-strong);
    filter: brightness(1.1);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    margin-left: 8px;
    width: 18px;
    height: 18px;
}

/* Sticky Glassmorphic Floating Navbar */
.navbar {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: var(--container-width);
    height: 76px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 28px;
    display: flex;
    align-items: center;
    z-index: 1000;
    padding: 0 28px;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.dark .navbar {
    background: rgba(34, 35, 38, 0.75); /* Use card-base greyish tint */
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.navbar.scrolled {
    top: 10px;
    height: 68px;
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(20, 20, 22, 0.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
}

.dark .navbar.scrolled {
    background: rgba(13, 14, 21, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
}

.nav-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.navbar.scrolled .brand-logo {
    width: 36px;
    height: 36px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-family: var(--font-brand);
    font-weight: 800;
    font-size: 1.35rem;
    color: #000000;
    letter-spacing: 1.5px; /* Increased letter-spacing for premium serif look */
    transition: var(--transition-fast);
}

.dark .brand-title {
    color: #ffffff;
}

.brand-subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.dark .brand-subtitle {
    color: var(--primary);
}

.nav-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    padding: 6px 0;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2.5px;
    background-color: var(--primary);
    transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Nav Dropdown styling */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-arrow {
    width: 12px !important;
    height: 12px !important;
    margin-left: 2px;
    transition: var(--transition-fast);
    vertical-align: middle;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 10px 0;
    min-width: 210px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 1010;
}

.dark .dropdown-menu {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(4px);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--foreground);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: var(--transition-fast);
}

.dropdown-menu a:hover {
    background-color: var(--primary-glow);
    color: var(--primary) !important;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-btn-quote {
    background-color: var(--primary);
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(150, 27, 27, 0.15);
    white-space: nowrap;
}

.nav-btn-quote:hover {
    background-color: var(--primary-bright);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(150, 27, 27, 0.3);
}

.nav-btn-quote svg {
    width: 14px;
    height: 14px;
}

/* Mobile Hamburger Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    padding: 4px;
    z-index: 1005;
}

.menu-toggle svg {
    width: 26px;
    height: 26px;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 999;
    padding: 110px 24px 40px 24px;
    transform: translateX(100%);
    transition: var(--transition-smooth);
}

.mobile-drawer.open {
    transform: translateX(0);
}

.drawer-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.drawer-link {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--foreground);
    text-decoration: none;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
}

.drawer-btn {
    background-color: var(--primary);
    color: #ffffff !important;
    text-align: center;
    padding: 14px !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 15px;
    border-bottom: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    padding-top: 110px; /* compact top space to clear floating navbar */
    padding-bottom: 12px; /* compact bottom space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    overflow: hidden; /* contain all elements inside the hero viewport */
    text-align: left;
    box-sizing: border-box;
    background-color: var(--background);
    z-index: 3;
}

.dark .hero-section {
    background-color: var(--background);
}

/* Interactive Blueprint Grid Background overlay */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(139, 30, 45, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 30, 45, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center;
    z-index: 2;
    pointer-events: none;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 30, 45, 0.035) 0%, transparent 70%);
    top: 5%;
    left: -200px;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: var(--container-width);
    margin: auto auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-tagline-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px; /* compact margin */
}

.hero-tagline-text {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #475569;
    text-transform: uppercase;
}

.dark .hero-tagline-text {
    color: #cbd5e1;
}

.hero-tagline-line {
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.05;
    margin-bottom: 12px; /* compact margin */
    font-weight: 900;
    letter-spacing: -0.5px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.title-dark {
    color: #0f172a;
    transition: var(--transition-fast);
}

.dark .title-dark {
    color: #ffffff;
}

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

.hero-subtitle {
    font-size: clamp(0.98rem, 1.5vw, 1.12rem);
    color: #334155;
    max-width: 620px;
    margin: 0 0 18px 0; /* compact margin */
    font-weight: 500;
    line-height: 1.6;
    transition: var(--transition-fast);
}

.dark .hero-subtitle {
    color: #e2e8f0;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    margin-bottom: 24px;
}

.hero-actions .btn {
    border-radius: 16px;
    padding: 16px 36px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 30px rgba(139, 30, 45, 0.2);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-actions .btn:hover {
    transform: translateY(-2px);
    background: var(--primary-bright);
    box-shadow: 0 12px 35px rgba(139, 30, 45, 0.3);
}

.hero-actions .btn .btn-icon {
    margin-left: 8px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-actions .btn:hover .btn-icon {
    transform: translateX(3px);
}

.hero-checklist {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    transition: var(--transition-fast);
}

.dark .hero-checklist {
    color: #f1f5f9;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checklist-item svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.checklist-divider {
    color: #cbd5e1;
}

.dark .checklist-divider {
    color: rgba(255, 255, 255, 0.3);
}

/* Floating Stats & Offerings Dashboard Panel */
.hero-dashboard-panel {
    width: 88%;
    max-width: var(--container-width);
    margin: auto auto 12px auto; /* compact margin to stay inside background */
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 26px;
    padding: 16px 28px; /* compact padding */
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.04);
    z-index: 4;
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 10px; /* compact gap */
    transition: var(--transition-smooth);
}

.dark .hero-dashboard-panel {
    background: rgba(34, 35, 38, 0.65); /* Use card-base greyish tint */
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
}

.dashboard-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: center;
}

.db-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.db-stat-item:not(:last-child) {
    border-right: 1px solid rgba(20, 20, 22, 0.08);
    padding-right: 24px;
}

.dark .db-stat-item:not(:last-child) {
    border-right-color: rgba(255, 255, 255, 0.08);
}

.db-stat-icon-wrapper {
    width: 44px;
    height: 44px;
    background-color: rgba(150, 27, 27, 0.06);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.db-stat-icon-wrapper svg {
    width: 20px;
    height: 20px;
}

.db-stat-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.db-stat-num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.db-stat-text-container {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.db-stat-line {
    font-size: 0.68rem;
    font-weight: 800;
    color: #475569;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.dark .db-stat-line {
    color: #94a3b8;
}

.dashboard-divider {
    height: 1px;
    background-color: rgba(20, 20, 22, 0.08);
    width: 100%;
}

.dark .dashboard-divider {
    background-color: rgba(255, 255, 255, 0.08);
}

.dashboard-offerings-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.db-offering-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 10px 6px;
    border-radius: var(--border-radius-md);
    transition: var(--transition-fast);
    cursor: pointer;
    border: 1px solid transparent;
}

.db-offering-item:hover {
    background-color: var(--primary-glow);
    border-color: rgba(150, 27, 27, 0.12);
    transform: translateY(-2px);
}

.db-offering-icon {
    color: var(--primary);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.db-offering-icon svg {
    width: 22px;
    height: 22px;
}

.db-offering-item:hover .db-offering-icon {
    transform: scale(1.1);
}

.db-offering-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.db-offering-text h4 {
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.2px;
}

.dark .db-offering-text h4 {
    color: #ffffff;
}

.db-offering-text p {
    font-size: 0.65rem;
    color: #64748b;
}

.dark .db-offering-text p {
    color: #94a3b8;
}

@media (max-width: 1200px) {
    .dashboard-offerings-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .dashboard-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .db-stat-item:not(:last-child) {
        border-right: none;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .dashboard-offerings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-dashboard-panel {
        padding: 20px;
    }
    .hero-checklist {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-top: 20px;
    }
    .checklist-divider {
        display: none;
    }
}

@media (max-width: 500px) {
    .dashboard-stats-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .dashboard-offerings-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .db-stat-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    .db-stat-icon-wrapper {
        width: 38px !important;
        height: 38px !important;
    }
    .db-stat-icon-wrapper svg {
        width: 18px !important;
        height: 18px !important;
    }
    .db-stat-num {
        font-size: 1.6rem !important;
    }
    .db-stat-info {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }
    .db-stat-line {
        font-size: 0.62rem !important;
        letter-spacing: 0.1px !important;
    }
    .db-offering-text h4 {
        font-size: 0.65rem !important;
        letter-spacing: 0.1px !important;
    }
    .db-offering-text p {
        font-size: 0.55rem !important;
    }
    .db-offering-icon svg {
        width: 18px !important;
        height: 18px !important;
    }
}

/* Section Common Headers */
.section-header {
    margin-bottom: 60px;
}

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

.section-subtitle {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.header-line {
    width: 60px;
    height: 4px;
    background-color: var(--primary-bright);
    margin-top: 16px;
    border-radius: 2px;
}

.header-line.center {
    margin-left: auto;
    margin-right: auto;
}

.section-description {
    max-width: 600px;
    margin: 16px auto 0 auto;
    color: var(--text-grey);
}

.subsection-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.icon-inline {
    color: var(--accent);
    width: 24px;
    height: 24px;
}

/* About Section Reveal & Transition */
.section-divider-reveal {
    position: relative;
    height: 8px;
    width: 100%;
    border-top: 1px solid rgba(139, 30, 45, 0.12);
    border-bottom: 1px solid rgba(139, 30, 45, 0.12);
    background-color: var(--background);
    margin: 0;
    z-index: 5;
    box-sizing: border-box;
}

.dark .section-divider-reveal {
    border-top-color: rgba(255, 255, 255, 0.08);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.section-divider-reveal::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow-strong);
    border-radius: 1px;
    z-index: 6;
}

.about-section {
    background-color: var(--background); /* Use design system background color variable */
    position: relative;
    z-index: 2;
    overflow: hidden;
}



.about-section .section-container {
    position: relative;
    z-index: 2;
    padding-top: 60px; /* clean compact top space below hero section */
    padding-bottom: 20px; /* compact bottom padding to reduce section gap */
}

.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 80px;
    align-items: flex-start;
    margin-bottom: 10px; /* collapsed obsolete margin since manpower is a separate section */
}

.about-desc {
    font-size: 1.08rem;
    line-height: 1.75;
    margin-bottom: 24px;
    color: var(--muted-foreground);
    max-width: 620px;
}

/* Premium Founder Profile Block */
.founder-profile-card {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin-top: 48px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(218, 218, 221, 0.4);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.015);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 600px;
}

.founder-profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.03);
}

.founder-avatar-wrapper {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 2px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.founder-avatar-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(150, 27, 27, 0.3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
    background-size: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.founder-avatar-wrapper:hover::after {
    opacity: 1;
}

.founder-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
}

.founder-card-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-grow: 1;
}

.founder-info {
    display: flex;
    flex-direction: column;
}

.founder-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 3px;
}

.founder-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--foreground);
    margin: 0;
}

.founder-quote {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--muted-foreground);
    margin: 0;
    line-height: 1.5;
    border-left: 2px solid rgba(150, 27, 27, 0.25);
    padding-left: 14px;
}

.founder-signature {
    font-family: 'Alex Brush', cursive;
    font-size: 2.2rem;
    color: var(--primary);
    margin-top: 4px;
    line-height: 0.8;
    opacity: 0.9;
}

/* Typographic Metrics Block */
.about-stats-content {
    display: block;
}

.about-editorial-metrics {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding-left: 20px;
}

.metric-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.metric-num {
    font-family: var(--font-heading);
    font-size: 3.8rem; /* Large editorial typographic scale */
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -1px;
}

.metric-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Manpower Section Redesign as capability cards */
.manpower-section {
    background-color: var(--bg-darker); /* Alternating warm sand stone grey panel */
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.manpower-section .section-container {
    padding-top: 30px; /* compact top space right below partition line */
    padding-bottom: 60px; /* clean padding before services section */
}

/* base rule automatically handles dark mode via var(--bg-darker) */

.manpower-details {
    background-color: transparent;
    border: none;
    padding: 0;
    margin-top: 0; /* Reset margin since it has its own section padding now */
}

/* Premium Editorial Manpower Header Layout */
.manpower-header {
    display: block;
    margin-bottom: 44px;
}

.manpower-title-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.manpower-badge {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.manpower-badge .badge-icon {
    width: 14px;
    height: 14px;
}

.manpower-main-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--foreground);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 0;
}

.manpower-decor-line {
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    margin-top: 16px;
    border-radius: 2px;
}

.manpower-intro {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.65;
    margin: 0;
    font-weight: 500;
}

.dark .manpower-intro {
    color: #94a3b8;
}

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

.manpower-item {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(216, 218, 221, 0.35);
    border-radius: 16px;
    padding: 40px 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.008);
}

.manpower-item:hover {
    transform: translateY(-4px);
    background: #ffffff;
    border-color: rgba(216, 218, 221, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.025);
}

.manpower-icon-wrapper {
    width: 44px;
    height: 44px;
    background-color: rgba(139, 30, 45, 0.04);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.manpower-item:hover .manpower-icon-wrapper {
    background-color: var(--primary);
    color: #ffffff;
    transform: scale(1.05);
}

.manpower-icon-wrapper svg {
    width: 22px;
    height: 22px;
}

.manpower-count {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 8px;
    line-height: 1;
}

.manpower-role {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted-foreground);
    margin-bottom: 0;
    letter-spacing: 0.5px;
}

/* Dark mode overrides for founder block elements */
.dark .founder-profile-card {
    background: rgba(34, 35, 38, 0.4);
    border-color: rgba(255, 255, 255, 0.04);
    box-shadow: none;
}

.dark .founder-profile-card:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.dark .founder-avatar-wrapper {
    background-color: var(--bg-card-hover);
    border-color: var(--border-color);
}

.dark .avatar-placeholder-icon {
    color: #a0aec0;
}

.dark .founder-title {
    color: #ffffff;
}

.dark .manpower-item {
    background: rgba(34, 35, 38, 0.4);
    border-color: rgba(255, 255, 255, 0.03);
}

.dark .manpower-item:hover {
    background: rgba(42, 43, 48, 0.8);
    border-color: rgba(255, 255, 255, 0.08);
}

.dark .manpower-count {
    color: #ffffff;
}


/* Services Section */
.services-section {
    background-color: var(--bg-darker);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 48px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-bright);
    opacity: 0;
    transition: var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    background-color: var(--bg-card-hover);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(139, 26, 26, 0.1);
    color: var(--accent);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

.service-icon svg {
    width: 30px;
    height: 30px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.98rem;
    color: var(--text-grey);
}

.check-icon {
    color: var(--accent);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 3px;
}

/* Facilities & Design Precision Block */
.facilities-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 40px;
    display: flex;
    gap: 32px;
    align-items: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.facilities-info {
    flex: 1.2;
}

.facilities-image-container {
    flex: 0.8;
    max-width: 420px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.facilities-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

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

/* AutoCAD Drafting Grid Layout & Pipeline Steps */
.autocad-grid-block {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 40px;
    align-items: center;
}

.autocad-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.autocad-left h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    margin-top: 14px;
    margin-bottom: 14px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--foreground);
}

.autocad-left p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.autocad-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.autocad-step-item {
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    transition: var(--transition-smooth);
}

.autocad-step-item:hover {
    transform: translateX(6px);
    border-color: rgba(150, 27, 27, 0.35);
    box-shadow: 0 6px 20px rgba(150, 27, 27, 0.06);
}

.step-num-badge {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    background-color: var(--primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(150, 27, 27, 0.2);
}

.step-content h4 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--foreground);
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.45;
}

@media (max-width: 991px) {
    .autocad-grid-block {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 30px;
    }
}

.facilities-badge {
    background-color: var(--primary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 4px;
    flex-shrink: 0;
}

.facilities-info h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--foreground);
}

.facilities-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.facilities-icons-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.facility-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-white);
}

.facility-pill svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.projects-section {
    background-color: var(--bg-darker); /* Alternating sand background color */
    padding: 0;
    position: relative;
    z-index: 2;
    overflow: hidden;
}



.projects-section .section-container {
    position: relative;
    z-index: 2;
    padding-top: 50px;
    padding-bottom: 100px;
}

/* Filter controls */
.filter-controls {
    display: inline-flex;
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(216, 218, 221, 0.4);
    padding: 6px;
    border-radius: 100px;
    gap: 6px;
    margin-bottom: 48px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
}

.filter-btn {
    background-color: transparent;
    border: none;
    color: var(--muted-foreground);
    padding: 10px 24px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-btn:hover {
    color: var(--primary);
    background-color: rgba(139, 30, 45, 0.05);
}

.filter-btn.active {
    background-color: var(--primary);
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(139, 30, 45, 0.2);
}

/* Project grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 60px;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(216, 218, 221, 0.4);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.005);
}

.project-card:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.95);
    border-color: rgba(139, 30, 45, 0.2);
    box-shadow: 0 24px 48px rgba(139, 30, 45, 0.08);
}

.project-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(216, 218, 221, 0.3);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    filter: brightness(0.96) contrast(1.02);
    display: block;
}

.project-card:hover .project-img {
    transform: scale(1.06);
    filter: brightness(1.02) contrast(1.05);
}

.ongoing-placeholder {
    background: linear-gradient(135deg, var(--bg-darker) 0%, rgba(139, 30, 45, 0.04) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ongoing-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--primary);
}

.ongoing-icon {
    width: 48px;
    height: 48px;
    stroke-width: 1.5px;
    opacity: 0.85;
    animation: pulse-slow 3s infinite ease-in-out;
}

.ongoing-text {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

.project-img-placeholder {
    height: 200px;
    background-color: rgba(255, 255, 255, 0.01);
    background-image: 
        linear-gradient(rgba(139, 30, 45, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 30, 45, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center;
    border-bottom: 1px solid rgba(216, 218, 221, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
}

.project-card:hover .project-img-placeholder {
    background-color: rgba(139, 30, 45, 0.02);
}

.project-img-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--accent);
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.project-card:hover .project-img-placeholder svg {
    transform: scale(1.05);
    opacity: 1;
}

.project-img-placeholder span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--foreground);
}

.project-details {
    padding: 28px 24px;
}

.project-tag {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    background-color: rgba(139, 30, 45, 0.06);
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 12px;
    transition: var(--transition-smooth);
}

.project-card:hover .project-tag {
    background-color: rgba(139, 30, 45, 0.12);
}

.project-details h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 12px;
    line-height: 1.35;
    transition: color var(--transition-smooth);
}

.project-card:hover .project-details h3 {
    color: var(--primary);
}

.project-location {
    font-size: 0.85rem;
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-location svg, .project-location i {
    width: 14px;
    height: 14px;
    color: var(--primary);
    opacity: 0.85;
}

/* base rule automatically handles dark mode via var(--background) */
.dark .filter-controls {
    background-color: rgba(34, 35, 38, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.dark .filter-btn:hover {
    color: var(--primary);
    background-color: rgba(255, 255, 255, 0.03);
}

.dark .filter-btn.active {
    background-color: var(--primary);
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(150, 27, 27, 0.35);
}

.dark .project-card {
    background: rgba(34, 35, 38, 0.55);
    border-color: rgba(255, 255, 255, 0.04);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dark .project-card:hover {
    background: rgba(30, 32, 40, 0.95);
    border-color: rgba(150, 27, 27, 0.35);
    box-shadow: 0 24px 48px rgba(150, 27, 27, 0.2);
}

.dark .project-img-placeholder span {
    color: #ffffff;
}

/* Client list (marquee infinite scroll) */
.clients-container {
    border-top: 1px solid var(--border-color);
    padding-top: 60px;
    margin-top: 60px;
    text-align: center;
}

.clients-container h3 {
    font-size: 1.25rem;
    margin-bottom: 32px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: flex;
    gap: 40px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    gap: 40px;
    animation: scroll-left 30s linear infinite;
}

.marquee-content span {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: 10px 24px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-fast);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dark .marquee-content span {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}

.marquee:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-content span:hover {
    background-color: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(150, 27, 27, 0.25);
}


@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Consultants list styles */
.consultants-block {
    margin-top: 60px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 40px;
}

.consultants-block h3 {
    font-size: 1.15rem;
    margin-bottom: 24px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.consultants-list {
    display: flex;
    gap: 16px 28px;
    justify-content: center;
    flex-wrap: wrap;
}

.consultants-list span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--foreground);
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: 10px 22px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dark .consultants-list span {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}

.consultants-list span:hover {
    background-color: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(150, 27, 27, 0.25);
}

/* Safety Section */
.safety-section {
    background-color: var(--bg-darker);
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.safety-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-bright);
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 1px;
    padding: 10px 24px;
    border-radius: 50px;
    box-shadow: 0 5px 20px var(--primary-glow);
    margin-bottom: 40px;
}

.safety-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
}

.safety-policy {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-white);
    border-left: 3px solid var(--primary-bright);
    padding-left: 20px;
    margin-bottom: 40px;
}

.safety-programs {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.program-item h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--accent);
}

.program-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.safety-ppe-column h3 {
    font-size: 1.35rem;
    margin-bottom: 24px;
}

.ppe-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.ppe-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px 20px;
    text-align: center;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.ppe-card:hover, .ppe-card.active {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(150, 27, 27, 0.2);
}

.ppe-card svg {
    width: 32px;
    height: 32px;
    color: var(--accent);
    margin-bottom: 12px;
    transition: var(--transition-smooth);
}

.ppe-card:hover svg, .ppe-card.active svg {
    color: #ffffff;
    transform: scale(1.1);
}

.ppe-card h5 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--text-white);
    transition: var(--transition-smooth);
}

.ppe-card:hover h5, .ppe-card.active h5 {
    color: #ffffff !important;
}

.ppe-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.ppe-card:hover p, .ppe-card.active p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Pulse Glow custom utility for safety belt card */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 var(--primary-glow-strong); }
    70% { box-shadow: 0 0 0 10px rgba(128, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(128, 0, 0, 0); }
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
    border-color: var(--border-hover) !important;
}

.safety-box-alert {
    background-color: rgba(139, 26, 26, 0.08);
    border: 1px solid rgba(139, 26, 26, 0.25);
    border-radius: var(--border-radius-md);
    padding: 24px;
    display: flex;
    gap: 16px;
}

.safety-scaffolding-image-card {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-top: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.safety-scaffolding-image-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

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

.scaffolding-caption {
    background-color: var(--bg-card);
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.alert-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.alert-icon svg {
    width: 24px;
    height: 24px;
}

.safety-box-alert h5 {
    font-size: 1.05rem;
    color: var(--text-white);
    margin-bottom: 6px;
}

.safety-box-alert p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact & Footer Section */
.contact-section {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
    align-items: flex-start;
}

.contact-info h2 {
    font-size: 2.25rem;
    margin-bottom: 16px;
    line-height: 1.25;
}

.contact-info p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-item svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
    background-color: rgba(139, 26, 26, 0.1);
    padding: 12px;
    box-sizing: content-box;
    border-radius: 50%;
}

.info-item h5 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.info-item p {
    font-size: 0.95rem;
    color: var(--text-grey);
    margin-bottom: 4px;
}

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

/* Contact Form */
.contact-form-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
}

.form-group input, .form-group textarea {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 14px 18px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-bright);
    box-shadow: 0 0 10px var(--primary-glow);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-message {
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 10px;
    display: none;
}

.form-message.success {
    color: #4ade80;
    display: block;
}

.form-message.error {
    color: #ef4444;
    display: block;
}

/* Footer styles */
.footer {
    background-color: #1F1F1F;
    color: #F8F6F2;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 60px 0;
}

.footer .brand-title {
    color: #ffffff !important;
}

.footer .brand-subtitle {
    color: #6B6B6B !important;
}

.footer .copyright {
    color: #6B6B6B !important;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* -------------------------------------------------------------
   Responsive Breakpoints
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
    .about-grid, .services-grid, .safety-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .pillars-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .manpower-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block !important;
    }
    .theme-toggle {
        display: flex !important;
    }
    
    .nav-menu {
        display: none;
    }
    
    .pillars-container {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .section-container {
        padding: 60px 20px;
    }
    
    .hero-section {
        height: auto !important;
        min-height: auto !important;
        padding-top: 130px !important;
        padding-bottom: 60px !important;
    }
    
    .hero-dashboard-panel {
        margin: 30px auto 0 auto !important; /* reset overlapping margin on mobile screens */
    }

    .facilities-block {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }
    
    .facilities-image-container {
        max-width: 100%;
    }
    
    .details-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .table-wrapper {
        border: none;
    }
    
    .details-table td {
        padding: 12px 10px;
    }
    
    .details-table td:first-child {
        width: 40%;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .manpower-grid {
        grid-template-columns: 1fr;
    }
    
    .ppe-grid {
        grid-template-columns: 1fr;
    }
    
    .facilities-block {
        flex-direction: column;
        gap: 16px;
    }
    
    .stats-card {
        padding: 20px;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
}

/* Theme Toggle Button Styling */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    background: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    color: #000000;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.dark .theme-toggle {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
}

.theme-toggle:hover {
    background-color: rgba(150, 27, 27, 0.05);
    border-color: var(--primary);
    color: var(--primary);
}

.dark .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-bright);
    color: var(--primary-bright);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}



/* Brand Header Typography Hierarchy */
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    color: #000000;
    transition: var(--transition-fast);
}

.dark .brand-title {
    color: #ffffff;
}

.brand-subtitle {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 1.2px;
    color: var(--primary);
    text-transform: uppercase;
    margin-top: 1px;
}

.navbar.scrolled .brand-title {
    font-size: 1.15rem;
}

.navbar.scrolled .brand-subtitle {
    font-size: 0.6rem;
    letter-spacing: 1px;
}

/* Company Profile Section Card Styles */
.company-profile-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.company-profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.profile-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.profile-item:nth-last-child(-n+2) {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-item.full-width {
    grid-column: span 2;
}

.profile-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
}

.profile-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-white);
}

.profile-value a:hover {
    color: var(--primary);
}

.details-section {
    background-color: var(--bg-dark);
}

/* In-House Fabrication Workshop Section */
.workshop-section {
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}

.workshop-section .section-container {
    padding-top: 80px;
    padding-bottom: 50px;
}

.workshop-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.workshop-image-block {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.workshop-img-wrapper {
    width: 100%;
    height: 480px;
    overflow: hidden;
}

.workshop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.workshop-image-block:hover .workshop-img {
    transform: scale(1.04);
}

.workshop-img-tag {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background-color: rgba(13, 14, 21, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 8px 18px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.workshop-info-block h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 20px;
    line-height: 1.3;
}

.workshop-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

.workshop-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.w-feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.w-feature-icon {
    width: 44px;
    height: 44px;
    background-color: var(--primary-glow);
    border: 1px solid rgba(150, 27, 27, 0.15);
    border-radius: 8px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.w-feature-item:hover .w-feature-icon {
    background-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(150, 27, 27, 0.2);
}

.w-feature-item h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-white);
    margin-bottom: 6px;
}

.w-feature-item p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 992px) {
    .workshop-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .workshop-img-wrapper {
        height: 350px;
    }
    .manpower-header {
        margin-bottom: 30px;
    }
}

/* Ongoing Projects Section */
.ongoing-projects-section {
    background-color: var(--background); /* Alternating cream background color */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}

.ongoing-projects-section .section-container {
    padding-top: 80px;
    padding-bottom: 80px;
}

.ongoing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.ongoing-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.ongoing-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.ongoing-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ongoing-icon-wrapper {
    width: 42px;
    height: 42px;
    background-color: var(--primary-glow);
    border: 1px solid rgba(150, 27, 27, 0.1);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ongoing-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: #b91c1c;
    background-color: #fef2f2;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid #fee2e2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dark .ongoing-badge {
    color: #fca5a5;
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #ef4444;
    border-radius: 50%;
    display: inline-block;
    animation: dot-pulse 1.8s infinite ease-in-out;
}

@keyframes dot-pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

.ongoing-card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 8px;
    line-height: 1.3;
}

.ongoing-scope {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: auto;
    padding-bottom: 20px;
}

.ongoing-meta {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: auto; /* Push content to the bottom for perfect horizontal alignment */
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.ongoing-meta svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

@media (max-width: 1200px) {
    .ongoing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .ongoing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ongoing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .profile-item.full-width {
        grid-column: span 1;
    }
    .profile-item {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 16px;
    }
    .profile-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* ==========================================================================
   PREMIUM MICRO-INTERACTIONS & CINEMATIC ANIMATIONS (Requirement 1-16)
   ========================================================================== */

/* Cinematic Fade-In on Page Load (Requirement 1) */
@keyframes cinematicFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes navbarFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.animate-cinematic {
    opacity: 0;
    animation: cinematicFadeIn 850ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.navbar.animate-cinematic {
    opacity: 0;
    animation: navbarFadeIn 850ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slowScale {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('assets/hero%20section.png');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    z-index: 1;
    transform: scale(1);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Traveling Glass Reflection Glare (Requirement 3) */
.hero-bg-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to bottom, transparent 90%, var(--background) 100%),
        linear-gradient(to right, rgba(244, 243, 241, 0.65) 15%, rgba(244, 243, 241, 0.15) 50%, rgba(244, 243, 241, 0) 80%);
    z-index: 2;
    transition: background var(--transition-smooth);
}

.dark .hero-bg-container::before {
    background-image: 
        linear-gradient(to bottom, transparent 90%, var(--background) 100%),
        linear-gradient(to right, rgba(24, 25, 28, 0.8) 15%, rgba(24, 25, 28, 0.25) 50%, rgba(24, 25, 28, 0) 80%);
}

.hero-bg-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    pointer-events: none;
    z-index: 3;
    animation: glassGlare 14s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes glassGlare {
    0% { left: -150%; }
    25%, 100% { left: 150%; }
}

/* Breathing Atmospheric Glow (Requirement 10) */
@keyframes breathingLight {
    0% { opacity: 0.2; }
    50% { opacity: 0.5; }
    100% { opacity: 0.2; }
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 45% 40%, rgba(255, 255, 255, 0.04), transparent 60%);
    pointer-events: none;
    z-index: 2;
    animation: breathingLight 16s ease-in-out infinite;
}

/* Elegant Underline Navigation Hover (Requirement 4) */
.nav-menu .nav-link {
    position: relative;
}

.nav-menu .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-menu .nav-link:hover::after,
.nav-menu .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Premium Primary CTA Button Hover Lift (Requirement 5) */
.btn-primary {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(150, 27, 27, 0.22);
    background-color: var(--primary-bright) !important;
}

.btn-primary .btn-icon {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-primary:hover .btn-icon {
    transform: translateX(3px);
}

/* Service Card Hover (Requirement 7 & 13) */
.service-card {
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), background-color 300ms cubic-bezier(0.16, 1, 0.3, 1), border-color 300ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.service-card:hover {
    transform: scale(1.02);
    background-color: #faf7f6 !important;
    border-color: rgba(150, 27, 27, 0.15);
    box-shadow: 0 8px 24px rgba(150, 27, 27, 0.03);
}

.dark .service-card:hover {
    background-color: #1d1e26 !important;
}

.service-card:hover .service-icon svg,
.service-card:hover .service-icon-wrapper svg {
    transform: scale(1.08) rotate(2deg);
    color: var(--primary);
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), color 300ms ease;
}

.service-card:hover h4 {
    color: var(--primary);
    transition: color 300ms ease;
}

/* Statistics Number Card Hover (Requirement 12) */
.db-stat-item {
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), border-color 300ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.db-stat-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(150, 27, 27, 0.05);
}

.db-stat-item:hover .db-stat-icon-wrapper svg {
    color: var(--primary);
    transition: color 300ms ease;
}

/* Scroll Section Animation Reveal (Requirement 9) */
.reveal-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Performance Exclusions (Requirement 16) */
@media (max-width: 992px) {
    .hero-bg-image {
        animation: none !important;
        transform: scale(1.02) !important;
    }
    .hero-bg-container::after {
        display: none !important;
    }
    .hero-section::before {
        display: none !important;
    }
    .reveal-section {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: none !important;
    }
    .animate-cinematic {
        opacity: 1 !important;
        transform: translateY(0) !important;
        animation: none !important;
    }
    .btn-primary:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    .btn-primary:hover .btn-icon {
        transform: none !important;
    }
    .service-card:hover {
        transform: none !important;
    }
    .service-card:hover .service-icon svg {
        transform: none !important;
    }
    .db-stat-item:hover {
        transform: none !important;
    }

    /* Mobile Navbar Redesign & Alignment Fixes */
    .navbar {
        width: 94% !important;
        height: 64px !important;
        padding: 0 16px !important;
        top: 15px !important;
        border-radius: 20px !important;
        left: 3% !important;
        right: 3% !important;
        transform: none !important;
        animation: none !important;
        opacity: 1 !important;
    }
    .navbar.scrolled {
        height: 58px !important;
        top: 8px !important;
        left: 3% !important;
        right: 3% !important;
        transform: none !important;
    }
    .brand-logo {
        width: 32px !important;
        height: 32px !important;
    }
    .navbar.scrolled .brand-logo {
        width: 28px !important;
        height: 28px !important;
    }
    .brand-title {
        font-size: 1.05rem !important;
    }
    .brand-subtitle {
        display: block !important;
        font-size: 0.68rem !important;
        line-height: 1.2 !important;
        margin-top: 1px !important;
    }
    .nav-brand {
        flex-shrink: 0 !important;
    }
    .nav-btn-quote {
        display: none !important;
    }
    .nav-controls {
        margin-left: auto !important;
        margin-right: 8px !important;
        gap: 0 !important;
        flex-shrink: 0 !important;
    }
    .theme-toggle {
        padding: 6px !important;
        flex-shrink: 0 !important;
    }
    .menu-toggle {
        margin-left: 4px !important;
        flex-shrink: 0 !important;
    }
    .hero-title {
        font-size: 2.1rem !important;
        line-height: 1.1 !important;
    }
    .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
    .hero-content {
        padding: 0 16px !important;
    }
    .footer-content {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    .footer-brand {
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    /* Make brand title even smaller on very narrow viewports */
    .brand-title {
        font-size: 0.95rem !important;
    }
    .brand-subtitle {
        font-size: 0.62rem !important;
    }
    .hero-title {
        font-size: 1.8rem !important;
    }
}

/* Premium Image Lightbox Modal */
.image-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background-color: rgba(13, 14, 18, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #ffffff;
    font-size: 40px;
    font-weight: 200;
    cursor: pointer;
    transition: color 0.25s ease, transform 0.25s ease;
    z-index: 100000;
}

.lightbox-close:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-img {
    max-width: 100%;
    max-height: 72vh;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    object-fit: contain;
}

.lightbox-caption {
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}
