 /* ===============================
GLOBAL STYLES
================================ */
/* --- General  CSS Styling  --- */ /* CSS Styling */

 /* Vibrant & child-friendly variables */
    :root {
      --primary: #3a8c4a;
      --primary-light: #5fb06b;
      --secondary: #ffb347;
      --secondary-glow: #ffcd7e;
      --accent-orange: #ff8c42;
      --soft-yellow: #fff3cf;
      --leaf-bg: #e7f3e2;
      --card-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
      --bubble-radius: 32px;
     
      --glass: rgba(255, 255, 255, 0.05);    
      --opaque: rgba(204, 205, 204, 0.95);       /* Opaque Glass Effect */
      --glass-border: rgba(255, 255, 255, 0.1);
    }

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

    body {
      font-family: 'Quicksand', sans-serif;
      color: #2c4b2c;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
  
      line-height: 1.6;
      scroll-behavior: smooth;
      background-image: url('../../static/images/bg.webp');
      background-attachment: fixed;
      background-repeat: no-repeat;
      background-size: cover;
    
    }

    body2 {
      font-family: 'Quicksand', sans-serif;
      color: #2c4b2c;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
  
      line-height: 1.6;
      scroll-behavior: smooth;
      background-image: url('../../static/images/bg2.webp');
      background-attachment: fixed;
      background-repeat: no-repeat;
      background-size: cover;
    }


    /* persistent header */
    .site-header {
      background: white;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
      position: sticky;
      top: 0;
      z-index: 1000;
      border-bottom: 3px solid var(--secondary);
    }

    .header-container {
      max-width: 1300px;
      margin: 0 auto;
      padding: 16px 28px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 16px;
    }

    .logo {
      display: flex;         /* Enables flexbox */
      align-items: center;   /* Vertically centers the logo and text */
      gap: 5px;             /* Adds space between the image and text */
      display: flex;
    }

    /* Optional: Ensure the image has a reasonable height */
    .logo img {
      height: 80px;          /* Adjust height to match your design */
      width: auto;
    }

    .logo h1 {
      font-size: 1.8rem;
      font-weight: 800;
      background: linear-gradient(135deg, #2b6e3c, #ffb347);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      letter-spacing: -0.5px;
    }
    .logo p {
      font-size: 0.75rem;
      font-weight: 700;
      color: #d68b2c;
    }

    .nav-links {
      display: flex;
      gap: 1.2rem;
      flex-wrap: wrap;
      list-style: none;
    }

    .slider-container { 
      position: relative; 
      width: 100%; 
      height: 300px; 
      overflow: hidden; 
      border-radius: 20px; }
    
    .slide { 
      position: absolute; 
      width: 100%; 
      height: 100%; 
      opacity: 0; 
      transition: opacity 1s ease-in-out; 
      object-fit: cover; }
    
    .slide.active { 
      opacity: 1; }

/* --- Hamburger Button Styling --- */
.menu-toggle {
  display: none; /* Hidden on wide screens */
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.bar {
  width: 28px;
  height: 3px;
  background-color: var(--primary);
  transition: all 0.4s ease;
  border-radius: 5px;
}

/* --- Mobile Responsive Layout (768px and below) --- */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex; /* Show hamburger on mobile */
  }

  .nav-links {
    display: none; /* Hide default tabs */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 20px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    border-bottom: 3px solid var(--secondary);
    gap: 10px;
    z-index: 100000;
  }

  .nav-links.show {
    display: flex; /* Show dropdown when active */
  }

  .nav-links li {
    width: 100%;
  }

  .nav-btn {
    width: 100%;
    text-align: left;
  }

  /* Transform Hamburger to "X" */
  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Gallery- The 3D Stage */
   forra { 
        display: flex; 
        justify-content: center; 
        align-items: center; 
        min-height: 55vh; 
        overflow: hidden; 
    }
    
    /* The 3D Stage */
    .stage { 
      perspective: 19000px; /* SEE "const radius" in the gallery JavaScript section. It works with this. // Distance of images from center- (Spacing of the cards. The larger the number of uploaded images the bigger the circle, so the bigger the number from 500{initial} to an upward in +1000. the same with the class called .stage {  perspective: } is should be rased much higher. its like you having to move back to see the cards in view. From the 1000px {default} to +100000px all for the 27 photos.)*/
      width: 250px; 
      height: 380px; 
      margin:90px -80px 0 0px; 
      overflow: visible;
      z-index: 100;
    }
    
    .gallery { width: 80%; height: 80%; position: relative; transform-style: preserve-3d; transition: transform 0.5s; cursor: grab; }
    
    /* The Cards */
    .card {
        position: absolute; width: 100%; height: 100%; background: #222; border: 1px solid #444; border-radius: 10px; 
        backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; padding: 10px; box-sizing: border-box;
    }
    .card img { width: 100%; height: 70%; object-fit: cover; border-radius: 5px; pointer-events: none; }
    .card h3 { color: white; margin: 10px 0 5px; }
    .card p { color: #aaa; font-size: 0.8rem; text-align: center; }

    /* Modal Overlay */
    #modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 1000; justify-content: center; align-items: center; overflow: scroll;}
    #modal img { max-width: 90%; max-height: 80%; border-radius: 10px; }
    .close { position: absolute; top: 20px; right: 20px; color: white; font-size: 2rem; cursor: pointer; }

    
    .arrow-btn { 
      cursor: pointer; padding: 10px; background: var(--primary); color: white; border-radius: 50%; }
        
    .lightbox {
      display: none;
      position: fixed;
      z-index: 2000;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0, 0, 0, 0.85);
      justify-content: center;
      align-items: center;
      cursor: pointer;
    }

    .lightbox img {
      max-width: 90%;
      max-height: 80%;
      border-radius: 10px;
      box-shadow: 0 0 20px rgba(0,0,0,0.5);
    }

    .close-btn {
      position: absolute;
      top: 20px; right: 30px;
      color: white; font-size: 40px; cursor: pointer;
    }

    .nav-btn {
      background: transparent;
      border: none;
      font-family: 'Quicksand', sans-serif;
      font-weight: 700;
      font-size: 1rem;
      padding: 10px 20px;
      border-radius: 60px;
      cursor: pointer;
      transition: all 0.2s ease;
      color: #2c5e2c;
      background: #fef3e0;
    }

    .nav-btn i {
      margin-right: 8px;
    }

    .nav-btn.active {
      background: var(--primary);
      color: white;
      box-shadow: 0 6px 14px rgba(58, 140, 74, 0.3);
    }

    .nav-btn:hover:not(.active) {
      background: var(--secondary);
      color: #3a2a1a;
      transform: translateY(-2px);
    }

    /* main dynamic area */
    .dynamic-content {
      flex: 1;
      padding: 40px 24px 60px;
      max-width: 1300px;
      margin: 0 auto;
      width: 100%;
      animation: fadeSlide 0.35s ease-out;
    }

    @keyframes fadeSlide {
      from { opacity: 0; transform: translateY(12px);}
      to { opacity: 1; transform: translateY(0);}
    }

    /* Hero section */

   .hero-grid {
      display: flex; 
      flex-wrap: wrap; 
      gap: 30px; 
      align-items: center;
    }
      
    .hero{
        padding: 20px;
        border-radius: 8px;
        flex:1;
    }
    
    .hero-slide {
        flex: 1;
        padding: 1px;
        align-items: center;
        background:#cfe3c0; 
        border-radius: 48px; 
        overflow:hidden;
    }

    .hero-slide img{

      width:100%; display:block;
    }

     /* Responsive Adjustments */
    @media (max-width: 768px) {

        .hero-grid {
            flex-direction: column;  /* Switch the dive to block on small screen */
        }

        .slider-container { 
      position: relative; 
      width: 100%; 
      min-height: 300px; 
      overflow: hidden; 
      border-radius: 20px; }
    
   

    }

    /* card and section styling (child-friendly) */
    .section-card {
      background: var(--opaque);
      border-radius: 48px;
      padding: 32px 32px 44px;
      box-shadow: var(--card-shadow);
      margin-bottom: 20px;
    }
    
    .section-card-2 {
      background: var(--opaque);
      border-radius: 48px;
      padding: 32px 32px 44px;
      box-shadow: var(--card-shadow);
      margin-bottom: 20px;
    }

    .section-title {
      font-size: 2.4rem;
      font-weight: 800;
      color: var(--primary);
      margin-bottom: 1.5rem;
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }
    .section-title i {
      background: var(--secondary);
      padding: 12px;
      border-radius: 60px;
      color: white;
      font-size: 1.5rem;
    }

    .fun-badge {
      background: #fff1cf;
      display: inline-block;
      padding: 8px 20px;
      border-radius: 60px;
      font-weight: 600;
      color: #b45f1b;
      margin-bottom: 28px;
      font-size: 0.9rem;
    }

    .grid-cards {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
      gap: 28px;
      margin-top: 20px;
    }

    .child-card {
      background: #ffffffea;
      border-radius: 32px;
      overflow: hidden;
      transition: all 0.25s;
      border: 2px solid #ffdeae;
      box-shadow: 0 12px 18px -8px rgba(0,0,0,0.08);
    }
    .child-card:hover { transform: scale(1.02); border-color: var(--secondary);}

    .card-media {
      height: 180px;
      background: #d9e8cf;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 3rem;
    }
    .card-media img, .card-media video {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .card-body {
      padding: 18px 20px 24px;
    }
    .card-body h3 { color: #2f6b3a; margin-bottom: 8px;}

    /* video & audio row */
    .media-row {
      display: flex;
      flex-wrap: wrap;
      gap: 28px;
      margin: 30px 0;
    }
    .media-box {
      flex: 1 1 280px;
      background: #fffaf0;
      border-radius: 28px;
      overflow: hidden;
      border: 1px solid #ffe2b5;
    }
    video, audio { width: 100%; display: block; border-radius: 20px; }
    .media-caption { padding: 14px; font-weight: 600; background: #fff3e0;}


    /* Email Form */

    .comment-form {
        flex: 2;
        padding: 20px;
        background-color: var(--background-light);
        border-radius: 8px;
        border-top: 3px solid var(--secondary-color);
        align-items: center;
        border-radius: var(--border-radius);
    }

    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form textarea {
        width: 100%;
        padding: 10px;
        margin-bottom: 20px;
        border: 1px solid #555;
        border-radius: 4px var(--text-muted);
        background-color: var(--leaf-bg);
        color: var(--text-light);
        font-family: var(--font-family);
    }

    .comment-form textarea {
        resize: vertical;
    }

    .comment-form button {
        background-color: var(--primary-color);
        color: var(--background-dark);
        border: none;
        padding: 12px 20px;
        cursor: pointer;
        border-radius: 4px;
        font-weight: bold;
        transition: background-color 0.3s;
    }

    .comment-form button:hover {
        background-color: var(--secondary-color);
    }

    /* footer persistent */
    .site-footer {
      background: #1f4027;
      color: #f7efcf;
      text-align: center;
      padding: 28px 20px;
      font-size: 0.85rem;
      margin-top: auto;
      border-top-left-radius: 28px;
      border-top-right-radius: 28px;
    }

    #send {
      background-color: var(--primary);
      border: ridge;
      color: var(--secondary);
      padding: 10px 24px;
      border-radius: 60px;
      font-weight: bold;
      cursor: pointer;
      font-family: 'Quicksand', sans-serif;
    }

    #send:hover {
      background-color: var(--secondary);
      border: solid;
      color: var(--primary);
      cursor: pointer;
    }

    .contact-block {
      background: #e9f3e4;
      border-radius: 48px;
      padding: 32px;
      gap: 28px;
      margin-top: 20px;
    }
    .contact-details i { width: 32px; color: var(--primary); margin-right: 12px;}

    button {
      background: var(--primary);
      border: none;
      color: white;
      padding: 10px 24px;
      border-radius: 60px;
      font-weight: bold;
      cursor: pointer;
      font-family: 'Quicksand', sans-serif;
    }
    button.small-fun {
      background: var(--secondary);
      color: #3a2a1a;
    }

    @media (max-width: 720px) {
      .header-container { flex-direction: column; text-align: center;}
      .section-title { font-size: 1.8rem;}
    }



/* FORRACORP SIGNATURE LOGO: Web Developer */
.signature { flex: 1; display: flex; padding-top: 10px; justify-content: flex-start; text-decoration: none; font-size: 0.8em; color: #ffffff; align-items: center; flex-direction: column;}
.sign { max-width: 20px; transition: 0.3s; animation: blink 3s infinite; }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }
