/* ==================== LAYOUT STYLES ==================== */
/* Header, Navigation, Footer */

/* Header */
.header {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  color: var(--white);
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  position: relative;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--teal), var(--gold), var(--orange));
}

.logo {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo-img {
  height: 55px;
  width: auto;
  filter: brightness(1.05);
  transition: all 0.3s ease;
}

.logo:hover .logo-img {
  filter: brightness(1.15);
}

.logo-text {
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(163, 133, 47, 0.4);
  padding-left: 20px;
}

.logo-text h1 {
  font-family: 'Cairo', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--white);
  margin: 0;
  line-height: 1.2;
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--cyan-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  margin-top: 0;
}

/* Navigation */
.nav-tabs {
  display: flex;
  gap: 8px;
  height: 100%;
  align-items: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: rgba(0, 180, 216, 0.2);
  border: 1px solid rgba(0, 180, 216, 0.3);
  color: var(--cyan-light);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 1001;
  flex-shrink: 0;
  padding: 0;
  outline: none;
}

.mobile-menu-toggle:hover {
  background: rgba(0, 180, 216, 0.3);
  color: var(--white);
  transform: scale(1.05);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

.mobile-menu-toggle.active {
  background: var(--cyan);
  color: var(--navy);
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.5);
}

.mobile-menu-toggle.active i::before {
  content: "\f00d"; /* X icon */
}

.nav-tab {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  padding: 12px 24px;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  border-radius: 8px;
  text-decoration: none;
}

.nav-tab::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-tab:hover {
  color: var(--white);
  background: rgba(0, 180, 216, 0.15);
}

.nav-tab:hover::before {
  width: 60%;
}

.nav-tab.active {
  color: var(--cyan-light);
  background: rgba(0, 180, 216, 0.2);
}

.nav-tab.active::before {
  width: 80%;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
}

.nav-tab i {
  font-size: 1rem;
  opacity: 0.9;
}

/* Simple Footer */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer a {
  color: var(--cyan-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--teal-light);
}

/* Modern Footer */
.home-footer-modern {
  background: linear-gradient(180deg, #050a12 0%, #0a1420 100%);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  transform: translateY(-99%);
}

.footer-wave svg {
  width: 100%;
  height: 100%;
}

.footer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0, 188, 212, 0.1), transparent 70%);
  pointer-events: none;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding: 80px 40px;
  max-width: 1300px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.footer-brand {
  /* Inherited from footer-top grid */
}

.footer-logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 25px;
}

.footer-logo-wrap img {
  height: 65px;
}

.logo-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: logoShine 4s ease-in-out infinite;
}

@keyframes logoShine {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 380px;
  margin-bottom: 25px;
}

.footer-tech-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 188, 212, 0.1);
  border: 1px solid rgba(0, 188, 212, 0.2);
  border-radius: 20px;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tech-badge:hover {
  background: rgba(0, 188, 212, 0.2);
  transform: translateY(-2px);
}

.footer-links h4 {
  color: var(--white);
  font-family: 'Cairo', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.footer-links h4 i {
  color: var(--cyan);
  font-size: 0.9rem;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0;
}

.footer-links a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width 0.3s ease;
}

.footer-links a:hover::before {
  width: 100%;
}

.footer-links a:hover {
  color: var(--cyan-light);
  transform: translateX(8px);
}

.footer-links a i {
  font-size: 0.85rem;
  color: var(--cyan);
  width: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.footer-links a:hover i {
  transform: scale(1.2);
}

.footer-bottom {
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.2rem;
  position: relative;
  overflow: hidden;
}

.footer-social a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.footer-social a:nth-child(1)::before { background: linear-gradient(135deg, #1877F2, #0d5bbd); }
.footer-social a:nth-child(2)::before { background: linear-gradient(135deg, #1a1a1a, #333); }
.footer-social a:nth-child(3)::before { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.footer-social a:nth-child(4)::before { background: linear-gradient(135deg, #FF0000, #cc0000); }

.footer-social a:hover::before {
  opacity: 1;
}

.footer-social a i {
  position: relative;
  z-index: 1;
}

.footer-social a:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}
