/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-bg: #0f0f23;
  --secondary-bg: #1a1a2e;
  --accent-color: #00bfff;
  --accent-hover: #0099cc;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #808080;
  --border-color: #333333;
  --card-bg: rgba(26, 26, 46, 0.8);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --glow-color: rgb(0, 191, 255);
  --glow-spread-color: rgba(0, 150, 255, 0.781);
  --enhanced-glow-color: rgb(102, 204, 255);
  --btn-color: rgb(13, 71, 161);
}

html {
  scroll-behavior: smooth;
}

/* Reverting to v1: original backgrounds and particle styles */
body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Remove body::before and body::after if present */
body::before,
body::after {
  content: none !important;
  display: none !important;
}

html,
body,
body * {
  color: #fff !important;
  opacity: 1 !important;
}

.container {
  max-width: 1200px;
  /* border: 1px solid red; */
  display: flex;
  flex-direction: column;
  /* gap: 80px; */
  overflow: hidden;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Glow Element Styling */
.glow-element {
  --glow-color: rgb(0, 191, 255);
  --glow-spread-color: rgba(0, 150, 255, 0.781);
  --enhanced-glow-color: rgb(102, 204, 255);
  --btn-color: rgb(13, 71, 161);
  border: 0.3em solid var(--glow-color);
  padding: 1em 3em;
  color: var(--glow-color);
  font-size: 15px;
  font-weight: bold;
  background-color: var(--btn-color);
  border-radius: 1em;
  outline: none;
  box-shadow: 0 0 1.5em 0.3em var(--glow-color),
    0 0 3em 1em var(--glow-spread-color), 0 0 5em 2em rgba(0, 191, 255, 0.3),
    inset 0 0 0.75em 0.25em var(--glow-color);
  text-shadow: 0 0 0.8em var(--glow-color);
  position: relative;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  backdrop-filter: blur(5px);
}

.glow-element::after {
  pointer-events: none;
  content: "";
  position: absolute;
  top: 120%;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--glow-spread-color);
  filter: blur(2em);
  opacity: 0.7;
  transform: perspective(1.5em) rotateX(35deg) scale(1, 0.6);
}

.glow-element:hover {
  color: var(--btn-color);
  background-color: var(--glow-color);
  box-shadow: 0 0 2em 0.4em var(--glow-color),
    0 0 5em 2em var(--glow-spread-color), 0 0 8em 3em rgba(0, 191, 255, 0.4),
    inset 0 0 0.75em 0.25em var(--glow-color);
  transform: translateY(-3px) scale(1.05);
  text-shadow: 0 0 1em var(--glow-color);
}

.glow-element:active {
  box-shadow: 0 0 0.6em 0.25em var(--glow-color),
    0 0 2.5em 2em var(--glow-spread-color),
    inset 0 0 0.5em 0.25em var(--glow-color);
  transform: translateY(0);
}

.glow-element.secondary {
  --glow-color: rgba(255, 255, 255, 0.9);
  --glow-spread-color: rgba(255, 255, 255, 0.4);
  --btn-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* --- Enhanced glow effects for better visibility --- */
.glow-element,
.glow-element.secondary {
  border: 0.3em solid var(--glow-color);
  padding: 1em 3em;
  color: var(--glow-color);
  font-size: 15px;
  font-weight: bold;
  background-color: var(--btn-color);
  border-radius: 1em;
  outline: none;
  /* Enhanced box-shadow for better glow visibility */
  box-shadow: 0 0 1.5em 0.3em var(--glow-color),
    0 0 3em 1em var(--glow-spread-color), 0 0 5em 2em rgba(0, 191, 255, 0.3),
    inset 0 0 0.75em 0.25em var(--glow-color);
  text-shadow: 0 0 0.8em var(--glow-color);
  position: relative;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}

/* Remove only the blur from the ::after pseudo-element */
.glow-element::after,
.glow-element.secondary::after {
  display: none !important;
}

/* From Uiverse.io by cssbuttons-io */
button {
  --glow-color: rgb(0, 191, 255);
  --glow-spread-color: rgba(0, 150, 255, 0.781);
  --enhanced-glow-color: rgb(102, 204, 255);
  --btn-color: rgb(13, 71, 161);
  border: 0.25em solid var(--glow-color);
  padding: 1em 3em;
  color: var(--glow-color);
  font-size: 15px;
  font-weight: bold;
  background-color: var(--btn-color);
  border-radius: 1em;
  outline: none;
  box-shadow: 0 0 1em 0.25em var(--glow-color),
    0 0 4em 1em var(--glow-spread-color),
    inset 0 0 0.75em 0.25em var(--glow-color);
  text-shadow: 0 0 0.5em var(--glow-color);
  position: relative;
  transition: all 0.3s;
}

button::after {
  pointer-events: none;
  content: "";
  position: absolute;
  top: 120%;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--glow-spread-color);
  filter: blur(2em);
  opacity: 0.7;
  transform: perspective(1.5em) rotateX(35deg) scale(1, 0.6);
}

