/* ============================================
   PROJEX – Academic Services Website
   styles.css — Full Design System & Layout
   ============================================ */

/* ---------- Google Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Core palette */
  --primary:        #1e3a8a;
  --primary-light:  #2d4ea3;
  --primary-dark:   #152c6b;
  --accent:         #06b6d4;
  --accent-light:   #22d3ee;
  --accent-dark:    #0891b2;

  /* Neutrals */
  --bg:             #f8fafc;
  --bg-card:        #ffffff;
  --bg-dark:        #0f172a;
  --bg-dark-card:   #1e293b;
  --text:           #1e293b;
  --text-light:     #64748b;
  --text-white:     #f1f5f9;
  --border:         #e2e8f0;

  /* Effects */
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 6px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:   0 10px 25px rgba(0,0,0,.08), 0 6px 10px rgba(0,0,0,.05);
  --shadow-xl:   0 20px 50px rgba(0,0,0,.12);
  --shadow-glow: 0 0 30px rgba(6,182,212,.25);

  /* Radius */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --dur:  .3s;
}

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- Utility ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .badge {
  display: inline-block;
  padding: 6px 18px;
  background: linear-gradient(135deg, rgba(6,182,212,.12), rgba(30,58,138,.12));
  color: var(--accent-dark);
  border-radius: var(--radius-full);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.section-header p {
  margin-top: 14px;
  color: var(--text-light);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--dur) var(--ease);
}

.navbar.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-weight: 500;
  font-size: .95rem;
  color: var(--text);
  position: relative;
  transition: color var(--dur) var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--dur) var(--ease);
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  padding: 10px 24px !important;
  background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
  color: #fff !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease) !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(30,58,138,.35) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--text);
  border-radius: 4px;
  transition: all var(--dur) var(--ease);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
}

/* Animated gradient orbs */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .35;
  animation: float 8s ease-in-out infinite alternate;
}

.hero::before {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -200px;
  right: -100px;
}

.hero::after {
  width: 500px;
  height: 500px;
  background: #6366f1;
  bottom: -150px;
  left: -100px;
  animation-delay: 4s;
}

@keyframes float {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.1); }
}

/* Grid pattern overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(6,182,212,.2);
  border: 1px solid rgba(6,182,212,.4);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 28px;
  animation: fadeInUp .8s var(--ease) both;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.3); }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp .8s var(--ease) .15s both;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent-light), #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 0 auto 40px;
  animation: fadeInUp .8s var(--ease) .3s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp .8s var(--ease) .45s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: .95rem;
  border: none;
  transition: all var(--dur) var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 4px 15px rgba(6,182,212,.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(6,182,212,.5);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.3);
}

.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.5);
  transform: translateY(-3px);
}

/* Hero stats strip */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 80px;
  animation: fadeInUp .8s var(--ease) .6s both;
}

.hero-stats .stat {
  text-align: center;
}

.hero-stats .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}

.hero-stats .stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  margin-top: 4px;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--dur) var(--ease);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.service-icon.blue {
  background: rgba(30,58,138,.1);
  color: var(--primary);
}

.service-icon.cyan {
  background: rgba(6,182,212,.1);
  color: var(--accent-dark);
}

.service-icon.indigo {
  background: rgba(99,102,241,.1);
  color: #6366f1;
}

.service-icon.emerald {
  background: rgba(16,185,129,.1);
  color: #10b981;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.service-card p {
  font-size: .93rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 18px;
}

.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: .9rem;
  transition: gap var(--dur) var(--ease);
}

.service-card:hover .card-link {
  gap: 10px;
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-us {
  background: linear-gradient(180deg, #f1f5f9, var(--bg));
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.why-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--dur) var(--ease);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(30,58,138,.08), rgba(6,182,212,.08));
}

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.why-card p {
  font-size: .9rem;
  color: var(--text-light);
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
  background: var(--bg-dark);
  position: relative;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(6,182,212,.3);
}

.step h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: rgba(255,255,255,.55);
  font-size: .9rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  background: var(--bg);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

.testimonial-card .quote-icon {
  font-size: 2.5rem;
  color: var(--accent);
  opacity: .3;
  position: absolute;
  top: 20px;
  right: 24px;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  color: #fbbf24;
  font-size: .9rem;
}

