/* Companies Section */
.companies {
  padding: 60px 20px;
  background: #f9f9f9;
}

.companies .container {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.companies h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #1d4ed1;
}

.companies-intro {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

#comp-box:hover{
    transform: translateY(-15px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.company-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

.company-card h3 {
  color: #333;
  margin-bottom: 8px;
}

.company-card p {
  color: #666;
  margin: 4px 0;
}

.company-card .btn-view {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background: #1d4ed1;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

/* Hover Effects */
.company-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.company-card:hover .btn-view {
  background: #1d4ed1;
  transform: scale(1.05);
}

/* Animation Base State */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Animation Active State */
.animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .companies h2 {
    font-size: 2rem;
  }
  .companies-intro {
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .company-card img {
    width: 80px;
    height: 80px;
  }
  .company-card h3 {
    font-size: 1.2rem;
  }
  .company-card p {
    font-size: 0.9rem;
  }
}

/* ================= Root Variables ================= */
:root {
  /* Light Theme Colors Only */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;

  --secondary-50: #f0f9ff;
  --secondary-100: #e0f2fe;
  --secondary-200: #bae6fd;
  --secondary-300: #7dd3fc;
  --secondary-400: #38bdf8;
  --secondary-500: #0ea5e9;
  --secondary-600: #0284c7;
  --secondary-700: #0369a1;
  --secondary-800: #075985;
  --secondary-900: #0c4a6e;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --white: #ffffff;
  --black: #000000;

  /* Semantic Colors */
  --background: var(--white);
  --surface: var(--gray-50);
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --border: var(--gray-200);
  --accent: var(--primary-600);
  --accent-hover: var(--primary-700);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1),
    0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  /* Spacing */
  --container-padding: 2rem;
  --section-padding: 5rem 0;
}

/* ================= Header & Navbar ================= */
.header {
  background: var(--background);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.toggle-btn {
      margin: 20px;
      padding: 10px 20px;
      cursor: pointer;
    }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem var(--container-padding);
}

.nav-brand .logo {
  height: 45px;
  width: auto;
}

/* Nav Menu */
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-menu li {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

/* Dropdown */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  padding: 0.5rem 0;
  animation: fadeIn 0.3s ease;
}

.dropdown-content a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.2s ease;
}

.dropdown-content a:hover {
  background: var(--primary-50);
  color: var(--accent);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

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

/* Buttons */
.btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

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

.btn-ghost:hover {
  background: var(--accent);
  color: var(--white);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1rem;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
  }

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

  .nav-actions {
    gap: 0.5rem;
  }
}

/* ================= Footer ================= */
footer {
  background: var(--accent);
  color: var(--white);
  padding: 3rem var(--container-padding) 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

#footer-statement p {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 2rem;
  color: var(--primary-100);
  animation: fadeInDown 1s ease;
}

/* Footer Links Grid */
footer > div {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-links h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--secondary-100);
  position: relative;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 6px 0;
}

/* Clean Links */
.footer-links a {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.footer-links a:hover {
  color: var(--secondary-300);
  transform: translateX(4px);
}

/* Social Icons */
.social-icons {
  margin: 2rem 0 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.social-icons a {
  font-size: 1.5rem;
  color: var(--white);
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  transform: translateY(-5px) scale(1.1);
  color: var(--secondary-300);
}

/* Footer Bottom */
footer h3 {
  font-size: 0.9rem;
  font-weight: 400;
  margin-top: 1rem;
  color: var(--primary-200);
}

/* Responsive Footer */
@media (max-width: 768px) {
  footer > div {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links h3 {
    margin-top: 1rem;
  }
}

/* ================= Animations ================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= Dark Theme Overrides ================= */
body.dark {
  --background: var(--gray-900);
  --surface: var(--gray-800);
  --text-primary: var(--gray-50);
  --text-secondary: var(--gray-300);
  --border: var(--gray-700);

  --accent: var(--primary-400);
  --accent-hover: var(--primary-300);

  --white: #000000; /* flip white/black meaning */
  --black: #ffffff;
}
