/* --- Variables & Reset --- */
:root {
    --primary: #0F172A; /* Deep Navy */
    --secondary: #1E293B; /* Slate */
    --accent: #0EA5E9; /* Electric Blue */
    --accent-glow: rgba(14, 165, 233, 0.4);
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --bg-light: #F1F5F9;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Manrope', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
    font-family: var(--font-heading);
    background-color: var(--primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Ambient Backgrounds --- */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.3;
}
.glow-1 { width: 600px; height: 600px; background: var(--accent); top: -100px; left: -100px; }
.glow-2 { width: 500px; height: 500px; background: #6366F1; bottom: -100px; right: -100px; }

/* --- Utilities --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 100px 0; }
.bg-light { background-color: var(--bg-light); color: var(--primary); }
.text-center { text-align: center; }

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: #0284C7;
    box-shadow: 0 0 20px var(--accent-glow);
}

.glow-btn { animation: pulseBtn 2s infinite; }
@keyframes pulseBtn {
    0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(14, 165, 233, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.full-width { width: 100%; }

/* --- Navigation --- */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 12px 24px;
    transition: var(--transition);
}
.glass-nav.scrolled { top: 10px; background: rgba(15, 23, 42, 0.95); }

.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: white; text-decoration: none; }
.logo span { color: var(--accent); }
.nav-links { display: flex; list-style: none; gap: 32px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 500; transition: var(--transition); }
.nav-links a:hover { color: white; }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.mobile-toggle span { width: 25px; height: 2px; background: white; }

/* --- Hero Section --- */
.hero-section { padding: 160px 0 100px; min-height: 100vh; display: flex; align-items: center; }
.hero-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }

.status-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(14, 165, 233, 0.2);
}
.pulse { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulseDot 1.5s infinite; }
@keyframes pulseDot { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #94A3B8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; max-width: 550px; }
.hero-cta-group { display: flex; gap: 16px; margin-bottom: 48px; }

.trust-metrics { display: flex; gap: 40px; }
.metric strong { display: block; font-size: 1.5rem; color: white; }
.metric span { font-size: 0.9rem; color: var(--text-muted); }

.hero-visuals { position: relative; height: 400px; }
.floating-card { position: absolute; padding: 24px; }
.card-main { top: 0; right: 0; width: 320px; z-index: 2; }
.card-secondary { bottom: 20px; left: 20px; width: 200px; z-index: 1; animation: float 6s infinite ease-in-out; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

.card-header { display: flex; gap: 6px; margin-bottom: 20px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #EF4444; } .yellow { background: #F59E0B; } .green { background: #10B981; }

.graph-placeholder { height: 100px; background: rgba(255,255,255,0.05); border-radius: 8px; margin-bottom: 20px; }
.stat-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.9rem; }
.score { color: var(--accent); font-weight: 700; }
.icon-box { font-size: 2rem; margin-bottom: 10px; }

/* --- Services (Bento Grid) --- */
.section-intro { margin-bottom: 60px; max-width: 700px; }
.section-intro .label { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; display: block; margin-bottom: 12px; }
.section-intro h2 { font-size: 2.5rem; margin-bottom: 16px; }
.section-intro p { color: var(--text-muted); font-size: 1.1rem; }
.bg-light .section-intro h2 { color: var(--primary); }
.bg-light .section-intro p { color: #475569; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 24px;
}
.bento-item { padding: 32px; display: flex; flex-direction: column; }
.bento-item.large { grid-column: span 2; grid-row: span 2; }
.service-icon { font-size: 2.5rem; margin-bottom: 20px; }
.bento-item h3 { font-size: 1.4rem; margin-bottom: 12px; color: white; }
.bg-light .bento-item h3 { color: var(--primary); }
.bento-item p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; flex-grow: 1; }
.check-list { list-style: none; }
.check-list li { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 6px; padding-left: 20px; position: relative; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); }