.testimonial-card blockquote {
  font-size: .95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
}

.testimonial-info strong {
  font-size: .95rem;
  display: block;
}

.testimonial-info span {
  font-size: .8rem;
  color: var(--text-light);
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  background: linear-gradient(180deg, #f1f5f9, var(--bg));
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease);
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  font-size: 1.3rem;
  transition: transform var(--dur) var(--ease);
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease);
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-light);
  font-size: .93rem;
  line-height: 1.7;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), #4338ca);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(6,182,212,.2);
  border-radius: 50%;
  filter: blur(80px);
  top: -150px;
  right: -100px;
}

.cta-banner .container {
  position: relative;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255,255,255,.7);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto 32px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-dark);
  padding: 80px 0 30px;
}

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

.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255,255,255,.5);
  font-size: .9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-col a {
  display: block;
  padding: 6px 0;
  color: rgba(255,255,255,.5);
  font-size: .9rem;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

.footer-col a:hover {
  color: var(--accent-light);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: rgba(255,255,255,.35);
  font-size: .85rem;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  transition: all var(--dur) var(--ease);
}

.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur) var(--ease);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(30px) scale(.96);
  transition: transform var(--dur) var(--ease);
  box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px 0;
}

.modal-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-light);
  transition: all var(--dur) var(--ease);
}

.modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
}

.modal-body {
  padding: 24px 32px 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .93rem;
  color: var(--text);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(6,182,212,.15);
}

.form-group input[readonly] {
  background: #e2e8f0;
  cursor: not-allowed;
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.file-upload {
  padding: 20px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.file-upload:hover {
  border-color: var(--accent);
  background: rgba(6,182,212,.03);
}

.file-upload p {
  font-size: .85rem;
  color: var(--text-light);
}

.file-upload p strong {
  color: var(--accent-dark);
}

.btn-submit {
  margin-top: 20px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  transition: all var(--dur) var(--ease);
}

.btn-submit:hover {
  box-shadow: 0 6px 20px rgba(30,58,138,.35);
  transform: translateY(-2px);
}

.btn-submit:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
}

/* Dynamic Form Fields */
.dynamic-field {
  display: none !important;
}

.dynamic-field.show {
  display: flex !important;
}

/* Form messages */
.form-message {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  display: none;
}

.form-message.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  display: block;
}

.form-message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  display: block;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--dur) var(--ease);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(30,58,138,.4);
}

/* ============================================
   WHATSAPP BUTTON
   ============================================ */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37,211,102,.4);
  z-index: 900;
  transition: all var(--dur) var(--ease);
  animation: whatsappPulse 2s ease infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37,211,102,.5);
}

.whatsapp-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(37,211,102,.4); }
  50%      { box-shadow: 0 4px 30px rgba(37,211,102,.6); }
}

/* ============================================
   WORKS PAGE
   ============================================ */
.works-hero {
  padding: 140px 0 60px;
  background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 100%);
  text-align: center;
}

.works-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}

.works-hero p {
  color: rgba(255,255,255,.6);
  font-size: 1.05rem;
}

.works-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 40px 0 20px;
}

.filter-btn {
  padding: 10px 24px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-light);
  transition: all var(--dur) var(--ease);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding-bottom: 40px;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--dur) var(--ease);
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.work-card-image {
  height: 200px;
  background: linear-gradient(135deg, rgba(30,58,138,.1), rgba(6,182,212,.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.work-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.05));
}

.work-card-body {
  padding: 24px;
}

.work-card-body .tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(6,182,212,.1);
  color: var(--accent-dark);
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.work-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.work-card-body p {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.65;
}

.work-card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--text-light);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    box-shadow: -10px 0 30px rgba(0,0,0,.1);
    transition: right var(--dur) var(--ease);
    z-index: 1000;
  }

  .nav-links.open {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats {
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .section-padding {
    padding: 64px 0;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .modal-header,
  .modal-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Scroll reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/*
 * Fallback: if JS fails to add .revealed, content becomes
 * visible after 2s via this animation. This ensures the site
 * is never blank even when JavaScript crashes or loads late.
 */
@keyframes revealFallback {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: revealFallback 0s ease 2s forwards;
}
