/* === NovaByte — Main Stylesheet === */
/* Light, geometric, Sora + Karla | Navy + Coral */

:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --surface-2: #f3f1ed;
  --text: #2d3436;
  --text-muted: #636e72;
  --primary: #1d3557;
  --primary-light: #457b9d;
  --accent: #e76f51;
  --accent-light: #f4a261;
  --gradient: linear-gradient(135deg, #1d3557, #457b9d);
  --gradient-accent: linear-gradient(135deg, #e76f51, #f4a261);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --shadow: 0 4px 24px rgba(29, 53, 87, 0.08);
  --shadow-lg: 0 16px 48px rgba(29, 53, 87, 0.12);
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --container: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Karla', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; cursor: pointer; font-family: inherit; }

h1, h2, h3, h4 { font-family: 'Sora', sans-serif; font-weight: 700; color: var(--primary); }

.section { padding: 110px 0; }
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-label.center { text-align: center; }
.section-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(30px, 4.5vw, 46px);
  text-align: center;
  margin-bottom: 56px;
  line-height: 1.2;
  color: var(--primary);
}
.text-accent {
  color: var(--accent);
  position: relative;
}
.text-accent::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--accent-light);
  opacity: 0.3;
  border-radius: 3px;
  z-index: -1;
}

/* === Header === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  background: rgba(250, 249, 247, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(29, 53, 87, 0.06);
  transition: var(--transition);
}
.header.scrolled {
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(29, 53, 87, 0.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}
.logo span { color: var(--accent); font-weight: 400; }
.nav { display: flex; gap: 36px; }
.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.menu-toggle { display: none; background: none; color: var(--primary); font-size: 26px; }

/* === Hero === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, #faf9f7 0%, #eef2f7 60%, #faf9f7 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -5%;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  border: 40px solid rgba(231, 111, 81, 0.06);
  animation: spin-slow 30s linear infinite;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 5%;
  left: -8%;
  width: 300px;
  height: 300px;
  background: rgba(29, 53, 87, 0.03);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morph 12s ease-in-out infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes morph {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}
.hero-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 62px);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
}
.btn-fill {
  background: var(--primary);
  color: #fff;
}
.btn-fill:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 53, 87, 0.25);
}
.btn-ghost {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.geo-shape {
  position: absolute;
  border-radius: var(--radius);
  animation: float-geo 6s ease-in-out infinite;
}
.geo-1 {
  width: 200px;
  height: 200px;
  background: var(--gradient);
  top: 10%;
  right: 10%;
  opacity: 0.9;
  border-radius: 30%;
  animation-delay: 0s;
}
.geo-2 {
  width: 140px;
  height: 140px;
  background: var(--gradient-accent);
  bottom: 15%;
  right: 25%;
  opacity: 0.8;
  border-radius: 40%;
  animation-delay: 2s;
}
.geo-3 {
  width: 100px;
  height: 100px;
  background: var(--surface-2);
  border: 3px solid var(--primary-light);
  top: 30%;
  left: 15%;
  border-radius: 50%;
  animation-delay: 4s;
}

@keyframes float-geo {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 64px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(29, 53, 87, 0.08);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}
.metric { text-align: center; }
.metric strong {
  font-family: 'Sora', sans-serif;
  font-size: 34px;
  font-weight: 800;
  display: block;
  color: var(--primary);
}
.metric span { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* === About === */
.about { background: var(--surface); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-images { position: relative; }
.about-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.img-main { width: 85%; }
.img-secondary {
  position: absolute;
  bottom: -24px;
  right: -12px;
  width: 50%;
  border-radius: var(--radius);
  border: 5px solid var(--surface);
  box-shadow: var(--shadow);
}
.about-content h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.25;
  margin-bottom: 18px;
}
.about-content > p { color: var(--text-muted); margin-bottom: 28px; font-size: 15px; line-height: 1.8; }
.about-features { display: flex; flex-direction: column; gap: 12px; }
.feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: var(--transition);
}
.feature:hover {
  border-color: var(--accent-light);
  transform: translateX(6px);
}
.feature i { font-size: 20px; color: var(--accent); }
.feature span { font-size: 14px; font-weight: 600; color: var(--primary); }