/* --- Stats Bar --- */
.stats-bar { padding: 60px 0; background: rgba(255,255,255,0.02); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.stat-item h3 { font-size: 3rem; color: var(--accent); font-weight: 800; margin-bottom: 8px; }
.stat-item p { color: var(--text-muted); font-weight: 500; }

/* --- Timeline --- */
.timeline-wrapper { position: relative; max-width: 800px; margin: 0 auto; }
.timeline-line { position: absolute; left: 24px; top: 0; bottom: 0; width: 2px; background: var(--accent); opacity: 0.3; }
.timeline-step { display: flex; gap: 30px; margin-bottom: 40px; position: relative; }
.step-number {
    width: 50px; height: 50px;
    background: var(--primary);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--accent);
    flex-shrink: 0; z-index: 2;
}
.step-content { padding: 24px; flex: 1; }
.step-content h3 { color: white; margin-bottom: 8px; }
.bg-light .step-content h3 { color: var(--primary); }
.step-content p { color: var(--text-muted); font-size: 0.95rem; }

/* --- Portfolio (CSS Art) --- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.portfolio-card { height: 300px; position: relative; overflow: hidden; }
.css-art { width: 100%; height: 100%; transition: transform 0.5s ease; }
.art-thermal { background: radial-gradient(circle at 30% 40%, #EF4444 0%, transparent 40%), radial-gradient(circle at 70% 60%, #3B82F6 0%, transparent 40%), #1E293B; }
.art-structure { background: repeating-linear-gradient(45deg, #334155, #334155 10px, #475569 10px, #475569 20px); }
.art-electrical { background: conic-gradient(from 90deg at 50% 50%, #1E293B 0deg, #0EA5E9 180deg, #1E293B 360deg); }
.portfolio-card:hover .css-art { transform: scale(1.1); }
.overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
    transform: translateY(100%);
    transition: var(--transition);
}
.portfolio-card:hover .overlay { transform: translateY(0); }
.overlay h4 { color: white; margin-bottom: 4px; }
.overlay p { color: var(--text-muted); font-size: 0.9rem; }

/* --- Article Layout --- */
.article-container { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.article-sidebar { position: sticky; top: 100px; padding: 24px; }
.article-sidebar h4 { color: white; margin-bottom: 20px; font-family: var(--font-heading); }
.article-sidebar ul { list-style: none; }
.article-sidebar li { margin-bottom: 12px; }
.article-sidebar a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.article-sidebar a:hover { color: var(--accent); padding-left: 5px; }
.sidebar-cta { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--glass-border); }
.sidebar-cta p { color: white; font-weight: 600; margin-bottom: 12px; }

.main-article { padding: 48px; }
.article-header { margin-bottom: 40px; border-bottom: 1px solid var(--glass-border); padding-bottom: 30px; }
.category { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }
.main-article h1 { font-family: var(--font-serif); font-size: 2.8rem; line-height: 1.2; margin: 16px 0; color: white; }
.meta { color: var(--text-muted); font-size: 0.9rem; }

