/* ========== GLOBAL ========== */
body {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
  padding: 0;
  color: #1c1c1c;
  background: #f9f9f9;
}

/* === Prevent Horizontal Scroll === */
html, body {
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}


/* ========== HEADER & NAVIGATION ========== */
header {
  background: #0f172a;
  color: white;
  padding: 0;
  height: 65.5px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-img,
.logo img,
.navbar-brand img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

nav a {
  color: white;
  margin: 0 1rem;
  font-weight: 500;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
  color: #38bdf8;
}

/* ========== HAMBURGER MENU ========== */
.hamburger {
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1100;
  margin-left: auto;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.4s;
}

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

/* Overlay Navigation */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: linear-gradient(to right, #051421, #042636);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  transition: 0.4s ease-in-out;
  z-index: 1000;
}

.mobile-nav-overlay.open {
  right: 0;
}

.mobile-nav-overlay a {
  color: #00f7ff;
  font-size: 1.5rem;
  text-decoration: none;
  transition: 0.2s;
}

.mobile-nav-overlay a:hover {
  color: #f0f0f0;
}

body.menu-open {
  overflow: hidden;
}

.navbar {
  overflow-x: hidden;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  background: #0a0f2c;
  z-index: 9999;
  padding: 2rem;
  box-sizing: border-box;
  overflow-y: auto;
}

.mobile-menu a {
  display: block;
  color: white;
  margin-bottom: 1rem;
  text-decoration: none;
}


/* ========== HERO / MAIN ========== */
.hero {
  padding: 2rem;
  background: #e0f2fe;
  text-align: center;
}

main.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.hero-image {
  position: relative;
  background-image: url('../images/spider_web.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.7), rgba(15, 23, 42, 0.8));
  color: white;
  padding: 3rem 2rem;
  border-radius: 12px;
  max-width: 700px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.hero-overlay h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.hero-overlay p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.hero-overlay h2,
.hero-overlay p,
.hero-overlay a {
  opacity: 0;
  animation: fadeUp 0.8s ease-out forwards;
}

.hero-overlay h2 {
  animation-delay: 0.1s;
}
.hero-overlay p {
  animation-delay: 0.3s;
}
.hero-overlay a {
  animation-delay: 0.5s;
  display: inline-block;
}

/* ========== BUTTONS ========== */
.btn {
  background: #0ea5e9;
  color: white;
  padding: 0.5rem 1rem;
  margin-right: 0.5rem;
  text-decoration: none;
  border-radius: 4px;
}

.btn-secondary {
  border: 1px solid #0ea5e9;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 4px;
}

/* ========== FLOATING CTA ========== */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #0ea5e9;
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  font-weight: 500;
  z-index: 1000;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.floating-cta:hover {
  background-color: #0284c7;
  text-decoration: none;
}

/* ========== SERVICE CARDS ========== */
.card-img-top {
  object-fit: cover;
  height: 200px;
  border-bottom: 1px solid #e0e0e0;
}

.card {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 174, 255, 0.25);
}

.card-title {
  color: #00bcd4;
  transition: color 0.3s ease-in-out;
}

.card:hover .card-title {
  color: #0ea5e9;
}

/* ========== SERVICES SECTION ENHANCEMENT ========== */
.services-section {
  background-color: #f8fafc;
  padding: 4rem 1rem;
}

.services-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #0f172a;
  text-align: center;
}

.services-section .card {
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

.services-section .card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.services-section .card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.services-section .card-text {
  font-size: 1rem;
  color: #334155;
}

@media (max-width: 768px) {
  .services-section {
    padding: 3rem 1rem;
  }
}

/* ========== TECH SPLIT SECTION ========== */
.tech-split {
  height: 400px;
  display: flex;
  flex-wrap: wrap;
}

.tech-split .text-block {
  width: 50%;
  background: #0f172a;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
  text-align: center;
}

.tech-split .text-block h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.tech-split .text-block p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.95;
}

.tech-split .image-block {
  width: 50%;
  background-image: url('/static/images/tech_word_cloud.jpeg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #000;
}

@media (max-width: 768px) {
  .tech-split {
    flex-direction: column;
    height: auto;
  }

  .tech-split .text-block,
  .tech-split .image-block {
    width: 100%;
    height: 300px;
  }

  .tech-split .text-block {
    height: auto;
    padding: 3rem 1.5rem;
  }
}

/* ========== CONTACT SECTION ========== */
.contact-section {
  background-color: #f1f5f9;
}

.contact-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0f172a;
}

.contact-section a {
  color: #0ea5e9;
  text-decoration: none;
}

.contact-section a:hover {
  text-decoration: underline;
  color: #0284c7;
}

.contact-section .form-control {
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* ========== CONTACT SPLIT SECTION ========== */
.contact-split {
  display: flex;
  flex-wrap: wrap;
  min-height: 600px;
}

.contact-left,
.contact-right {
  width: 50%;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-left h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
}

.contact-left i {
  color: #0ea5e9;
  margin-right: 0.5rem;
}

.contact-right {
  background-image: url('/static/images/teal_yellow_nodes.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  .contact-split {
    flex-direction: column;
  }

  .contact-left,
  .contact-right {
    width: 100%;
    padding: 2rem;
    min-height: 400px;
  }
}

/* ========== FOOTER ========== */
.footer-bg {
  background-image: url('/static/images/network_nodes.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.footer-overlay {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(2px);
  padding: 2rem 1rem;
}

footer {
  background: #1e293b;
  color: white;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

footer a {
  color: #38bdf8;
  text-decoration: none;
  margin: 0 0.5rem;
}

footer a:hover {
  text-decoration: underline;
}

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

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

@keyframes fadeScaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== FEATURED WORK SECTION ========== */
.featured-work-section {
  background-color: #f9f9f9;
}

.project-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.project-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.project-body {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0ea5e9;
  margin-bottom: 0.75rem;
}

.project-description {
  font-size: 1.05rem;
  color: #334155;
  margin-bottom: 1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  background-color: #e2e8f0;
  color: #1e293b;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  font-size: 0.85rem;
}

/* Coming Soon badge */
.badge-coming-soon {
  background: #facc15;
  color: #1c1c1c;
  padding: 0.4rem 0.7rem;
  font-weight: 600;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Scroll animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
