/* 
 * SmartFlash Project Showcase - Custom CSS
 * EME 6235: Managing Educational Projects
 * University of Florida - Spring 2025
 */

/* Base Styles */
:root {
  --primary-blue: #3B82F6;
  --primary-indigo: #6366F1;
  --primary-purple: #8B5CF6;
  --primary-teal: #14B8A6;
  --text-dark: #1F2937;
  --text-light: #6B7280;
  --background-light: #F9FAFB;
  --header-height: 76px; /* Define a standard header height */
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  padding-top: 0; /* Remove the padding */
  margin: 0;
}

/* Typography Enhancement */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

p {
  margin-bottom: 1rem;
}

/* Custom Utility Classes */
.font-poppins {
  font-family: 'Poppins', sans-serif;
}

/* Responsive Iframe Container */
.responsive-iframe-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.responsive-iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Navigation & Mobile Menu --- */
nav {
  position: fixed;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  background-color: white;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  width: 100%;
}

nav.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#mobile-menu-backdrop {
  display: none;
}
#mobile-menu-backdrop.active {
  display: block;
}

#mobile-menu {
  will-change: transform;
  outline: none;
}
#mobile-menu.active {
  transform: translateX(0) !important;
}
#mobile-menu {
  transform: translateX(100%);
}

#menu-toggle, #menu-close {
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Hero Section Enhancements with much more padding */
#hero {
  position: relative;
  background-image: linear-gradient(135deg, var(--primary-blue), var(--primary-indigo));
  padding-top: calc(var(--header-height) + 50px); /* Header height plus additional padding */
  margin-top: 0; /* Reset any margin */
  min-height: 100vh; /* Ensure it takes up at least full viewport height */
  display: flex;
  align-items: center;
  color: white; /* Add back the white text color */
}

/* Team Section Styles - Simplified */
#team img.rounded-full {
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Section padding adjustments */
section:not(#hero) {
  padding-top: 100px;
  padding-bottom: 100px;
  margin-top: 0;
  position: relative;
}

/* Media Queries */
@media (max-width: 768px) {
  :root {
    --header-height: 64px; /* Slightly smaller header on mobile */
  }

  #process .timeline-line {
    display: none;
  }
  
  /* Adjust navigation for mobile */
  nav {
    height: var(--header-height);
    padding: 0;
  }
  #mobile-menu {
    width: 80vw;
    max-width: 320px;
    padding: 2rem 1.5rem;
    font-size: 1.15rem;
  }
  #mobile-menu a {
    padding: 0.75rem 0;
    font-size: 1.15rem;
    border-bottom: 1px solid #f3f4f6;
  }
  #mobile-menu a:last-child {
    border-bottom: none;
  }
  #mobile-menu-backdrop {
    display: none;
    z-index: 40;
  }
  #mobile-menu-backdrop.active {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
  }
  /* Process visualization: horizontal scroll */
  .process-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
  }
  .process-scroll > * {
    flex: 0 0 auto;
    scroll-snap-align: center;
  }
  /* Hero section padding on mobile */
  #hero {
    padding-top: calc(var(--header-height) + 30px);
    min-height: 90vh;
  }
  /* Section padding adjustments for mobile */
  section:not(#hero) {
    padding-top: 70px;
    padding-bottom: 70px;
  }
}
