/* ============================================================
   BATISTA SOFTWARES – STYLE.CSS  v2.0
   Design profissional – azul escuro + ciano + branco
   ============================================================ */

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

:root {
  /* Paleta */
  --blue-dark:   #061a3a;
  --blue-navy:   #0d2260;
  --blue-mid:    #1a3a8f;
  --blue:        #1e7fd4;
  --blue-light:  #4dc3e8;
  --blue-pale:   #eef6fd;
  --blue-glow:   rgba(77,195,232,0.18);
  --ai-purple:   #7c3aed;
  --ai-purple-pale: #f5f0ff;
  --white:       #ffffff;
  --off-white:   #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-300:    #cbd5e1;
  --gray-400:    #94a3b8;
  --gray-500:    #64748b;
  --gray-600:    #475569;
  --gray-800:    #1e293b;
  --gray-900:    #0f172a;

  /* Gradientes */
  --gradient:       linear-gradient(135deg, var(--blue-navy) 0%, var(--blue) 55%, var(--blue-light) 100%);
  --gradient-soft:  linear-gradient(135deg, #0d2260 0%, #1e7fd4 100%);
  --gradient-ai:    linear-gradient(135deg, #6c2bd9 0%, #1e7fd4 100%);
  --gradient-hero:  linear-gradient(150deg, #061a3a 0%, #0d2260 40%, #1a3a8f 75%, #1e7fd4 100%);

  /* Sombras */
  --shadow-xs:  0 1px 4px rgba(6,26,58,0.08);
  --shadow-sm:  0 2px 10px rgba(6,26,58,0.10);
  --shadow-md:  0 8px 30px rgba(6,26,58,0.13);
  --shadow-lg:  0 20px 60px rgba(6,26,58,0.16);
  --shadow-xl:  0 32px 80px rgba(6,26,58,0.22);
  --shadow-blue: 0 8px 32px rgba(30,127,212,0.28);
  --shadow-ai:   0 8px 32px rgba(124,58,237,0.22);

  /* Raios */
  --r-sm:  8px;
  --r:     14px;
  --r-lg:  22px;
  --r-xl:  32px;

  /* Transições */
  --t: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---- Highlight text ---- */
.highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   SEÇÃO HEADERS
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--blue-dark);
  margin: 12px 0 16px;
  letter-spacing: -0.5px;
  line-height: 1.18;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(30,127,212,0.18);
}

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: all var(--t);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-soft);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(30,127,212,0.42);
  filter: brightness(1.07);
}
.btn-outline {
  background: transparent;
  border-color: rgba(30,127,212,0.45);
  color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-blue);
}
.btn-white {
  background: var(--white);
  color: var(--blue-navy);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.btn-white:hover {
  background: var(--blue-pale);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.16);
}
.btn-sm { padding: 10px 22px; font-size: 0.86rem; gap: 7px; }
.btn-nav {
  background: var(--gradient-soft);
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all var(--t);
  box-shadow: 0 3px 14px rgba(30,127,212,0.3);
}
.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(30,127,212,0.42);
  filter: brightness(1.08);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: all var(--t-slow);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 24px rgba(6,26,58,0.08);
  padding: 14px 0;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; }
.logo-img {
  height: 50px;
  width: auto;
  transition: transform var(--t);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}
.navbar.scrolled .logo-img { filter: none; }
.logo-img:hover { transform: scale(1.04); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links li a {
  color: rgba(255,255,255,0.88);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 15px;
  border-radius: var(--r-sm);
  transition: all var(--t);
  letter-spacing: 0.1px;
}
.navbar.scrolled .nav-links li a { color: var(--gray-600); }
.nav-links li a:hover { color: var(--white); background: rgba(255,255,255,0.12); }
.navbar.scrolled .nav-links li a:hover { color: var(--blue); background: var(--blue-pale); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white);
  border-radius: 4px;
  transition: all var(--t);
}
.navbar.scrolled .nav-toggle span { background: var(--gray-800); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 130px 0 90px;
}

