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

:root {
  --primary-color: #2F34B4;
  --primary-light: #4A50DD;
  --secondary-color: #FC0004;
  --text-dark: #1F2937;
  --text-light: #6B7280;
  --bg-light: #F9FAFB;
  --white: #FFFFFF;
  --transition: all 0.3s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

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

body {
  background-color: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.loader-logo {
  width: 280px; /* Made bigger */
  mix-blend-mode: multiply; /* remove white bg */
  animation: pulseRotate 2s infinite ease-in-out;
}

@keyframes pulseRotate {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.loader-circle {
  width: 60px;
  height: 60px;
  border: 5px solid var(--bg-light);
  border-top: 5px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white); /* Changed to strict white so logo white bg blends */
  padding: 10px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

header.scrolled {
  padding: 5px 5%;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.logo img {
  height: 100px; /* Made bigger */
  mix-blend-mode: multiply; /* Remove white bg */
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover img {
  transform: scale(1.1);
}

header.scrolled .logo img {
  height: 80px;
}

.nav-right-area {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1.1rem;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

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

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

.header-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-light);
  padding: 8px 18px;
  border-radius: 30px;
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  border: 1px solid rgba(47, 52, 180, 0.2);
  transition: var(--transition);
}

.header-contact i {
  font-size: 1.3rem;
  color: var(--secondary-color);
}

.header-contact:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  font-size: 2rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 5% 60px;
  background: linear-gradient(rgba(10, 15, 60, 0.8), rgba(10, 15, 60, 0.85)), url('../images/fiber_hero_bg.png') center/cover;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero-subtitle {
  color: var(--secondary-color);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

.hero h1 {
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #E5E7EB;
  max-width: 650px;
}

.hero-btns {
  display: flex;
  gap: 20px;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--secondary-color);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

/* Services Section */
.services {
  padding: 100px 5%;
  background-color: var(--bg-light);
  text-align: center;
}

.section-head {
  margin-bottom: 60px;
}

.section-head h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.section-head p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Enforced 3 columns */
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--primary-color);
  z-index: -1;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card:hover::before {
  height: 100%;
}

.service-card:hover h3, 
.service-card:hover p,
.service-card:hover i {
  color: var(--white);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: rgba(47, 52, 180, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: var(--transition);
}

.service-icon i {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* About / SEO Section */
.about {
  padding: 100px 5%;
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-img {
  flex: 1;
  position: relative;
}

.about-img img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-content {
  flex: 1;
}

.about-content h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 25px;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 20px;
}

.about-list {
  list-style: none;
  margin-top: 30px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: 500;
}

.about-list li i {
  color: var(--secondary-color);
  font-size: 1.5rem;
}

.seo-rich-text {
  margin-top: 30px;
  padding: 20px;
  background: var(--bg-light);
  border-left: 4px solid var(--secondary-color);
  border-radius: 8px;
}

.seo-rich-text h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.seo-rich-text p {
  font-size: 1rem;
  margin-bottom: 0;
}

/* Products & Brands Section */
.products {
  padding: 100px 5%;
  background-color: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.product-card {
  background: var(--bg-light);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 20px;
  padding: 40px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  border-color: var(--primary-color);
}

.product-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(47, 52, 180, 0.1);
}

.product-header i {
  font-size: 2rem;
  color: var(--secondary-color);
}

.product-header h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.product-list {
  list-style: none;
}

.product-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  color: var(--text-dark);
  line-height: 1.6;
}

.product-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary-color);
  font-size: 1.2rem;
  font-weight: bold;
}

.product-list li strong {
  color: var(--primary-color);
}

/* FAQ Section */
.faq {
  padding: 100px 5%;
  background-color: var(--bg-light);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--secondary-color);
}

.faq-question i {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-question.active i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: var(--white);
}

.faq-answer p {
  padding: 0 25px 20px;
  color: var(--text-light);
  line-height: 1.7;
}

/* Contact Section */
.contact {
  padding: 100px 5%;
  background-color: var(--white);
}

.contact-wrap {
  display: flex;
  gap: 50px;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.contact-info {
  flex: 1;
  padding: 50px;
  background: var(--primary-color);
  color: var(--white);
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-item i {
  font-size: 1.8rem;
  color: var(--secondary-color);
}

.contact-item h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.contact-item p, .contact-item a {
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  text-decoration: none;
}

.contact-map {
  flex: 1;
  min-height: 400px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
}

/* Floating Widgets */
.floating-widget {
  position: fixed;
  bottom: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2.2rem;
  z-index: 999;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-float {
  left: 30px;
  background-color: #25D366;
  animation: bounce 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128C7E;
}

.back-to-top {
  right: 30px;
  background-color: var(--secondary-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary-color);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Footer */
footer {
  background-color: #0A0F3C;
  color: var(--white);
  padding: 60px 5% 30px;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 40px;
}

.footer-col .footer-logo-box {
  background: var(--white);
  padding: 15px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 20px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-col .footer-logo-box:hover {
  transform: scale(1.1);
}

.footer-col .footer-logo-box img {
  height: 90px;
  mix-blend-mode: multiply;
}

.footer-col p {
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary-color);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.3rem;
  text-decoration: none;
  transition: var(--transition);
}

.social-links a.fb:hover { background: #1877F2; }
.social-links a.ig:hover { background: #E4405F; }
.social-links a.wa:hover { background: #25D366; }

.footer-bottom {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-bottom p {
  color: rgba(255,255,255,0.7);
}

.footer-bottom a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* Responsive */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero h1 { font-size: 3rem; }
  .about { flex-direction: column; }
  .contact-wrap { flex-direction: column; }
  .footer-nav { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-right-area { gap: 15px; }
  
  .header-contact {
    display: none; /* hide from header to save space */
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    gap: 30px;
  }

  .nav-links.active {
    left: 0;
  }

  .mobile-toggle {
    display: block;
    z-index: 1001; /* Above nav links */
  }
  
  .hero { padding-top: 150px; }
  .hero h1 { font-size: 2.5rem; }
  
  .hero-btns {
    flex-direction: column;
  }
  .services-grid {
    grid-template-columns: 1fr; /* 1 column on mobile */
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
}
