/* 
   Turbo Systems - Total Electronic Solution
   Core Stylesheet - Professional Light Theme (Vanilla CSS)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&family=Share+Tech+Mono&display=swap');

:root {
    /* Color Palette - Light Theme */
    --bg-dark: #f8fafc; /* Soft Light Slate */
    --bg-panel: rgba(255, 255, 255, 0.75);
    --bg-card: rgba(255, 255, 255, 0.85);
    
    --primary-rgb: 176, 26, 26; 
    --brand-red: #b01a1a;
    --brand-red-light: #e53e3e;
    --brand-red-glow: rgba(229, 62, 62, 0.15);
    
    --accent-blue: #0284c7;
    --accent-blue-glow: rgba(2, 132, 199, 0.15);
    
    --accent-amber: #d97706;
    --accent-amber-glow: rgba(217, 119, 6, 0.15);
    
    --text-primary: #0f172a; /* Slate 900 */
    --text-muted: #475569;    /* Slate 600 */
    --text-dark: #0f172a;
    
    --border-color: rgba(15, 23, 42, 0.08); /* Soft slate border */
    --border-color-glow: rgba(176, 26, 26, 0.25);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-digital: 'Share Tech Mono', monospace;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Soft grid background effect */
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(176, 26, 26, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(2, 132, 199, 0.04) 0%, transparent 40%),
        linear-gradient(rgba(15, 23, 42, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.012) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo svg {
    height: 60px;
    width: auto;
}

/* Navigation Menu */
nav {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--brand-red);
    background: rgba(176, 26, 26, 0.05);
}

.nav-link.active {
    color: var(--brand-red);
    background: rgba(176, 26, 26, 0.08);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.8rem;
    left: 15%;
    width: 70%;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-red), var(--brand-red-light));
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 85vh;
    padding-top: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.badge {
    align-self: flex-start;
    background: rgba(176, 26, 26, 0.08);
    border: 1px solid rgba(176, 26, 26, 0.25);
    color: var(--brand-red);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    background: linear-gradient(135deg, var(--text-primary) 30%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title span {
    background: linear-gradient(90deg, var(--brand-red), var(--brand-red-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 540px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(90deg, var(--brand-red), var(--brand-red-light));
    color: white;
    box-shadow: 0 4px 15px rgba(176, 26, 26, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(176, 26, 26, 0.4);
}

.btn-secondary {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

/* Interactive SVG Panel Mockup in Hero (Keep dark/contrast for realistic device aesthetic) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.panel-device {
    width: 360px;
    height: 360px;
    background: #181d26;
    border: 10px solid #2d3748;
    border-radius: 12px;
    box-shadow: 
        0 25px 50px -12px rgba(15, 23, 42, 0.15),
        inset 0 4px 12px rgba(255,255,255,0.05);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.panel-device::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 2px;
    border: 2px solid #0f1319;
    pointer-events: none;
}

.panel-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    color: #a0aec0;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-brand span {
    color: var(--brand-red-light);
    font-size: 0.75rem;
}

.panel-display {
    background: #080a0d;
    border: 4px solid #1a202c;
    border-radius: 6px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.8);
}

.panel-digits {
    font-family: var(--font-digital);
    font-size: 4.5rem;
    color: #f56565;
    text-shadow: 0 0 12px rgba(245, 101, 101, 0.75);
    letter-spacing: 2px;
}

.panel-status {
    display: flex;
    justify-content: space-between;
}

.status-light {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #718096;
}

.light-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #4a5568;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
    transition: var(--transition-fast);
}

.light-dot.active-red {
    background: #f56565;
    box-shadow: 0 0 8px #f56565, inset 0 1px 3px rgba(255,255,255,0.5);
}

.light-dot.active-green {
    background: #48bb78;
    box-shadow: 0 0 8px #48bb78, inset 0 1px 3px rgba(255,255,255,0.5);
}

.panel-controls {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.panel-btn {
    flex: 1;
    height: 40px;
    background: linear-gradient(180deg, #4a5568, #2d3748);
    border: 1px solid #1a202c;
    border-radius: 6px;
    box-shadow: 0 3px 0 #1a202c, 0 4px 6px rgba(0,0,0,0.3);
    color: #e2e8f0;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s ease;
}

.panel-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #1a202c, 0 2px 3px rgba(0,0,0,0.3);
}

/* Tabs System Layout */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-content.active {
    display: block;
}

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

/* Sections General */
section.main-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 30%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* Company Profile Styling (Info Grid) */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
    align-items: center;
}

.profile-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--brand-red);
    font-weight: 700;
}

.profile-text p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-red-light);
    box-shadow: 0 10px 25px rgba(176, 26, 26, 0.08);
}

.stat-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-red);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--brand-red), var(--brand-red-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Core Values Timeline */
.timeline-section {
    margin-top: 4rem;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
    width: 50%;
    padding: 0 30px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--brand-red-light);
    border: 4px solid var(--bg-dark);
    border-radius: 50%;
    position: absolute;
    top: 8px;
    z-index: 10;
    box-shadow: 0 0 8px rgba(229, 62, 62, 0.4);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    border-color: rgba(176, 26, 26, 0.2);
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(176, 26, 26, 0.05);
}