/* === Services === */
.services { background: var(--bg); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  padding: 36px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(29, 53, 87, 0.06);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--gradient-accent);
  transition: height 0.4s ease;
}
.service-card:hover::before { height: 100%; }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 20px;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--primary);
  color: #fff;
}
.service-card h3 { font-size: 17px; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text-muted); line-height: 1.75; }

/* === Work / Portfolio === */
.work { background: var(--surface); }
.work-filters { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.filter {
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: var(--transition);
}
.filter.active, .filter:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surface-2);
}
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(29, 53, 87, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.work-item:hover img { transform: scale(1.06); }
.work-item:hover .work-overlay { opacity: 1; }
.work-overlay h4 { font-size: 17px; color: #fff; font-weight: 700; }
.work-overlay p { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 4px; }
.work-item.hidden { display: none; }

/* === Testimonials === */
.testimonials { background: var(--bg); }
.testimonial-carousel { position: relative; max-width: 680px; margin: 0 auto; }
.testimonial-slide { display: none; text-align: center; padding: 48px 32px; }
.testimonial-slide.active { display: block; }
.testimonial-slide blockquote {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 28px;
  color: var(--primary);
  position: relative;
}
.testimonial-slide blockquote::before {
  content: '"';
  font-size: 80px;
  color: var(--accent-light);
  opacity: 0.4;
  position: absolute;
  top: -30px;
  left: -10px;
  font-family: serif;
}
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 14px; }
.testimonial-author img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface-2); }
.testimonial-author strong { display: block; font-size: 14px; color: var(--primary); }
.testimonial-author span { font-size: 12px; color: var(--text-muted); }
.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.testimonial-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.testimonial-dots .dot.active { background: var(--accent); border-color: var(--accent); transform: scale(1.2); }

/* === Team === */
.team { background: var(--surface); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card {
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid rgba(29, 53, 87, 0.06);
  transition: var(--transition);
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--accent-light);
}
.team-img {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--surface-2);
}
.team-img img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { font-size: 15px; margin-bottom: 4px; }
.team-card > span { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.team-social { margin-top: 12px; display: flex; justify-content: center; gap: 10px; }
.team-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  transition: var(--transition);
}
.team-social a:hover { background: var(--accent); color: #fff; }

/* === Contact === */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(29, 53, 87, 0.06);
}
.info-item i { font-size: 20px; color: var(--accent); margin-top: 2px; }
.info-item strong { font-size: 13px; font-weight: 700; display: block; margin-bottom: 4px; color: var(--primary); }
.info-item p { font-size: 14px; color: var(--text-muted); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1.5px solid rgba(29, 53, 87, 0.1);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(69, 123, 157, 0.1);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { width: 100%; justify-content: center; }

/* === Footer === */
.footer {
  background: var(--primary);
  padding: 72px 0 0;
  color: rgba(255,255,255,0.85);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .logo { color: #fff; margin-bottom: 14px; display: inline-block; }
.footer-brand p { font-size: 14px; line-height: 1.7; opacity: 0.75; max-width: 280px; margin-bottom: 18px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  transition: var(--transition);
}
.social-links a:hover { background: var(--accent); color: #fff; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 18px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.65); padding: 4px 0; transition: var(--transition); }
.footer-col a:hover { color: var(--accent-light); transform: translateX(4px); }
.footer-bottom {
  text-align: center;
  padding: 22px 0;
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.5); }

/* === Scroll Top === */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 16px rgba(29, 53, 87, 0.3);
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--accent); transform: translateY(-3px); }

/* === Responsive === */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav {
    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: 28px;
    z-index: 999;
  }
  .nav.open { display: flex; }
  .nav-link { font-size: 20px; }
  .nav-link::after { display: none; }
  .menu-toggle { display: block; z-index: 1000; }

  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-visual { height: 260px; }
  .hero-label::before { display: none; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-images { max-width: 360px; margin: 0 auto; }
  .services-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 24px; }
  .metric strong { font-size: 26px; }
  .work-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .section-title { font-size: 26px; margin-bottom: 36px; }
}
