/* global.css - Global styles and layout with Flat Off-White & Black theme */

body {
  background-color: #f3f3f3;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

:root {
  --primary-color: #000000;
  --primary-hover: #333333;
  --secondary-color: #555555;
  --accent-color: #000000;
  --bg-dark: #f3f3f3;
  --bg-darker: #e5e5e5;
  --bg-light: #f3f3f3;
  --bg-white: #f3f3f3;
  --text-dark: #000000;
  --text-light: #000000;
  --text-muted: #555555;
  --border-color: #dddddd;
  
  --font-heading: Arial, Helvetica, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
  --transition-smooth: all 0.25s ease-in-out;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --max-width: 1200px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: bold;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  background-color: #f3f3f3;
  color: #000000;
  z-index: 1000;
  border-bottom: 1px solid #e0e0e0;
}

.nav-container {
  max-width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: brightness(0); /* Black logo */
}

.brand-text h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #000000;
}

.brand-text p {
  font-size: 0.6rem;
  color: #555555;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: -1px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Desktop Links */
.desktop-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.desktop-links a {
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.desktop-links a:hover,
.desktop-links li.active a {
  border-bottom-color: #000000;
}

/* Nav Dropdown Menu Styles */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  display: block;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 140px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 9999;
}

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

.dropdown-menu li {
  list-style: none;
  width: 100%;
}

.dropdown-menu a {
  display: block !important;
  padding: 0.6rem 1.2rem !important;
  color: #333333 !important;
  text-decoration: none !important;
  font-size: 0.85rem !important;
  font-weight: bold !important;
  border-bottom: none !important;
  text-align: center !important;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background-color: #f5f5f5 !important;
  color: #000000 !important;
}

/* Mobile Sidebar Dropdown Styles */
.mobile-dropdown-menu {
  display: none;
  list-style: none;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.mobile-dropdown.open .mobile-dropdown-menu {
  display: block !important;
}

.mobile-dropdown-menu a {
  font-size: 0.95rem !important;
  color: #555555 !important;
  padding: 0.4rem 0 !important;
}

.cart-btn {
  background: none;
  border: none;
  color: #000000;
  cursor: pointer;
  position: relative;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #000000;
  color: #ffffff;
  font-size: 0.6rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #000000;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile Sidebar (Menu Drawer) */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background-color: #ffffff !important;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
  z-index: 1100;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-sizing: border-box !important;
}

.mobile-sidebar.open {
  right: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.sidebar-close {
  background: none;
  border: none;
  color: #000000;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-links a {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: bold;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.mobile-links a:hover,
.mobile-links li.active a {
  padding-left: 0.5rem;
  border-bottom-color: #000000;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1050;
  display: none;
}

.sidebar-overlay.show {
  display: block;
}

/* Page Layout Main */
main {
  flex: 1;
}

/* Footer Styles */
footer {
  background-color: #f3f3f3;
  color: #000000;
  padding: 4rem 1.5rem 2rem;
  border-top: 1px solid #e0e0e0;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e0e0e0;
}

.footer-section p {
  color: #333333;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: #000000;
  text-decoration: underline;
}

.footer-section a:hover {
  text-decoration: none;
}

.contact-info p {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-info svg {
  margin-top: 4px;
  flex-shrink: 0;
  color: #000000;
  width: 14px;
  height: 14px;
}

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

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #000000;
  color: #ffffff;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.partner-logo-box {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
}

.partner-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: #555555;
}

.footer-policy-link {
  font-weight: bold;
  text-decoration: underline;
}

.footer-policy-link:hover {
  text-decoration: none;
}

/* Modals Overlay Form Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: #ffffff;
  border-radius: 8px;
  width: 100%;
  max-width: 550px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.25s ease-out;
}

.modal-overlay.open .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  background-color: #ffffff;
  color: #000000;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 1.15rem;
  font-weight: bold;
}

.modal-close-btn {
  background: none;
  border: 1px solid #000000;
  color: #000000;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background-color: #000000;
  color: #ffffff;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: calc(85vh - 80px);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 0.4rem;
  color: #000000;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.85rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
  background-color: #ffffff;
  color: #000000;
  outline: none;
}

.form-control:focus {
  border-color: #000000;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-submit-btn {
  width: 100%;
  padding: 0.75rem;
  background-color: #000000;
  color: #ffffff;
  border: none;
  border-radius: 20px; /* Pill style button */
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-top: 1rem;
}

.form-submit-btn:hover {
  opacity: 0.9;
}

/* Form Alerts */
.form-alert {
  padding: 0.85rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  display: none;
}

.form-alert.success {
  background-color: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
  display: block;
}

.form-alert.error {
  background-color: #fce8e6;
  color: #c5221f;
  border: 1px solid #fad2cf;
  display: block;
}

/* Media Queries */
@media (max-width: 968px) {
  .desktop-links {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ─── Contact + Visit Us Section (shared footer) ─────────── */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.contact-col-left {
  background-color: #000000;
  color: #ffffff;
  padding: 5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-col-left h2,
.contact-col-right h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.underline-white {
  width: 40px;
  height: 3px;
  background-color: #ffffff;
  margin-bottom: 2rem;
}

.contact-col-left p {
  font-size: 0.9rem;
  color: #a0a0a0;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.contact-col-left a {
  color: #ffffff;
  text-decoration: underline;
}

.contact-col-left a:hover {
  color: #a0a0a0;
}

.contact-col-right {
  background-color: #969696;
  color: #ffffff;
  padding: 5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.social-links-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.social-links-row a {
  color: #000000;
  transition: transform 0.3s ease;
}

.social-links-row a:hover {
  transform: scale(1.15);
}

.incubated-supported-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
  max-width: 500px;
}

.sub-col h3 {
  font-size: 0.95rem;
  font-weight: normal;
  text-decoration: underline;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.sub-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.sub-logo-box {
  background: transparent;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sub-logo-box img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

/* ─── Shared Footer bar ─────────────────────────────────── */
.custom-home-footer {
  background-color: #f3f3f3;
  border-top: 1px solid #e0e0e0;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.custom-home-footer .footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-home-footer .footer-policy-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a2b5c;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.custom-home-footer .footer-policy-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact-section {
    grid-template-columns: 1fr;
  }
  .contact-col-left,
  .contact-col-right {
    padding: 2rem 1.5rem !important;
  }
  .incubated-supported-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
    max-width: 100% !important;
  }
  .sub-logos {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .sub-logo-box {
    height: 70px !important;
    max-width: 240px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .sub-logo-box img {
    max-height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }
}

/* Global Hero Image Appearance Animation */
@keyframes heroImageanimation {
  0% {
    transform: perspective(1000px) rotateX(-90deg) translateY(120px);
    opacity: 0;
  }
  100% {
    transform: perspective(1000px) rotateX(0deg) translateY(0);
    opacity: 1;
  }
}

.heroImageanimation {
  opacity: 0;
  transform-origin: bottom center !important;
  backface-visibility: hidden !important;
  transition: none !important;
}

.heroImageanimation.start-hero-anim {
  animation: heroImageanimation 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

