/* nuLook/generic.css
   Combined stylesheet preserving the same look and feel as the main site.
   - Consolidates: styles.css, hero.css, and function.css
   - No @import; can be used standalone by additional pages/templates
*/


/* ==========================
   Global theme/utilities
   * Modern CSS Reset *
========================== */

/* Use a more intuitive box-sizing model for all elements */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Remove default margin */
* {
  margin: 0;
}

/* Prevent text size adjustment on mobile */
html {
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
  text-size-adjust: none;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header glass/blur effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Theme variables */
:root {
  --brand-blue-700: #1e3a8a;
  --brand-blue-600: #2563eb;
  --brand-blue-500: #3b82f6;
}

/* Decorative divider utility */
.section-divider {
  height: 4px;
  width: 96px;
  margin: 1.5rem auto;
  background: var(--brand-blue-600);
  border-radius: 9999px;
}

/* ==========================
            Global 
   ========================== */
   
.center-auto {
  padding: 10%;
  display: flex;               /* defines flex container */
  justify-content: center;     /* centers child content horizontally */
  align-items: center;         /* centers child content vertically */
  height: 100%;                /* optional to make vertical centering effective */
  width: 100%;                 /* optional: full width */
  text-align: center;          /* centers inline text horizontally */
  box-sizing: border-box;      /* for padding/border control if any */
}

/* ==========================
   Hero styles and gradient
   (from hero.css)
   ========================== */

/* Box-sizing reset */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Main hero layout: centers all content */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  min-height: 400px;
  overflow: hidden;
  text-align: center;
  padding: 2rem;
}

/* Animated Background Gradient */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: 400% 400%;
  animation: bgGradient 32s ease infinite;
}

@keyframes bgGradient {
  0%,100% { background-image: linear-gradient(-45deg, #c06c84, #f67280, #f8b195, #c06c84);} 
  16.6%   { background-image: linear-gradient(-45deg, #f67280, #f8b195, #355c7d, #f67280);} 
  33.3%   { background-image: linear-gradient(-45deg, #f8b195, #355c7d, #6c5b7b, #f8b195);} 
  50%     { background-image: linear-gradient(-45deg, #355c7d, #6c5b7b, #99b898, #355c7d);} 
  66.6%   { background-image: linear-gradient(-45deg, #6c5b7b, #99b898, #f6f5f5, #6c5b7b);} 
  83.3%   { background-image: linear-gradient(-45deg, #99b898, #f6f5f5, #c06c84, #99b898);} 
}

/* Content container: centers and limits width */
.hero-texts {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
}

/* Slide text blocks: all stacked, perfectly centered */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  max-width: 700px;
  opacity: 0;
  animation: fadeText 32s linear infinite;
  text-align: center;
  transition: opacity 0.5s;
}

/* Typography across hero elements */
.hero-text h1,
.hero-text h2,
.hero-text h3,
.hero-text h4,
.hero-text p,
.hero-text a {
  font-family: 'Inter', Arial, sans-serif;
  color: #fff;
  font-weight: 400;
  margin: 0 0 1rem 0;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.hero-text h1 { font-size: 3rem; }
.hero-text h2, .hero-text h3, .hero-text h4 { font-size: 2rem; }
.hero-text p, .hero-text a { font-size: 1.25rem; }

@keyframes fadeText {
  0%   { opacity: 0; }
  6.25% { opacity: 1; }
  18.75% { opacity: 1; }
  25%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Stagger fade timing for each slide */
.hero-text:nth-child(1) { animation-delay: 0s; }
.hero-text:nth-child(2) { animation-delay: 8s; }
.hero-text:nth-child(3) { animation-delay: 16s; }
.hero-text:nth-child(4) { animation-delay: 24s; }

/* Responsive font sizes and container width */
@media (max-width: 768px) {
  .hero-text h1 { font-size: 2.2rem; }
  .hero-text h2, .hero-text h3, .hero-text h4 { font-size: 1.2rem; }
  .hero-text p, .hero-text a { font-size: 1rem; }
  .hero-text, .hero-texts { max-width: 90vw; }
}
@media (max-width: 480px) {
  .hero-text h1 { font-size: 1.5rem; }
  .hero-text h2, .hero-text h3, .hero-text h4 { font-size: 1rem; }
  .hero-text p, .hero-text a { font-size: 0.9rem; }
  .hero-text, .hero-texts { max-width: 98vw; }
}

/* Visible text */
.hero-text[aria-hidden="false"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

/* Headings */
.hero-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

/* Paragraphs */
.hero-text p {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* ------------------------------------
  AOS Animation Overrides
 ------------------------------------ */

 /* AOS Fade-up Fallback (progressive enhancement) */
[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------
   Utilities: Custom widget background helpers
   (Removed Tailwind @layer wrapper so these work in the browser)
   ------------------------------------ */
.custom-widget-bg {
  background-color: #ffffff;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.custom-widget-bg:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  background-color: #d0e6fb; /* Darker blue on hover */
}

/* ------------------------------------
   Utility: Subtle hover lift (add to cards if desired)
   ------------------------------------ */
.hover\:-translate-y-1:hover {transform: translateY(-0.25rem);} /* Mimics Tailwind's -translate-y-1 */


/* ------------------------------------
   Dropdown Menu Styles
   ------------------------------------ */
/* Container for each dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown menu hidden by default */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(218, 172, 246, 0.408); /* Adjust background as needed */
  min-width: 160px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 4px;
  padding: 0.5rem 0;
  z-index: 1000;
}

/* Individual links inside dropdown */
.dropdown-content a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  text-decoration: none;
  font-weight: normal;
  transition: background-color 0.3s ease;
}

/* Change background on hover */
.dropdown-content a:hover {
  background-color: #6fbff485; /* Light blue highlight */
}

/* Show dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Optional: adjust dropdown link hover color */
.dropdown > a:hover {
  color: #2563eb; /* Tailwind's blue-600 */
}

/* Utility: Subtle hover lift */
.hover\:-translate-y-1:hover {
  transform: translateY(-0.25rem); /* Mimics Tailwind's -translate-y-1 */
}

/* Utilities: Custom widget background helpers */
.custom-widget-bg {
  background-color: #eef6fb; /* Light blue background */
  transition: background-color 0.3s ease;
}
.custom-widget-bg:hover {
  background-color: #d0e6fb; /* Darker blue on hover */
}


