

/* 1. CSS VARIABLES & RESET */
:root {
  --background-color: #f0f4f8; /* Light blue-gray background */
  --surface-color: #ffffff;
  --primary-color: #0052d4; /* A deeper, more professional blue */
  --secondary-color: #ff416c; /* A vibrant pink/red for accents */
  --text-color-primary: #1d2d35;
  --text-color-secondary: #5a6a72;
  --border-color: #dde4e9;
  --gradient-primary: linear-gradient(45deg, #0052d4 0%, #4364f7 50%, #6fb1fc 100%);
  --gradient-secondary: linear-gradient(45deg, #006400 0%, #004d00 100%);
  --shadow-md: 0 4px 15px rgba(0, 82, 212, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 82, 212, 0.15);
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition-fast: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color-secondary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}


/* 2. BACKGROUND SHAPES */
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.5;
  z-index: -1;
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
  pointer-events: none;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--primary-color);
  top: -100px;
  left: -100px;
}
.shape-2 {
  width: 500px;
  height: 500px;
  background: var(--secondary-color);
  bottom: 0px;
  right: -150px;
}
.shape-3 {
    width: 300px;
    height: 300px;
    background: #4364f7;
    top: 50%;
    right: -100px;
}


/* 3. GENERAL & UTILITY */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

section {
  padding: 100px 0;
  position: relative;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: opacity var(--transition-fast);
}

a:hover {
  opacity: 0.8;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color-primary);
  text-align: center;
  margin-bottom: 16px;
}

.team-subtitle {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-color-primary);
  text-align: center;
  margin-top: 64px;
  margin-bottom: 40px;
}

/* 4. HEADER & NAVIGATION */
.header {
  position: absolute;
  top: 20px;
  left: 24px;
  right: 24px;
  width: auto;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1000;
  padding: 10px 25px;
  border-radius: var(--radius-lg);
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.header.scrolled {
  position: fixed;
  top: 10px;
  left: 0;
  right: 0;
  max-width: unset;
  border-radius: 0;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-image: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  transition: all var(--transition-fast);
  text-shadow: 0 0 10px rgba(67, 100, 247, 0.5);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color-primary);
}

.logo-link span {
  background-image: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  transition: all var(--transition-fast);
}

.logo-link:hover span {
  text-shadow: 0 0 15px rgba(67, 100, 247, 0.4);
}

.logo {
  height: 60px;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color-primary);
  position: relative;
  padding: 8px 0;
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-color);
  opacity: 1;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.nav-toggle {
    display: none;
}

.niftem-logo-link {
  display: block;
}

/* 5. PRELOADER */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 400%;
  height: 400%;
  z-index: 9999;
  background-color: var(--background-color);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s var(--transition-slow), visibility 0.8s var(--transition-slow);
  visibility: visible;
  opacity: 1;
}
#preloader.hide {
  opacity: 0;
  visibility: hidden;
}
.preloader-logo {
  max-width: 400px;
  animation: pulse 1.5s ease-in-out infinite;
}

/* 6. MOBILE NAVIGATION (Redesigned) */
.mobile-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    width: 90%;
    margin: 0 auto;
    z-index: 1000;
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}

.nav-open .mobile-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.mobile-nav nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color-secondary);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.mobile-nav-link:hover {
    background-color: var(--background-color);
    color: var(--primary-color);
    opacity: 1;
}

/* 7. HERO SECTION */
#hero {
  height: 100vh;
  min-height: 700px;
  padding: 0;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-swiper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.swiper-slide {
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 20, 60, 0.6);
  z-index: 1;
}

.hero-container {
  animation: fadeInDown 1s var(--transition-slow) both;
}
.hero-title {
  font-size: 4rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 4px 15px rgba(0,0,0,0.3);
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 40px;
  color: rgba(255,255,255,0.9);
}

.cta-button {
  display: inline-block;
  padding: 14px 32px;
  background-image: var(--gradient-secondary);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 30px rgba(60, 179, 113, 0.4);
  color: #fff;
  opacity: 1;
}

