/* 
   INFAB Semiconductor - Premium Design System Stylesheet
   Color Palette: Deep Space Navy, Electric Cyan, InFAB Brand Orange, Glassmorphic Textures
*/

/* ==========================================================================
   1. Design System Tokens & Base Setup
   ========================================================================== */

:root {
    /* Colors */
    --bg-primary: #05080f;
    --bg-secondary: #0c101b;
    --bg-glass: rgba(12, 16, 27, 0.9);
    --bg-glass-hover: rgba(16, 22, 38, 0.95);
    
    --accent-primary: #00d4ff;     /* Electric Cyan */
    --accent-primary-rgb: 0, 212, 255;
    --accent-warm: #ff6b35;        /* Brand Orange */
    --accent-warm-rgb: 255, 107, 53;
    
    --text-primary: #f0f4ff;       /* Crisp White-Blue */
    --text-secondary: #8a99ad;     /* Muted Slate Gray */
    --text-muted: #576575;         /* Dark Slate */
    
    --border-subtle: rgba(0, 212, 255, 0.1);
    --border-glow: rgba(0, 212, 255, 0.35);
    --border-warm: rgba(255, 107, 53, 0.2);
    
    --shadow-subtle: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-cyan-glow: 0 0 20px rgba(0, 212, 255, 0.25);
    
    --radial-glow: rgba(13, 22, 43, 0.3);
    --bg-footer: #020408;
    
    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Layout */
    --container-max-width: 1240px;
    --header-height: 80px;
    --header-height-scrolled: 70px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-theme {
    --bg-primary: #f5f8fc;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.92);
    --bg-glass-hover: rgba(240, 245, 255, 0.96);
    
    --accent-primary: #007bbd;      /* deeper blue for readability */
    --accent-primary-rgb: 0, 123, 189;
    --accent-warm: #e0531b;         /* brand orange adjusted for white background */
    --accent-warm-rgb: 224, 83, 27;
    
    --text-primary: #0b111e;
    --text-secondary: #4b5a70;
    --text-muted: #7d8ea6;
    
    --border-subtle: rgba(0, 123, 189, 0.15);
    --border-glow: rgba(0, 123, 189, 0.35);
    --border-warm: rgba(224, 83, 27, 0.2);
    
    --shadow-subtle: 0 8px 32px 0 rgba(11, 17, 30, 0.05);
    --shadow-cyan-glow: 0 4px 20px rgba(0, 123, 189, 0.12);
    
    --radial-glow: rgba(0, 123, 189, 0.04);
    --bg-footer: #ebf0f6;
}

/* Reset & Defaults */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

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

/* Typography Presets */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.25;
}

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

ul {
    list-style: none;
}

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

/* Helper Utilities */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

/* Grid Layouts */
.grid {
    display: grid;
    gap: 32px;
}

.grid-2-col {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3-col {
    grid-template-columns: repeat(3, 1fr);
}

/* Common Text Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #0088ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-warm {
    background: linear-gradient(135deg, var(--accent-warm) 0%, #ff9d00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-normal);
}

.glass-card:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-cyan-glow);
}

/* Sections Base */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
}

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

.section-subtitle {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-primary);
    display: inline-block;
    margin-bottom: 12px;
    position: relative;
    padding-left: 14px;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-primary);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* ==========================================================================
   2. Button System
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #03060c;
}

.btn-primary:hover {
    background-color: #ffffff;
    color: #03060c;
    transform: translateY(-2px);
}

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

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

.btn-glow:hover {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-text {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--accent-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    margin-top: 15px;
}

.btn-text i {
    transition: var(--transition-fast);
}

.btn-text:hover {
    color: #ffffff;
}

.btn-text:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   3. Sticky Navbar
   ========================================================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
}

.main-header.scrolled {
    height: var(--header-height-scrolled);
    background: var(--bg-primary); /* clear of frost, solid color matching theme */
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Ensure contrast when navbar is transparent at the top, since hero background is always dark */
.main-header:not(.scrolled) .nav-item {
    color: rgba(255, 255, 255, 0.75) !important;
}

.main-header:not(.scrolled) .nav-item:hover,
.main-header:not(.scrolled) .nav-item.active {
    color: #ffffff !important;
}

.main-header:not(.scrolled) .theme-toggle-btn {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.main-header:not(.scrolled) .theme-toggle-btn:hover {
    color: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
    background: rgba(var(--accent-primary-rgb), 0.1) !important;
}

.main-header:not(.scrolled) .mobile-menu-toggle {
    color: #ffffff !important;
}

/* Theme Toggle Button Style */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.theme-toggle-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(var(--accent-primary-rgb), 0.06);
    box-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.2);
}

.header-container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-list > li {
    position: relative;
}