button:hover {
  color: var(--btn-color);
  background-color: var(--glow-color);
  box-shadow: 0 0 1em 0.25em var(--glow-color),
    0 0 4em 2em var(--glow-spread-color),
    inset 0 0 0.75em 0.25em var(--glow-color);
}

button:active {
  box-shadow: 0 0 0.6em 0.25em var(--glow-color),
    0 0 2.5em 2em var(--glow-spread-color),
    inset 0 0 0.5em 0.25em var(--glow-color);
}

/* Primary Button - Blue Glow (Like "Our Services") */
.btn-primary {
  --glow-color: rgb(0, 150, 255);
  --glow-spread-color: rgba(0, 120, 255, 0.6);
  --enhanced-glow-color: rgb(80, 180, 255);
  --btn-color: rgb(10, 30, 80);
  border: 0.25em solid var(--glow-color);
  padding: 1em 3em;
  color: var(--glow-color);
  font-size: 15px;
  font-weight: bold;
  background-color: var(--btn-color);
  border-radius: 1em;
  outline: none;
  box-shadow: 0 0 1em 0.25em var(--glow-color),
    0 0 4em 1em var(--glow-spread-color),
    inset 0 0 0.75em 0.25em var(--glow-color);
  text-shadow: 0 0 0.5em var(--glow-color);
  position: relative;
  transition: all 0.3s;
}

.btn-primary::after {
  pointer-events: none;
  content: "";
  position: absolute;
  top: 120%;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--glow-spread-color);
  filter: blur(2em);
  opacity: 0.7;
  transform: perspective(1.5em) rotateX(35deg) scale(1, 0.6);
}

.btn-primary:hover {
  color: var(--btn-color);
  background-color: var(--glow-color);
  box-shadow: 0 0 1em 0.25em var(--glow-color),
    0 0 4em 2em var(--glow-spread-color),
    inset 0 0 0.75em 0.25em var(--glow-color);
}

.btn-primary:active {
  box-shadow: 0 0 0.6em 0.25em var(--glow-color),
    0 0 2.5em 2em var(--glow-spread-color),
    inset 0 0 0.5em 0.25em var(--glow-color);
}

/* Secondary Button - Dark Gray (Like "View Portfolio") */
.btn-secondary {
  --glow-color: rgb(120, 120, 120);
  --glow-spread-color: rgba(100, 100, 100, 0.4);
  --enhanced-glow-color: rgb(150, 150, 150);
  --btn-color: rgb(25, 25, 25);
  border: 0.25em solid var(--glow-color);
  padding: 1em 3em;
  color: var(--glow-color);
  font-size: 15px;
  font-weight: bold;
  background-color: var(--btn-color);
  border-radius: 1em;
  outline: none;
  box-shadow: 0 0 1em 0.25em var(--glow-color),
    0 0 4em 1em var(--glow-spread-color),
    inset 0 0 0.75em 0.25em var(--glow-color);
  text-shadow: 0 0 0.5em var(--glow-color);
  position: relative;
  transition: all 0.3s;
}

