/* css/components.css */

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98); /* Solid background for legibility */
  padding: 1rem 0; /* Approx 70-80px total height */
  z-index: 1000;
  transition: all var(--transition-normal);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
  padding: 0.6rem 0;
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-family: var(--font-heading);
  font-size: 1.4rem; /* Balanced logo size */
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  white-space: nowrap; /* Prevent wrapping */
  text-decoration: none;
  display: flex;
  align-items: center;
}

.navbar-logo {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 1.5rem; /* Consistent, reduced horizontal spacing */
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  font-size: 0.95rem; /* Slightly reduced font size */
  white-space: nowrap; /* Prevent multi-line links */
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -6px;
  left: 0;
  background-color: var(--accent); /* Red accent strictly for interactions */
  transition: width var(--transition-fast);
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent); /* Accent red explicitly used for active states */
}

.nav-cta {
  flex-shrink: 0;
}

.nav-cta .btn {
  padding: 0.6rem 1.5rem; /* Compact button */
  font-size: 0.95rem;
  white-space: nowrap;
  line-height: 1.5;
  border-radius: var(--radius-sm);
}

.hamburger {
  display: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--primary);
}

/* Hero Section */
.hero-section {
  padding: 12rem 0 8rem 0; 
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  /* Top is mid-blue, bottom perfectly matches the dark blue Stats section */
  background: linear-gradient(180deg, #2563EB 0%, #1E3A8A 100%);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  opacity: 0.15;
}

.hero-content {
  max-width: 700px;
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 4rem; 
  color: white;
  margin-bottom: 2rem;
  line-height: 1.1;
  letter-spacing: -2px;
  animation: heroFadeUp 0.8s ease-out forwards;
  opacity: 0;
}

.hero-subtitle-text {
  font-size: 1.25rem;
  color: #E5E7EB;
  margin-bottom: 3rem;
  line-height: 1.8;
  max-width: 600px;
  animation: heroFadeIn 1s ease-out 0.3s forwards;
  opacity: 0;
}

.hero-bullets {
  margin-bottom: 3rem;
}

.hero-bullets li {
  margin-bottom: 1rem;
  font-weight: 500;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  color: white;
  animation: heroFadeLeft 0.8s ease-out forwards;
  opacity: 0;
  transform: translateX(-20px);
}

.hero-bullets li i {
  margin-right: 1.25rem;
  font-size: 1.35rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  animation: heroScaleIn 0.8s ease-out 1.2s forwards;
  opacity: 0;
}

.hero-buttons .btn {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.hero-buttons .btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.btn-outline-light {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}
.btn-outline-light:hover {
  background: white;
  color: #1E3A8A;
  border-color: white;
}

/* Illustration abstraction */
.tech-illustration {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration-circle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 30px rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all var(--transition-slow);
}

.illustration-circle:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.05) !important;
}

.ill-1 { 
  width: 140px; height: 140px; font-size: 4rem; z-index: 3; 
  animation: heroIconFloat 6s ease-in-out infinite; 
}
.ill-2 { 
  width: 100px; height: 100px; font-size: 2.5rem; top: 10%; right: 0%; z-index: 2; opacity: 0.8; 
  animation: heroIconFloat 7s ease-in-out infinite 1s; 
}
.ill-3 { 
  width: 120px; height: 120px; font-size: 3rem; bottom: 5%; left: 5%; z-index: 1; opacity: 0.7; 
  animation: heroIconFloat 8s ease-in-out infinite 2s; 
}

/* Stats */
.stats-section {
  padding: 80px 0 160px 0;
  position: relative;
  border-top: none;
}

/* Smooth fade perfectly positioned into empty space below text */
.stats-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 140px; 
  background: linear-gradient(to bottom, var(--primary) 0%, var(--bg-light) 100%);
  pointer-events: none;
  z-index: 0;
}

.stats-container {
  position: relative;
  z-index: 1; /* Keep stats above the fade layer */
}

.stat-card {
  text-align: center;
}
.stat-number {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -2px;
}
.stat-label {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Cards specific tweaks */
.why-card .card-title, .service-card .card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.why-card .card-desc, .service-card .card-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Products */
.product-category {
  padding: 2.5rem 1.5rem; 
  background: white;
  border-radius: var(--radius-lg);
  text-align: center;
  font-weight: 600;
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 42, 0.04);
  transition: all var(--transition-normal);
}
.product-category:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.product-category i {
  display: block;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

/* Brands Strip */
.brands-carousel {
  overflow: hidden; /* Hide the scrolling track */
  padding: 3rem 0; /* top/bottom spacing */
  background: white;
  border-radius: var(--radius-lg);
  margin-top: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 42, 0.04);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.brands-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scroll-x 25s linear infinite;
}
.brands-group {
  display: flex;
  align-items: center;
  gap: 100px;
  padding-right: 100px; /* Crucial for seamless infinite loop alignment */
}
.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px; /* Robust container height normalizing visual appearance */
  padding: 0;
  margin: 0;
  opacity: 0.7; /* Default muted presence */
  transition: all var(--transition-normal);
  flex-shrink: 0; 
}
.brand-item img {
  width: auto;
  min-height: 50px;
  max-height: 65px;
  object-fit: contain;
  transition: transform var(--transition-normal);
}
/* Intelligent upscaling for optically denser/smaller logos */
.brand-item img[alt^="HP"],
.brand-item img[alt^="Dell"],
.brand-item img[alt^="Cisco"] {
  transform: scale(1.2);
}
.brand-item:hover {
  opacity: 1; /* Instant vibrancy */
  transform: scale(1.05); /* Subtle scale interaction */
}