/* Noise texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.shape {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blue-light), transparent 70%);
}
.shape-1 { width: 700px; height: 700px; top: -250px; right: -180px; opacity: 0.07; }
.shape-2 { width: 400px; height: 400px; bottom: -120px; left: -100px; opacity: 0.05; }
.shape-3 { width: 200px; height: 200px; top: 35%; left: 38%; opacity: 0.04; }
.circuit-lines { position: absolute; inset: 0; }

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text { color: var(--white); }

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(77,195,232,0.15);
  border: 1px solid rgba(77,195,232,0.35);
  color: var(--blue-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero-text h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 22px;
  letter-spacing: -1px;
}
.hero-text h1 .highlight {
  background: linear-gradient(135deg, #fff 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text p {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 36px;
  max-width: 490px;
  line-height: 1.8;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 50px; }
.hero-buttons .btn-outline {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}
.hero-buttons .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
  box-shadow: none;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1;
}
.stat > span { font-size: 1.4rem; font-weight: 800; color: var(--blue-light); }
.stat p { font-size: 0.76rem; opacity: 0.6; margin-top: 4px; letter-spacing: 0.3px; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.18); }

/* Hero image */
.hero-image { display: flex; justify-content: center; align-items: center; }
.hero-card-wrapper {
  position: relative;
  width: 440px; height: 440px;
  display: flex; align-items: center; justify-content: center;
}
.hero-glow {
  position: absolute;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(77,195,232,0.3) 0%, transparent 68%);
  border-radius: 50%;
  animation: pulse-glow 3.5s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.14); opacity: 1; }
}
.hero-logo-big {
  width: 290px; height: 290px;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.28));
  animation: float 4.5s ease-in-out infinite;
  position: relative; z-index: 2;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-16px); }
}
.floating-badge {
  position: absolute;
  background: rgba(255,255,255,0.96);
  color: var(--blue-navy);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: 50px;
  display: flex; align-items: center; gap: 6px;
  box-shadow: var(--shadow-md);
  animation: float-badge 3s ease-in-out infinite;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.8);
}
.floating-badge i { color: var(--blue); font-size: 0.8rem; }
.fb-1 { top: 55px; left: 5px; animation-delay: 0s; }
.fb-2 { top: 55px; right: 5px; animation-delay: 0.8s; }
.fb-3 { bottom: 80px; right: 20px; animation-delay: 1.6s; }
@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.scroll-indicator {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  animation: bounce 2.2s infinite;
  z-index: 2;
}
.scroll-indicator a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: all var(--t);
}
.scroll-indicator a:hover { background: rgba(255,255,255,0.1); color: white; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(9px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 110px 0;
  background: var(--off-white);
  position: relative;
}
.about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
  align-items: start;
}

/* About: text side */
.about-text .section-tag { margin-bottom: 16px; }
.about-text h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 20px;
  line-height: 1.18;
  letter-spacing: -0.5px;
}
.about-text > p {
  color: var(--gray-500);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.8;
}
.about-features { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.feature-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border-radius: var(--r);
  border: 1px solid var(--gray-200);
  transition: all var(--t);
}
.feature-item:hover {
  border-color: rgba(30,127,212,0.2);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}
.feature-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--blue-pale);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  font-size: 1rem;
  transition: all var(--t);
}
.feature-item:hover .feature-icon {
  background: var(--blue);
  color: var(--white);
}
.feature-item h4 {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 3px;
}
.feature-item p { font-size: 0.85rem; color: var(--gray-500); margin: 0; }