.btn-secondary::after {
  pointer-events: none;
  content: "";
  position: absolute;
  top: 120%;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--glow-spread-color);
  filter: blur(2em);
  opacity: 0.7;
  transform: perspective(1.5em) rotateX(35deg) scale(1, 0.6);
}

.btn-secondary:hover {
  color: var(--btn-color);
  background-color: var(--glow-color);
  box-shadow: 0 0 1em 0.25em var(--glow-color),
    0 0 4em 2em var(--glow-spread-color),
    inset 0 0 0.75em 0.25em var(--glow-color);
}

.btn-secondary:active {
  box-shadow: 0 0 0.6em 0.25em var(--glow-color),
    0 0 2.5em 2em var(--glow-spread-color),
    inset 0 0 0.5em 0.25em var(--glow-color);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100vw;
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 191, 255, 0.2);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo h2 {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin: 0;
}

.nav-logo span {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 300;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--accent-color);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  height: 106vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 260px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(15, 15, 35, 0) 0%, #0f0f23 100%);
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

#hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.7) 0%,
    rgba(26, 26, 46, 0.8) 100%
  );
  z-index: -1;
}

.hero-content {
  text-align: center;
  z-index: 1;
  width: 1200px;
  padding: 0 20px;
}

/* Hero Logo Animation Stack */
.hero-logo-group {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 280px;
  margin: 0 auto 1.25rem auto;
  pointer-events: none;
}
.hero-logo-group .full-logo {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  height: auto;
  opacity: 0;
  will-change: transform, opacity, filter;
}

.hero-logo-group .logo-piece {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  height: auto;
  opacity: 0;
  will-change: transform, opacity, filter;
}

.hero-logo-group .hero-logo-row {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

/* Easing cubic-bezier(0.16, 1, 0.3, 1) */
@keyframes accentIn {
  /* position THE above the main row while animating X + blur */
  0% {
    transform: translate(-16px, -92px);
    filter: blur(6px);
    opacity: 0;
  }
  100% {
    transform: translate(0, -92px);
    filter: blur(0px);
    opacity: 1;
  }
}

@keyframes detailIn {
  0% {
    transform: scale(0.96);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes labIn {
  0% {
    transform: translateX(16px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes byTrinityIn {
  0% {
    transform: translateY(110px);
    opacity: 0;
  }
  100% {
    transform: translateY(92px);
    opacity: 1;
  }
}

@keyframes overlayIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.18;
  }
}

.piece-the {
  animation: accentIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0s;
}

.piece-detail {
  animation: detailIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.15s;
}

.piece-lab {
  animation: labIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.35s;
}

.piece-bytrinity {
  animation: byTrinityIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.65s;
}

/* overlay removed to avoid stacked duplication/glitch */

/* Ensure DETAIL and LAB render side-by-side within the centered row */
.hero-logo-row .logo-piece {
  position: static;
  inset: auto;
  margin: 0;
  max-height: 100%;
}

/* CTA glow base under buttons */
.hero-buttons::before {
  content: "";
  position: absolute;
  inset: -48px;
  margin: auto;
  border-radius: 9999px;
  background: radial-gradient(
    closest-side,
    rgba(11, 124, 255, 0.2),
    transparent 70%
  );
  z-index: 0;
}

.hero-buttons > * {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.hero-title span {
  display: block;
  font-size: 2rem;
  color: var(--accent-color);
  font-weight: 400;
  margin-top: 0.5rem;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent-color);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--accent-color);
  font-size: 1.1rem;
  font-weight: 300;
}

/* About Section */
.about {
  padding: 40px 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.7) 0%,
    rgba(26, 26, 46, 0.8) 100%
  ) !important;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  overflow-x: hidden;
  white-space: inherit;
  padding: 0px 10px;
}

.about-text h3 {
  color: var(--glow-color) !important;
  margin-top: 2rem;
}

.about-text h3:first-child {
  margin-top: 0;
}

.about-text ul {
  list-style: none;
  margin-top: 1rem;
}

.about-text li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-text i {
  color: var(--glow-color) !important;
}

.about-text ul li i,
.about-text ul li::before {
  color: var(--glow-color) !important;
}

.image-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

/* .image-card:hover {
  transform: translateY(-10px) rotateY(5deg);
  box-shadow: 0 20px 40px rgba(0, 191, 255, 0.2);
} */

.image-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.image-card video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.image-card:hover img {
  transform: scale(1.1);
}

/* Services Section */
.services {
  padding: 40px 0;
  background: var(--secondary-bg);
}
/* .container{
    display: flex;
    flex-direction: column;
    gap: 80px;
} */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  padding: 0px 10px;
}