.timeline-year {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-red);
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Products Tab Styling */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--brand-red);
    color: white;
    border-color: var(--brand-red-light);
    box-shadow: 0 4px 12px rgba(176, 26, 26, 0.2);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

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

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(176, 26, 26, 0.2);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
}

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

.product-image-container {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.25rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-type-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--brand-red);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.spec-list {
    list-style: none;
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

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

.spec-value {
    color: var(--text-primary);
    font-weight: 600;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modbus-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--accent-blue);
    font-weight: 700;
    background: rgba(2, 132, 199, 0.08);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    border: 1px solid rgba(2, 132, 199, 0.2);
}

/* IoT & Solutions / Interactive Dashboard (Light Premium Theme) */
.dashboard-container {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    margin-top: 3rem;
}

.db-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.db-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-primary);
}

.db-pulse {
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.db-meta {
    font-family: var(--font-digital);
    color: var(--accent-blue);
    font-weight: 700;
}

.db-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Realistic dark readout frames for the gauges */
.db-card {
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 160px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
}

.db-card-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.db-value-container {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.db-value {
    font-family: var(--font-digital);
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255,255,255,0.05);
}

.db-unit {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 600;
    margin-left: 4px;
}

.db-card-status {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.db-card-status.good { color: #34d399; }
.db-card-status.warning { color: #fbbf24; }
.db-card-status.danger { color: #f87171; }

/* Mini Chart Styling - Light Mode */
.chart-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 2rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.chart-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
}

.chart-canvas {
    width: 100%;
    height: 150px;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

/* User Controls for Live Demo */
.db-controls {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.control-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.control-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #cbd5e1;
    outline: none;
}

.control-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-red);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(176, 26, 26, 0.3);
}

/* Contact Us Styling */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.info-block {
    display: flex;
    gap: 1.25rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(176, 26, 26, 0.08);
    border: 1px solid rgba(176, 26, 26, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-red);
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

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

.info-text a:hover {
    color: var(--brand-red);
    text-decoration: underline;
}

.map-btn {
    align-self: flex-start;
    margin-top: 1rem;
}

/* Contact Form */
.contact-form-container {
    background: white;
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-red-light);
    box-shadow: 0 0 8px rgba(229, 62, 62, 0.15);
    background: white;
}

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

/* Footer Section */
footer {
    background: #0f172a; /* Keep dark anchors at bottom */
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 4rem 2rem 2rem;
    color: #f1f5f9;
}

footer h4, footer h1, footer h2, footer h3 {
    color: white;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-desc {
    color: #94a3b8;
    font-size: 0.9rem;
    max-width: 320px;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--brand-red-light);
    padding-left: 4px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Form Success Dialog Overlay */
.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease forwards;
}

.dialog {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    position: relative;
    color: var(--text-primary);
}

.dialog-icon {
    width: 64px;
    height: 64px;
    background: rgba(72, 187, 120, 0.15);
    border: 1px solid rgba(72, 187, 120, 0.4);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #48bb78;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.dialog h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.dialog p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding-top: 2rem;
    }
    .hero-content {
        align-items: center;
    }
    .hero-title {
        font-size: 2.75rem;
    }
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .timeline::before {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
    }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }
    .timeline-item:nth-child(odd) .timeline-dot, .timeline-item:nth-child(even) .timeline-dot {
        left: 12px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }
    .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .db-controls {
        flex-direction: column;
    }
    .control-group {
        width: 100%;
    }
}