/* 8. ABOUT SECTION */
#about {
  background-color: transparent;
}

.about-content {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: center;
}
.about-content > p {
  font-size: 1.1rem;
  margin-bottom: 48px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  text-align: left;
}

.about-card {
  background-color: var(--surface-color);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: 0;
}
.about-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.about-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color-primary);
  margin-bottom: 8px;
}

/* 9. TEAM SECTION */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.team-grid.large-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.team-grid-1up,
.team-grid-2up,
.team-grid-3up {
    margin-bottom: 32px;
    margin-left: auto;
    margin-right: auto;
}
.team-grid-1up {
    grid-template-columns: repeat(1, 1fr);
    max-width: 300px;
}
.team-grid-2up {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
}

.team-grid-3up {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
}

.executive-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.executive-grid .profile-card {
    flex-basis: 280px; /* Adjust as needed */
}

.profile-card {
  background-color: var(--surface-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.profile-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.profile-card img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  object-position: top center; 
  display: block;  
  padding-top: 1rem;
transition: transform var(--transition-slow);
}
.profile-card:hover img {
  transform: scale(1.1);
}

.profile-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color-primary);
  margin: 16px 16px 4px 16px;
}

.profile-card p {
  font-size: 0.9rem;
  color: var(--primary-color);
  margin: 0 16px 16px 16px;
}

/* 10. MODAL (POPUP) STYLES */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background: rgba(29, 45, 53, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

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

.modal-bg-close {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  cursor: default;
}

.modal-content {
  position: relative;
  background-color: rgba(240, 244, 248, 0.92); /* Dull, semi-transparent background */
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden; /* Ensures the pseudo-element is contained */
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/logo/club_logo.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 60%;
    opacity: 0.35; /* Makes the logo much brighter */
    z-index: -1;
}

.modal-overlay:target .modal-content {
  animation: zoomIn 0.5s var(--transition-fast) both;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-color-secondary);
  line-height: 1;
}
.modal-close:hover {
  color: var(--text-color-primary);
}

.modal-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center; /* Also applying here for consistency */
  margin: 0 auto 24px auto;
  border: 4px solid var(--primary-color);
  box-shadow: 0 0 20px rgba(0, 82, 212, 0.2);
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-color-primary);
}

.modal-subtitle {
  color: var(--primary-color);
  font-weight: 500;
  margin-top: 4px;
}

.modal-email {
  font-size: 0.9rem;
  color: var(--text-color-secondary);
  margin-top: 4px;
  margin-bottom: 24px;
}

.modal-body {
  font-size: 1rem;
}

/* 11. FOOTER */
.footer {
  background: var(--surface-color);
  padding: 0;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.03);
}

#contact.footer {
    padding-top: 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 48px 0;
}

.footer-about h4 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  margin-bottom: 16px;
}
.footer-about h4 img {
    height: 70px;
}

.footer-contact h4 {
  margin-bottom: 16px;
    display: flex;
  flex-direction: column; /* Stack header and icons */
  align-items: center;     /* Center horizontally */
  text-align: center;  
}

.footer-social {  
  display: flex;
  flex-direction: column; /* Stack header and icons */
  align-items: center;     /* Center horizontally */
  text-align: center;  
}

