/* ==================== AZULTECH GLOBAL STYLES ==================== */
/* Based on user's uploaded light theme with logo colors */

:root {
  /* === LOGO PRIMARY COLORS === */
  --cyan: #00b894;
  --cyan-dark: #00a885;
  --cyan-50: rgba(0, 184, 148, 0.05);
  --cyan-100: rgba(0, 184, 148, 0.1);
  --cyan-200: rgba(0, 184, 148, 0.2);
  --cyan-300: rgba(0, 184, 148, 0.3);
  --cyan-glow: rgba(0, 184, 148, 0.15);
  --cyan-glow-strong: rgba(0, 184, 148, 0.25);

  /* === LOGO LIGHT AQUA === */
  --aqua: #5de0e6;
  --aqua-dark: #4dd0d6;
  --aqua-50: rgba(93, 224, 230, 0.05);
  --aqua-100: rgba(93, 224, 230, 0.1);
  --aqua-200: rgba(93, 224, 230, 0.2);
  --aqua-glow: rgba(93, 224, 230, 0.15);

  /* === LOGO DEEP BLUE === */
  --deep-blue: #004aad;
  --deep-blue-50: rgba(0, 74, 173, 0.05);
  --deep-blue-100: rgba(0, 74, 173, 0.1);
  --deep-blue-200: rgba(0, 74, 173, 0.2);
  --deep-blue-glow: rgba(0, 74, 173, 0.1);

  /* === LOGO TEAL BLUE === */
  --teal-blue: #00809c;
  --teal-blue-50: rgba(0, 128, 156, 0.05);
  --teal-blue-100: rgba(0, 128, 156, 0.1);
  --teal-blue-200: rgba(0, 128, 156, 0.2);
  --teal-blue-glow: rgba(0, 128, 156, 0.1);

  /* === LOGO BRIGHT TEAL === */
  --bright-teal: #00bcc1;
  --bright-teal-50: rgba(0, 188, 193, 0.05);
  --bright-teal-100: rgba(0, 188, 193, 0.1);
  --bright-teal-200: rgba(0, 188, 193, 0.2);
  --bright-teal-glow: rgba(0, 188, 193, 0.1);

  /* === DERIVED MIDTONES === */
  --mid-cyan: #0096b8;
  --mid-blue: #0066aa;
  --soft-cyan: #2ee0c5;

  /* === BACKGROUND SYSTEM === */
  --bg-primary: #f0f9ff;
  --bg-primary-1: #202020;
  --bg-secondary: #ffffff;
  --bg-secondary-1: #111b2e;
  --bg-tertiary: #dbeafe;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-input: #ffffff;
  --bg-elevated: #ffffff;

  /* === TEXT COLORS === */
  --text-primary: #0f172a;
  --text-primary-1: #ffffff;
  --text-secondary: #334155;
  --text-secondary-1: #fafafa;
  --text-muted: #a0b2c9;
  --text-light: #94a3b8;

  /* === BORDERS === */
  --border-color: rgba(0, 128, 156, 0.12);
  --border-hover: rgba(0, 184, 148, 0.3);
  --border-active: rgba(0, 184, 148, 0.5);

  /* === SHADOWS === */
  --shadow-sm: 0 1px 3px rgba(0, 74, 173, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 74, 173, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 74, 173, 0.12);
  --shadow-cyan: 0 4px 15px var(--cyan-glow);
  --shadow-cyan-strong: 0 8px 30px var(--cyan-glow-strong);

  /* === GRADIENTS === */
  --gradient-primary: linear-gradient(135deg, var(--cyan) 0%, var(--deep-blue) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--bright-teal) 0%, var(--cyan) 100%);
  --gradient-aqua: linear-gradient(135deg, var(--aqua) 0%, var(--cyan) 100%);
  --gradient-blue: linear-gradient(135deg, var(--deep-blue) 0%, var(--teal-blue) 100%);
  --gradient-teal: linear-gradient(135deg, var(--teal-blue) 0%, var(--bright-teal) 100%);
  --gradient-rainbow: linear-gradient(135deg, var(--cyan) 0%, var(--bright-teal) 25%, var(--aqua) 50%, var(--teal-blue) 75%, var(--deep-blue) 100%);
  --gradient-shine: linear-gradient(90deg, transparent 0%, var(--cyan-200) 50%, transparent 100%);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== BACKGROUND PATTERNS ==================== */