.nav-item {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-primary);
    box-shadow: 0 0 8px var(--accent-primary);
}

/* Dropdown styling */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 220px;
    box-shadow: var(--shadow-subtle);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.dropdown-menu a:hover {
    color: var(--text-primary);
    background-color: rgba(0, 212, 255, 0.08);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Ensure a hover bridge so dropdown doesn't close when moving cursor */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-actions .btn {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

/* ==========================================================================
   4. Hero Section & Backgrounds
   ========================================================================== */

.hero-section {
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(5, 8, 15, 0.92) 0%, rgba(5, 8, 15, 0.8) 40%, rgba(5, 8, 15, 0.4) 100%);
    z-index: 2;
}

.dot-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(0, 212, 255, 0.08) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    z-index: 1;
    animation: gridPulse 8s infinite alternate ease-in-out;
}

@keyframes gridPulse {
    0% { opacity: 0.4; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.03); }
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 0;
}

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

.hero-content-wrapper {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 3;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s 0.4s ease-out, transform 0.8s 0.4s ease-out;
}

.hero-slide.active .hero-content-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(var(--accent-primary-rgb), 0.1);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
    border-radius: 50px;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-tag i {
    font-size: 1rem;
}

.hero-title {
    font-size: 3.75rem;
    max-width: 750px;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    font-weight: 700;
    color: #ffffff !important; /* always white for contrast against dark hero images */
}

.hero-description {
    color: rgba(255, 255, 255, 0.75) !important; /* always light-gray for contrast against dark hero images */
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
}

/* Hero Controls */
.hero-controls {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6%;
}

.hero-arrow {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.hero-arrow:hover {
    background: var(--accent-primary);
    color: #03060c;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.hero-dots {
    display: flex;
    gap: 12px;
}

.hero-dot {
    width: 24px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.hero-dot.active {
    background: var(--accent-primary);
    width: 40px;
    box-shadow: 0 0 8px var(--accent-primary);
}

/* ==========================================================================
   5. About Section & Pillar Cards
   ========================================================================== */

.about-section {
    background: radial-gradient(circle at 10% 20%, var(--radial-glow) 0%, transparent 50%);
}

.about-info-block .section-title {
    max-width: 450px;
}

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

.about-pillars {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pillar-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.pillar-item i {
    font-size: 24px;
    color: var(--accent-warm);
    background: rgba(var(--accent-warm-rgb), 0.1);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(var(--accent-warm-rgb), 0.15);
}

.pillar-item h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

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

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.stat-card {
    padding: 32px 24px;
    text-align: center;
}

.stat-icon {
    font-size: 32px;
    color: var(--accent-primary);
    margin-bottom: 16px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
}

.stat-plus {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-primary);
    vertical-align: super;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 12px;
}

/* ==========================================================================
   6. Market Solutions / Solution Cards
   ========================================================================== */

.markets-section {
    background: radial-gradient(circle at 90% 80%, var(--radial-glow) 0%, transparent 50%);
}

.market-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.market-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.market-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.market-card:hover .market-image {
    transform: scale(1.08);
}

.market-icon-badge {
    position: absolute;
    bottom: -20px;
    right: 24px;
    width: 50px;
    height: 50px;
    background: var(--bg-primary);
    border: 1px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    z-index: 2;
}

.market-card:hover .market-icon-badge {
    background: var(--accent-primary);
    color: #03060c;
    box-shadow: 0 0 20px var(--accent-primary);
}

.market-content {
    padding: 32px 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.market-content h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.market-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.market-product-list {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.market-product-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.market-product-list li i {
    color: var(--accent-warm);
    font-size: 16px;
}

/* ==========================================================================
   7. Facility Section
   ========================================================================== */

.facility-section {
    background-color: var(--bg-secondary);
}

.facility-gallery {
    position: relative;
    padding-right: 40px;
    padding-bottom: 40px;
}

.gallery-large {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.main-facility {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.gallery-inset {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 48%;
    padding: 8px;
    border-radius: 10px;
}

.sub-facility {
    border-radius: 6px;
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.facility-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(5, 8, 15, 0.85);
    border: 1px solid var(--accent-primary);
    border-radius: 4px;
    padding: 4px 10px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.facility-text-block .section-title {
    max-width: 500px;
}

.facility-points {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.point-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.point-bullet {
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-primary);
}

.point-item span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* ==========================================================================
   8. Scrolling Partner/Customer Marquees
   ========================================================================== */

.partners-section, .customers-section {
    padding: 60px 0;
    background-color: var(--bg-primary);
    overflow: hidden;
}

.partners-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

body.light-theme .marquee-slide img {
    filter: grayscale(1) opacity(0.75);
}

body.light-theme .marquee-slide img:hover {
    filter: grayscale(0) opacity(1);
}

.marquee-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.marquee-wrapper {
    width: 100%;
    display: flex;
    position: relative;
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.marquee-content {
    display: flex;
    gap: 60px;
    padding: 10px 0;
    width: max-content;
}

.marquee-slide {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    width: 160px;
}

.marquee-slide img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(1) brightness(0.7) contrast(1.2);
    opacity: 0.55;
    transition: var(--transition-normal);
}

.marquee-slide img:hover {
    filter: grayscale(0) brightness(1) contrast(1);
    opacity: 1;
}

/* Infinite Scroll Keyframes */
.marquee-forward {
    animation: scrollForward 28s linear infinite;
}

.marquee-reverse {
    animation: scrollReverse 28s linear infinite;
}

@keyframes scrollForward {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 30px)); }
}

@keyframes scrollReverse {
    0% { transform: translateX(calc(-50% - 30px)); }
    100% { transform: translateX(0); }
}

/* ==========================================================================
   9. Contact Form & Section
   ========================================================================== */

.contact-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.contact-details {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.detail-icon {
    font-size: 22px;
    color: var(--accent-primary);
    background: rgba(var(--accent-primary-rgb), 0.08);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-content h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.detail-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.detail-content a:hover {
    color: var(--accent-primary);
}

.contact-form-wrapper {
    padding: 40px;
}

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

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.03);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.15);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%238a99ad' d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80a8,8,0,0,1,11.32-11.32L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-group select option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.form-status {
    font-size: 0.9rem;
    text-align: center;
    margin-top: 10px;
}

.form-status.success {
    color: #4cd964;
}

.form-status.error {
    color: #ff3b30;
}

/* ==========================================================================
   10. Footer Section & WhatsApp Floating Button
   ========================================================================== */

.main-footer {
    background-color: var(--bg-footer);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    align-self: flex-start;
    margin-bottom: 20px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    max-width: 360px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-secondary);
}

.social-links a:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(var(--accent-primary-rgb), 0.05);
    transform: translateY(-3px);
}

.footer-address h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

.address-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 18px;
    line-height: 1.7;
}

