/* General Reset */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: #f9f9f9;
    color: #333;
    padding-top: 0px; /* smaller, fits header height */
    scroll-behavior:smooth;
  }
  
  /* Header */
  header {
    background: #ffffff;
    text-align: center;
    position: sticky;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: padding 0.5s ease-in-out, background 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .dropdown {
  position: relative;
}
  /* Logo container (top, centered) */
  .logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 10px; /* space between logo and dropdown */
  }
  
  .logo {
    height: 250px;
    margin: 0 auto;
    transition: height 0.5s ease-in-out;
  }
  
header.shrink {
  background: #ffffff;
}

header.shrink .logo {
  height: 60px;
}

 
  
  /* Hero Section */
  .hero-image {
    height: 100vh;
    background-image: url('images/IMG_0340.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    will-change: transform, opacity;
    opacity: 1;
    transform: scale(1);
  }
  .hero-image.scrolled {
    opacity: 0.7;
    transform: scale(1.05);
  }
  .hero-text {
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    padding: 3rem;
    font-size: 30px;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    opacity: 1;
    transform: translateY(0);
  }
  
  .hero-text.scrolled {
    opacity: 0.6;
    transform: translateY(-30px);
  }
  
  /* Fade Section Base */
  .fade-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.88s ease-in, transform 0.88s ease-out;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    box-sizing: border-box;
    scroll-behavior: smooth;
  }
  
  /* Visible fade */
  .fade-section.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Home Links Section */
  .home-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* Card Styles */
  .card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 2rem;
    width: 100%;
    max-width: 900px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  /* Video large and responsive */
  .card-video-horizontal {
    width: 100%;
    max-width: 900px;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
  }
  
  /* Card Gallery */
  .card-gallery {
    position: relative;
    width: 600px;
    max-width: 600px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 20px;
  }
  
  .card-gallery img {
    position: absolute;
    width: 500px;
    height: 800px;
    object-fit: scale-down;
    border-radius: 10px;
    opacity: 0;
    animation: fadeCycle 9s infinite;
  }
  
  /* Staggered delays */
  .card-gallery img:nth-child(1) { animation-delay: 0s; }
  .card-gallery img:nth-child(2) { animation-delay: 3s; }
  .card-gallery img:nth-child(3) { animation-delay: 6s; }
  
  @keyframes fadeCycle {
    0%   { opacity: 0; }
    10%  { opacity: 1; }
    30%  { opacity: 1; }
    40%  { opacity: 0; }
    100% { opacity: 0; }
  }
  
  /* About Me Image */
  .card-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
  }
  
  /* Card text and links */
  .card h3 {
    margin-bottom: 1rem;
    font-size: 2rem;
  }
  
  .card p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }
  
  .card a {
    display: inline-block;
    background: black;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
  }
  
  footer {
    text-align: center;
    padding: 1rem;
    background: #000;
    color: #ffffff;
    margin-top: 2rem;
  }
  .site-footer {
  width: 100%;
  margin-top: 80px;      /* pushes it below everything */
  padding: 25px 10px;
  text-align: center;
  background: #000;
  color: #ffffff;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
  /* Header */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
     padding-bottom: 20px;
    background: #fff;
    z-index: 1000;
    display: flex;
    flex-direction: column; /* logo on top, nav below */
    align-items: center;
    transition: all 0.3s ease;
    padding: 10px 0;
  }
  .main-header {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-header.hide {
  transform: translateY(-100%);
}

  /* Logo */
  .main-header .logo {
    height: 100px;
    transition: height 0.3s ease;
  }
  .nav-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center; /* centers nav links */
  gap: 40px;
  padding: 0 40px 50px;
  box-sizing: border-box;
}


.dropbtn {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #000;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  transition: all 0.3s ease;
}

.dropbtn:hover {
  color: #ff6f61;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 10000;
}

.dropdown-content a {
  display: block;
  padding: 12px 16px;
  color: black;
  text-decoration: none;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown-content.show {
  display: block;
}
.shrink {
  padding: 5px 0;
}

.shrink .dropbtn {
  font-size: 18px;
}
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: center;   
    gap: 12px;
    padding: 10px 20px 20px;
  }

  .dropbtn {
    font-size: 16px;
  }
}


/* Centered nav-links */
.nav-links {
  display: flex;
  gap: 40px;
  padding: 15px 0;
  background-color: #fff;
  justify-content: center;
}/* ===========================
   MOBILE – FIX CARD GALLERY OVERFLOW
   =========================== */
@media (max-width: 768px) {

  .card {
    overflow: hidden;
  }

  .card-gallery {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;   /* tall portrait space */
    overflow: hidden;
  }

  .card-gallery img {
    position: absolute;   /* keep fade animation working */
    width: 100%;
    height: 100%;
    object-fit: contain;  /* NEVER overflow */
    left: 0;
    top: 0;
  }
}
@media (max-width: 768px) {
  .hero-image {
    background-attachment: scroll;
  }
}
/* FLOAT ACCOUNT BUTTON – DESKTOP */
@media (min-width: 769px) {
  .nav-container .dropdown {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    padding-left: 27px;
    z-index: 1001;
  }
}
@media (max-width: 768px) {
  .nav-container .dropdown {
    align-self: center;   
    margin-bottom: 8px;
  }
}