.bg-pattern-dots {
  background-image: 
    radial-gradient(circle, var(--cyan-100) 1px, transparent 1px);
  background-size: 30px 30px;
}

.bg-pattern-grid {
  background-image:
    linear-gradient(var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 50px 50px;
}

.bg-pattern-circuit {
  background-image: url('../images/bg2.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.bg-pattern-hex {
  background-image: url('../images/bg3.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.bg-pattern-tech {
  background-image: url('../images/bg1.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.bg-overlay {
  position: relative;
}

.bg-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.92) 0%, rgba(224, 242, 254, 0.88) 100%);
  z-index: 0;
}

.bg-overlay > * {
  position: relative;
  z-index: 1;
}

.bg-overlay-dark::before {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.9) 100%);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-shine);
  transition: var(--transition-slow);
}

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

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-cyan);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cyan-strong);
}

.btn-secondary {
  background: transparent;
  color: var(--deep-blue);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: var(--shadow-cyan);
}

.btn-full { width: 100%; }

/* ==================== SECTION HEADINGS ==================== */
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradientMove 4s ease infinite;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 25%;
  width: 50%;
  height: 4px;
  background: var(--gradient-secondary);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: -30px auto 50px;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes gradientMove {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in { animation: fadeInUp 0.6s ease forwards; }
.animate-fade-left { animation: fadeInLeft 0.6s ease forwards; }
.animate-fade-right { animation: fadeInRight 0.6s ease forwards; }
.animate-scale { animation: scaleIn 0.5s ease forwards; }
.animate-slide-left { animation: slideInLeft 0.6s ease forwards; }
.animate-slide-right { animation: slideInRight 0.6s ease forwards; }

/* ==================== SOCIAL SIDEBAR (Fixed Left) ==================== */
.social-sidebar {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 8px;
  background: var(--bg-card);
  border-radius: 0 12px 12px 0;
  border: 1px solid var(--border-color);
  border-left: none;
  box-shadow: var(--shadow-md);
}

.social-sidebar a {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.social-sidebar a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.social-sidebar a:hover::before { opacity: 1; }

.social-sidebar a:hover {
  color: white;
  transform: translateX(4px);
}

.social-sidebar a i { position: relative; z-index: 1; }

/* Tooltip for social sidebar */
.social-sidebar a::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-primary-1);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.social-sidebar a:hover::after {
  opacity: 1;
  visibility: visible;
}

/* ==================== HEADER / NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-primary-1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.navbar.scrolled {
  background: var(--bg-primary-1);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--cyan-200);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo img {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 74, 173, 0.1));
  transition: var(--transition);
}

.logo:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(0, 74, 173, 0.2));
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary-1);
  font-weight: 500;
  font-size: 0.9rem;
  text-align: center;
  position: relative;
  padding: 8px 0;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
  border-radius: 1px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--deep-blue);
}

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

/* Dropdown for Edutech */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 180px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 1001;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.dropdown-menu a:hover {
  background: var(--cyan-50);
  color: var(--deep-blue);
}

.dropdown > a::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-left: 6px;
  font-size: 0.7rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 1px;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--bg-primary-1);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-rainbow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.footer-brand img {
  height: 60px;
  margin-bottom: 20px;
}

.footer-brand p {
  color: var(--text-secondary-1);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-blue);
  font-size: 0.9rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.footer-social a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.footer-social a:hover::before { opacity: 1; }

.footer-social a:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-cyan);
  border-color: transparent;
}

