/* --- CSS Variables & Design System --- */
:root {
    --bg-primary: #06080c;
    --bg-secondary: #0c0f16;
    --bg-tertiary: #121824;
    --accent-orange: #f26522; /* Dahua Orange */
    --accent-orange-hover: #ff7d3b;
    --accent-orange-glow: rgba(242, 101, 34, 0.3);
    --accent-cyan: #00e5ff; /* Cyber Status Cyan */
    --accent-cyan-glow: rgba(0, 229, 255, 0.3);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --glass-bg: rgba(12, 15, 22, 0.75);
    --glass-border: rgba(255, 255, 255, 0.06);
    --card-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- Base Resets & Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 10px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}

/* --- Tech Animated Background --- */
.tech-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.grid-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    mix-blend-mode: screen;
}

.orb-1 {
    top: -10%;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-orange) 0%, transparent 70%);
    animation: orbMove1 20s infinite alternate ease-in-out;
}

.orb-2 {
    bottom: -10%;
    left: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    animation: orbMove2 25s infinite alternate ease-in-out;
}

@keyframes orbMove1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-100px, 80px) scale(1.1); }
}

@keyframes orbMove2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(120px, -50px) scale(1.15); }
}

/* --- Shared Components & Utilities --- */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

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

.gradient-text {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(242, 101, 34, 0.08);
    border: 1px solid rgba(242, 101, 34, 0.2);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-orange);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-orange);
}

.active-pulse {
    animation: statusPulse 1.8s infinite ease-in-out;
}

@keyframes statusPulse {
    0% { transform: scale(0.95); opacity: 0.5; box-shadow: 0 0 0 0 var(--accent-cyan-glow); }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 8px 3px var(--accent-cyan-glow); }
    100% { transform: scale(0.95); opacity: 0.5; box-shadow: 0 0 0 0 var(--accent-cyan-glow); }
}

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

.btn-primary {
    background: var(--accent-orange);
    color: var(--text-primary);
    box-shadow: 0 8px 24px -6px var(--accent-orange-glow);
}

.btn-primary:hover {
    background: var(--accent-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -4px var(--accent-orange-glow);
}

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

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

.btn-primary-tech {
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 229, 255, 0.25);
    width: 100%;
}

.btn-primary-tech:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: 0 8px 20px -5px var(--accent-cyan-glow);
    transform: translateY(-2px);
}

.btn-secondary-tech {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
}

.btn-secondary-tech:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-orange);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* --- Header & Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(6, 8, 12, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    padding: 8px 0;
    background: rgba(6, 8, 12, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-icon-wrapper {
    background: rgba(242, 101, 34, 0.1);
    border: 1px solid rgba(242, 101, 34, 0.2);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--accent-orange);
    transition: var(--transition-smooth);
}

.logo-area:hover .logo-icon-wrapper {
    transform: rotate(-10deg) scale(1.08);
    background: var(--accent-orange);
    color: var(--text-primary);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: var(--transition-smooth);
}

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

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

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

.btn-header-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 20px;
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.btn-header-phone:hover {
    border-color: var(--accent-orange);
    background: rgba(242, 101, 34, 0.06);
    color: var(--accent-orange);
}

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

/* --- Hero Section & Central NVR Card --- */
.hero-section {
    padding: 160px 24px 80px 24px;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

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

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-top: 16px;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 550px;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

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

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 35px;
    background: rgba(255,255,255,0.08);
}

/* NVR Command Center Visual Card */
.command-center-card {
    position: relative;
    overflow: hidden;
}

.command-center-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-cyan));
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-cyan);
}

.status-indicator.error {
    background-color: var(--danger);
    box-shadow: 0 0 8px var(--danger);
    animation: none;
}

.status-indicator.testing {
    background-color: var(--accent-orange);
    box-shadow: 0 0 8px var(--accent-orange);
    animation: statusPulse 1s infinite ease-in-out;
}

.status-text {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.header-controls {
    display: flex;
    gap: 6px;
}

.control-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0.5;
}

.dot-red { background: var(--danger); }
.dot-yellow { background: #eab308; }
.dot-green { background: var(--success); }

.card-body {
    padding: 24px;
}

.nvr-display {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 20px;
}

.camera-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background: #000;
    height: 180px;
}

.camera-feed {
    background-size: cover;
    background-position: center;
    position: relative;
}

.feed-1 {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/camera_curte.png');
}

.feed-2 {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/camera_intrare.png');
}

.feed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.65rem;
    font-family: monospace;
    font-weight: bold;
    color: rgba(255,255,255,0.8);
    text-shadow: 1px 1px 2px #000;
}

.rec-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--danger);
}

.rec-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--danger);
    animation: recBlink 1s infinite alternate;
}

@keyframes recBlink {
    0% { opacity: 0.2; }
    100% { opacity: 1; }
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    animation: scanEffect 3s infinite linear;
    pointer-events: none;
}

@keyframes scanEffect {
    0% { top: 0; }
    100% { top: 100%; }
}

.nvr-details-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.detail-label {
    color: var(--text-muted);
}

.detail-value {
    font-family: var(--font-heading);
    font-weight: 600;
}

.detail-value.text-glow {
    text-shadow: 0 0 8px var(--accent-orange-glow);
}

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

.inline-icon {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

.nvr-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-action-nvr {
    background: var(--accent-orange);
    color: var(--text-primary);
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 20px -6px var(--accent-orange-glow);
}

.btn-action-nvr:hover {
    background: var(--accent-orange-hover);
    box-shadow: 0 12px 30px -4px var(--accent-orange-glow);
    transform: translateY(-2px);
}

.btn-ping-check {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 12px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-ping-check:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: var(--text-primary);
}

.btn-ping-check i.spinning {
    animation: spin 1s linear infinite;
}

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

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.01);
}