.social-links {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.social-link {
    display: inline-block;
    width: 44px;
    height: 44px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    line-height: 44px;
    text-align: center;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background-image: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    opacity: 1;
}

.footer-bottom {
  background-color: var(--background-color);
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  text-align: center;
  font-size: 0.9rem;
}

/* 12. ANIMATIONS */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Add some entrance animations for sections */
.about-content, .team-grid {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.about-content.visible, .team-grid.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 13. RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }
    .footer-about h4 {
        justify-content: center;
    }
    .footer-social {
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
}

/* Mobile & Tablet */
@media (max-width: 768px) {
  body.nav-open {
    overflow: hidden;
  }

  .section-title {
    font-size: 2rem;
  }
  .hero-title {
    font-size: 2.8rem;
    line-height: 1.2;
  }
  .hero-subtitle {
    font-size: 1.1rem;
    padding: 0 16px;
  }
  
  .header {
    left: 16px;
    right: 16px;
    width: auto;
    padding: 8px 15px;
  }

  .logo {
    height: 64px;
  }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: block;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1001;
  }

  .hamburger {
      display: block;
      position: relative;
      width: 30px;
      height: 3px;
      background-color: var(--text-color-primary);
      border-radius: 2px;
      transition: all 0.25s ease-in-out;
  }

  .hamburger::before,
  .hamburger::after {
      content: '';
      position: absolute;
      width: 30px;
      height: 3px;
      background-color: var(--text-color-primary);
      border-radius: 2px;
      transition: all 0.25s ease-in-out;
  }

  .hamburger::before {
      transform: translateY(-8px);
  }

  .hamburger::after {
      transform: translateY(8px);
  }
  
  .nav-open .hamburger {
      transform: rotate(180deg);
      background-color: transparent;
  }

  .nav-open .hamburger::before {
      transform: rotate(45deg);
  }

  .nav-open .hamburger::after {
      transform: rotate(-45deg);
  }

  .mobile-nav {
    /* Styles moved to main styles for new dropdown design */
    display: none; /* Hide by default, show with .nav-open */
  }

  .nav-open .mobile-nav {
      display: block;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid.large-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  section {
    padding: 64px 0;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .preloader-logo {
      max-width: 80px; /* Make loader logo smaller on mobile */
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .modal-content {
      padding: 32px 24px;
  }
  .niftem-logo-link {
      display: none;
  }
  .nav-container {
    justify-content: space-between;
  }
  .logo-link {
      flex-grow: 1;
  }
}


<style>
#sliderModal-events.modal-slider-popup .modal-content {
  background-color: transparent;
  box-shadow: none;
  padding: 0;
  max-width: 90%;
}
.modal-swiper .swiper-slide {
  position: relative;
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
}
.modal-swiper .swiper-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}
.slide-caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 16px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: #fff;
  font-size: 1rem;
  text-align: center;
  line-height: 1.4;
}

#sliderModal-events.modal-slider-popup {
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 3000;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  justify-content: center;
  align-items: center;
  background: rgba(29, 45, 53, 0.6);
  backdrop-filter: blur(8px);
}

#sliderModal-events.modal-slider-popup.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
.modal-swiper .swiper-slide img {
  transition: opacity 0.6s ease-in-out;
}



.modal-slider-popup {
  display: none;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  z-index: 3000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  justify-content: center;
  align-items: center;
  background: rgba(29, 45, 53, 0.6);
  backdrop-filter: blur(8px);
  transition: opacity 0.3s ease;
}
.modal-slider-popup.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

/* Header Gallery trigger */
header nav ul li a#openFlipTrigger {
  cursor: pointer;
  /* Optional: color, padding, hover effects */
}

/* Overlay (hidden by default) */
.overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: none; /* hidden until triggered */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}





/* My edits */

/* Modal overlay and content */
#flipbookModal1 {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
#flipbookModal1.active {
  display: flex;
}
.modal-content1 {
  background: #fff;
  max-width: 90vw;
  max-height: 90vh;
  padding: 20px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.modal-close1 {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 2rem;
  text-decoration: focus-within;
  color: red;
}

/* Flipbook styling */
#flipbook1 {
  margin: 0 auto;
}
/* Navigation buttons */
.flipbook-nav1 {
  text-align: center;
  margin-top: 12px;
}
.flipbook-nav1 button {
  background: #0052d4;
  color: #fff;
  border: none;
  padding: 8px 16px;
  margin: 0 6px;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
}
.flipbook-nav1 button:hover {
  background: #003f99;
}

#flipbook1 .turn-page {
  position: relative;
  overflow: hidden;
}

#flipbook1 .turn-page img {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

#flipbook1 .turn-page {
  position: relative;
  overflow: hidden;
}

.split-page1 {
  position: relative;
}
.split-page1 .clip-container img {
  width: 100%;
  height: 100%;
position: absolute;
  object-fit: cover;
}
.split-page1.left1 img {
  transform: translateX(0);
}
.split-page1.right1 img {
  transform: translateX(-50%);
}

