/*
Theme Name: STRAND
Theme URI: https://strandtech.com
Author: Antigravity
Description: A premium, modern, glassmorphism theme for STRAND Telecommunication Technology.
Version: 1.0.0
Text Domain: strand
*/

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

:root {
  --primary-teal: #187a93;
  --primary-teal-dark: #0f4f5f;
  --accent-lime: #85b035; /* Darkened slightly for contrast on light bg */
  --accent-lime-hover: #9cd13f;
  --bg-dark: #f8fafc; /* Light background */
  --bg-darker: #f1f5f9; /* Alternate light background */
  --bg-card: #ffffff; /* White card */
  --text-main: #0f172a; /* Dark text */
  --text-muted: #475569; /* Muted dark text */
  --glass-bg: rgba(255, 255, 255, 0.85); /* Light glass */
  --glass-bg-scrolled: rgba(255, 255, 255, 0.5); /* More transparent when scrolled */
  --glass-border: rgba(0, 0, 0, 0.05); /* Light border */
  --footer-bg: #e2e8f0;
  --footer-text: #0f172a;
}

[data-theme="dark"] {
  --primary-teal: #187a93;
  --primary-teal-dark: #0f4f5f;
  --accent-lime: #a2d246;
  --accent-lime-hover: #b5e559;
  --bg-dark: #0a192f;
  --bg-darker: #060f1c;
  --bg-card: rgba(255, 255, 255, 0.05);
  --text-main: #e6f1ff;
  --text-muted: #8892b0;
  --glass-bg: rgba(10, 25, 47, 0.85);
  --glass-bg-scrolled: rgba(10, 25, 47, 0.5);
  --glass-border: rgba(255, 255, 255, 0.1);
  --footer-bg: #030810;
  --footer-text: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
}

.highlight {
  color: var(--primary-teal);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 1.5rem max(2rem, calc(50% - 600px + 2rem));
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 0.5rem max(2rem, calc(50% - 600px + 2rem));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  background: var(--glass-bg-scrolled);
}

[data-theme="dark"] .header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-logo {
  height: 160px !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  transition: height 0.3s ease;
}

.header.scrolled .header-logo {
  height: 100px !important;
}

.logo {
  display: flex;
  flex-direction: column;
  flex-shrink: 0 !important;
}

.logo-text {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-teal);
  letter-spacing: 2px;
  line-height: 1;
}

.logo-subtext {
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

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

.nav a {
  color: var(--primary-teal);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: var(--accent-lime);
}

.nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-lime);
  transition: width 0.3s ease;
}

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

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

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.theme-toggle:hover {
  color: var(--accent-lime);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background-image: url('assets/images/hero_banner.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(248, 250, 252, 0.95), rgba(248, 250, 252, 0.6));
  z-index: 1;
}

[data-theme="dark"] .hero-overlay {
  background: linear-gradient(to right, rgba(10, 25, 47, 0.95), rgba(10, 25, 47, 0.5));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 5%;
  max-width: 800px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.5s;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Buttons */
.btn {
  padding: 0.8rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
}

.btn-primary {
  background-color: var(--primary-teal);
  color: white;
  border: 1px solid var(--primary-teal);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-teal);
  box-shadow: 0 0 20px rgba(24, 122, 147, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-lime);
  border: 1px solid var(--accent-lime);
}

.btn-secondary:hover {
  background-color: var(--accent-lime);
  color: var(--bg-dark);
  box-shadow: 0 0 20px rgba(162, 210, 70, 0.4);
}

/* Sections */
section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

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

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* About Section */
.about {
  background-color: var(--bg-darker);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

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

.about-features {
  list-style: none;
  margin-top: 2rem;
}

.about-features li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-features li i {
  color: var(--accent-lime);
}

.about-image {
  background-image: url('assets/images/mobile_network.png');
  background-size: cover;
  background-position: center;
  height: 400px;
  border-radius: 20px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: 10px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .glass-card {
  background: rgba(10, 25, 47, 0.7);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.glass-card h3 {
  color: var(--primary-teal);
  margin-bottom: 0.5rem;
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 2.5rem 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  background: #ffffff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .service-card:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-teal);
  margin-bottom: 1.5rem;
}

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

.service-card p {
  color: var(--text-muted);
}

/* Projects */
.projects {
  background-color: var(--bg-darker);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

[data-theme="dark"] .project-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: rgba(24, 122, 147, 0.1);
}

.project-content {
  padding: 2rem;
}

/* Specific scale for Zain logo in Project Cards */
.project-card .project-image[style*="zain"],
.project-card .project-image[style*="Zain"] {
  background-size: 100% !important;
}

/* Specific scale for VTEL logo in Project Cards */
.project-card .project-image[style*="vtel"],
.project-card .project-image[style*="VTEL"] {
  background-size: 85% !important;
}

/* Specific scale for Fibertech logo in Project Cards */
.project-card .project-image[style*="fibertech"],
.project-card .project-image[style*="Fibertech"] {
  background-size: 85% !important;
}

.project-type {
  display: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-lime);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.project-title {
  font-size: 1.5rem;
  color: var(--primary-teal);
  margin-bottom: 1rem;
}

.project-cost {
  color: var(--accent-lime);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  background: rgba(162, 210, 70, 0.1);
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}
[data-theme="dark"] .project-cost { color: var(--accent-lime-hover); }

.project-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.project-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* Footer */
.footer {
  background-color: var(--footer-bg);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 1rem;
}

.footer-links h4, .footer-contact h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--footer-text);
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-lime);
}

.footer-contact p {
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-contact i {
  color: var(--primary-teal);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .about-grid, .projects-showcase {
    grid-template-columns: 1fr;
  }
  .project-details {
    padding: 2rem;
  }
}

/* Customers Slider */
.customers {
  background: var(--surface-bg);
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
  padding: 2rem 0;
}

.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-color), transparent);
}
.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-color), transparent);
}

