/* ==========================================================================
   Gidrokomponent RVD Landing Page Stylesheet
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
    --bg-main: #ffffff;
    --bg-gradient: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
    --bg-darker: #f1f3f8;
    --bg-card: rgba(255, 255, 255, 0.85);
    --border-color: rgba(0, 0, 0, 0.08);
    
    --color-primary: #c8860a;
    --color-primary-rgb: 200, 134, 10;
    --color-accent: #1a7ac7;
    --color-accent-rgb: 26, 122, 199;
    --color-danger: #dc3545;
    
    --text-main: #1a1e2e;
    --text-muted: #5f6b82;
    
    --font-sans: 'Montserrat', 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    --container-width: 1200px;
    --header-height: 80px;
    
    --glow-primary: 0 4px 20px rgba(200, 134, 10, 0.12);
    --glow-accent: 0 4px 20px rgba(26, 122, 199, 0.12);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

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

body {
    overflow-x: hidden;
    line-height: 1.7;
    background-color: var(--bg-main);
}

/* Keyframe Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 2px 12px rgba(200, 134, 10, 0.15); }
    50% { box-shadow: 0 4px 24px rgba(200, 134, 10, 0.3); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

.text-gradient {
    background: linear-gradient(135deg, #c8860a, #1a7ac7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: #1f2937;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

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

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #d4950e, #b8780a);
    color: #fff;
    box-shadow: 0 4px 16px rgba(200, 134, 10, 0.3);
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}
.btn-primary:hover::before {
    left: 100%;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(200, 134, 10, 0.4);
    background: linear-gradient(135deg, #e0a020, #c8860a);
}
.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}
.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1.5px solid var(--border-color);
}
.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(200, 134, 10, 0.04);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-primary {
    background: rgba(200, 134, 10, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(200, 134, 10, 0.25);
}
.badge-accent {
    background: rgba(26, 122, 199, 0.1);
    color: var(--color-accent);
    border: 1px solid rgba(26, 122, 199, 0.25);
}
.badge-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--color-danger);
    border: 1px solid rgba(220, 53, 69, 0.25);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}
.logo-link:hover {
    transform: translateY(-1.5px);
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}
.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-smooth);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

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

/* Language Dropdown Selector */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropdown-trigger {
    background: rgba(245, 245, 248, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.lang-dropdown-trigger:hover, .lang-dropdown.active .lang-dropdown-trigger {
    background: rgba(200, 134, 10, 0.06);
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(200, 134, 10, 0.15);
}

.lang-dropdown-trigger .arrow-icon {
    font-size: 0.6rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.lang-dropdown.active .lang-dropdown-trigger .arrow-icon {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 140px;
    padding: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
}

.lang-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 18px;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.98);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    transform: rotate(45deg);
}

.lang-dropdown.active .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.lang-dropdown-item:hover {
    background: rgba(200, 134, 10, 0.06);
    color: var(--color-primary);
    padding-left: 18px;
}

.lang-dropdown-item.active {
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(200, 134, 10, 0.25);
}

.lang-flag {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}
.lang-flag.ru {
    background: linear-gradient(to bottom, #ffffff 33.3%, #0039a6 33.3%, #0039a6 66.6%, #d52b1e 66.6%);
}
.lang-flag.uz {
    background: linear-gradient(to bottom, #00a3e0 30%, #da291c 30%, #da291c 33%, #ffffff 33%, #ffffff 67%, #da291c 67%, #da291c 70%, #009a44 70%);
}

.phone-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}
.phone-link:hover {
    color: var(--color-primary);
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.burger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-smooth);
}

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

.section-header {
    max-width: 650px;
    margin: 0 auto 64px auto;
}
.section-badge, .section-subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 16px;
    text-shadow: 0 0 20px rgba(255, 183, 0, 0.3);
}
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}
.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: 16px;
    line-height: 1.8;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Hero Section */
.hero-section {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-gradient);
}

.hero-bg-glow {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.08) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(200, 134, 10, 0.08);
    border: 1px solid rgba(200, 134, 10, 0.2);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color-primary);
    margin-bottom: 28px;
    animation: pulse-glow 3s ease-in-out infinite;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-actions-group {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* 3D Visualizer Container */
.hero-visualizer-container {
    width: 100%;
}

.visualizer-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.visualizer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0,0,0,0.02);
}

