@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&family=Poppins:wght@600&display=swap');

/* ------------ Basic Resets and Fonts ------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: 'Open Sans', sans-serif;
    color: black;
    background-color: white;
  }

  h1, h2, h3, strong {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700; /* Use bold */
  }

  /* Poppins for special headings */
  h1.special, .highlight {
    font-family: 'Poppins', sans-serif;
    font-weight: 600; /* SemiBold */
  }


  h1 {
    margin-bottom: clamp(8px,3vw,120px);
    font-size: clamp(29px, 5vw, 160px);
  }

  h2 {
    margin-bottom: clamp(8px, 2.5vw,100px);
    font-size: clamp(19px, 3vw, 130px);

  }

  h3 {
    max-width: 900px;
    margin-bottom: clamp(5px, 2vw,80px);
    font-size: clamp(17px, 2.3vw, 100px);
  }

  p {
    font-size: clamp(12px, 1.6vw, 50px); 
    margin-bottom: clamp(5px, 2vw,100px);
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  /* ------------ Color Palette (Approximate) ------------ */
  :root {
    --yellow-bg: #FFD600;  /* Big yellow background */
    --blue-btn: #00AEEF;   /* Light blue button */
    --pink-bg: #F48FB1;    /* Pink block */
    --title-black: #000;
    --white: #fff;
    --background-color: #fff;

  }
  
  /* ------------ Reusable Utility Classes ------------ */
  .container {
    width: 90%;
    max-width: 3000px;
    margin: 0 auto;
    padding: 16px;
  }
  .text-center {
    text-align: center;
  }
  .mb-2 { margin-bottom: 32px; }
  .mb-1 { margin-bottom: 16px; }
  
  /* ------------ Header / Logo ------------ */

  header {
    display: flex;
    align-items: center;
    justify-content: center; /* Centers logo */
    height: clamp(50px, 10vw, 100px); 
    padding: clamp(1rem,5vw, 3rem);
    background-color:var(--yellow-bg);
}

.header-container {
  display: flex;
  align-items: left;
  justify-content: left;
  width: 100%;
}

  
  /* ------------ Hero Section ------------ */
  
  .hero {
    position: relative; /* Allows absolute positioning of icons */
    background-color: var(--yellow-bg);
    padding: 4rem 1rem;
    text-align: center;
    overflow-x: hidden;

}
  
  .hero .btn-cta {
    width: clamp(8rem, 20vw, 30rem);
    display: inline-block;
    background-color: var(--blue-btn);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border: 1px solid white;
    font-weight: bold;
    font-size: clamp(1rem, 2vw, 3rem);
    margin-top: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out; /* Smooth transition */

  }

  .hero .btn-cta:hover {
    background-color: #ff66aa; /* Change to yellow on hover */
    color: black; /* Change text color */
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2); /* Add shadow effect */

}
  
  /* ------------ About Meetup ------------ */
  .about-meetup {
    text-align: center;
    padding: 2rem 0;
    background-color: white;
  }
  .about-meetup ul {
    list-style-type: none;
    margin-top: 1rem;
    line-height: 1.6;
  }
  
  .yellow-dot {
    color: #FFD600; /* Yellow color */
    font-weight: bold;
    margin: 0 5px; /* Adds space around the dot */
}

 

/* ------------ Teme Section ------------ */

  .grid-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(10px, 2.2vw, 100px);
    margin: 0;
    margin-top: 2rem;
    justify-content: space-between;
    
}

  .box {
    width: calc(33.333% - 2vw);
    min-width: clamp(110px, 35vw, 220px);
    aspect-ratio: 1 / 1; 

    perspective: 1000px;
    cursor: pointer;

    flex-grow: 1;  /* Allow boxes to take equal space */
    flex-basis: calc(33.33% - 2vw); /* Adjust width dynamically */

  }

  .box:hover {
    filter: brightness(0.80); /* Reduces brightness to make it darker */
    transition: filter 0.3s ease-in-out; /* Smooth transition effect */
  }


  .box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
}

.box-front,
.box-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* ✅ Ensures only one side is visible */
    transform-style: preserve-3d; /* ✅ Important for Firefox */
    display: flex;
    
    color: #000;
    font-weight: bold;
    font-size: clamp(12px, 2.5vw, 50px);
    text-align: left;
    padding: clamp(1rem, 2vw, 3rem);

    box-sizing: border-box;
}

.box-back {
  font-weight:bold;
  padding: clamp(10px, 1vw, 20px);
  font-size: clamp(8px, 2.6vw, 40px);


  display: flex;
  
  align-items: center;
  text-align: center;
  justify-content: center;
  word-wrap: break-word; 
  overflow-wrap: break-word;
  max-width: 100%; 
  max-height: 100%;
  white-space: normal; 
}