.article-body h2 { font-family: var(--font-heading); font-size: 1.8rem; color: white; margin-top: 40px; margin-bottom: 20px; }
.article-body h3 { font-size: 1.4rem; color: var(--accent); margin-top: 30px; margin-bottom: 15px; }
.article-body p { color: var(--text-muted); margin-bottom: 20px; font-size: 1.05rem; }
.article-body ul, .article-body ol { color: var(--text-muted); margin-bottom: 20px; padding-left: 24px; }
.article-body li { margin-bottom: 10px; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

.callout-box { padding: 20px; border-radius: 12px; margin: 30px 0; border-left: 4px solid; }
.info-box { background: rgba(14, 165, 233, 0.1); border-color: var(--accent); color: #BAE6FD; }

.comparison-table { width: 100%; border-collapse: collapse; margin: 30px 0; font-size: 0.95rem; }
.comparison-table th { background: rgba(255,255,255,0.05); color: white; padding: 16px; text-align: left; }
.comparison-table td { padding: 16px; border-bottom: 1px solid var(--glass-border); color: var(--text-muted); }

.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 30px 0; }
.pros-col, .cons-col { padding: 24px; border-radius: 12px; }
.pros-col { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); }
.cons-col { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); }
.pros-col h4 { color: #10B981; margin-bottom: 16px; }
.cons-col h4 { color: #EF4444; margin-bottom: 16px; }
.pros-col ul, .cons-col ul { list-style: none; padding: 0; margin: 0; }
.pros-col li, .cons-col li { margin-bottom: 8px; font-size: 0.95rem; color: var(--text-muted); }

/* --- FAQ --- */
.faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-question {
    width: 100%; text-align: left; padding: 24px;
    background: transparent; border: none; cursor: pointer;
    color: white; font-size: 1.1rem; font-weight: 600;
    display: flex; justify-content: space-between; align-items: center;
}
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--accent); transition: var(--transition); }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 24px; }
.faq-item.active .faq-answer { max-height: 200px; padding: 0 24px 24px; }
.faq-answer p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* --- Testimonials --- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { padding: 32px; }
.stars { color: #F59E0B; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card p { color: var(--text-muted); font-style: italic; margin-bottom: 24px; }
.client-info { display: flex; align-items: center; gap: 16px; }
.avatar { width: 48px; height: 48px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: white; }
.client-info h4 { color: white; font-size: 1rem; margin-bottom: 2px; }
.client-info span { color: var(--text-muted); font-size: 0.85rem; }

/* --- Contact --- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-info { padding: 48px; }
.contact-info h2 { font-size: 2.5rem; margin-bottom: 16px; color: white; }
.contact-info > p { color: var(--text-muted); margin-bottom: 40px; }
.info-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.info-item .icon { font-size: 1.5rem; }
.info-item strong { display: block; color: white; margin-bottom: 4px; }
.info-item a, .info-item p { color: var(--text-muted); text-decoration: none; }
.info-item a:hover { color: var(--accent); }

.hours-widget { background: rgba(255,255,255,0.05); padding: 24px; border-radius: 12px; margin-top: 32px; }
.hours-widget h4 { color: white; margin-bottom: 12px; }
.hours-widget ul { list-style: none; }
.hours-widget li { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.95rem; margin-bottom: 8px; }

.contact-form-wrapper { padding: 48px; }
.contact-form-wrapper h3 { font-size: 1.8rem; margin-bottom: 32px; color: white; }
.modern-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.9rem; font-weight: 600; color: white; }
.form-group input, .form-group select, .form-group textarea {
    padding: 14px; background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border); border-radius: 8px;
    color: white; font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--accent);
}

/* --- Footer --- */
.site-footer { background: #020617; padding: 80px 0 30px; border-top: 1px solid var(--glass-border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-col h3 { font-size: 1.8rem; color: white; margin-bottom: 16px; }
.footer-col h3 span { color: var(--accent); }
.footer-col h4 { color: white; margin-bottom: 20px; font-size: 1.1rem; }
.footer-col p, .footer-col a { color: var(--text-muted); font-size: 0.95rem; text-decoration: none; display: block; margin-bottom: 12px; transition: var(--transition); }
.footer-col a:hover { color: var(--accent); }
.social-icons { display: flex; gap: 16px; margin-top: 20px; }
.social-icons a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 0.8rem; }
.social-icons a:hover { background: var(--accent); }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-layout { grid-template-columns: 1fr; text-align: center; }
    .hero-desc { margin: 0 auto 40px; }
    .hero-cta-group { justify-content: center; }
    .trust-metrics { justify-content: center; }
    .hero-visuals { display: none; }
    .bento-grid { grid-template-columns: 1fr 1fr; }
    .bento-item.large { grid-column: span 2; grid-row: span 1; }
    .article-container { grid-template-columns: 1fr; }
    .article-sidebar { position: static; margin-bottom: 40px; }
    .contact-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .glass-nav { width: 90%; }
    .nav-links { display: none; position: absolute; top: 70px; left: 0; width: 100%; background: var(--primary); flex-direction: column; padding: 24px; border-radius: 16px; border: 1px solid var(--glass-border); }
    .nav-links.active { display: flex; }
    .mobile-toggle { display: flex; }
    .hero-title { font-size: 2.5rem; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-item.large { grid-column: span 1; }
    .stats-grid { grid-template-columns: 1fr; gap: 30px; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .pros-cons-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}