.service-card {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 15px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 191, 255, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 20px 40px rgba(0, 191, 255, 0.2);
  border-color: var(--accent-color);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(360deg);
}

.service-card h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.service-card ul {
  list-style: none;
  text-align: left;
}

.service-card li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.service-card li::before {
  content: "•";
  color: var(--accent-color);
  position: absolute;
  left: 0;
}

/* Portfolio Section */
.portfolio {
  padding: 40px 0;
  background: var(--primary-bg);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1rem;
  padding: 0px 10px;
}

.portfolio-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  /* box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3); */
  transition: all 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 191, 255, 0.2);
}

.portfolio-image {
  position: relative;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-overlay h3 {
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.portfolio-overlay p {
  color: var(--text-secondary);
  margin: 0;
}

/* Testimonials Section */
.testimonials {
  padding: 40px 0;
  background: var(--secondary-bg);
  /* border: 1px solid red; */
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  padding: 0px 10px;
}

.testimonial-card {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 15px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 191, 255, 0.2);
  border-color: var(--accent-color);
}

.stars {
  color: #ffd700 !important;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.testimonial-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.testimonial-author h4 {
  color: var(--glow-color) !important;
  margin-bottom: 0.25rem;
}

.testimonial-author span {
  color: var(--accent-color);
  font-size: 0.9rem;
}

/* Contact Section */
.contact {
  padding: 40px 0px;
  background: var(--primary-bg);
  overflow: hidden;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 0px 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.contact-item:hover {
  border-color: var(--accent-color);
  transform: translateX(10px);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.contact-details h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-details p {
  color: var(--text-secondary);
  margin: 0;
}

/* Contact Map */
.contact-map {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 15px;
  border: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-map iframe {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  flex: 1;
  min-height: 400px;
}

.contact-map iframe:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 191, 255, 0.2);
}

/* Contact Form Section */
.contact-form-section {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0px 10px;
  /* margin: 40px; */
}

/* Contact Form */
.contact-form {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: none;
}

.form-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 500;
}

.contact-form .glow-element {
  display: block;
  margin: 0 auto;
  margin-top: 1rem;
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

.form-group label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
  pointer-events: none;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
  top: -0.5rem;
  left: 0.5rem;
  font-size: 0.8rem;
  color: var(--accent-color);
  background: var(--primary-bg);
  padding: 0 0.5rem;
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: var(--primary-bg);
  color: var(--text-primary);
}

/* Footer */
.footer {
  background: var(--secondary-bg);
  padding: 50px 0 20px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 0px 10px;
}

.footer-section h3,
.footer-section h4 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.footer-section p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--accent-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

.footer-bottom a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--accent-hover);
  text-shadow: 0 0 8px rgba(0, 191, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--primary-bg);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-title span {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 8px;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .hero-title span {
    font-size: 1rem;
  }
  .hero-content {
    padding: 0 4px;
  }
  .hero-logo {
    max-width: 120px;
    width: 60vw;
    margin-bottom: 0.8rem;
  }
  .carousel-container,
  .carousel-track,
  .slide {
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 0 !important;
  }
  .slide {
    width: 98vw !important;
    padding: 4px !important;
  }
  .slide img {
    max-width: 90vw !important;
    max-height: 40vw !important;
  }
  .product-title {
    font-size: 1.2rem;
  }
  .glow-element,
  button,
  .btn-primary,
  .btn-secondary {
    font-size: 1rem !important;
    padding: 0.8em 1.5em !important;
  }
  .about-content,
  .contact-content,
  .services-grid,
  .portfolio-grid,
  .testimonials-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .service-card,
  .testimonial-card,
  .contact-form {
    padding: 1rem !important;
  }
  .footer-content {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .scroll-indicator {
    font-size: 1.2rem !important;
    padding-top: 24px !important;
  }
}
@media (max-width: 400px) {
  .hero-title {
    font-size: 1.1rem;
  }
  .hero-title span {
    font-size: 0.8rem;
  }
  .hero-logo {
    max-width: 80px;
  }
  .slide img {
    max-width: 100vw !important;
    max-height: 50vw !important;
  }
  .glow-element,
  button,
  .btn-primary,
  .btn-secondary {
    font-size: 0.8rem !important;
    padding: 0.6em 1em !important;
  }
  .product-title {
    font-size: 1.5rem !important;
  }

  .product-subtitle {
    font-size: 0.8rem !important;
  } 
  .service-card,
  .testimonial-card,
  .contact-form {
    padding: 0.5rem !important;
  }
}

/* Loading Animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Particle Effects */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent-color);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent-color: #00ffff;
  }
}

