@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  /* === Backgrounds === */
  --color-bg: #050505;              /* Main page background (very dark, near black) */
  --color-surface: #0e0e10;         /* Surface background (for cards, modals, sections) */

  /* === Text === */
  --color-text-main: #f3f4f6;       /* Primary text color (almost white, high contrast) */
  --color-text-muted: #9ca3af;      /* Secondary/muted text (used for descriptions, labels) */

  /* === Primary Accent Colors === */
  --color-primary: #3b82f6;         /* Main accent color (used on links, active buttons, highlights) */
  --color-primary-glow: #60a5fa;    /* Lighter version for glowing effects and gradients */

  /* === Secondary Accent Colors === */
  --color-secondary: #9333ea;       /* Secondary accent (used sparingly for contrast, highlights) */
  --color-secondary-glow: #c084fc;  /* Lighter purple for glow effects or hover transitions */

  /* === Buttons === */
  --color-button-bg: #111827;       /* Button background (neutral dark) */
  --color-button-hover: #1e40af;    /* Button hover background (deep, vivid blue) */

  /* === Borders & Dividers === */
  --color-border: #1f2937;          /* Used for card borders, dividers, inputs */

  /* === Glows / Shadows === */
  --color-glow-blue: rgba(96, 165, 250, 0.3);   /* Blue glow for shadows, hover rings, outlines */
  --color-glow-purple: rgba(192, 132, 252, 0.3);/* Purple glow for shadows, hover rings, outlines */
}

html {
  scroll-behavior: smooth;
}

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

body {
  background-color: var(--color-bg);
  font-family: 'Inter', sans-serif;
}

@keyframes pulseGlow {
  0%, 100% {
    background-position: center;
  }
  50% {
    background-position: center 10%;
  }
}

header {
  background-color: rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar {
  display: flex;
  justify-content: space-between;
  gap: 40rem;
  align-items: center;
  animation: navfadein 0.5s ease-in-out, fade-in 0.8s ease-in-out;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-text-main);
}

.nav-links a.active {
  color: var(--color-primary);
  font-weight: 700;
}

.nav-links .contact-btn{
  color: var(--color-text-main);
  background-color: var(--color-primary);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-links .contact-btn:hover {
  background-color: var(--color-primary-glow);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 70vh;
  color: var(--color-text-main);
  animation: fade-in 0.8s ease-in;
}

.hero-content {
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.hero-btn {
  background-color: var(--color-button-bg);
  padding: 1rem 2rem;
  border-radius: 100px;
  color: var(--color-text-main);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-btn:hover {
  background-color: var(--color-button-hover);
  box-shadow: 0 0 30px 1px var(--color-glow-blue);
}

#services {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 4rem 2rem;
  color: var(--color-text-main);
  font-family: 'Inter', sans-serif;
  animation: fade-in 0.8s ease-in;
}

#services h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

#carousel-all {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  position: relative;
  width: 100%;
  max-width: 1200px;
}

.carousel-btn {
  position: relative;
  z-index: 10;
  background-color: var(--color-button-bg);
  border: none;
  color: var(--color-text-main);
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-behavior: smooth;
}

.carousel-btn:hover {
  background-color: var(--color-button-hover);
  box-shadow: 0 0 15px 2px var(--color-glow-blue);
}

.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: var(--color-button-bg);
  box-shadow: none;
}

.carousel-container {
  overflow: hidden;
  width: 100%;
  max-width: 900px;
  position: relative;
}

.carousel {
  display: flex;
  gap: 2rem;
  transition: transform 0.3s ease;
  will-change: transform;
}

.service {
  flex: 0 0 300px;
  width: 300px;
  height: 300px;
  background-color: var(--color-surface);
  color: var(--color-text-muted);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  cursor: pointer;
}

.service h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 0.5rem;
}

.service p {
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.9;
}

.service.active {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-glow) 100%);
  color: var(--color-text-main);
  box-shadow: 0 8px 32px var(--color-glow-blue);
  transform: scale(1.05);
  border-color: var(--color-primary-glow);
}

.service:hover{
  transform: scale(0.96);
}

.service.active h3 {
  color: white;
}

.service.active p {
  color: rgba(255, 255, 255, 0.9);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}


.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1999;
}

.overlay.exit{
  animation: fadeout 0.3s ease-in forwards;
}