.marquee-content {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}
.marquee-content:hover {
  animation-play-state: paused;
}

.customer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 1.5rem;
  height: 100px;
  min-width: 150px;
  transition: all 0.3s ease;
  filter: grayscale(100%) opacity(0.8);
  transform: translateZ(0);
  backface-visibility: hidden;
}
.customer-logo:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}
.customer-logo img {
  max-height: 80px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

/* Specific scale for AIG logo to fix small size */
.customer-logo img[src*="aig"],
.customer-logo img[src*="AIG"],
.customer-logo img[alt*="AIG"],
.customer-logo img[alt*="aig"],
.customer-logo img[alt*="المطار"] {
  transform: scale(1.3) !important;
  max-height: 120px !important;
}

/* Specific scale for VTEL logo to fix small size */
.customer-logo img[src*="vtel"],
.customer-logo img[src*="VTEL"],
.customer-logo img[alt*="VTEL"],
.customer-logo img[alt*="vtel"] {
  transform: scale(1.7) !important;
}

/* Specific scale for Umniah and Orange logos */
.customer-logo img[src*="umniah"],
.customer-logo img[src*="Umniah"],
.customer-logo img[alt*="Umniah"],
.customer-logo img[alt*="umniah"],
.customer-logo img[alt*="أمنية"],
.customer-logo img[src*="orange"],
.customer-logo img[src*="Orange"],
.customer-logo img[alt*="Orange"],
.customer-logo img[alt*="orange"],
.customer-logo img[alt*="أورانج"] {
  transform: scale(1.5) !important;
}

/* Specific scale for JEPCO logo to make it slightly smaller */
.customer-logo img[src*="jepco"],
.customer-logo img[src*="JEPCO"],
.customer-logo img[alt*="JEPCO"],
.customer-logo img[alt*="jepco"],
.customer-logo img[alt*="الكهرباء"] {
  transform: scale(0.85) !important;
}

/* Specific scale for YEO, Ozaltin, and Mapa logos */
.customer-logo img[src*="yeo"],
.customer-logo img[src*="YEO"],
.customer-logo img[alt*="YEO"],
.customer-logo img[alt*="yeo"],
.customer-logo img[src*="ozaltin"],
.customer-logo img[src*="Ozaltin"],
.customer-logo img[alt*="Ozaltin"],
.customer-logo img[alt*="ozaltin"],
.customer-logo img[src*="mapa"],
.customer-logo img[src*="Mapa"],
.customer-logo img[alt*="Mapa"],
.customer-logo img[alt*="mapa"] {
  transform: scale(1.6) !important;
}

/* Specific scale for IDECO logo */
.customer-logo img[src*="ideco"],
.customer-logo img[src*="IDECO"],
.customer-logo img[alt*="IDECO"],
.customer-logo img[alt*="ideco"],
.customer-logo img[alt*="اربد"] {
  transform: scale(1.6) !important;
}

/* Specific scale for Nokia logo */
.customer-logo img[src*="nokia"],
.customer-logo img[src*="Nokia"],
.customer-logo img[alt*="Nokia"],
.customer-logo img[alt*="nokia"],
.customer-logo img[alt*="نوكيا"] {
  transform: scale(0.85) !important;
}

/* Specific scale for Zain logo in Marquee */
.customer-logo img[src*="zain"],
.customer-logo img[src*="Zain"],
.customer-logo img[alt*="Zain"],
.customer-logo img[alt*="zain"],
.customer-logo img[alt*="زين"] {
  transform: scale(2.5) !important;
}

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

/* =========================================
   Form Plugin Overrides (WPForms, Forminator, CF7)
   ========================================= */
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container textarea,
.forminator-ui .forminator-input,
.forminator-ui .forminator-textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100% !important;
  padding: 1rem !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 8px !important;
  background: var(--bg-card) !important;
  color: var(--text-main) !important;
  font-family: inherit !important;
  font-size: 1rem !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.3s ease !important;
  margin-bottom: 0 !important;
}

.wpforms-container input:focus,
.wpforms-container textarea:focus,
.forminator-ui .forminator-input:focus,
.forminator-ui .forminator-textarea:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: var(--accent-lime) !important;
}

.wpforms-container label,
.forminator-ui .forminator-label,
.wpcf7 label {
  display: inline-block !important;
  margin-bottom: 0.5rem !important;
  font-weight: 600 !important;
  color: var(--primary-teal) !important;
  font-size: 1rem !important;
}

.wpforms-container .wpforms-submit-container,
.forminator-ui .forminator-row-last {
  text-align: center !important;
  margin-top: 1.5rem !important;
}

.wpforms-container button[type="submit"],
.forminator-ui .forminator-button-submit,
.wpcf7 input[type="submit"] {
  background: var(--primary-teal) !important;
  color: #fff !important;
  padding: 1rem 3rem !important;
  font-size: 1.1rem !important;
  border-radius: 30px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(24, 122, 147, 0.3) !important;
  width: auto !important;
  display: inline-block !important;
  font-weight: 600 !important;
}

.wpforms-container button[type="submit"]:hover,
.forminator-ui .forminator-button-submit:hover,
.wpcf7 input[type="submit"]:hover {
  background: var(--primary-teal-dark) !important;
  transform: translateY(-2px) !important;
}

.contact-card-text { color: var(--text-muted) !important; font-size: 1rem !important; font-weight: 400 !important; }
.contact-card-text a { color: var(--text-muted) !important; font-weight: 400 !important; text-decoration: none !important; }