.dot-group {
    display: flex;
    gap: 8px;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.visualizer-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.canvas-3d {
    width: 100%;
    height: 380px;
    position: relative;
    background: radial-gradient(circle, rgba(240, 242, 248, 0.6) 0%, rgba(230, 233, 240, 0.95) 100%);
}

.canvas-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f6fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(200, 134, 10, 0.15);
    border-radius: 50%;
    border-top-color: var(--color-primary);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.visualizer-controls {
    display: flex;
    border-top: 1px solid var(--border-color);
}

.ctrl-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}
.ctrl-btn:not(:last-child) {
    border-right: 1px solid var(--border-color);
}
.ctrl-btn:hover {
    color: var(--color-primary);
    background: rgba(200, 134, 10, 0.04);
}
.ctrl-btn.active {
    color: var(--color-primary);
    background: rgba(200, 134, 10, 0.06);
}

/* Layer Section */
.layers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.layers-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.layer-card {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.layer-card:hover, .layer-card.active {
    border-color: var(--color-primary);
    box-shadow: 0 8px 30px rgba(200, 134, 10, 0.1);
    transform: translateX(8px);
    background: rgba(200, 134, 10, 0.03);
}

.layer-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.2;
}

.layer-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    transition: var(--transition-smooth);
}
.layer-card:hover h3, .layer-card.active h3 {
    color: var(--color-primary);
}

.layer-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Interactive Diagram & Gauge widget */
.layers-visual-placeholder {
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.interactive-diagram {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.diagram-info-panel {
    background: rgba(0,0,0,0.02);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
}
.diagram-info-panel h4 {
    margin-bottom: 8px;
}
.diagram-info-panel p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pressure-gauge-widget {
    margin: 40px auto 0 auto;
    text-align: center;
}

.gauge-dial {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 6px solid #e2e8f0;
    border-top-color: var(--color-primary);
    border-right-color: var(--color-accent);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
}

.gauge-needle {
    position: absolute;
    width: 4px;
    height: 60px;
    background: var(--color-danger);
    bottom: 50%;
    left: calc(50% - 2px);
    transform-origin: bottom center;
    transform: rotate(-90deg);
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 4px;
}

.gauge-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    z-index: 2;
    margin-top: 40px;
}

.gauge-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 12px;
}

/* Catalog Section */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.catalog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}
.catalog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(200, 134, 10, 0.4);
    box-shadow: 0 12px 40px rgba(200, 134, 10, 0.1);
}
.catalog-card.featured {
    border-color: rgba(200, 134, 10, 0.2);
    background: linear-gradient(180deg, rgba(200, 134, 10, 0.04) 0%, rgba(255, 255, 255, 0.9) 100%);
    position: relative;
}
.catalog-card.featured::before {
    content: 'Tavsiya etiladi';
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-accent);
}

.catalog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}
.catalog-card-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
}

.catalog-specs {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    margin-bottom: 24px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.spec-row span {
    color: var(--text-muted);
}

.catalog-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
    flex-grow: 1;
}

/* Calculator Section */
.calc-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 48px;
}

.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background: rgba(245, 246, 250, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: var(--font-sans);
    color: var(--text-main);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}
.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 12px rgba(200, 134, 10, 0.12);
    background: var(--bg-main);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 48px;
}

.range-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.range-slider {
    flex-grow: 1;
    appearance: none;
    height: 6px;
    background: #1e293b;
    border-radius: 3px;
}
.range-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(200, 134, 10, 0.35);
    transition: var(--transition-smooth);
}
.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.range-val {
    min-width: 80px;
    text-align: right;
    font-weight: 700;
    color: var(--color-primary);
}

/* Calc Results Panel */
.calc-results-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-box {
    width: 100%;
    background: rgba(0,0,0,0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
}

.result-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.result-stats {
    margin-bottom: 32px;
}

.res-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}
.res-row:not(:last-child) {
    border-bottom: 1px dashed rgba(255,255,255,0.05);
}
.res-row span {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.res-row strong {
    font-size: 1.05rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 64px;
}

.contact-desc {
    color: var(--text-muted);
    margin-top: 16px;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

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

.detail-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
}

.contact-detail-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.contact-detail-item p, .contact-detail-item a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}
.contact-detail-item a:hover {
    color: var(--color-primary);
}