.footer-social a i { position: relative; z-index: 1; }

.footer-column h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep-blue);
  margin-bottom: 20px;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: var(--text-secondary-1);
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-block;
}

.footer-column ul li a:hover {
  color: var(--cyan);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-secondary-1);
  font-size: 0.9rem;
}

.footer-contact-item i {
  color: var(--cyan);
  margin-top: 4px;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==================== IMAGE UTILITIES ==================== */
.img-overlay {
  position: relative;
}

.img-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cyan-100) 0%, var(--deep-blue-100) 100%);
  mix-blend-mode: multiply;
  opacity: 0.3;
  border-radius: inherit;
}

.img-transparent {
  opacity: 0.85;
  transition: var(--transition);
}

.img-transparent:hover {
  opacity: 1;
}

.img-rounded { border-radius: 20px; }
.img-circle { border-radius: 50%; }

/* ==================== CARD STYLES ==================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px;
  transition: var(--transition-slow);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

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

.card:hover {
  transform: translateY(-5px);
  border-color: var(--cyan);
  box-shadow: var(--shadow-cyan);
}

/* Soft gradient pattern */
.bg-pattern-soft {
  background-image: 
    radial-gradient(circle at 20% 80%, var(--cyan-50) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, var(--aqua-50) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, var(--deep-blue-50) 0%, transparent 50%);
  background-size: 100% 100%;
}

/* ==================== RESPONSIVE - SMALL (up to 640px) ==================== */
@media (max-width: 640px) {

  html {
    font-size: 14px;
  }

  .container {
    padding: 0 16px;
  }

  .nav-container {
    height: 70px;
    padding: 0 16px;
  }

  .logo img {
    height: 45px;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 1100;
  }

  .hamburger span {
    width: 24px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: 0.3s ease;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 70px;
    right: -320%;
    width: 280px;
    height: calc(100vh - 70px);
    background: #111827;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    gap: 18px;
    transition: right 0.4s ease;
    overflow-y: auto;
    z-index: 1050;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
  }

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

  .nav-links li {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .nav-links a {
    display: block;
    width: 100%;
    text-align: center;
    color: #ffffff;
    font-size: 16px;
    padding: 10px 0;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: block;
    background: transparent;
    border: none;
    box-shadow: none;
    padding-left: 15px;
    margin-top: 8px;
  }

  .social-sidebar {
    display: none;
  }

  .section-title {
    font-size: 1.7rem;
    margin-bottom: 36px;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 36px;
  }

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

/* ==================== RESPONSIVE - MEDIUM (641px to 1024px) ==================== */
@media (min-width: 641px) and (max-width: 1024px) {

  .container {
    padding: 0 20px;
  }

  .nav-container {
    padding: 0 20px;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 1100;
  }

  .hamburger span {
    width: 24px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: 0.3s ease;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 80px;
    right: -320%;
    width: 320px;
    height: calc(100vh - 80px);
    background: #111827;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    gap: 20px;
    transition: right 0.4s ease;
    overflow-y: auto;
    z-index: 1050;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
  }

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

  .nav-links li {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .nav-links a {
    display: block;
    width: 100%;
    text-align: center;
    color: #ffffff;
    font-size: 17px;
    padding: 10px 0;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: block;
    background: transparent;
    border: none;
    box-shadow: none;
    padding-left: 15px;
    margin-top: 8px;
  }

  .social-sidebar a {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* ==================== RESPONSIVE - LARGE (1025px+) ==================== */
@media (min-width: 1025px) {

  .hamburger {
    display: none;
  }

  .nav-links {
    display: flex;
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    flex-direction: row;
    padding: 0;
    gap: 32px;
    box-shadow: none;
  }
}

/* ==================== EXTRA LARGE (1440px+) ==================== */
@media (min-width: 1440px) {

  .container {
    max-width: 1320px;
  }

  .nav-container {
    max-width: 1320px;
  }

  .section-title {
    font-size: 2.8rem;
  }
}
