/* 
   Zenith Finance - Premium Styling
   Design tokens, modern transitions, dark mode glassmorphism, responsive grid layout.
*/

:root {
    --color-bg: #060913;
    --color-bg-alt: #0a0e1c;
    --color-card-bg: rgba(13, 20, 38, 0.5);
    --color-card-border: rgba(255, 255, 255, 0.07);
    --color-card-hover-border: rgba(0, 242, 254, 0.3);
    
    --color-primary: #00f2fe;
    --color-secondary: #4facfe;
    --color-emerald: #00ff87;
    --color-rose: #ff4b72;
    --color-text-main: #f3f4f6;
    --color-text-muted: #94a3b8;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --max-width: 1200px;
    --header-height: 80px;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

button, input, select, textarea {
    font-family: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Glowing Background Blobs */
.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--color-primary);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: var(--color-secondary);
    top: 30%;
    right: -200px;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: var(--color-emerald);
    bottom: 10%;
    left: -100px;
}

/* Typography & Utility Classes */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-emerald) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-emerald { color: var(--color-emerald); }
.text-rose { color: var(--color-rose); }
.bg-emerald { background-color: var(--color-emerald); }
.bg-gray { background-color: var(--color-text-muted); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: #060913;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 242, 254, 0.4);
}

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

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

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

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

/* Glassmorphism Cards */
.glass-card {
    background: var(--color-card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-card-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
    z-index: 1;
    position: relative;
    overflow: hidden;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(6, 9, 19, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 1px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    width: 32px;
    height: 32px;
}

.logo-subtext {
    color: var(--color-text-muted);
    font-weight: 400;
    margin-left: 0.2rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    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: 1.25rem;
}

/* Language Toggle Button */
.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
}

.lang-globe {
    display: flex;
    align-items: center;
    opacity: 0.8;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 101;
}

.mobile-nav-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--color-text-main);
    transition: var(--transition-smooth);
}

/* Mobile Nav Open Animation */
.mobile-nav-toggle.open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
}
.mobile-nav-toggle.open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 9, 19, 0.98);
    backdrop-filter: blur(20px);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.mobile-nav-link:hover {
    color: var(--color-primary);
}

/* Hero Section */
.hero-section {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--color-primary);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Hero Visual Card */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.visual-card {
    width: 100%;
    max-width: 440px;
    padding: 1.75rem;
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.2);
}

.window-dots span:nth-child(1) { background-color: #ff5f56; }
.window-dots span:nth-child(2) { background-color: #ffbd2e; }
.window-dots span:nth-child(3) { background-color: #27c93f; }

.badge-neutral {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    padding: 0.3rem 0.75rem;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.metric-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
}

.hero-chart-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255,255,255,0.03);
}

.hero-svg-chart {
    width: 100%;
    height: auto;
    overflow: visible;
}

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

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-emerald);
    border-radius: 50%;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 135, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 255, 135, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 135, 0); }
}

.gain-percentage {
    color: var(--color-emerald);
    font-weight: 700;
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    border-color: rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    border-color: var(--color-card-hover-border);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 242, 254, 0.07);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 242, 254, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

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

.service-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

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

/* Performance Simulation Section */
.performance-section {
    padding: 6rem 0;
    position: relative;
}

.dashboard-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    border-color: rgba(255,255,255,0.06);
    overflow: hidden;
}

.dashboard-controls {
    padding: 3rem;
    background: rgba(6, 9, 19, 0.4);
    border-right: 1px solid rgba(255,255,255,0.05);
}

.control-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.75rem;
}

.control-group {
    margin-bottom: 2rem;
}

.control-label-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.control-label-row label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-main);
}

.control-value {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
}

/* Range Slider Styling */
.range-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.1);
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
    transition: var(--transition-smooth);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.form-select {
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--color-text-main);
    appearance: none;
    cursor: pointer;
    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 1rem center;
    background-size: 1.2rem;
}

.form-select option {
    background-color: var(--color-bg-alt);
    color: var(--color-text-main);
}

.stats-panel-mini {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.mini-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 0.4rem;
}

.mini-value {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
}

/* Dashboard Display */
.dashboard-display {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.display-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.display-meta {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.display-total {
    font-size: 2.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
    margin-top: 0.25rem;
}

.gain-badge {
    background: rgba(0, 255, 135, 0.1);
    border: 1px solid rgba(0, 255, 135, 0.25);
    color: var(--color-emerald);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.chart-canvas-container {
    position: relative;
    width: 100%;
    height: 250px;
    margin-bottom: 2rem;
}

#interactive-chart {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Legend styling */
.chart-legend {
    display: flex;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

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

/* Chart Tooltip */
.chart-tooltip {
    position: absolute;
    background: rgba(6, 9, 19, 0.95);
    border: 1px solid var(--color-card-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    pointer-events: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 10;
    transition: opacity 0.15s ease, transform 0.15s ease;
    transform: translate(-50%, -100%);
    top: 0;
    left: 0;
}

.tooltip-date {
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.3rem;
    margin-bottom: 0.4rem;
    color: var(--color-text-main);
}

.tooltip-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.tooltip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

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

.tooltip-val {
    font-weight: 700;
    margin-left: auto;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    position: relative;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.about-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.experience-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.75rem;
    border-color: rgba(255, 255, 255, 0.05);
}

.experience-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.exp-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.exp-txt-large {
    font-size: 2.4rem;
    letter-spacing: -1px;
}

.exp-text h4 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

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

.about-content .section-title {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.about-para {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-bullet {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.bullet-icon {
    width: 20px;
    height: 20px;
    background: rgba(0, 255, 135, 0.1);
    color: var(--color-emerald);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Contact & Consultation Section */
.contact-section {
    padding: 6rem 0;
    position: relative;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-color: rgba(255, 255, 255, 0.05);
}

.contact-info {
    padding: 4rem;
    background: rgba(6, 9, 19, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.contact-title {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.contact-desc {
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

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

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

.info-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-weight: 600;
    font-size: 1.05rem;
}

.contact-form-container {
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.form-input, .form-textarea, .contact-form-container .form-select {
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--color-text-main);
    transition: var(--transition-smooth);
}

.form-input:focus, .form-textarea:focus, .contact-form-container .form-select:focus {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

.form-textarea {
    resize: none;
}

/* Success Card */
.form-success-card {
    text-align: center;
    padding: 2rem;
    animation: fadeIn 0.5s ease forwards;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 135, 0.1);
    border: 2px solid var(--color-emerald);
    color: var(--color-emerald);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.form-success-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.form-success-card p {
    color: var(--color-text-muted);
}

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

/* Footer Section */
.footer {
    padding: 5rem 0 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: #04060d;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 4rem;
    align-items: flex-start;
}

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

.footer-moto {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    max-width: 300px;
}

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

.footer-links h4, .footer-legal h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.disclaimer {
    font-size: 0.75rem;
    line-height: 1.5;
    opacity: 0.6;
}

/* Responsive Breakpoints */

@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-visual {
        margin: 0 auto;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .dashboard-wrapper {
        grid-template-columns: 1fr;
    }
    
    .dashboard-controls {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.04);
        padding: 3rem;
    }
    
    .contact-form-container {
        padding: 3rem;
    }
    
    .footer-container {
        grid-template-columns: 1.2fr 1fr;
    }
    
    .footer-legal {
        grid-column: span 2;
    }
}

/* Global Viewport Containment Fail-safe */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Floating WhatsApp Button (General) */
.whatsapp-float {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 56px;
    height: 56px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.35);
    z-index: 999;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.5;
    z-index: -1;
    animation: wa-pulse 2s infinite;
}

.whatsapp-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: rgba(6, 9, 19, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-main);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: rgba(6, 9, 19, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-menu, .header-actions .btn {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-visual {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-legal {
        grid-column: span 1;
    }
    
    /* WhatsApp Mobile Overrides */
    .whatsapp-tooltip {
        display: none !important;
    }
    
    .whatsapp-float {
        bottom: 2rem;
        right: 2rem;
        width: 52px;
        height: 52px;
    }
    
    .whatsapp-icon {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .logo-subtext {
        display: none;
    }
    
    .header-actions {
        gap: 0.75rem;
    }
    
    .hero-section {
        padding-top: calc(var(--header-height) + 2rem);
        padding-bottom: 4rem;
    }
    
    .hero-title {
        font-size: 2.1rem;
    }
    
    .hero-buttons .btn {
        padding: 0.85rem 1.5rem;
    }
    
    .visual-card {
        padding: 1.25rem;
    }
    
    .badge-neutral {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
    
    .metrics-grid {
        gap: 0.5rem;
    }
    
    .metric-value {
        font-size: 1.15rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .dashboard-controls, .dashboard-display {
        padding: 1.25rem;
    }
    
    .display-total {
        font-size: 2rem;
    }
    
    .chart-canvas-container {
        height: 180px;
    }
    
    .chart-legend {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .experience-card {
        padding: 1.25rem;
    }
    
    .exp-number {
        font-size: 2.75rem;
    }
    
    .exp-txt-large {
        font-size: 2rem;
    }
    
    .contact-info, .contact-form-container {
        padding: 1.25rem;
    }
    
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 48px;
        height: 48px;
    }
}

/* Blog Section */
.blog-section {
    padding: 6rem 0;
    position: relative;
    background: var(--color-bg-alt);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.blog-card {
    padding: 2.5rem;
    border-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.blog-card:hover {
    border-color: var(--color-card-hover-border);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 242, 254, 0.07);
}

.blog-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.blog-badge {
    padding: 0.25rem 0.60rem;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.15);
    color: var(--color-primary);
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

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

.blog-card-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.blog-card:hover .blog-card-title {
    color: var(--color-primary);
}

.blog-card-excerpt {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.btn-read-more {
    background: none;
    border: none;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
    padding: 0;
}

.blog-card:hover .btn-read-more {
    gap: 0.8rem;
    color: var(--color-emerald);
}

/* Blog Modal */
.blog-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 6, 13, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-modal-overlay.open {
    display: flex;
    opacity: 1;
}

.blog-modal-content {
    width: 90%;
    max-width: 750px;
    padding: 3.5rem;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-modal-overlay.open .blog-modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.25rem;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    background: none;
    border: none;
    padding: 0;
}

.modal-close:hover {
    color: var(--color-rose);
    transform: rotate(90deg);
}

.modal-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.modal-body-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.modal-body-text p {
    margin-bottom: 1.5rem;
}

.modal-body-text p:last-child {
    margin-bottom: 0;
}

.modal-body-text strong {
    color: var(--color-text-main);
    font-weight: 600;
}

/* Scrollbar styles inside modal */
.blog-modal-content::-webkit-scrollbar {
    width: 6px;
}

.blog-modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.blog-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.blog-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Media Query Additions for Blog */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-modal-content {
        padding: 2.5rem 2rem;
    }
    .modal-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .blog-card {
        padding: 1.75rem 1.5rem;
    }
    .blog-modal-content {
        padding: 2rem 1.25rem;
    }
    .modal-title {
        font-size: 1.35rem;
    }
}
