/* ================= RESET & BASE ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ================= VARIABLES ================= */
:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --secondary: #1e293b;
  --accent: #06b6d4;
  --light: #ffffff;
  --muted: #64748b;
  --background: #f8fafc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-alt: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-lg: 24px;
}

/* ================= TYPOGRAPHY ================= */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

/* ================= COMMON ================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ================= HEADER ================= */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  height: 36px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* NAV LINKS */
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

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

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

/* ================= HERO ================= */
.hero {
  background: linear-gradient(135deg, #f0f4ff 0%, #e6f0ff 100%);
  color: var(--secondary);
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 24px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 0.8s ease both;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1.2rem;
  color: var(--muted);
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero .btn {
  animation: fadeUp 0.8s ease 0.4s both;
}

/* ================= PAGE HERO ================= */
.page-hero {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: var(--secondary);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #ffffff);
}

.page-hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.page-hero h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
}

/* ================= SECTIONS ================= */
.section {
  padding: 100px 0;
  position: relative;
}

.section:nth-child(even) {
  background: var(--background);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: var(--secondary);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
}

/* ================= CARDS ================= */
.card {
  background: var(--card-bg);
  padding: 40px;
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

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

/* ================= GRIDS ================= */
.grid {
  display: grid;
  gap: 32px;
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ================= SERVICES ================= */
.service-card {
  text-align: center;
  position: relative;
  z-index: 1;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* REMOVE LINK UNDERLINES COMPLETELY */
.service-card,
.service-card * {
  text-decoration: none !important;
}

/* ICON */
.service-card i {
  font-size: 2.6rem;
  margin-bottom: 22px;
  color: var(--accent);
  display: inline-block;
  transition: transform 0.3s ease;
}

.service-card:hover i {
  transform: scale(1.12);
}

/* TITLE */
.service-card h3 {
  margin-bottom: 14px;
  color: var(--secondary);
  font-size: 1.25rem;
  font-weight: 600;
}

/* DESCRIPTION TEXT */
.service-card p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* CTA LINK */
.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-cta {
  gap: 10px;
  color: var(--accent);
}


/* ================= CONTACT ================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form {
  background: var(--card-bg);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--background);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: var(--light);
}

.contact-form button {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 18px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ================= FOOTER ================= */
.footer {
  background: var(--secondary);
  color: white;
  padding: 60px 0 30px;
  position: relative;
  overflow: hidden;
}

/* TOP ACCENT LINE */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #38bdf8);
}

/* FOOTER CONTAINER */
.footer .container {
  position: relative;
  z-index: 1;
  text-align: left;
}

/* FOOTER GRID */
.footer .grid {
  gap: 40px;
}

/* FOOTER HEADINGS */
.footer h3 {
  margin-bottom: 14px;
  font-size: 1.05rem;
  color: #ffffff;
}

/* FOOTER TEXT */
.footer p {
  font-size: 0.92rem;
  color: #d1d5db;
  line-height: 1.7;
  margin-bottom: 8px;
}

/* FOOTER LINKS */
.footer a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.92rem;
}

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

/* BOTTOM COPYRIGHT */
.footer .footer-bottom {
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
  color: #cbd5f5;
}

/* ================= FOOTER RESPONSIVE ================= */
@media (max-width: 768px) {
  .footer .container {
    text-align: center;
  }

  .footer .grid {
    gap: 30px;
  }

  .footer h3 {
    margin-top: 10px;
  }
}

/* ================= ANIMATIONS ================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.fade-in {
  animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ================= MOBILE MENU ================= */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  background: transparent;
  border: none;
  z-index: 1001;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 999;
  padding: 100px 24px 40px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
}

.mobile-menu.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.close-btn {
  font-size: 32px;
  cursor: pointer;
  color: var(--secondary);
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: var(--primary);
}

.mobile-links {
  list-style: none;
  text-align: center;
}

.mobile-links li {
  margin: 24px 0;
}

.mobile-links a {
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--secondary);
  position: relative;
  padding: 8px 0;
  display: inline-block;
  transition: color 0.3s ease;
}

.mobile-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.mobile-links a:hover::after {
  width: 100%;
}

.mobile-links a:hover {
  color: var(--primary);
}

.mobile-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.mobile-socials a {
  font-size: 1.8rem;
  color: var(--secondary);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--background);
}

.mobile-socials a:hover {
  color: white;
  background: var(--gradient);
  transform: translateY(-4px);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .page-hero h1 {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero,
  .page-hero {
    padding: 140px 0 80px;
  }

  .section {
    padding: 80px 0;
  }

  .contact-form {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .card {
    padding: 32px 24px;
  }
}

/* ================= UTILITY CLASSES ================= */
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: var(--gradient) !important;
}

.shadow-hover {
  transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
  box-shadow: var(--shadow-lg);
}

/* ================= FORM MESSAGES ================= */
.form-success,
.form-error {
  padding: 12px 20px;
  border-radius: var(--radius);
  margin-top: 16px;
  font-size: 0.95rem;
  display: none;
  animation: fadeUp 0.3s ease;
}

.form-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.form-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* ================= CONTACT INFO CARD ================= */
.contact-info-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: var(--shadow-md);
  height: 100%;
}

.contact-info-card i.fa-headset {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: var(--gradient-alt);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.contact-info-card h3 {
  margin-bottom: 20px;
  color: var(--secondary);
  font-size: 1.5rem;
}

.contact-text {
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

.contact-points {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.contact-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-weight: 500;
  color: var(--secondary);
}

.contact-points i {
  color: var(--accent);
  font-size: 1.2rem;
  width: 24px;
}

.contact-socials {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.contact-socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 140px;
  justify-content: center;
}

.contact-socials a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.instagram-btn {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
}

/* ================= SCROLLBAR ================= */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}




/* ================= REVIEWS SECTION ================= */

.reviews-section {
  padding-bottom: 80px;
}

.reviews-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.reviews-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s ease;
  will-change: transform;
}

.review-card {
  min-width: 320px;
  max-width: 320px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.review-project a {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  word-break: break-all;
}

.review-project a:hover {
  text-decoration: underline;
}

.review-client {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 6px 0 10px;
}

.review-stars {
  color: #fbbf24;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.review-comment {
  font-size: 0.95rem;
  color: var(--secondary);
  line-height: 1.6;
}

/* MOBILE */
@media (max-width: 768px) {
  .review-card {
    min-width: 85%;
  }
}





/* ==================================================
   REFERRAL PAGE – UI FIX (ADD AT BOTTOM OF style.css)
   ================================================== */

/* Layout */
.referral-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: flex-start;
}

/* Poster */
.referral-poster-box img {
  width: 100%;
  max-width: 320px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Right content wrapper */
.referral-content {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* Buttons */
.referral-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.referral-actions .btn {
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
}

/* Info text */
.referral-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 22px;
}

/* Form card look */
.contact-form {
  background: #f9fafc;
  padding: 22px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}

/* Inputs */
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  border: 1px solid #e4e7ec;
  font-size: 0.95rem;
  background: #ffffff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}

/* Submit button */
.contact-form button {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
}

/* Success & error */
.form-success,
.form-error {
  margin-top: 14px;
  font-size: 0.9rem;
  display: none;
}

/* ================= MOBILE ONLY ================= */
@media (max-width: 768px) {

  .referral-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .referral-poster-box {
    text-align: center;
  }

  .referral-poster-box img {
    max-width: 260px;
    margin: 0 auto;
  }

  .referral-actions {
    justify-content: center;
  }

  .referral-content {
    padding: 22px;
  }
}