.site-logo {
  height: 48px;
  width: auto;
  margin-right: 1rem;
  vertical-align: middle;
  filter: drop-shadow(0 2px 8px rgba(0, 191, 255, 0.15));
  transition: transform 0.2s;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-logo {
  display: block;
  margin: 0 auto 2rem auto;
  max-width: 320px;
  width: 60vw;
  height: auto;
  filter: drop-shadow(0 4px 24px rgba(0, 191, 255, 0.18));
  animation: fadeInLogo 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInLogo {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .site-logo {
    height: 36px;
    margin-right: 0.5rem;
  }
  .hero-logo {
    max-width: 200px;
    width: 80vw;
    margin-bottom: 1.2rem;
  }

  /* Contact section responsive styles */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-map iframe {
    height: 300px;
    min-height: 300px;
  }

  .contact-form-section {
    margin-top: 2rem;
    width: 100%;
  }

  .contact-form {
    padding: 1.5rem;
    width: 100%;
  }
}

.about,
.services,
.portfolio,
.testimonials,
.contact,
.footer {
  background: transparent !important;
  box-shadow: none !important;
}

.btn-silver {
  --glow-color: rgb(180, 180, 200);
  --glow-spread-color: rgba(200, 200, 220, 0.5);
  --enhanced-glow-color: rgb(220, 220, 230);
  --btn-color: rgb(40, 40, 50);
  color: var(--glow-color);
  background-color: var(--btn-color);
  border-color: var(--glow-color);
}

.about .container,
.about .container * {
  color: #fff !important;
}

.about .container {
  backdrop-filter: none !important;
}

.portfolio-item,
.testimonial-card {
  transition: box-shadow 0.5s cubic-bezier(0.77, 0, 0.18, 1),
    transform 0.35s cubic-bezier(0.77, 0, 0.18, 1),
    background 0.5s cubic-bezier(0.77, 0, 0.18, 1);
}

.portfolio-item:hover,
.testimonial-card:hover {
  box-shadow: 0 8px 40px 0 rgba(0, 191, 255, 0.25),
    0 1.5px 8px 0 rgba(0, 0, 0, 0.15);
  transform: scale(1.045) perspective(1200px);
}

.glow-element,
.btn-primary,
.btn-secondary,
button {
  transition: all 0.35s cubic-bezier(0.77, 0, 0.18, 1);
}

section[data-aos] {
  transition-property: opacity, transform;
  transition-duration: 1.4s;
  transition-timing-function: cubic-bezier(0.77, 0, 0.18, 1);
}

.stars i {
  color: #ffd700 !important;
}
