:root {
  /* FONTS */
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Outfit", sans-serif;

  /* LIGHT THEME */
  --bg-main: #ffffff;
  --bg-alt: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary: #0ea5e9;

  /* Form Validation Error Color (Blue instead of Red) */
  --error-color: #ef4444;

  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* DARK THEME */
body.dark-mode {
  --bg-main: #0f172a;
  --bg-alt: #1e293b;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --card-bg: #1e293b;
  --border-color: #334155;
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

::selection {
  background: var(--primary);
  color: white;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;

  user-select: none; /* Standard */
  -webkit-user-select: none; /* Chrome/Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE */
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.bg-light {
  background-color: var(--bg-alt);
}
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Typography */
h1,
h2,
h3,
.stat-box h3,
.logo-link {
  font-family: var(--font-heading);
}
h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
p {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 400;
}

/* =========================================
   PREMIUM UI/UX BUTTONS
========================================= */
.btn-primary,
.btn-outline {
  font-family: var(--font-heading);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-small {
  padding: 10px 24px;
  font-size: 0.9rem;
  border-radius: 8px;
}
.btn-primary i,
.btn-outline i {
  transition: transform 0.3s ease;
  font-size: 0.9em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: white;
  box-shadow:
    0 4px 15px rgba(37, 99, 235, 0.2),
    inset 0 -3px 0 rgba(0, 0, 0, 0.15);
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: left 0.6s ease;
  z-index: -1;
}
.btn-primary:hover::before {
  left: 100%;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 15px 25px rgba(37, 99, 235, 0.3),
    inset 0 -3px 0 rgba(0, 0, 0, 0.15);
}
.btn-primary:hover i {
  transform: translateX(4px);
}
.btn-primary:active {
  transform: translateY(1px);
  box-shadow:
    0 2px 5px rgba(37, 99, 235, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-color);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover i {
  transform: translateX(4px);
}

/* =========================================
   NAVBAR & DARK MODE TOGGLE
========================================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}
body.dark-mode .navbar {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid #1e293b;
}
.navbar.scrolled {
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.logo-img {
  height: 200px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}
.nav-links a:not(.btn-primary) {
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}
.nav-links a:not(.btn-primary):hover {
  color: var(--primary);
}
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

.switch-container {
  display: flex;
  align-items: center;
  margin-left: 10px;
}
.toggle-switch {
  background-color: #cbd5e1;
  width: 50px;
  height: 26px;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
  border: 1px solid transparent;
}
.switch-knob {
  background-color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  position: absolute;
  top: 1px;
  left: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #eab308;
}
body.dark-mode .toggle-switch {
  background-color: #4f46e5;
  border-color: #4338ca;
}
body.dark-mode .switch-knob {
  transform: translateX(24px);
  background-color: #1e293b;
  color: #f8fafc;
}

/* =========================================
   LAYOUT GRIDS
========================================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 48px;
}
.align-center {
  align-items: center;
}
section {
  padding: 100px 0;
}
.section-title {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Force the Hero Headline to use bold Montserrat */
.hero-text h1 {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 800 !important;
  font-size: 3.5rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 24px;
}
.hero-text h1 .text-gradient {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 800 !important;
}

.hero p {
  margin-bottom: 32px;
  font-size: 1.25rem;
}
.cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-graphic {
  position: relative;
  width: 100%;
  height: auto;
  padding: 20px;
}
.hero-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
  transition: var(--transition);
  animation: floating 6s ease-in-out infinite;
}
.hero-graphic:hover .hero-img {
  transform: rotate(0deg) scale(1.02);
}

.floating-card {
  position: absolute;
  bottom: 40px;
  left: -10px;
  background: var(--card-bg);
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 15px;
  animation: float 4s ease-in-out infinite;
  max-width: 220px;
  border: 1px solid var(--border-color);
}
.icon-circle {
  width: 40px;
  height: 40px;
  background: #dbeafe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.floating-card strong {
  font-family: var(--font-heading);
  display: block;
  font-size: 1.2rem;
  color: var(--text-main);
}
.floating-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =========================================
   SERVICES SECTION
========================================= */
.service-card {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1;
}
.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 40px -10px rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.3);
}
.service-card:hover::after {
  opacity: 1;
}

.icon-box {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 24px;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.service-card:hover .icon-box {
  transform: scale(1.1) rotate(-5deg);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}
.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}
.service-card p {
  margin-bottom: 25px;
  flex-grow: 1;
}

.service-link {
  font-family: var(--font-heading);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  transition: color 0.3s ease;
}
.service-link i {
  color: var(--primary);
  transition: transform 0.3s ease;
}
.service-link:hover {
  color: var(--primary);
}
.service-link:hover i {
  transform: translateX(5px);
}
body.dark-mode .icon-box {
  background: rgba(37, 99, 235, 0.15);
}

/* =========================================
   WHY US (BENTO UI)
========================================= */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  border: 1px solid rgba(37, 99, 235, 0.2);
}
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.pill {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: default;
}
.pill i {
  color: var(--primary);
  font-size: 1.1rem;
}
.pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.3);
  background: var(--card-bg);
}

