/* ==========================================================================
   WEPHOTONS - Global Tech Support Company
   Style System based on bluemantis.com inspiration
   ========================================================================== */

/* --- Variables & Core Tokens --- */
:root {
  /* Color Palette */
  --deep-space-navy: #0A192F;
  --deep-space-alt: #112240;
  --transparent-navy: rgba(10, 25, 47, 0.85);

  --electric-cyan: #00E5FF;
  --electric-cyan-dim: rgba(0, 229, 255, 0.15);
  --electric-cyan-hover: #00b3cc;

  --pure-white: #FFFFFF;
  --light-slate: #8892B0;
  --slate: #A8B2D1;
  --slate-dim: rgba(168, 178, 209, 0.1);

  /* Fonts */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  --transition-normal: 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  --transition-slow: 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --padding-x: 2rem;
  --section-padding: 6rem;

  /* Radii & Shadows */
  --radius-sm: 8px;
  /* elevated from 4px */
  --radius-md: 12px;
  /* elevated from 8px */
  --radius-lg: 20px;
  /* elevated from 12px */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-cyan: 0 0 20px rgba(0, 229, 255, 0.4), 0 0 40px rgba(0, 229, 255, 0.2);
}

/* --- Animations --- */
@keyframes backgroundPan {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulseGlow {
  0% {
    opacity: 0.6;
    transform: scale(0.95);
  }

  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  /* Added dynamic gradient background */
  background: linear-gradient(-45deg, #0A192F, #020c1b, #0A192F, #112240);
  background-size: 400% 400%;
  animation: backgroundPan 15s ease infinite;
  color: var(--slate);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--pure-white);
  font-weight: 800;
  /* Bolder for premium look */
  line-height: 1.2;
}

a {
  color: var(--electric-cyan);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--electric-cyan-hover);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.text-center {
  text-align: center;
}

.mt-6 {
  margin-top: 1.5rem;
}

.highlight {
  color: var(--electric-cyan);
  -webkit-text-fill-color: var(--electric-cyan);
  position: relative;
  display: inline-block;
}

/* --- Layout Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-x);
}

.container-narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: var(--section-padding) 0;
  /* Added subtle entry animation */
  animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.section-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--light-slate);
  max-width: 600px;
}

.text-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* Grids */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* --- Components --- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
  z-index: -1;
}

.btn:hover::after {
  left: 100%;
}

.btn-primary {
  color: var(--deep-space-navy);
  background-color: var(--electric-cyan);
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.2);
}

.btn-primary:hover {
  background-color: var(--pure-white);
  box-shadow: var(--shadow-cyan);
  color: var(--deep-space-navy);
  transform: translateY(-3px);
}

.btn-secondary {
  color: var(--electric-cyan);
  background-color: transparent;
  border-color: var(--electric-cyan);
}

.btn-secondary:hover {
  background-color: var(--electric-cyan);
  color: var(--deep-space-navy);
  box-shadow: var(--shadow-cyan);
  transform: translateY(-3px);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  transition: all var(--transition-normal);
  background: transparent;
}

.header.scrolled {
  background: rgba(10, 25, 47, 0.7);
  backdrop-filter: blur(15px);
  /* Glassmorphism */
  -webkit-backdrop-filter: blur(15px);
  padding: 1rem 0;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  transition: transform var(--transition-fast);
}

.logo img {
  max-height: 40px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.2));
}

.logo:hover {
  transform: scale(1.05);
}

.nav {
  display: flex;
  align-items: center;
}

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

.nav-link {
  color: var(--pure-white);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--electric-cyan);
  transition: width 0.3s ease, left 0.3s ease;
  box-shadow: 0 0 8px var(--electric-cyan);
}

.nav-link:hover {
  color: var(--electric-cyan);
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* --- Dropdowns (Desktop Base) --- */
@media (min-width: 769px) {
  .nav-list>li {
    position: relative;
  }

  .dropdown,
  .sub-dropdown {
    position: absolute;
    background: rgba(17, 34, 64, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    min-width: 250px;
    border: 1px solid rgba(0, 229, 255, 0.1);
    padding: 0.5rem 0;
    z-index: 100;
  }

  .dropdown {
    top: 120%;
    left: 0;
    transform: translateY(10px);
  }

  .sub-dropdown {
    top: 0;
    left: 105%;
    transform: translateX(10px);
    min-width: 280px;
  }

  .has-dropdown:hover>.dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    top: 100%;
  }

  .has-sub-dropdown:hover>.sub-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
    left: 100%;
  }

  .dropdown li,
  .sub-dropdown li {
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .dropdown li:last-child,
  .sub-dropdown li:last-child {
    border-bottom: none;
  }

  .dropdown li a,
  .sub-dropdown li a {
    color: var(--slate);
    padding: 0.75rem 1.5rem;
    display: block;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .dropdown li a:hover,
  .sub-dropdown li a:hover {
    background-color: rgba(0, 229, 255, 0.1);
    color: var(--electric-cyan);
    padding-left: 1.75rem;
  }
}

.arrow {
  font-size: 10px;
  margin-left: 6px;
  transition: transform 0.3s;
}

.right-arrow {
  font-size: 12px;
  margin-left: 6px;
  transition: transform 0.3s;
}

.rotate {
  transform: rotate(180deg);
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Animated hero glow */
  background: radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.15) 0%, transparent 50%);
  z-index: 0;
  animation: pulseGlow 6s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--pure-white), #a8b2d1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 3vw, 1.25rem);
  color: var(--slate);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

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

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--slate);
  border-radius: 13px;
  position: relative;
}

.mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--electric-cyan);
  border-radius: 2px;
  animation: scroll 2s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}

@keyframes scroll {
  0% {
    opacity: 1;
    top: 6px;
  }

  100% {
    opacity: 0;
    top: 16px;
  }
}

/* Cards */
.card {
  background: rgba(17, 34, 64, 0.6);
  backdrop-filter: blur(12px);
  /* Glassmorphism */
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1) 0%, transparent 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(0, 229, 255, 0.3);
  border-color: rgba(0, 229, 255, 0.3);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 2.5rem;
  color: var(--electric-cyan);
  margin-bottom: 1.5rem;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.3));
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--pure-white);
}

.card-desc {
  font-size: 0.95rem;
  color: var(--light-slate);
  margin-bottom: 1.5rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.card-link i {
  transition: transform var(--transition-fast);
}

.card-link:hover i {
  transform: translateX(4px);
}

/* The Name Section */
.the-name {
  background: rgba(17, 34, 64, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.name-desc {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--slate);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Giving Back */
.giving-back {
  display: grid;
  grid-template-columns: 1fr;
  background: rgba(17, 34, 64, 0.5);
  margin-top: 4rem;
}

@media (min-width: 900px) {
  .giving-back-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.giving-back-image {
  position: relative;
  min-height: 400px;
  background: var(--deep-space-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.image-placeholder {
  font-size: 4rem;
  color: var(--slate-dim);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 229, 255, 0.1), transparent);
}

.giving-back-content {
  padding: var(--section-padding) var(--padding-x);
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Join Our Team */
.join-team {
  padding: 8rem 0;
  position: relative;
  background: radial-gradient(circle at center, rgba(0, 229, 255, 0.08) 0%, transparent 60%);
}

.join-team .section-title {
  margin-bottom: 1.5rem;
}

.join-team .section-desc {
  margin-bottom: 3rem;
}

/* Footer */
.footer {
  background: #020c1b;
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--slate-dim);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-desc {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  font-size: 1.5rem;
  color: var(--slate);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.social-links a:hover {
  color: var(--electric-cyan);
  transform: translateY(-2px);
}

.footer-heading {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--pure-white);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--slate);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--electric-cyan);
}

.footer-locations ul {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-locations li,
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-locations i,
.footer-contact i {
  color: var(--electric-cyan);
  font-size: 1.25rem;
  margin-top: 2px;
}

.footer-locations div {
  display: flex;
  flex-direction: column;
}

.footer-locations strong {
  color: var(--pure-white);
  font-size: 0.95rem;
}

.footer-locations span {
  font-size: 0.85rem;
  color: var(--light-slate);
}

.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact a {
  color: var(--slate);
  font-size: 0.95rem;
}

.footer-contact a:hover {
  color: var(--electric-cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

.legal-links {
  display: flex;
  gap: 1.5rem;
}

.legal-links a {
  color: var(--slate);
}

.legal-links a:hover {
  color: var(--electric-cyan);
}

/* --- About Us Specifics --- */
.section-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

.core-values-list .value-item {
  background: rgba(17, 34, 64, 0.6);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--electric-cyan);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.core-values-list .value-item:hover {
  transform: translateX(10px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 229, 255, 0.2);
}

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

.video-placeholder,
.image-placeholder-box {
  background: rgba(10, 25, 47, 0.8);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-md);
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.video-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(0, 229, 255, 0.1) 0%, transparent 70%);
}

.play-button {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 2px solid var(--pure-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--pure-white);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 2;
}

.play-button:hover {
  background: var(--pure-white);
  color: var(--deep-space-navy);
  transform: scale(1.1);
}

.image-placeholder-box i {
  font-size: 5rem;
  color: var(--slate-dim);
}

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header .btn-primary {
    display: none;
    /* Hide header CTA on mobile */
  }

  .mobile-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(15px);
    padding: 5rem 2rem;
    flex-direction: column;
    transition: right var(--transition-normal);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: -1;
  }

  .nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    text-align: left;
    gap: 1.5rem;
  }

  .nav-link {
    font-size: 1.125rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  /* Mobile Dropdowns */
  .dropdown,
  .sub-dropdown {
    display: none;
    width: 100%;
    background: rgba(0, 0, 0, 0.15);
    position: static;
    text-align: left;
    margin-top: 0.5rem;
    border-radius: var(--radius-sm);
  }

  .dropdown.active,
  .sub-dropdown.active {
    display: block;
  }

  .dropdown li a,
  .sub-dropdown li a {
    color: var(--slate);
    padding: 0.75rem 1rem 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
  }

  .sub-dropdown li a {
    padding-left: 2.5rem;
    background: rgba(0, 0, 0, 0.25);
  }

  .arrow,
  .right-arrow {
    font-size: 14px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .reverse-on-mobile {
    display: flex;
    flex-direction: column-reverse;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* --- Forms --- */
.form-group {
  position: relative;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: rgba(10, 25, 47, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--pure-white);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all var(--transition-fast);
  backdrop-filter: blur(5px);
}

.form-control::placeholder {
  color: rgba(168, 178, 209, 0.4);
}

.form-control:focus {
  outline: none;
  border-color: var(--electric-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.25);
  background: rgba(10, 25, 47, 0.8);
}

select.form-control option {
  background: var(--deep-space-alt);
  color: var(--pure-white);
}

textarea.form-control {
  resize: vertical;
}