.modal-content {
  background-color: var(--color-surface);
  color: var(--color-text-main);
  padding: 2rem;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;  
  gap: 1rem;
  text-align: center;
  animation: slideup 0.2s ease-in forwards;
}

.modal-content h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.modal-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}

.modal-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  text-align: center;
}
.modal-content ul li {
  margin-top: 0.5rem;
  font-size: 1.25rem;
}

.modal-content.exit {
  animation: slidedown 0.1s ease-in forwards;
}

.close-modal-btn{
  background-color: var(--color-button-bg);
  padding: 1rem 2rem;
  border-radius: 100px;
  color: var(--color-text-main);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.close-modal-btn:hover {
  background-color: var(--color-button-hover);
  box-shadow: 0 0 30px 1px var(--color-glow-blue);
}

.trail {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-glow-blue);
  pointer-events: none;
  opacity: 0.9;

  /* Add a strong glowing effect */
  box-shadow: 0 0 15px var(--color-glow-blue),
              0 0 30px var(--color-glow-blue),
              0 0 45px var(--color-glow-blue);

  /* Optional: smooth scale-in for a nice pop effect */
  transform: scale(1);
  animation: mouse-effect 1.5s forwards;
}


.pointer {
  cursor: pointer;
}

.about {
  color: var(--color-text-main);
  display: flex;
  flex-direction: row;
  text-align: center;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 6rem;
}



.about-content {
  max-width: 800px;
  padding: 2rem;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.about-content p {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-text-main);
}

.about-content h3 {
  font-size: 1rem;
  margin-top: 2rem;
  color: var(--color-text-muted);
}

.about-image {
  flex: 1;
  max-width: 400px;
  margin-right: 2rem;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border: var(--color-border) 1px solid;
}

