@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");

:root {
  --primary-color: #f39c12; /* Gold */
  --primary-dark: #d68910;
  --secondary-color: #1a252f; /* Dark Blue */
  --text-color: #333;
  --text-light: #666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background: var(--white);
}

/* --- Navbar --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 5%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.logo img {
  height: 55px;
  width: auto;
  transition: var(--transition);
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 5px 0;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease-out;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius);
  padding: 10px 0;
  z-index: 100;
  border-top: 3px solid var(--primary-color);
}

.dropdown-content a {
  color: var(--text-color);
  padding: 10px 20px;
  display: block;
  font-size: 0.95rem;
}

.dropdown-content a:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
  padding-left: 25px; /* Slide effect */
}

.dropdown-content a::after {
  display: none;
}

.dropdown:hover .dropdown-content {
  display: block;
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero-section {
  height: 100vh;
  background: linear-gradient(rgba(26, 37, 47, 0.75), rgba(26, 37, 47, 0.6)),
    url("../assets/row-yellow-internet-cables.jpg") no-repeat center
      center/cover;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
  margin-top: -80px; /* Pull behind navbar */
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: slideDown 1s ease;
}

.hero-text p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
  opacity: 0.9;
  animation: slideUp 1s ease;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--white);
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  margin: 0.5rem;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.btn:hover {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-3px);
}

/* --- General Layout --- */
main {
  /* padding-top: 80px; handled by nav spacing */
}

.page-header {
  background: var(--secondary-color);
  color: var(--white);
  padding: 8rem 2rem 4rem;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 800px;
  margin: 0 auto;
}

.page-section {
  padding: 5rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.highlight-section {
  background-color: var(--bg-light);
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: var(--text-light);
}

h2 {
  font-size: 2.2rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  text-align: center;
}

/* --- Product Grid (Home) --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.card-image-container {
  height: 220px;
  overflow: hidden;
}

.card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .card-image-container img {
  transform: scale(1.1);
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content h3 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.card-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.btn-card {
  align-self: flex-start;
  padding: 8px 20px;
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-card:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* --- Product Detail Pages --- */
.product-detail-section {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 5rem 5%;
  border-bottom: 1px solid #eee;
}

.product-detail-section:nth-child(even) {
  background-color: var(--bg-light);
}

.product-detail-section.reverse {
  flex-direction: row-reverse;
}

.product-image {
  flex: 1;
}

.product-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.product-description {
  flex: 1;
}

.product-description h2 {
  text-align: left;
  margin-bottom: 1rem;
}

.product-description h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin: 1.5rem 0 1rem;
}

.product-description ul {
  list-style: none;
}

.product-description ul li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
}

.product-description ul li i {
  color: var(--primary-color);
  margin-right: 12px;
  margin-top: 5px;
}

/* --- About Page Core Values --- */
.commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.commitment-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  border-top: 4px solid transparent;
}

.commitment-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--primary-color);
}

.commitment-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.commitment-card h3 {
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

/* --- Contact Page --- */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.contact-item {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: flex-start;
}

.contact-item i {
  color: var(--primary-color);
  margin-right: 15px;
  margin-top: 5px;
  font-size: 1.1rem;
}

/* --- Footer (New Design) --- */
.main-footer {
  background-color: var(--secondary-color);
  color: #ccc;
  padding: 4rem 5% 1rem;
  font-size: 0.95rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  text-align: left;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-col p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.contact-list li {
  display: flex;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.contact-list i {
  color: var(--primary-color);
  margin-right: 10px;
  margin-top: 4px;
}

.branch-list {
  list-style: none;
}
.branch-list li {
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}
.branch-list strong {
  display: block;
  color: var(--white);
  margin-bottom: 2px;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }

  .hamburger {
    display: block;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    background-color: var(--white);
    flex-direction: column;
    justify-content: center;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: 0.4s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .product-detail-section,
  .product-detail-section.reverse {
    flex-direction: column;
    text-align: left;
    gap: 2rem;
  }

  .product-description h2 {
    text-align: center;
  }
}

/* Animations */
@keyframes slideDown {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