.contact-form-block {
    background: rgba(0,0,0,0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
}

.form-row {
    display: flex;
    gap: 20px;
}
.form-row .col {
    flex: 1;
}

.form-status-message {
    margin-top: 16px;
    font-size: 0.9rem;
    text-align: center;
    min-height: 24px;
    display: none;
}
.form-status-message.success {
    color: #27c93f;
    display: block;
}
.form-status-message.error {
    color: var(--color-danger);
    display: block;
}

/* Footer Section */
.footer {
    background: linear-gradient(180deg, #1a1e2e 0%, #12151f 100%);
    border-top: none;
    padding: 80px 0 0 0;
    position: relative;
    color: #e2e8f0;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.footer .section-badge, .footer .section-subtitle {
    color: #d4950e;
}

.footer h4 {
    color: #f1f5f9;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-brand p {
    color: #8b9ab5;
    margin-top: 20px;
    max-width: 320px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links h4, .footer-seo-info h4 {
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1.1rem;
}
.footer-links a {
    color: #8b9ab5;
    text-decoration: none;
    transition: var(--transition-smooth);
}
.footer-links a:hover {
    color: #d4950e;
    transform: translateX(4px);
}

.footer-seo-info p {
    color: #8b9ab5;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
}
.footer-bottom p {
    color: #8b9ab5;
    font-size: 0.85rem;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions-group {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .layers-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .layers-visual-placeholder {
        min-height: auto;
    }
    .catalog-grid {
        grid-template-columns: 1fr 1fr;
    }
    .catalog-card.featured {
        grid-column: span 2;
    }
    .calc-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    section {
        padding: 64px 0;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-main);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: var(--transition-smooth);
        z-index: 999;
    }
    .nav-menu.active {
        left: 0;
    }
    .burger-menu {
        display: flex;
    }
    .burger-menu.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    .catalog-card.featured {
        grid-column: span 1;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Programmatic Canvas Logo Custom Styles */
.logo-img {
    display: block;
    height: 48px;
    width: auto;
    border-radius: 2px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

/* Section Background Watermarks */
.layers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('metal_hose_bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}

.catalog-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('fittings_bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('metal_hose_bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}

/* Ensure content stays on top of background image watermark */
.layers-section > *, .catalog-section > *, .contact-section > *, .specs-section > * {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Specs Data Table Section
   ========================================================================== */
.specs-section {
    padding: 60px 0;
    position: relative;
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(13, 19, 31, 0.95) 100%);
}

.specs-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: rgba(14, 21, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-top: 30px;
    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(0, 0, 0, 0.2);
}

.specs-table-wrapper::-webkit-scrollbar {
    height: 8px;
}
.specs-table-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 12px 12px;
}
.specs-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 8px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.specs-table thead {
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 2px solid var(--accent-color);
}

.specs-table th {
    padding: 16px 12px;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.specs-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.3s ease;
}

.specs-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.specs-table tbody tr:last-child td {
    border-bottom: none;
}

.specs-table td.highlight-dn {
    font-weight: 700;
    color: #fff;
    background: rgba(230, 57, 70, 0.05);
}

/* ==========================================================================
   UI Enhancements (Dark Mode, Animations, Progress Bar, Scroll Top)
   ========================================================================== */

/* 1. Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0,0,0,0.05);
    z-index: 9999;
}
.scroll-progress-bar {
    height: 100%;
    background: var(--color-primary);
    width: 0%;
    transition: width 0.1s ease;
}

/* 2. Dark Mode Variables & Styles */
[data-theme="dark"] {
    --bg-main: #0d1323;
    --bg-gradient: linear-gradient(180deg, #0d1323 0%, #151d30 100%);
    --bg-darker: #0a0e1a;
    --bg-card: #1a233a;
    --border-color: rgba(255, 255, 255, 0.1);
    
    --text-main: #ffffff;
    --text-muted: #a0aec0;
    
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] body {
    background-color: var(--bg-main);
}
[data-theme="dark"] .header,
[data-theme="dark"] .header.scrolled {
    background: rgba(13, 19, 35, 0.9);
}
[data-theme="dark"] .card, [data-theme="dark"] .feature-card, [data-theme="dark"] .catalog-card {
    background: var(--bg-card);
    box-shadow: var(--card-shadow);
}
[data-theme="dark"] .specs-table th {
    background: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .specs-table td {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .footer {
    background: #0a0e1a;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Theme Toggle Switch */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-right: 15px;
}
.theme-switch {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 50px;
}
.theme-switch input {
    display: none;
}
.theme-slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
}
.theme-slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 16px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 16px;
    border-radius: 50%;
}
input:checked + .theme-slider {
    background-color: var(--color-primary);
}
input:checked + .theme-slider:before {
    transform: translateX(26px);
}

/* Hover effect for specs images */
.specs-img-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.specs-img-hover:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2) !important;
}

[data-theme="dark"] .specs-img-hover {
    background-color: #ffffff;
    padding: 15px;
}

/* 3. Scroll To Top Button */
.scroll-to-top {
    position: fixed;
    bottom: -60px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(200, 134, 10, 0.4);
    transition: var(--transition-smooth);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}
.scroll-to-top.visible {
    bottom: 30px;
    opacity: 1;
    visibility: visible;
}
.scroll-to-top:hover {
    transform: translateY(-5px);
    background: #e5990b;
}

/* 4. Scroll Animations (Fade In Up) */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* 5. Image Hover Effects (Specs) */
.specs-img-hover {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.specs-img-hover:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important;
}