.contact-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.contact-text i {
    color: var(--accent-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: var(--text-muted);
}

.footer-bottom-links a:hover {
    color: var(--text-secondary);
}

/* Floating WhatsApp Widget */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    z-index: 999;
    transition: var(--transition-normal);
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.4;
    z-index: -1;
    animation: pulseWhatsapp 2s infinite ease-out;
}

@keyframes pulseWhatsapp {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.4); opacity: 0; }
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: #0d121f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-subtle);
}

.whatsapp-fab:hover .whatsapp-tooltip {
    opacity: 1;
}

/* ==========================================================================
   11. Scroll Animations (Intersection Observer)
   ========================================================================== */

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.scroll-reveal.delay-1 {
    transition-delay: 0.15s;
}

.scroll-reveal.delay-2 {
    transition-delay: 0.3s;
}

/* ==========================================================================
   12. Responsive Media Queries
   ========================================================================== */

/* Tablet (Large Desktop down to Tablet) */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.15rem;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

/* Tablet / Medium Devices */
@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }
    
    .grid-2-col, .grid-3-col {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Navigation */
    .mobile-menu-toggle {
        display: block;
        z-index: 1010;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border-subtle);
        z-index: 1005;
        display: flex;
        padding: 100px 30px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
    
    .nav-item {
        font-size: 1.15rem;
        padding: 6px 0;
    }
    
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        border: none;
        background: transparent;
        padding: 5px 0 5px 15px;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 150px;
    }
    
    .dropdown-toggle i {
        transition: transform 0.3s;
    }
    
    .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }
    
    .header-actions .btn {
        display: none; /* Hide Quote button on mobile header to save space */
    }
    
    /* Hero */
    .hero-title {
        font-size: 2.25rem;
        letter-spacing: -1px;
    }
    
    .hero-description {
        font-size: 1.05rem;
    }
    
    /* Stats */
    .about-stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Facility Inset image overlap */
    .facility-gallery {
        padding-right: 0;
        padding-bottom: 0;
        margin-bottom: 30px;
    }
    
    .gallery-inset {
        position: relative;
        width: 100%;
        margin-top: 16px;
        bottom: auto;
        right: auto;
    }
    
    /* Contact Form Layout */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    /* Footer */
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Mobile Small Devices */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.85rem;
    }
    
    .hero-title {
        font-size: 1.95rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .hero-cta-group .btn {
        width: 100%;
    }
    
    .hero-controls {
        bottom: 30px;
        padding: 0 4%;
    }
    
    .hero-arrow {
        width: 40px;
        height: 40px;
    }
    
    .whatsapp-fab {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}
