/* ==========================================================================
   CSS CUSTOM PROPERTIES (FROSTED GLASS THEME)
   ========================================================================== */
:root {
  --bg-color: #020617; /* slate-950 */
  --text-main: #f8fafc; /* slate-50 */
  --text-muted: #94a3b8; /* slate-400 */
  --text-darker: #64748b; /* slate-500 */
  --accent-cyan: #22d3ee; /* cyan-400 */
  --accent-cyan-dark: #06b6d4; /* cyan-500 */
  --accent-blue: #60a5fa; /* blue-400 */
  --accent-blue-dark: #2563eb; /* blue-600 */
  --accent-purple: #c084fc; /* purple-400 */
  
  --glass-bg-light: rgba(255, 255, 255, 0.1);
  --glass-bg-lighter: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-border-light: rgba(255, 255, 255, 0.1);
  
  --font-main: "Inter", sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==========================================================================
   RESET & FUNDAMENTALS
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

ul {
  list-style: none;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   WEBGL & CANVAS & MESH GRADIENTS
   ========================================================================== */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  opacity: 0.5; /* Muted slightly to let mesh gradients show */
}

.css-fallback {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-color);
  z-index: -3;
}

/* Add mesh gradients via body pseudo-elements */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -3;
  pointer-events: none;
}

body::before {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vh;
  background-color: rgba(37, 99, 235, 0.2); /* blue-600/20 */
}

body::after {
  bottom: -10%;
  right: -10%;
  width: 50vw;
  height: 50vh;
  background-color: rgba(147, 51, 234, 0.2); /* purple-600/20 */
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
nav {
  position: fixed;
  width: 100%;
  padding: 2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: var(--transition);
}

nav.scrolled {
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.5rem 5%;
  border-bottom: 1px solid var(--glass-border-light);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  font-style: italic;
}

.logo span {
  color: var(--accent-cyan-dark);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  font-size: 0.875rem; /* text-sm */
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em; /* tracking-widest */
  opacity: 0.8;
}

.nav-links li a:hover {
  opacity: 1;
  color: var(--accent-cyan);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 1rem 1.5rem;
  background: linear-gradient(to right, var(--accent-cyan-dark), var(--accent-blue-dark));
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 900; /* font-black */
  font-size: 0.75rem; /* text-xs */
  border-radius: 0.75rem; /* rounded-xl */
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 10px 15px -3px rgba(6, 182, 212, 0.2), 0 4px 6px -4px rgba(6, 182, 212, 0.2);
  text-align: center;
}

.btn:hover {
  transform: scale(1.02);
}

.btn:active {
  transform: scale(0.98);
}

/* ==========================================================================
   SECTIONS & LAYOUT
   ========================================================================== */
section {
  padding: 8rem 5%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.section-title {
  font-size: 4rem;
  font-weight: 300; /* font-light */
  letter-spacing: -0.05em; /* tracking-tight */
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-title span {
  font-weight: 700; /* font-bold */
  background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem; /* text-lg */
  margin-bottom: 4rem;
  max-width: 600px;
  line-height: 1.625; /* leading-relaxed */
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  align-items: flex-start;
  min-height: 100vh;
}

.hero-content {
  max-width: 800px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* gap-6ish */
}

.hero-subtitle {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(6, 182, 212, 0.2);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 9999px;
  font-size: 0.625rem; /* text-[10px] */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  width: fit-content;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(3.5rem, 8vw, 4.5rem); /* text-7xl */
  line-height: 1.1;
  font-weight: 300;
  letter-spacing: -0.05em;
  margin-bottom: 0;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.625;
  margin-bottom: 0;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image-inner {
  width: 100%;
  padding-bottom: 120%;
  background: var(--glass-bg-lighter);
  background-image: url('https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?auto=format&fit=crop&q=80');
  background-size: cover;
  background-position: center;
  border-radius: 1.5rem; /* rounded-3xl */
  position: relative;
  z-index: 1;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Glass panel behind image */
.about-image::after {
  content: '';
  position: absolute;
  top: -2rem;
  left: -2rem;
  width: calc(100% + 4rem);
  height: calc(100% + 4rem);
  background: var(--glass-bg-lighter);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border-light);
  border-radius: 2rem;
  z-index: 0;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.stat-item {
  padding: 1.5rem;
  background: var(--glass-bg-lighter);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border-light);
  border-radius: 1rem; /* rounded-2xl */
}

.stat-item h3 {
  font-size: 1.5rem; /* text-2xl */
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.stat-item p {
  font-size: 0.75rem; /* text-xs */
  color: var(--text-darker);
  text-transform: uppercase;
  letter-spacing: 0.05em; /* tracking-wider */
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--glass-bg-lighter);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border-light);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  background: var(--glass-bg-light);
  border-color: var(--glass-border);
  transform: translateY(-5px);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 1rem;
  background: rgba(0,0,0,0.2);
  border-radius: 1rem;
  border: 1px solid var(--glass-border-light);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 1rem;
}

.service-benefits {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-main);
  line-height: 1.4;
}

.service-benefits li i {
  color: var(--accent-cyan);
  font-size: 0.875rem;
  margin-top: 0.125rem;
}

/* ==========================================================================
   PORTFOLIO SECTION
   ========================================================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  background: var(--glass-bg-lighter);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border-light);
  border-radius: 1.5rem;
  padding: 3rem 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.portfolio-card:hover {
  background: var(--glass-bg-light);
  border-color: var(--glass-border);
  transform: translateY(-5px);
}

.portfolio-industry {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 9999px;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  font-weight: 700;
  margin-bottom: 1rem;
}

.portfolio-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #fff;
  line-height: 1.2;
}

.portfolio-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-item h4 {
  font-size: 0.75rem; /* text-xs */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-darker);
  margin-bottom: 0.5rem;
}