.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.contact {
  display: flex;
  flex-direction: column;
  color: var(--color-text-main);
  padding: 4rem 2rem;
  text-align: center;
  width: 100%;
  min-height: 100vh; /* Changed from height to min-height */
  justify-content: center;
  align-items: center;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.contact p {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.contact-container {
  display: flex;
  flex-direction: row;
  align-items: center;    /* Changed from center to flex-start */
  justify-content: center;
  width: 100%;
  max-width: 1200px;         /* Added max-width for better control */
  gap: 10rem;                 /* Increased gap for better spacing */
}

/* Removed height: 100% and adjusted alignment */
.contact-forum, .contact-side {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 600px;         /* Add minimum height to both sides */
}

.contact-forum {
  align-items: flex-start;    /* Keep form at top */
}

.contact-side {
  align-items: center;        /* Center the image */
}

.contact-forum form {
  display: flex;
  flex-direction: column;
  align-items: stretch;       /* Changed from center to stretch for full-width inputs */
  width: 100%;
  max-width: 500px;          /* Reduced max-width for better proportion */
}

.contact-forum label {
  text-align: left;          /* Added for better UX */
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.contact-forum input{
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.5rem;     /* Increased spacing between fields */
  border: 1px solid var(--color-border);
  border-radius: 100px;
  background-color: var(--color-surface);
  color: var(--color-text-main);
  font-size: 1rem;
  box-sizing: border-box;    /* Added for proper sizing */
}

.contact-forum textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.5rem;     /* Increased spacing between fields */
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background-color: var(--color-surface);
  color: var(--color-text-main);
  font-size: 1rem;
  box-sizing: border-box;    /* Added for proper sizing */
}

.contact-forum button {
  padding: 1rem 2rem;
  background-color: var(--color-primary);
  color: var(--color-text-main);
  color: white;
  border: none;
  border-radius: 100px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-forum button:hover {
  background-color: var(--color-primary-hover, #0056b3);
}

.contact-side {
  align-items: center;       /* Center the image vertically */
  justify-content: center;   /* Center the image horizontally */
}

.contact-img {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.contact-side img {
  width: 100%;
  height: auto;
  border-radius: 8px;        /* Added border-radius for consistency */
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.footer-content {
  background-color: var(--color-surface);
  color: var(--color-text-muted);
  padding: 2rem;
  text-align: center;
  font-size: 0.875rem;
  border-top: 1px solid var(--color-border);
}

.footer-brand{
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}
.footer-link-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link-column a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1rem;
}

.footer-link-column a:hover {
  color: var(--color-text-main);
}

.footer-link-column h3 {
  font-size: 1.25rem;
  color: var(--color-text-main);
  margin-bottom: 0.5rem;
}

.footer-link-column ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.contact-info a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--color-primary-glow);
}

.contact-info p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.contact-info h3 {
  font-size: 1.25rem;
  color: var(--color-text-main);
  margin-bottom: 0.5rem;
}

.bottom{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  padding: 1rem;
  background-color: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.socials {
  display: flex;
  gap: 1rem;
}

.socials svg {
  width: 24px;
  height: 24px;
  fill: var(--color-text-muted);
  transition: fill 0.3s ease;
}



/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    gap: 2rem;
  }
  
  .contact-forum, .contact-side {
    max-width: 100%;
  }
}


@keyframes mouse-effect {
  0% {
    transform: scale(0.8);
    transform: translate(-50%, -50%);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    transform: translate(-50%, -50%);
    opacity: 0.5;
  }

  75% {
    transform: scale(1);
    transform: translate(-50%, -50%);
    opacity: 0.3;
  }

  100% {
    transform: scale(0.8);
    transform: translate(-50%, -50%);
    opacity: 0.8;
  }
}

@keyframes slideup {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slidedown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

@keyframes fadeout {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes navfadein {
  from {
    opacity: 0;
    gap: 20rem;
  }
  to {
    opacity: 1;
    gap: 40rem;
  }
  
}

@keyframes slideDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*==== responsive adjustments ====*/

  /* Responsive Navbar */
.hamburger {
  display: none; /* Hidden on desktop, shown on mobile via media query */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  gap: 7px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text-main);
  border-radius: 2px;
  transition: all 0.3s;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-direction: row;
}

.carousel-dots span {
  width: 7px;
  height: 7px;
  background-color: var(--color-text-muted);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease, scale 0.3s ease, opacity 0.3s ease;
  opacity: 10%;
  border: none;
}

.carousel-dots span.active {
  background-color: white;
  opacity: 100%;

  /* Stronger glow effect for active dot */
  box-shadow: 0 0 10px var(--color-glow-blue),
              0 0 20px var(--color-glow-blue),
              0 0 30px var(--color-glow-blue);
  
  transform: scale(1.2); /* Slightly larger for emphasis */
}

@media (max-width: 768px) {
  .navbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding: 0 1rem; /* Added padding for better spacing */
    animation: fade-in 0.8s ease-in-out; /* Remove navfadein gap animation on mobile */
    align-items: center;
    gap:0;
    z-index: 1002;
  }

  .nav-links {
    display: none;;
  }

  .hamburger {
    display: flex; /* Show hamburger icon on mobile */
  }

  .overlay-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.94);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 7rem;
    gap: 1rem;
    text-align: left;
    transition: opacity 0.3s ease;
}

  .overlay-links a {
    color: var(--color-text-muted);
    font-size: 1.2rem;
    margin: 1rem 0;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .overlay-links a:hover {
    color: var(--color-text-main);
  }

  .overlay-links div {
    width: 100%;
    padding: 10px 20px;
    transform: translateY(-20px);
    animation: slideDown 0.4s ease forwards;
  }

  .overlay-links.exit {
    opacity: 0;
    pointer-events: none;
}
  
  .nav-links.active div:nth-child(1) { animation-delay: 0.1s; }
  .nav-links.active div:nth-child(2) { animation-delay: 0.25s; }
  .nav-links.active div:nth-child(3) { animation-delay: 0.4s; }

  .overlay-links { z-index: 1000; }
  .nav-links-full { z-index: 1001; }
  .navbar, header { z-index: 1002; }

  .services {
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    width: 100%;
  }

  #carousel-all {
    flex-direction: row;
    width: 100%;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .carousel-container {
    width: 100%;
    overflow-x: auto;
    padding: 0 1rem; /* Added padding for better spacing */
    scrollbar-width: none; /* Hide scrollbar in Firefox */
  }

  .service {
    max-width: 100%;
    margin: 1rem 0; /* Added margin for spacing */
    padding: 1.5rem;
    box-shadow: none; /* Remove shadow on mobile for simplicity */
    border-radius: 8px;
    flex: 1 0 auto; /* Allow the service cards to shrink and grow */
  }
  .service.active {
    transform: scale(1); /* Remove scaling effect on active service for mobile */
  }
}

