/* Base Styles */
:root {
  --primary-color: #0a5e7d;
  --primary-light: rgba(10, 94, 125, 0.1);
  --secondary-color: #0f3c49;
  --dark-color: #333;
  --light-color: #f4f4f4;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: #fff;
  overflow-x: hidden;
  position: relative;
}

a {
  text-decoration: none;
  color: var(--dark-color);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* Custom Cursor */
.cursor-follower {
  position: fixed;
  width: 30px;
  height: 30px;
  background: rgba(10, 94, 125, 0.2);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
  z-index: 9999;
  display: none;
}

@media (min-width: 992px) {
  .cursor-follower {
    display: block;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: width 0.3s ease;
  z-index: -1;
}

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

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 15px rgba(10, 94, 125, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(10, 94, 125, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
  margin-left: 15px;
}

.btn-outline:hover {
  background-color: #fff;
  color: var(--primary-color);
  transform: translateY(-3px);
}

.btn i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.btn:hover i {
  transform: translateX(5px);
}

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

.section-header h2 {
  font-size: 36px;
  margin-bottom: 15px;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-header p {
  font-size: 18px;
  color: #666;
}

/* Header */
header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--box-shadow);
  position: fixed;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  color: var(--primary-color);
}

.logo-img {
  height: 50px;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

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

.logo h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
}

nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
}

.nav-links li {
  margin-left: 30px;
}

.nav-link {
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

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

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

.mobile-menu {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none; /* So they don't block interaction */
}

.hero-bg {
  background: url("public/images/hero-bg.jpg") center center / cover no-repeat;
}

.hero-overlay {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  z-index: 11;
  pointer-events: auto;
}

.hero-buttons a {
  position: relative;
  z-index: 12;
  pointer-events: auto;
}

/* Glitch Text Effect */
.glitch-text {
  font-size: 48px;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-text::before {
  left: 2px;
  text-shadow: -1px 0 #ff00c1;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch-text::after {
  left: -2px;
  text-shadow: -1px 0 #00fff9;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0% {
    clip: rect(42px, 9999px, 44px, 0);
  }
  5% {
    clip: rect(12px, 9999px, 59px, 0);
  }
  10% {
    clip: rect(48px, 9999px, 29px, 0);
  }
  15% {
    clip: rect(42px, 9999px, 73px, 0);
  }
  20% {
    clip: rect(63px, 9999px, 27px, 0);
  }
  25% {
    clip: rect(34px, 9999px, 55px, 0);
  }
  30% {
    clip: rect(86px, 9999px, 73px, 0);
  }
  35% {
    clip: rect(20px, 9999px, 20px, 0);
  }
  40% {
    clip: rect(26px, 9999px, 60px, 0);
  }
  45% {
    clip: rect(25px, 9999px, 66px, 0);
  }
  50% {
    clip: rect(57px, 9999px, 98px, 0);
  }
  55% {
    clip: rect(5px, 9999px, 46px, 0);
  }
  60% {
    clip: rect(82px, 9999px, 31px, 0);
  }
  65% {
    clip: rect(54px, 9999px, 27px, 0);
  }
  70% {
    clip: rect(28px, 9999px, 99px, 0);
  }
  75% {
    clip: rect(45px, 9999px, 69px, 0);
  }
  80% {
    clip: rect(23px, 9999px, 85px, 0);
  }
  85% {
    clip: rect(54px, 9999px, 84px, 0);
  }
  90% {
    clip: rect(45px, 9999px, 47px, 0);
  }
  95% {
    clip: rect(37px, 9999px, 20px, 0);
  }
  100% {
    clip: rect(4px, 9999px, 91px, 0);
  }
}

@keyframes glitch-anim-2 {
  0% {
    clip: rect(65px, 9999px, 100px, 0);
  }
  5% {
    clip: rect(52px, 9999px, 74px, 0);
  }
  10% {
    clip: rect(79px, 9999px, 85px, 0);
  }
  15% {
    clip: rect(75px, 9999px, 5px, 0);
  }
  20% {
    clip: rect(67px, 9999px, 61px, 0);
  }
  25% {
    clip: rect(14px, 9999px, 79px, 0);
  }
  30% {
    clip: rect(1px, 9999px, 66px, 0);
  }
  35% {
    clip: rect(86px, 9999px, 30px, 0);
  }
  40% {
    clip: rect(23px, 9999px, 98px, 0);
  }
  45% {
    clip: rect(85px, 9999px, 72px, 0);
  }
  50% {
    clip: rect(71px, 9999px, 75px, 0);
  }
  55% {
    clip: rect(2px, 9999px, 48px, 0);
  }
  60% {
    clip: rect(30px, 9999px, 16px, 0);
  }
  65% {
    clip: rect(59px, 9999px, 50px, 0);
  }
  70% {
    clip: rect(41px, 9999px, 62px, 0);
  }
  75% {
    clip: rect(2px, 9999px, 82px, 0);
  }
  80% {
    clip: rect(47px, 9999px, 73px, 0);
  }
  85% {
    clip: rect(3px, 9999px, 27px, 0);
  }
  90% {
    clip: rect(26px, 9999px, 55px, 0);
  }
  95% {
    clip: rect(42px, 9999px, 97px, 0);
  }
  100% {
    clip: rect(38px, 9999px, 49px, 0);
  }
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid #fff;
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 6px;
  height: 6px;
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}

.arrow {
  margin-top: 15px;
}

.arrow span {
  display: block;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
  margin: -5px;
  animation: arrow 1.5s infinite;
}

.arrow span:nth-child(2) {
  animation-delay: -0.2s;
}

.arrow span:nth-child(3) {
  animation-delay: -0.4s;
}

@keyframes arrow {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-10px, -10px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(10px, 10px);
  }
}

.wave-container {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 0; /* changed from 3 to 0 */
}

.wave {
  width: 100%;
  height: auto;
}

/* Services Section */
.services {
  padding: 100px 0;
  background-color: var(--light-color);
  position: relative;
  overflow: hidden;
}

.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("public/images/floating-shapes.svg") repeat;
  opacity: 0.5;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 2;
}