.box-front {
  color: black;
  transform: rotateY(0deg);
}

.box-back {
  color: black;
  transform: rotateY(180deg);
}

.box.flipped .box-inner {
  transform: rotateY(180deg);
}

  
  /* Unique colors for each box using nth-child */
  .box:nth-child(1) { background-color: #c4d600; }
  .box:nth-child(2) { background-color: #ff66aa; }
  .box:nth-child(3) { background-color: #ffd600; }
  .box:nth-child(4) { background-color: #00adef; } /* Adjust text color if needed */
  .box:nth-child(5) { background-color: #ffbe00; }
  .box:nth-child(6) { background-color: #ff66aa; }
  


  
  
  /* ------------ Speakers Section ------------ */
 
  .speakers h2 {
    text-align: center;
    margin-bottom: 1.5rem;
  }


  .speakers-scroll-container {
    display: flex;
    overflow-x: auto; /* Enables horizontal scrolling */
    overflow-y: hidden; /* Prevents vertical scrolling */
    white-space: nowrap; /* Keeps items in one row */
    scroll-snap-type: x mandatory; /* Enables smooth scrolling */
    -webkit-overflow-scrolling: touch; /* Enables smooth scrolling on mobile */
    padding-bottom: 1rem; /* Adds space below to prevent scrollbar overlap */
    margin: clamp(0.8rem, 1vw, 2rem);
}

.speakers-scroll-container::-webkit-scrollbar {
  display: none;
}
  

  .speakers-grid {
    display: flex; 
    gap: 1rem; 
    width: max-content; 
    padding: em 0;
}
  

  .speaker-card {
    width: 100%; /* Matches box width */
    flex: 0 0 auto; /* Prevents shrinking */
    width: 200px; /* Adjust as needed */
    scroll-snap-align: start; /* Enables smooth snapping */
    text-align: center;
    background:white;
}

  .speaker-card img {
    width: 100%;
    height: clamp(280px, 20vw, 1000px);
    object-fit: cover; /* Ensures images crop properly to fill the space */
    display: block;
  }

  .speaker-info {
    height: clamp(175px,24vw, 1000px);
    background-color: var(--blue-btn); /* Or #00AEEF directly */
    padding: clamp(16px, 2vw, 32px);
    text-align: center;
    text-wrap: wrap;
  }

  .speaker-card:nth-child(1) .speaker-info { background-color: #ff66aa; } /* Green */
  .speaker-card:nth-child(2) .speaker-info { background-color: #ffd600; } /* Pink */
  .speaker-card:nth-child(3) .speaker-info { background-color: #ff66aa; } /* Yellow */
  .speaker-card:nth-child(4) .speaker-info { background-color: #ffbe00; } /* Light Blue */
  .speaker-card:nth-child(5) .speaker-info { background-color: #ffbe00; } /* Orange */
  .speaker-card:nth-child(6) .speaker-info { background-color: #ffbe00; } /* Purple */
  .speaker-card:nth-child(7) .speaker-info { background-color: #ffd600; } /* Red */
  .speaker-card:nth-child(8) .speaker-info { background-color: #00adef; } /* Sky Blue */
  .speaker-card:nth-child(9) .speaker-info { background-color: #ff66aa; } /* Teal */
  .speaker-card:nth-child(10) .speaker-info { background-color: #00adef; } /* Dark Orange */
  .speaker-card:nth-child(11) .speaker-info { background-color: #c4d600; } /* Bright Green */
  .speaker-card:nth-child(12) .speaker-info { background-color: #c4d600; } /* Burnt Orange */
  .speaker-card:nth-child(13) .speaker-info { background-color: #ff66aa; } /* Dark Purple */
  .speaker-card:nth-child(14) .speaker-info { background-color: #00adef; } /* Dark Grayish Blue */
  .speaker-card:nth-child(15) .speaker-info { background-color: #ffd600; } /* Dark Grayish Blue */
  


  
  /* ------------ CTA Section (Pink) ------------ */
  .cta-section {
    position: relative; /* Allows absolute positioning of icons */
    background-color: #ff66aa;
    text-align: center;
    padding: 2rem 1rem;
    margin: 2rem 0;
  }
  
  .cta-section .btn-cta {
    width: clamp(8rem, 20vw, 30rem);
    display: inline-block;
    background-color: var(--yellow-bg);
    color: var(--title-black);
    padding: 0.8rem 1.5rem;
    border: 1px solid white;
    font-weight: bold;
    font-size: clamp(1rem, 2vw, 7rem);
    margin-top: 1rem;
    margin-bottom: clamp(1.5rem, 3vw, 4rem);
    cursor: pointer;
    transition: background-color 0.3s ease-in-out; /* Smooth transition */
  }

  .cta-section .btn-cta:hover {
    background-color: #00adef; /* Change to yellow on hover */
    color: white; /* Change text color */
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2); /* Add shadow effect */

  }

  .cta-section p {
    color: white;
  }

  .cta-section .container {
    margin-top: 12vw;
    margin-bottom: 10vw;
  }

  /* ------------ Organizers Section ------------ */
  /* Set background color for the whole section */
.organizers {
  background-color: white; /* Green background */
  padding-top: clamp(0.5rem, 1vw, 5rem);
  padding-bottom: clamp(0.5rem, 1vw, 5rem);
  text-align: center;
}



/* Center the grid container */
.organizers-grid {
  display: flex;
  flex-direction: row; /* Default to stacked (mobile) */
  align-items: center;
  gap: clamp(0.5rem, 2vw, 2rem);
  max-width: 800px; /* Limit width to keep cards centered */
  margin: 0 auto;
  margin-bottom: 2%;
}

/* Organizer cards */
.org-card {
  width: 50%; /* Full width on mobile */
  max-width: 200px; /* Limit width for better alignment */
  background: #C4D600;
  text-align: center;
  overflow: hidden; /* Prevents overflow */
}

/* Organizer images */
.org-card img {
  width: 100%;
  height: clamp(180px,40vw, 700px);
  object-fit: cover;
  display: block;
}

/* Organizer text content */
.org-info {
  background-color: #C4D600;
  color: #000;
  height: clamp(120px,18vw, 1000px);
  padding: clamp(1rem, 3vw, 2rem);
  text-align: center;
  margin: 0;
  line-height: 1.1;
}



  



  /* ------------ Partners Section ------------ */
  .partners {
    text-align: center;
    padding: clamp(5px, 0.5vw, 80px);
    background-color: #fff; /* Light background */
}

/* Partner logos grid */
.partner-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 3 logos per row (default for mobile) */
    gap: 1rem;
    justify-items: center; /* Centers logos */
    align-items: center;
    max-width: 2000px;
    margin: 0 auto;
    padding: 1rem;
}

/* Partner logos */
.partner-logos img {
    width: 100%;
    max-width: 200px; /* Set max width for better scaling */
    height: auto;
    object-fit: contain; /* Ensures logos are properly scaled */
    gap: 0.5rem;
}

  
/* ---- Footer Wrapper ---- */
footer {
  background-color: #00AEEF;  /* Bright blue background */
  margin-top: 1rem;
  padding-bottom: clamp(3rem, 3vw, 5rem);
  padding-left: 15px;
  padding-top: clamp(10px, 3vw, 30px);
}

/* ---- Footer Inner Content ---- */
.footer-content {
  display: flex;
  justify-content: space-between; /* Keeps left and right sections at opposite ends */
  align-items: center;
  flex-wrap: wrap; /* Ensures responsiveness */
  max-width: 3000px;
  margin: 0 auto;
}

/* ---- Left Section: Footer Logo & Text ---- */
.footer-left {
  display: flex;
  align-items: center;
}

.footer-text {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: bold;
  color: black;
}

/* ---- Right Section: Social Icons ---- */
.footer-right {
  display: flex;
  align-items: center;
}



  Base icon styling
.icon {
  position: absolute; /* Allows precise placement */
  width: 100px; /* Default width, change as needed */
}


/* Wrapper for centering icons */
.icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem; /* Space between the icon and the heading */
}

/* Make the icons responsive */
.meetup-icon, .teme-icon {
  width: clamp(65px, 6vw, 130px); /* Scales between 60px and 120px */
  height: auto;
}

.govornici-icon, .organizatorice-icon, .partneri-icon {
  width: clamp(85px, 7.5vw, 160px); /* Scales between 60px and 120px */
  height: auto;
}

.footer-icon-1 {
  height: clamp(25px, 6vw, 100px); 
  padding-left: clamp(5px, 1.5vw, 30px);
  width: auto; 
  object-fit: contain; }

.footer-icon-2 {
  height: clamp(25px, 6vw, 100px); 
  width: auto; 
  object-fit: contain; }

.social-icon {
  height: clamp(25px, 3vw, 50px); 
  padding-right: clamp(10px, 2vw, 30px);
  width: auto; 
  object-fit: contain; 
}


.about-meetup, .teme, .govornici-icon, .organizatorice-icon, .partneri-icon .footer-icon{
  text-align: center;
  padding: 2rem 0;
  padding: clamp(0.5rem, 1vw, 2rem);
}

.header-icon {
  position: absolute;
  left: clamp(20px, 4vw, 100px);
  top: clamp(20px, 4vw, 100px);
  height: clamp(1.5rem, 3.5vw, 5rem);
  width: auto;
  object-fit: contain; 
  
  filter: invert(49%) sepia(78%) saturate(2343%) hue-rotate(169deg) brightness(82%) contrast(90%);
}


.butterfly-icon {
  position: absolute;
  width: clamp(75px, 12vw, 180px); /* Responsive size */
  height: auto;
  z-index: 1; /* Ensures icons stay above background */
  /* top: clamp(100px, 9vw, 200px); */
  bottom: clamp(50px, 8vw, 100px);
  left: 5%;
  filter: invert(1);

}

.diamond-icon {
  position: absolute;
  bottom: clamp(30px, 5vw, 100px);
  width: clamp(100px, 23vw, 300px); /* Adjust size to be responsive */
  right: -8%; /* Moves part of the icon outside the screen */
  height: auto;
  z-index: 1;
  overflow: hidden;
  filter: invert(1);

}

.happiness-icon {
  height: clamp(4rem, 11vw, 15rem);
  width: auto;
  object-fit: contain; 
  margin-top: clamp(10px, 1vw, 200px);
  margin-bottom: clamp(10px, 1.5vw, 200px);
}

/* Base styling for both CTA icons */
.cta-icon {
  position: absolute;
  height: auto;
  z-index: 1;
  filter: invert(1);

}

/* Position Golubica (Left Side) */
.golubica-icon {
  width: clamp(100px, 15vw, 300px); /* Responsive size */
  top: 8%;
  left: 3%; /* Moves part of the icon outside the viewport */
}

/* Position Pješčani Sat (Right Side) */
.pjescani-sat-icon {
  width: clamp(40px, 6vw, 150px); /* Responsive size */
  bottom: 10%;
  right: 3%; /* Moves part of the icon outside the viewport */
}

.sidepanel {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: 0.3s;
    padding-top: 60px;
  }
  .sidepanel a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 18px;
    color: #ccc;
    display: block;
    transition: 0.3s;
  }
  .sidepanel a:hover {
    color: #fff;
  }
  .sidepanel .closebtn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 36px;
    color: #fff;
  }



  
  
  
  /* ==========================================
     MEDIA QUERIES FOR RESPONSIVENESS
     ========================================== */
  
@media(min-width: 520px) {
  .box-back {
    font-size: clamp(12px, 2vw, 50px);
    line-height: clamp(1.5, 4vw, 100px);
  }
}
 
@media (min-width: 768px) {
  .organizers-grid {
    flex-direction: row; /* Change to side-by-side layout */
    justify-content: center;
    align-items: stretch;
  }

  .org-card {
    width: 35%; /* Each card takes 45% of the available space */
    max-width: 200px; /* Prevents cards from getting too large */
  }

  .speakers-scroll-container {
    overflow-x: hidden; /* Remove horizontal scroll */
    white-space: normal; /* Allow wrapping */
    justify-content: center;
}

.speakers-grid {
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: clamp(24px, 2vw, 100px);
    width: 90%; 
    justify-content: center;
}

.speaker-card {
    width: 100%; /* Make sure each speaker fills its grid cell */
    max-width: 900px; /* Prevent overly large speakers */}

}

@media (min-width: 1224px) {
  .box-back {
    font-size: clamp(8px, 1.8vw, 40px);
  }

  .hero {
    padding: 1rem;
  }
  .happiness-icon {
    height: clamp(4rem, 9vw, 15rem);
  }  

  .partner-logos {
      grid-template-columns: repeat(4, 1fr);
  }

  .speakers-grid {
    grid-template-columns: repeat(4, minmax(250px, 1fr));
  }

  .speaker-info {
    height: clamp(400px,28vw,1000px);
  }

  .speaker-card p {
    font-size: clamp(20px, 1.6vw, 50px);
  }

  .org-card {
    width: 25%; /* Each card takes 45% of the available space */
    max-width: 800px; 
  }
  .organizers-grid {
    max-width: 1800px; /* Prevents excessive stretching */
    gap: clamp(24px, 2vw, 100px);
  }
}



  
  /* Adjust layout for screens up to 768px (tablets, phones) */
  @media (max-width: 700) {
    header {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .hero {
      padding: 1rem;
    }
   
    /* Make the boxes full-width or 2-across for smaller screens */
    .grid-boxes {
      justify-content: center;
    }
    .box {
      width: calc(50% - 1rem); /* 2 boxes per row on smaller screens */
      line-height: 1;
      aspect-ratio: 1 / 1;
    }

    /* If you want 1 box per row on very small devices, add another media query at ~480px */
  
    /* Speakers grid: fewer columns */
    .speakers-grid {
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    
  }
  
  /* Even smaller screens, e.g. < 480px (optional) */
  @media (max-width: 250) {
    .box {
      width: 100%; /* 1 box per row */
    }
  
    .speakers-grid {
      grid-template-columns: 1fr;
    }
  }