.split-page1 {
  position: relative;
}
.split-page1 img {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  object-fit: cover;
}
.split-page1.left1 img {
  transform: translateX(0);
}
.split-page1.right1 img {
  transform: translateX(-50%);
}

.split-page1 {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.clip-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
}

.split-page1.left1 .clip-container img {
  transform: translateX(0%);
}

.split-page1.right1 .clip-container img {
  transform: translateX(-50%);
}

.split-page1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.hard1 img {
  max-width: 60%;
  height: auto;
  margin-bottom: 10px;
}

.hard1 {
  background: linear-gradient(to bottom, #001a33, #004080);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 40px 20px;
  box-sizing: border-box;
  text-align: center;
position: absolute;
overflow:hidden;
inset: 0px auto auto 0px;
}
#flipbook1 .page1,
#flipbook1 .hard1 {
  background:#fff;
  border:1px solid #ccc;
  overflow:hidden;
  position:relative;
justify-content:center;
}
#flipbook1 .hard1 {
    background:#003f99;
  color:white;
  font-weight:bold;
  font-size:1.2rem;
  display:flex;
  flex-direction:column;
  justify-content: center;
  align-items:normal;
  font-family:cursive;
}
#flipbook1 .hard1 img {
  max-width:60%;
  height:auto;
  justify-self:anchor-center;
  position: absolute;
  top: 50%;
  left: 120%;
  transform: translate(-50%, -50%);

}




.animated-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: moveBlob 20s ease-in-out infinite;
  z-index: 0;
}

.blob1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(45deg, #00C9FF, #92FE9D);
  top: -100px;
  left: -100px;
}

.blob2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(45deg, #FFDEE9, #B5FFFC);
  top: 100px;
  right: -150px;
  animation-delay: 5s;
}

.blob3 {
  width: 500px;
  height: 500px;
  background: linear-gradient(45deg, #FF9A9E, #FAD0C4);
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 10s;
}

@keyframes moveBlob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -20px) scale(1.1);
  }
  50% {
    transform: translate(-20px, 40px) scale(0.9);
  }
  75% {
    transform: translate(10px, -10px) scale(1.05);
  }
}
#preloader.hide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}


.animated-shape,
.shape {
  z-index: -10 !important;
}

main, header, footer {
  position: relative;
  z-index: 10;
}

html {
  scroll-behavior: smooth;
}

.animated-shape,
.shape {
  z-index: -10 !important;
}

main, header, footer, section, .modal-overlay {
  position: relative;
  z-index: 10;
}


.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


.shape,
.animated-shape {
  z-index: -10 !important;
}
.modal-overlay {
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}



.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px; /* Adjust to prevent overflow */
}

.shape {
  max-width: 100vw;
  overflow: hidden;
}

/* 4. Ensure .about-grid is Single Column on Small Screens */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}



body {
  position: relative;
}

/* Prevent oversized shapes from creating overflow */
.shape {
  pointer-events: none;
  overflow: hidden;
}

/* Make sure background shapes don't exceed viewport */
.shape-1, .shape-2, .shape-3 {
  max-width: 100vw;
  max-height: 100vh;
}

/* Ensure no extra margin/padding below footer */
.footer {
  margin-bottom: 0;
}



/* Structure wrapper to control layout */

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
  margin-bottom: 0;
}
body.nav-open {
  overflow: hidden;
}

.nav-open .mobile-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }

  .hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color, #000);
    position: relative;
  }

  .hamburger::before,
  .hamburger::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--text-color, #000);
    transition: all 0.3s ease;
  }

  .hamburger::before {
    top: -8px;
  }

  .hamburger::after {
    bottom: -8px;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--background-color, white);
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.3s ease-in-out;
    z-index: 1000;
  }

  .mobile-nav a {
    font-size: 1.2rem;
    margin: 1rem 0;
    color: var(--text-color, #000);
    text-decoration: none;
  }

  body.nav-open .mobile-nav {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
  }
}


html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