.service-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  overflow: hidden;
  height: 100%;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 0;
  background: var(--primary-color);
  transition: height 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  margin-bottom: 20px;
  text-align: center;
}

.service-img {
  width: 80px;
  height: 80px;
  transition: transform 0.3s ease;
}

.service-card:hover .service-img {
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.service-hover {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
  margin-top: 15px;
}

.service-card:hover .service-hover {
  height: 120px;
}

.service-hover ul {
  padding-left: 20px;
}

.service-hover ul li {
  list-style-type: disc;
  margin-bottom: 5px;
  color: #666;
}

/* Projects Section */
.projects {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.circuit-animation {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url("public/images/animated-circuit.svg") no-repeat;
  background-position: right top;
  opacity: 0.1;
  z-index: 1;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 2;
}

.project-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 94, 125, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-overlay-content {
  color: #fff;
  text-align: center;
}

.project-card:hover .project-img img {
  transform: scale(1.05);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-content {
  padding: 20px;
}

.project-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.project-content p {
  margin-bottom: 15px;
  color: #666;
}

.project-category {
  display: inline-block;
  padding: 5px 10px;
  background-color: rgba(10, 94, 125, 0.1);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 14px;
}

/* About Section */
.about {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.animated-circuit {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("public/images/animated-circuit.svg") no-repeat;
  background-position: left center;
  opacity: 0.05;
  z-index: 1;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 50px;
  position: relative;
  z-index: 2;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
}

.stats-container {
  width: 100%;
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.stat {
  text-align: center;
  padding: 30px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
  flex: 1;
  margin: 0 10px;
}

.stat:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background-color: var(--light-color);
  position: relative;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(10, 94, 125, 0.1);
}

.contact-info {
  background-color: var(--primary-color);
  color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.info-item i {
  font-size: 24px;
  margin-right: 15px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: #fff;
  padding: 70px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo-img {
  height: 40px;
  margin-bottom: 15px;
}

.footer-logo h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.footer-links h3,
.footer-services h3 {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3::after,
.footer-services h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links ul li,
.footer-services ul li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ddd;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-services ul li {
  color: #ddd;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

  .stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .stat {
    flex: 0 0 calc(50% - 20px);
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    flex-direction: column;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .mobile-menu {
    display: block;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 15px;
  }

  .about-content {
    flex-direction: column;
  }

  .stats {
    flex-direction: column;
    gap: 20px;
  }

  .stat {
    flex: 0 0 100%;
  }

  .logo span {
    display: none;
  }

  .service-card {
    padding: 20px;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 576px) {
  .section-header h2 {
    font-size: 28px;
  }

  .service-card {
    padding: 20px;
  }

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

.map-wrapper iframe {
  border-radius: 10px;
  box-shadow: 0 10px 10px rgba(0,0,0,0.2);
}