/* About: visual / stack side */
.about-visual {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.about-img-wrapper {
  position: relative;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 28px;
}
.about-gradient-box {
  width: 200px; height: 200px;
  background: var(--gradient-soft);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-blue);
  position: relative;
  overflow: hidden;
}
.about-gradient-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
}
.about-icon {
  font-size: 4.5rem;
  color: rgba(255,255,255,0.92);
  position: relative; z-index: 1;
}
.about-dots {
  position: absolute;
  width: 90px; height: 90px;
  background-image: radial-gradient(var(--blue-light) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  bottom: -18px; right: -18px;
  opacity: 0.3;
}

/* Stack title */
.stack-section-title {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
  width: 100%;
}
.stack-section-title i { color: var(--blue); font-size: 0.8rem; }

/* Stack level blocks */
.stack-level-block { margin-bottom: 20px; width: 100%; }

.stack-level-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.proficient-label {
  background: var(--blue-dark);
  color: var(--white);
}
.ai-label {
  background: var(--gradient-ai);
  color: var(--white);
}

/* Tech tags */
.about-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.about-tech-tags span {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  box-shadow: var(--shadow-xs);
  transition: all var(--t);
  cursor: default;
}
.about-tech-tags span:hover {
  background: var(--blue-pale);
  border-color: rgba(30,127,212,0.3);
  color: var(--blue-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.about-tech-tags span i { color: var(--blue); font-size: 0.82rem; }

/* AI tags variant */
.about-tech-tags span.ai-tag {
  border-color: rgba(124,58,237,0.18);
  color: var(--ai-purple);
}
.about-tech-tags span.ai-tag i { color: var(--ai-purple); }
.about-tech-tags span.ai-tag:hover {
  background: var(--ai-purple-pale);
  border-color: rgba(124,58,237,0.35);
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects {
  padding: 110px 0;
  background: var(--white);
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* Featured card = span 7 columns */
.project-card.featured { grid-column: span 7; }
/* Others = span 5 */
.project-card:not(.featured) { grid-column: span 5; }
/* 3rd and 4th cards - 2nd row */
.project-card:nth-child(3) { grid-column: span 6; }
.project-card:nth-child(4) { grid-column: span 6; }

.project-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.project-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-soft);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow);
}
.project-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.project-card:hover::after { transform: scaleX(1); }

.project-card.featured {
  background: linear-gradient(145deg, var(--blue-dark) 0%, var(--blue-navy) 60%, #1a3a8f 100%);
  border-color: transparent;
  box-shadow: var(--shadow-blue);
}
.project-card.featured::after { transform: scaleX(1); background: linear-gradient(90deg, var(--blue-light), var(--blue)); }
.project-card.featured:hover { transform: translateY(-7px); box-shadow: var(--shadow-xl); }
.project-card.featured .project-desc,
.project-card.featured .pf-item { color: rgba(255,255,255,0.72); }
.project-card.featured .project-meta h3 { color: var(--white); }
.project-card.featured .project-category { color: var(--blue-light); opacity: 0.9; }
.project-card.featured .project-tech span {
  background: rgba(255,255,255,0.1);
  color: var(--blue-light);
  border-color: rgba(255,255,255,0.15);
}
.project-card.featured .pf-item i { color: var(--blue-light); }
.project-card.featured .btn-primary {
  background: var(--white);
  color: var(--blue-navy);
  box-shadow: 0 4px 18px rgba(0,0,0,0.2);
}
.project-card.featured .btn-primary:hover { background: var(--blue-pale); }

.project-badge {
  position: absolute; top: 20px; right: 20px;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 0.65rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.2px;
  padding: 4px 12px;
  border-radius: 100px;
}
.project-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.project-icon-wrap {
  width: 50px; height: 50px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.alunoid-icon { background: rgba(77,195,232,0.18); color: var(--blue-light); }
.shop-icon    { background: var(--blue-pale); color: var(--blue); }
.app-icon     { background: #eef0fd; color: #6366f1; }
.portal-icon  { background: #fdf4e8; color: #f59e0b; }

.project-meta h3 { font-size: 1.08rem; font-weight: 700; color: var(--blue-dark); letter-spacing: -0.2px; }
.project-category { font-size: 0.76rem; color: var(--blue); font-weight: 600; letter-spacing: 0.2px; }
.project-desc { font-size: 0.88rem; color: var(--gray-500); margin-bottom: 18px; line-height: 1.7; }

.project-tech { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.project-tech span {
  background: var(--blue-pale);
  color: var(--blue-mid);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(30,127,212,0.12);
}
.project-features { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.pf-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: var(--gray-500); font-weight: 500;
}
.pf-item i { color: var(--blue); font-size: 0.73rem; }

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: 110px 0;
  background: var(--off-white);
  position: relative;
}
.services::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 36px 30px;
  border: 1px solid var(--gray-200);
  transition: all var(--t);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-soft);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover .service-icon {
  background: var(--gradient-soft);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.service-icon {
  width: 58px; height: 58px;
  background: var(--blue-pale);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--blue);
  margin-bottom: 22px;
  transition: all var(--t);
}
.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 11px;
  letter-spacing: -0.1px;
}
.service-card p {
  font-size: 0.87rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--gradient-hero);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.3;
}
.cta-banner::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(77,195,232,0.12) 0%, transparent 70%);
  top: 50%; left: 30%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  position: relative; z-index: 1;
}
.cta-content h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.cta-content p { color: rgba(255,255,255,0.72); font-size: 1rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 110px 0;
  background: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 64px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 0; }
.contact-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-100);
}
.contact-item:first-child { padding-top: 0; }
.contact-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--blue-pale);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  font-size: 1rem;
  transition: all var(--t);
}
.contact-item:hover .contact-icon { background: var(--blue); color: var(--white); }
.contact-item h4 { font-size: 0.72rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 4px; }
.contact-item p { font-size: 0.92rem; color: var(--gray-800); font-weight: 500; }