.detail-item p {
  font-size: 0.875rem; /* text-sm */
  color: var(--text-muted);
  line-height: 1.6;
}

.detail-item:last-child p {
  color: var(--text-main);
  font-weight: 500;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials {
  background: transparent;
  position: relative;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 30vw;
  height: 30vw;
  background-color: rgba(6, 182, 212, 0.1);
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
}

.swiper {
  width: 100%;
  padding: 3rem 0;
}

.testimonial-card {
  background: var(--glass-bg-light);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  padding: 3rem;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  height: 100%;
}

.quote-icon {
  font-size: 2rem;
  background: linear-gradient(to right, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.5rem;
}

.testimonial-text {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--glass-border-light);
  padding-top: 1.5rem;
}

.client-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(to right, var(--text-muted), var(--text-darker));
}

.client-details h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: -0.05em;
}

.client-details span {
  font-size: 0.625rem; /* text-[10px] */
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.swiper-pagination-bullet {
  background: var(--text-muted) !important;
  opacity: 0.5;
}
.swiper-pagination-bullet-active {
  background: #fff !important;
  opacity: 1;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-info p {
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.contact-details {
  margin-top: 3rem;
  background: var(--glass-bg-lighter);
  border: 1px solid var(--glass-border-light);
  border-radius: 1.5rem;
  padding: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item i {
  color: var(--accent-cyan);
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.contact-form-wrapper {
  background: var(--glass-bg-light);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

/* Mock 3D Element behind form */
.contact-form-wrapper::before {
  content: '';
  position: absolute;
  top: -3rem;
  right: -3rem;
  width: 8rem;
  height: 8rem;
  background: linear-gradient(to bottom right, var(--accent-cyan), var(--accent-blue-dark));
  border-radius: 50%;
  filter: blur(32px);
  opacity: 0.2;
  pointer-events: none;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 10;
}

.input-group {
  display: flex;
  flex-direction: column-reverse; /* For float label trick if needed, or keeping standard label on top */
  gap: 0.25rem;
  position: relative;
}

label {
  font-size: 0.625rem; /* text-[10px] */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-darker);
  font-weight: 700;
  margin-left: 0.25rem;
  pointer-events: none;
  transition: var(--transition);
  position: static; /* Overriding previous absolute positioning for a cleaner look matching the theme */
}

input, textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border-light);
  border-radius: 0.75rem; /* rounded-xl */
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.875rem; /* text-sm */
  transition: var(--transition);
}

input:focus, textarea:focus {
  outline: none;
  border-color: rgba(6, 182, 212, 0.5); /* cyan-500/50 */
}

textarea {
  min-height: 120px;
  resize: none;
}

input::placeholder, textarea::placeholder {
  color: var(--text-darker);
  opacity: 0.5;
}

form .btn {
  width: 100%;
  margin-top: 1rem;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--accent-cyan);
  display: none;
  text-align: center;
}

/* ==========================================================================
   FOOTER (Global Status Bar Style)
   ========================================================================== */
footer {
  padding: 1.5rem 5%;
  border-top: 1px solid var(--glass-border-lighter);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 20;
}

footer p {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-darker);
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: var(--text-darker);
  font-size: 1rem;
}

.social-links a:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
  .about-grid, .contact-container {
    grid-template-columns: 1fr;
  }
  
  .about-image::after {
    display: none;
  }
  
  section {
    padding: 6rem 5%;
  }

  .hero h1 {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 2rem 5%;
    clip-path: circle(0% at 100% 0);
    transition: clip-path 0.5s ease;
    border-bottom: 1px solid var(--glass-border-light);
  }
  
  .nav-links.active {
    clip-path: circle(150% at 100% 0);
  }
  
  .menu-toggle {
    display: block;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  #bg-canvas { display: none; }
}
