/* --- IT Techno Services - Iteration 2 Advanced Design System --- */

:root {
  /* Premium Dark Theme Colors */
  --bg-dark: #070B14;
  --bg-card: rgba(18, 25, 43, 0.65);
  --bg-card-hover: rgba(24, 34, 58, 0.85);
  --nav-glass: rgba(7, 11, 20, 0.7);
  
  --primary-glow: #0EA5E9; /* Electric Cyan */
  --accent-glow: #38BDF8;
  --border-glass: rgba(255, 255, 255, 0.08);

  /* Typography */
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  
  /* Utilities */
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --glass-blur: blur(16px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography Base */
h1, h2, h3 {
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 0;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

a {
  color: var(--accent-glow);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

/* Sticky Glass Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--nav-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 4rem;
  transition: var(--transition);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-text h1 {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 800;
  background: linear-gradient(90deg, #fff, var(--primary-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-text .sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

nav {
  display: flex;
  gap: 2rem;
}
nav a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}
nav a:hover, nav a.active {
  color: var(--accent-glow);
}
nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-glow);
  transition: var(--transition);
  box-shadow: 0 0 8px var(--accent-glow);
}
nav a:hover::after, nav a.active::after {
  width: 100%;
}

/* Hero Carousel */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-slide.active {
  opacity: 0.5; /* Keep it dark enough for text */
}

/* Abstract glowing orbs backup if no image */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  animation: float 20s infinite ease-in-out alternate;
}
.hero::before {
  width: 600px;
  height: 600px;
  background: rgba(14, 165, 233, 0.15);
  top: -100px;
  left: -100px;
}
.hero::after {
  width: 500px;
  height: 500px;
  background: rgba(56, 189, 248, 0.1);
  bottom: -50px;
  right: -50px;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 50px) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  background: rgba(10, 15, 30, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  padding: 4rem;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  animation: fadeUp 1s ease-out forwards;
}

.hero-content h2 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-glow), #0284c7);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(14, 165, 233, 0.5);
  color: #fff;
  text-shadow: none;
}

/* Main Layout Wrappers */
main {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

/* Image-Rich Service Tiles (V2) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 0; /* padding removed to allow image to span */
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  background: var(--bg-card-hover);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(14, 165, 233, 0.15);
}

.service-image {
  width: 100%;
  height: 200px;
  background-color: #0c1222; /* fallback */
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border-glass);
}

.service-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.service-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent-glow);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

/* Standard Generic Card (for About, Contact, Testimonials) */
.card-glass {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  padding: 3rem;
  border-radius: 24px;
  margin-bottom: 2rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}
input, textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-glass);
  color: #fff;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-glow);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
  background: rgba(0,0,0,0.5);
}

/* Footer */
footer {
  background: #04070d;
  border-top: 1px solid var(--border-glass);
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  color: var(--text-muted);
}
.footer-col h3 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  margin-bottom: 0.75rem;
}
.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Scroll Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Parallax NOC Section */
.noc-parallax-section {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 8rem 2rem;
  background-image: url('images/noc-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.noc-parallax-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(18, 25, 43, 0.85); /* Heavy dark overlay for readability */
  z-index: 1;
}

.noc-parallax-section > * {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
}

/* Infinite Vendor Marquee */
.vendor-marquee-container {
  overflow: hidden;
  white-space: nowrap;
  padding: 4rem 0;
  position: relative;
  background: rgba(18, 25, 43, 0.4);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  margin-top: 4rem;
}

/* Fading edges effect */
.vendor-marquee-container::before,
.vendor-marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
}
.vendor-marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-dark), transparent);
}
.vendor-marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-dark), transparent);
}

.vendor-marquee-track {
  display: inline-block;
  animation: scrollMarquee 35s linear infinite;
}

/* Pause on hover */
.vendor-marquee-container:hover .vendor-marquee-track {
  animation-play-state: paused;
}

.vendor-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 3rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition);
  cursor: default;
}

.vendor-item:hover {
  color: #fff;
  text-shadow: 0 0 15px var(--primary-glow);
  transform: scale(1.05);
}

.vendor-item img {
  height: 45px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: var(--transition);
}

.vendor-item:hover img {
  opacity: 1;
  filter: brightness(0) invert(1) drop-shadow(0 0 8px var(--primary-glow));
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsive Overrides */
@media (max-width: 768px) {
  header { padding: 1rem 1.5rem; flex-direction: column; gap: 1rem; }
  .hero-content { padding: 2rem; }
  .hero-content h2 { font-size: 2.5rem; }
  main { padding: 8rem 1.5rem 4rem; }
}