.contact-social { margin-top: 28px; }
.contact-social h4 { font-size: 0.72rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 14px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 40px; height: 40px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500);
  font-size: 0.95rem;
  transition: all var(--t);
}
.social-links a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-blue);
}

/* Form */
.contact-form-wrapper {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 44px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.contact-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-soft);
}
.contact-form { display: flex; flex-direction: column; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.82rem; font-weight: 600; color: var(--gray-600); letter-spacing: 0.2px;
}
.required { color: var(--blue); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap i {
  position: absolute; left: 15px;
  color: var(--gray-300); font-size: 0.88rem;
  pointer-events: none; transition: color var(--t);
}
.input-wrap input,
.input-wrap select,
.input-wrap textarea {
  width: 100%;
  padding: 12px 15px 12px 42px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r);
  font-family: 'Inter', sans-serif;
  font-size: 0.91rem;
  color: var(--gray-800);
  background: var(--off-white);
  transition: all var(--t);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.input-wrap textarea { resize: vertical; padding-top: 14px; }
.textarea-wrap { align-items: flex-start; }
.textarea-wrap i { top: 14px; }
.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(30,127,212,0.10);
}
.input-wrap:focus-within i { color: var(--blue); }
.input-wrap input.error,
.input-wrap select.error,
.input-wrap textarea.error {
  border-color: #ef4444;
  background: #fff8f8;
}
.error-msg { font-size: 0.76rem; color: #ef4444; font-weight: 500; min-height: 16px; }

.form-footer {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 4px;
}
.form-note { font-size: 0.78rem; color: var(--gray-400); display: flex; align-items: center; gap: 6px; }
.btn-submit { min-width: 210px; justify-content: center; }

.form-success { text-align: center; padding: 52px 24px; }
.success-icon { font-size: 4rem; color: #22c55e; margin-bottom: 20px; animation: pop-in 0.5s ease; }
@keyframes pop-in {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}
.form-success h3 { font-size: 1.5rem; font-weight: 800; color: var(--blue-dark); margin-bottom: 10px; }
.form-success p { color: var(--gray-500); margin-bottom: 28px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--blue-dark);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo { height: 46px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 0.86rem; line-height: 1.75; color: rgba(255,255,255,0.55); margin-bottom: 24px; }
.footer-brand .social-links a {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.55);
}
.footer-brand .social-links a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: none;
}
.footer-links-col h4 {
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}
.footer-links-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links-col ul li a {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.5);
  transition: all var(--t);
}
.footer-links-col ul li a:hover { color: var(--blue-light); padding-left: 5px; }
.footer-bottom {
  padding: 24px 0;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.3); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  background: var(--gradient-soft);
  color: var(--white);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  box-shadow: var(--shadow-blue);
  opacity: 0;
  transform: translateY(16px);
  transition: all var(--t);
  pointer-events: none;
  z-index: 500;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover { transform: translateY(-4px); filter: brightness(1.1); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-card.featured { grid-column: span 2; }
  .project-card:not(.featured) { grid-column: span 1; }
  .project-card:nth-child(3) { grid-column: span 1; }
  .project-card:nth-child(4) { grid-column: span 1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(6,26,58,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 28px 24px;
    gap: 4px;
    transform: translateY(-110%);
    transition: transform var(--t-slow);
    z-index: 999;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li a { color: rgba(255,255,255,0.9) !important; font-size: 1rem; padding: 13px 16px; display: block; border-radius: var(--r-sm); }
  .nav-links li a:hover { background: rgba(255,255,255,0.08) !important; color: white !important; }
  .nav-toggle { display: flex; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured,
  .project-card:not(.featured),
  .project-card:nth-child(3),
  .project-card:nth-child(4) { grid-column: span 1; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-content { text-align: center; justify-content: center; }
  .footer-bottom { text-align: center; justify-content: center; }
  .contact-form-wrapper { padding: 28px 22px; }
  .form-footer { flex-direction: column; align-items: stretch; }
  .btn-submit { width: 100%; }
}

@media (max-width: 480px) {
  .hero { padding: 120px 0 70px; }
  .about, .projects, .services, .contact { padding: 80px 0; }
  .section-header { margin-bottom: 44px; }
  .container { padding: 0 20px; }
}