.info-icon {
    width: 16px;
    height: 16px;
    color: var(--accent-orange);
    flex-shrink: 0;
    margin-top: 2px;
}

.card-footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* --- Section Formatting --- */
.section-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 100px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-orange);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 650px;
    line-height: 1.6;
}

/* --- Dahua Guides Section --- */
.guides-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

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

.guide-card {
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.guide-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    color: var(--text-secondary);
}

.guide-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(242, 101, 34, 0.05);
    border: 1px solid rgba(242, 101, 34, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-orange);
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.guide-card:hover .guide-icon-box {
    background: var(--accent-orange);
    color: var(--text-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px var(--accent-orange-glow);
}

.guide-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.guide-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    flex-grow: 1;
}

.guide-steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.guide-steps-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.4;
}

.step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-orange);
    flex-shrink: 0;
}

.inline-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
}

.inline-link:hover {
    text-decoration: underline;
}

.store-buttons {
    display: flex;
    gap: 12px;
}

.store-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.store-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.store-btn i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.store-sub {
    display: block;
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    line-height: 1;
}

.store-main {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 2px;
}

.guide-actions {
    display: flex;
    gap: 12px;
}

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

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

.service-card {
    padding: 30px;
    text-align: left;
}

.srv-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(242, 101, 34, 0.05);
    border-radius: 10px;
    color: var(--accent-orange);
    margin-bottom: 20px;
    border: 1px solid rgba(242, 101, 34, 0.1);
    transition: var(--transition-smooth);
}

.service-card:hover .srv-icon {
    background: var(--accent-orange);
    color: var(--text-primary);
    box-shadow: 0 8px 16px -4px var(--accent-orange-glow);
    transform: scale(1.05);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Contact & Support Section --- */
.contact-section {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: start;
}

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

.card-title-area {
    margin-bottom: 30px;
}

.card-title-area h2 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    margin-top: 12px;
    margin-bottom: 10px;
}

.card-title-area p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 14px 12px 42px;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.input-wrapper select {
    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='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 42px;
}

.input-wrapper textarea {
    resize: none;
}

.text-area-wrapper i {
    top: 14px;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    border-color: var(--accent-orange);
    background: rgba(242, 101, 34, 0.02);
    box-shadow: 0 0 10px rgba(242, 101, 34, 0.1);
}

.input-wrapper input:focus + i,
.input-wrapper select:focus + i,
.input-wrapper textarea:focus + i {
    color: var(--accent-orange);
}

.btn-submit {
    background: var(--accent-orange);
    color: var(--text-primary);
    padding: 14px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 5px 15px -4px var(--accent-orange-glow);
}

.btn-submit:hover {
    background: var(--accent-orange-hover);
    transform: translateY(-2px);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success Messages */
.form-message {
    padding: 16px;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
    margin-top: 10px;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.form-message.success i {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.form-message.error i {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.form-message h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 2px;
}

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

.hidden {
    display: none !important;
}

/* Contact Info Column styling */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-cards-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.info-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.info-details h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.info-link {
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.info-link:hover {
    color: var(--accent-orange);
}

.info-details p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.info-details .hours-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.info-details .hours-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Map Container Styling */
.map-container {
    overflow: hidden;
}

.map-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.map-header i {
    width: 16px;
    height: 16px;
    color: var(--accent-orange);
}

.leaflet-map-element {
    height: 240px;
    width: 100%;
    background-color: var(--bg-tertiary);
}

/* Custom dark styling to override Leaflet default map appearance */
.leaflet-container {
    background: var(--bg-tertiary) !important;
}

.leaflet-tile {
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

.leaflet-bar {
    border: 1px solid var(--glass-border) !important;
    box-shadow: none !important;
}

.leaflet-bar a {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--glass-border) !important;
}

.leaflet-bar a:hover {
    background-color: var(--bg-secondary) !important;
    color: var(--accent-orange) !important;
}

.leaflet-popup-content-wrapper {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 8px !important;
}

.leaflet-popup-tip {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--glass-border) !important;
}

/* --- Modals System --- */
.tech-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(3, 4, 6, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: var(--transition-smooth);
}

.tech-modal {
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    border-color: rgba(242, 101, 34, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(242, 101, 34, 0.05);
}

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-orange);
}

.modal-body h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.modal-body p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.modal-step {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}

.modal-step h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--accent-orange);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-step-number {
    background: rgba(242, 101, 34, 0.1);
    color: var(--accent-orange);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.modal-step p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.modal-step code {
    background: rgba(255,255,255,0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--accent-cyan);
}

/* --- Footer --- */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding-top: 80px;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px 40px 24px;
}

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

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 16px;
    max-width: 320px;
}

.footer-links-col h4,
.footer-downloads-col h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.footer-links-col ul,
.footer-downloads-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-col a,
.footer-downloads-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-links-col a:hover,
.footer-downloads-col a:hover {
    color: var(--accent-orange);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.footer-tech-meta {
    display: flex;
    gap: 16px;
}

.meta-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-tag i {
    width: 14px;
    height: 14px;
    color: var(--accent-orange);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .hero-content {
        align-items: center;
        text-align: center;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
        width: 100%;
    }
    .guides-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 10px 0;
    }
    .nav-menu {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        height: auto;
        background: var(--bg-secondary);
        padding: 40px 24px;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 10px 30px rgba(0,0,0,0.8);
        transition: var(--transition-smooth);
    }
    .nav-menu.active {
        top: 72px; /* Height of header */
    }
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .btn-header-phone {
        padding: 8px 14px;
    }
    .btn-header-phone span {
        display: none;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-section {
        padding-top: 120px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-form-wrapper {
        padding: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