/* Industries */
.industry-card {
  text-align: center;
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 1rem;
}
.industry-card:hover {
  box-shadow: none;
  transform: translateY(-12px);
}
.industry-card .icon-box {
  margin: 0 auto 2rem;
  width: 90px;
  height: 90px;
  font-size: 3rem;
  background: rgba(255,255,255,0.06);
  color: white;
}
.industry-card:hover .icon-box {
  background: white;
  color: var(--primary);
  transform: scale(1.08);
}
.industry-card .card-title {
  color: white;
  font-size: 1.4rem;
}

/* Case Studies */
.case-study-card {
  background: white;
  border-radius: var(--radius-lg); 
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-xl);
  align-items: stretch;
  border: 1px solid rgba(15, 23, 42, 0.04);
  transition: all var(--transition-normal);
}
.case-study-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-8px);
}
.case-content {
  padding: var(--spacing-lg);
}
.case-title {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}
.case-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.case-content ul li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}
.case-content ul li i {
  margin-right: 1rem;
  font-size: 1.1rem;
}
.case-image {
  background: var(--bg-light);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-image img {
  max-width: 55%;
  max-height: 55%;
  object-fit: contain;
  opacity: 0.9;
}

/* Process Section */
.process-content {
  padding-right: var(--spacing-lg);
}
.process-step {
  position: relative;
  padding-left: 4rem; 
  margin-bottom: 3.5rem;
}
.process-step::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 50px;
  width: 2px;
  height: calc(100% - 15px);
  background: rgba(15, 23, 42, 0.1);
  z-index: 0;
}
.process-step:last-child::before {
  display: none;
}
.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  background: var(--bg-light); 
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}
.step-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}
.step-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
}
.process-image {
  text-align: center;
}
.process-image i {
  font-size: 16rem;
  color: var(--primary);
  opacity: 0.03;
}

/* Student Program */
.student-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
}
.student-image {
  text-align: center;
}
.student-image i {
  font-size: 14rem;
  color: rgba(255,255,255,0.03);
}
.student-desc {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  color: rgba(255,255,255,0.85);
}
.benefit-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}
.benefit-item i {
  margin-right: 1.25rem !important;
}

/* Testimonials */
.testimonial-card {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
}
.quote-icon {
  color: rgba(30, 58, 138, 0.05);
  font-size: 6rem;
  line-height: 1;
  margin-bottom: -2.5rem;
  font-family: serif;
}
.stars {
  color: #fbbf24;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  letter-spacing: 2px;
}
.feedback {
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 2.5rem;
  color: var(--text-main);
  line-height: 1.8;
  flex-grow: 1;
}
.client-info {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding-top: 1.5rem;
}
.client-info h5 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

/* Contact */
.contact-methods .method {
  display: flex;
  align-items: center;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.04);
}
.contact-methods .method i {
  font-size: 2rem;
  margin-right: 2rem;
  color: var(--primary);
  background: rgba(30, 58, 138, 0.05);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
}
.contact-methods .method h5 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}
.contact-methods .method p {
  font-size: 1.05rem;
}
.contact-form {
  padding: 3rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  transition: all var(--transition-fast);
  background: var(--bg-light);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

/* Footer */
.footer {
  background: var(--text-main);
  color: white;
  padding: 6rem 0 3rem 0;
  font-size: 1rem;
}
.footer-col h3, .footer-col h4 {
  color: white;
  margin-bottom: 2rem;
}
.footer-col h3 {
  font-size: 1.75rem;
}
.footer-col h4 {
  font-size: 1.2rem;
}
.footer-col p, .footer-col ul {
  color: #cbd5e1;
}
.footer-col li {
  margin-bottom: 1rem;
}
.footer-col a:hover {
  color: white;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08); /* Sophisticated subtle button */
  color: white;
  margin-right: 1rem;
  transition: all var(--transition-normal);
  font-size: 1.1rem;
}
.footer-socials a:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-5px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 4rem;
  padding-top: 2rem;
  text-align: center;
  color: #94a3b8;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0px 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0px 8px 25px rgba(37, 211, 102, 0.6);
  color: #fff;
}
.whatsapp-float::before {
  content: "Chat with us on WhatsApp";
  position: absolute;
  right: 75px;
  background-color: white;
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  transform: translateX(10px);
}
.whatsapp-float:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Responsive Overrides */
@media (max-width: 1200px) {
  .nav-links { gap: 1rem; }
  .logo a { font-size: 1.25rem; }
}

@media (max-width: 1050px) { /* Break early for thick header items */
  .nav-links, .nav-cta {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    gap: 1.5rem;
    z-index: 1000;
  }
}

@media (max-width: 900px) {
  .hero-section { padding: 10rem 0 5rem 0; }
  .section { padding: var(--spacing-xl) 0; }
  .hero-title { font-size: 3rem; }
  .hero-subtitle-text { font-size: 1.15rem; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .process-content { padding-right: 0; }
  .section-title { font-size: 2.5rem; }
  .testimonial-card, .contact-form, .case-content { padding: 2rem; }
  .process-image, .student-image, .case-image, .tech-illustration { display: none; }
  .brands-group {
    gap: 40px;
    padding-right: 40px;
  }
  .brand-item { padding: 0; }
  .brand-item img { min-height: 40px; max-height: 50px; }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 25px;
  }
  .whatsapp-float::before {
    display: none;
  }
}