.stats-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.bento-box {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 35px 25px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.bento-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.3);
}
.bento-box h3 {
  font-size: 3.5rem;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -2px;
}
.bento-box p {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.featured-bento {
  grid-column: 1 / -1;
  padding: 45px 30px;
  border-left: 5px solid var(--primary);
}
.featured-bento h3 {
  font-size: 5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bento-bg-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.1) 0%,
    transparent 70%
  );
  z-index: -1;
  border-radius: 50%;
}
body.dark-mode .pill {
  background: rgba(255, 255, 255, 0.03);
}
body.dark-mode .pill:hover {
  background: rgba(37, 99, 235, 0.1);
}

/* =========================================
   PORTFOLIO SECTION
========================================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.portfolio-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  background: #000;
}
.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  opacity: 0.9;
}
.portfolio-card:hover img {
  transform: scale(1.08);
  opacity: 1;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.95) 0%,
    transparent 60%
  );
  display: flex;
  align-items: flex-end;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.overlay-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}
.portfolio-card:hover .overlay-content {
  transform: translateY(0);
}
.overlay-text span {
  color: #38bdf8;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 5px;
}
.overlay-text h3 {
  color: white;
  font-size: 1.5rem;
  margin: 0;
  font-family: var(--font-heading);
}

.case-study-btn {
  width: 50px;
  height: 50px;
  background: white;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--transition);
}
.case-study-btn:hover {
  background: var(--primary);
  color: white;
  transform: rotate(-45deg);
}

/* =========================================
   CONTACT SECTION
========================================= */
.contact-box {
  background: var(--card-bg);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.contact-info {
  background: var(--primary);
  padding: 50px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-info p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
}
.info-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 20px;
}
.info-item i {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  color: white;
}
.info-item p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}
.info-item strong {
  color: white;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 2px;
}

/* Clickable White Links */
.contact-link,
.contact-link:visited {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.contact-link:hover {
  opacity: 0.8;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-form-container {
  padding: 50px;
  display: flex;
  align-items: center;
}
.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg-main);
  color: var(--text-main);
}
.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);
}

/* Form Validation Styling (Blue Instead of Red) */
.input-group {
  display: flex;
  gap: 20px;
  width: 100%;
}
.input-control {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}
.error-msg {
  color: var(--error-color);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  margin-left: 5px;
  opacity: 0;
  transform: translateY(-10px);
  position: absolute;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.input-control.error input,
.input-control.error textarea {
  border-color: var(--error-color);
  background: rgba(37, 99, 235, 0.03);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.input-control.error .error-msg {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

/* =========================================
   FOOTER
========================================= */
footer {
  padding: 25px 0;
  border-top: 1px solid var(--border-color);
  background: var(--card-bg);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo p {
  color: var(--text-muted);
}
.social-links {
  display: flex;
  gap: 15px;
}
.social-links a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}
.social-links a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-4px);
  border-color: var(--primary);
}

/* =========================================
   ANIMATIONS & RESPONSIVE DESIGN
========================================= */
.fade-in-up,
.reveal-left,
.reveal-right,
.reveal-zoom {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-in-up {
  transform: translateY(40px);
}
.reveal-left {
  transform: translateX(-50px);
}
.reveal-right {
  transform: translateX(50px);
}
.reveal-zoom {
  transform: scale(0.9);
}

.fade-in-up.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-zoom.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}
.delay-1 {
  transition-delay: 0.2s;
}
.delay-2 {
  transition-delay: 0.4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes floating {
  0%,
  100% {
    transform: translateY(0px) rotate(2deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@media (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }
  .hero-text h1 {
    font-size: 3rem;
  }
  .grid-2,
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-content {
    text-align: center;
  }
  .hero-graphic {
    width: 80%;
    margin: 40px auto 0;
  }
  .cta-group {
    justify-content: center;
  }
  .contact-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h2 {
    font-size: 2rem;
  }
  .hero-text h1 {
    font-size: 2.4rem;
  }
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-main);
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    gap: 25px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
    border-top: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: var(--transition);
  }
  .nav-links.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }
  .contact-info,
  .contact-form-container {
    padding: 40px 20px;
  }
  .input-group {
    flex-direction: column;
  }
  .floating-card {
    display: none;
  }
  .switch-container {
    margin-top: 10px;
    margin-left: 0;
  }
  .stats-bento {
    grid-template-columns: 1fr;
  }
  .featured-bento {
    padding: 35px 25px;
  }
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
