/* ============================================
   EMBLEM DESIGN — Light Tech / Glassmorphism
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

/* --- Custom Properties --- */
:root {
  --bg: #F0F4F8;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --text: #1A202C;
  --text-muted: #64748B;
  --cyan: #00D1FF;
  --violet: #7C3AED;
  --gradient: linear-gradient(135deg, var(--cyan), var(--violet));
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: .4s cubic-bezier(.4, 0, .2, 1);
  --max-w: 1200px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity .8s ease;
  position: relative;
}

body.loaded {
  opacity: 1;
}

/* --- Mesh Gradients (Background) --- */
.mesh-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
  animation: float 20s infinite ease-in-out alternate;
}

.mesh-cyan {
  top: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: var(--cyan);
}

.mesh-violet {
  bottom: -10%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: var(--violet);
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 5%) scale(1.05); }
  100% { transform: translate(-5%, -5%) scale(0.95); }
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; border: none; outline: none; background: none; }
button { cursor: pointer; }

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

h1, h2 {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 120px 0; }
.section-label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--violet);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 650px;
  margin-bottom: 64px;
}

.accent-cyan { color: var(--cyan); -webkit-text-fill-color: var(--cyan); }
.accent-violet { color: var(--violet); -webkit-text-fill-color: var(--violet); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.4);
}

.btn-outline {
  border: 1.5px solid rgba(124, 58, 237, 0.3);
  color: var(--violet);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--violet);
  background: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.15);
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}

.logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-list { display: flex; gap: 40px; align-items: center; }

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width var(--transition);
  border-radius: 2px;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  padding: 12px 28px;
  border-radius: 50px;
  background: var(--gradient);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 209, 255, 0.2);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 209, 255, 0.4);
}

/* Mobile menu */
.menu-toggle { display: none; flex-direction: column; gap: 6px; padding: 4px; z-index: 1001; }
.menu-toggle span { width: 28px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* --- Footer --- */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 80px 0 40px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 0.95rem;
  max-width: 360px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
  margin-bottom: 24px;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 6px 0;
  transition: color var(--transition);
}

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

.footer-social { display: flex; gap: 16px; margin-top: 12px; }
.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
  border: 1px solid transparent;
}
.footer-social a:hover {
  background: var(--bg-card);
  border-color: var(--violet);
  color: var(--violet);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-legal { display: flex; gap: 32px; }
.footer-legal a { transition: color var(--transition); }
.footer-legal a:hover { color: var(--violet); }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

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

.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; }

/* --- Teaser / Featured --- */
.teaser-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  box-shadow: var(--shadow);
}

.teaser-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--violet);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.teaser h3 { font-size: 2rem; margin-bottom: 16px; -webkit-text-fill-color: var(--text); }
.teaser p { color: var(--text-muted); margin-bottom: 32px; font-size: 1.05rem; }

.teaser-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.metric-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label { color: var(--text-muted); font-size: 0.8rem; margin-top: 8px; font-weight: 500; }

.teaser-score { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-ring {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 4px solid rgba(124, 58, 237, 0.1);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  box-shadow: 0 10px 40px rgba(124, 58, 237, 0.1);
}

.score-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.score-caption { color: var(--text-muted); font-size: 0.85rem; margin-top: 8px; font-weight: 600; }

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  padding: 40px;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--violet);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.1);
}

.service-icon { font-size: 2.5rem; margin-bottom: 24px; display: block; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 12px; -webkit-text-fill-color: var(--text); }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* --- Method / Timeline --- */
.timeline { position: relative; padding-left: 50px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--violet));
  opacity: 0.3;
}

.timeline-step { position: relative; padding: 0 0 56px 40px; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -42px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--cyan);
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(0, 209, 255, 0.1);
}

.timeline-step:nth-child(even) .timeline-dot {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.timeline-number {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.timeline-step:nth-child(even) .timeline-number { color: var(--violet); }
.timeline-step h3 { font-size: 1.4rem; margin-bottom: 10px; -webkit-text-fill-color: var(--text); }
.timeline-step p { color: var(--text-muted); font-size: 1rem; max-width: 520px; }

/* --- Portfolio --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 40px;
}

.project-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--cyan);
}

.project-thumb {
  height: 240px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-thumb-inner {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 1px;
}

.project-category {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.project-body { padding: 32px; flex-grow: 1; display: flex; flex-direction: column; }
.project-body h3 { font-size: 1.4rem; margin-bottom: 12px; -webkit-text-fill-color: var(--text); }
.project-body > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.kpi {
  text-align: center;
  padding: 12px 6px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,0.03);
}

.kpi-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.kpi-label { font-size: 0.65rem; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }

.project-techs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; margin-top: auto; }
.tech-tag {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(124, 58, 237, 0.08);
  color: var(--violet);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cyan);
  transition: var(--transition);
}

.project-link:hover { gap: 14px; }
.project-link::after { content: '→'; }

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-form-wrapper {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 28px; position: relative; }
.form-label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.form-input, .form-textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  background: #FFFFFF;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.form-textarea { min-height: 160px; resize: vertical; }
.form-error { font-size: 0.8rem; color: #E53E3E; margin-top: 8px; display: none; font-weight: 500; }
.form-group.error .form-input, .form-group.error .form-textarea { border-color: #E53E3E; }
.form-group.error .form-error { display: block; }
.form-group.valid .form-input, .form-group.valid .form-textarea { border-color: #38A169; }

.contact-info-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
}

.contact-info-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 209, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  color: var(--cyan);
}

.contact-info-text p:first-child { font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: 4px; }
.contact-info-text p:last-child { color: var(--text-muted); font-size: 0.95rem; }
.contact-info-text a { color: var(--violet); transition: color var(--transition); font-weight: 500; }
.contact-info-text a:hover { color: var(--cyan); }

/* --- FAQ Accordion --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.faq-item:hover { border-color: var(--cyan); box-shadow: 0 8px 20px rgba(0, 209, 255, 0.05); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  background: none;
  color: var(--text);
}

.faq-question:hover { color: var(--violet); }
.faq-icon {
  font-size: 1.4rem;
  transition: transform var(--transition);
  color: var(--violet);
  flex-shrink: 0;
  margin-left: 20px;
}

.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--cyan); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-answer-inner { padding: 0 32px 24px; color: var(--text-muted); font-size: 1rem; line-height: 1.8; }

/* --- Scroll Animations (Fade-up + Blur dissipation) --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- Page Header --- */
.page-header { padding: 180px 0 60px; text-align: center; }
.page-header h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 16px; }
.page-header p { color: var(--text-muted); font-size: 1.15rem; max-width: 600px; margin: 0 auto; }

/* --- Responsive --- */
@media (max-width: 992px) {
  .contact-grid { grid-template-columns: 1fr; }
  .teaser-card { grid-template-columns: 1fr; padding: 40px; }
  .teaser-score { order: -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 120px 40px 40px;
    gap: 32px;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    border-left: 1px solid rgba(255,255,255,0.8);
  }
  .nav-list.open { right: 0; }
  .project-kpis { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .btn { justify-content: center; }
  .container { padding: 0 1.5rem; }
  .section { padding: 80px 0; }
}
