/* CleanTech — Freestyle 3 | Navy + Cyan */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0f1923;
  --bg-card: #162231;
  --bg-alt: #1a2b3d;
  --accent: #06b6d4;
  --accent-hover: #22d3ee;
  --text: #c8d6e5;
  --text-muted: #8899aa;
  --heading: #ffffff;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'JetBrains Mono', monospace;
  --radius: 12px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden; font-size: .92rem; }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--heading); line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { max-width: 68ch; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 2rem; border-radius: 8px; font-weight: 600; font-size: .88rem; font-family: var(--font-heading); letter-spacing: .02em; transition: all var(--transition); cursor: pointer; border: none; text-transform: uppercase; }
.btn-primary { background: var(--accent); color: #0f1923; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(6,182,212,.35); }
.btn-outline { border: 2px solid var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent); color: #0f1923; }

.badge { display: inline-block; padding: .35rem 1rem; border-radius: 6px; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; background: rgba(6,182,212,.12); color: var(--accent); font-family: var(--font-body); border: 1px solid rgba(6,182,212,.25); }

.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 1.2rem 0; transition: all var(--transition); }
.navbar.scrolled { background: rgba(15,25,35,.95); backdrop-filter: blur(20px); box-shadow: 0 2px 30px rgba(0,0,0,.4); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--heading); }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: .82rem; transition: color var(--transition); font-family: var(--font-body); text-transform: uppercase; letter-spacing: .05em; }
.nav-links a:hover { color: var(--heading); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.hamburger span { width: 25px; height: 2px; background: var(--heading); transition: all var(--transition); }

.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,25,35,.94) 0%, rgba(15,25,35,.75) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; padding: 8rem 0 5rem; }
.hero-content .badge { margin-bottom: 1.5rem; }
.hero-content h1 { margin-bottom: 1.5rem; }
.hero-content h1 span { color: var(--accent); display: block; }
.hero-content p { font-size: 1rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 55ch; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 3rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.08); }
.stat-item h3 { font-size: 2rem; color: var(--accent); }
.stat-item p { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }

section { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .badge { margin-bottom: 1rem; }
.section-header p { color: var(--text-muted); margin: 1rem auto 0; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-image { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(6,182,212,.2); }
.about-image img { width: 100%; height: 500px; object-fit: cover; display: block; }
.about-text .badge { margin-bottom: 1rem; }
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { color: var(--text-muted); margin-bottom: 1.5rem; }
.about-features { list-style: none; margin-bottom: 2rem; }
.about-features li { padding: .5rem 0; color: var(--text-muted); display: flex; align-items: center; gap: .75rem; font-size: .88rem; }
.about-features li i { color: var(--accent); width: 20px; }

.services-section { background: var(--bg-alt); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.service-card { background: var(--bg-card); border-radius: var(--radius); padding: 2.5rem; transition: all var(--transition); border: 1px solid rgba(255,255,255,.04); position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--accent); transform: scaleX(0); transition: transform var(--transition); transform-origin: left; }
.service-card:hover { transform: translateY(-8px); border-color: rgba(6,182,212,.3); box-shadow: 0 20px 60px rgba(6,182,212,.1); }
.service-card:hover::before { transform: scaleX(1); }
.service-card .icon { width: 56px; height: 56px; border-radius: 10px; background: rgba(6,182,212,.1); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; border: 1px solid rgba(6,182,212,.2); }
.service-card .icon i { font-size: 1.4rem; color: var(--accent); }
.service-card h3 { margin-bottom: .75rem; }
.service-card p { font-size: .85rem; color: var(--text-muted); }

.ba-section { padding: 6rem 0; }
.ba-slider { position: relative; max-width: 800px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(6,182,212,.2); cursor: ew-resize; user-select: none; }
.ba-slider img { width: 100%; height: 450px; object-fit: cover; display: block; }
.ba-slider .ba-after { position: absolute; top: 0; left: 0; width: 50%; height: 100%; overflow: hidden; }
.ba-slider .ba-after img { position: absolute; top: 0; left: 0; width: 800px; max-width: none; height: 100%; }
.ba-slider .ba-handle { position: absolute; top: 0; left: 50%; width: 3px; height: 100%; background: var(--accent); transform: translateX(-50%); z-index: 10; }
.ba-slider .ba-handle::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; background: var(--accent); border-radius: 8px; border: 2px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.ba-label { position: absolute; bottom: 1rem; padding: .3rem .8rem; border-radius: 4px; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; z-index: 5; font-family: var(--font-body); }
.ba-label-before { right: 1rem; background: rgba(0,0,0,.7); color: #fff; }
.ba-label-after { left: 1rem; background: var(--accent); color: #0f1923; }

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.project-card { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; border: 1px solid rgba(255,255,255,.04); }
.project-card img { width: 100%; height: 350px; object-fit: cover; transition: transform .6s ease; }
.project-card:hover img { transform: scale(1.05); }
.project-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,25,35,.92) 0%, transparent 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem; opacity: 0; transition: opacity var(--transition); }
.project-card:hover .overlay { opacity: 1; }
.project-card .overlay h3 { margin-bottom: .5rem; }
.project-card .overlay p { font-size: .85rem; color: var(--text-muted); }

.carousel-section { background: var(--bg-alt); overflow: hidden; }
.carousel-track { display: flex; gap: 2rem; width: max-content; }
.carousel-track img { width: 350px; height: 250px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; border: 1px solid rgba(255,255,255,.04); }

.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.testimonial-card { background: var(--bg-card); border-radius: var(--radius); padding: 2.5rem; border: 1px solid rgba(255,255,255,.04); }
.testimonial-card .stars { color: var(--accent); margin-bottom: 1rem; font-size: 1rem; }
.testimonial-card p { font-style: italic; color: var(--text-muted); margin-bottom: 1.5rem; font-size: .88rem; }
.testimonial-card .author { display: flex; align-items: center; gap: .75rem; }
.testimonial-card .author-avatar { width: 44px; height: 44px; border-radius: 8px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #0f1923; font-family: var(--font-heading); }
.testimonial-card .author-info span { display: block; }
.testimonial-card .author-info .name { font-weight: 600; color: var(--heading); font-size: .85rem; }
.testimonial-card .author-info .role { font-size: .75rem; color: var(--text-muted); }

.cta-section { position: relative; padding: 6rem 0; text-align: center; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,25,35,.95), rgba(6,182,212,.15)); z-index: 1; }
.cta-content { position: relative; z-index: 2; }
.cta-content h2 { margin-bottom: 1rem; }
.cta-content p { color: var(--text-muted); margin: 0 auto 2.5rem; max-width: 55ch; }

.team-section { background: var(--bg-alt); }
.team-image { border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; border: 1px solid rgba(255,255,255,.04); }
.team-image img { width: 100%; height: 400px; object-fit: cover; display: block; }

.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,.06); padding: 1.5rem 0; }
.faq-question { display: flex; justify-content: space-between; align-items: center; cursor: pointer; width: 100%; background: none; border: none; color: var(--heading); font-size: .95rem; font-weight: 600; font-family: var(--font-heading); text-align: left; padding: 0; }
.faq-question i { color: var(--accent); transition: transform var(--transition); font-size: .85rem; }
.faq-item.active .faq-question i { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-answer p { padding: 1rem 0 .5rem; color: var(--text-muted); font-size: .88rem; }
.faq-item.active .faq-answer { max-height: 300px; }

.footer { background: #0a1219; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--text-muted); margin-top: .75rem; font-size: .82rem; }
.footer h4 { font-size: .9rem; margin-bottom: 1rem; font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: .5rem; }
.footer ul a { color: var(--text-muted); font-size: .82rem; transition: color var(--transition); }
.footer ul a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { color: var(--text-muted); font-size: .78rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: var(--text-muted); font-size: 1rem; transition: color var(--transition); }
.footer-social a:hover { color: var(--accent); }

.page-header { padding: 10rem 0 4rem; text-align: center; background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 4rem 0; }
.blog-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; transition: all var(--transition); border: 1px solid rgba(255,255,255,.04); }
.blog-card:hover { transform: translateY(-6px); border-color: rgba(6,182,212,.3); box-shadow: 0 15px 50px rgba(6,182,212,.1); }
.blog-card img { width: 100%; height: 220px; object-fit: cover; }
.blog-card-body { padding: 1.5rem; }
.blog-card-body .tag { font-size: .72rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.blog-card-body h3 { font-size: 1.1rem; margin: .5rem 0; font-family: var(--font-heading); }
.blog-card-body h3 a { color: var(--heading); }
.blog-card-body h3 a:hover { color: var(--accent); }
.blog-card-body p { font-size: .82rem; color: var(--text-muted); margin-bottom: 1rem; }
.blog-card-body .meta { font-size: .75rem; color: var(--text-muted); }

@media (max-width: 1024px) {
  .services-grid, .testimonials-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--bg); flex-direction: column; align-items: center; justify-content: center; gap: 2rem; }
  .nav-links.active { display: flex; }
  .hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .services-grid, .testimonials-grid, .projects-grid, .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .hero-content { padding: 7rem 0 3rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .ba-slider img, .ba-slider .ba-after img { height: 280px; }
}
