/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.home-header {
  background: linear-gradient(rgb(0, 0, 0),rgba(0,0,0,0)),
              url('https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExbjZhbDMxYWhrMWpvZmxhcHFlNDI2aDZnYXh1NXRyODdjN3dnajBtNSZlcD12MV9naWZzX3NlYXJjaCZjdD1n/lbcLMX9B6sTsGjUmS3/giphy.gif');
  background-size:cover;
  background-position: center;
  height: auto;
  width: 100%;
  position: relative;
  margin: auto;
  background-color: #000;
}

/* Navbar styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: transparent;
  box-shadow: none;
}
.body{
  position: absolute;
}

.logo img {
  height: 100px;
  width: 100px;
  border-radius: 50%;
}

.nav-right {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-right li a {
  text-decoration: none;
  color: antiquewhite;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
}

.nav-right li a:hover {
  background: azure;
  color: #000;
}

/* Dropdowns */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 8px 0;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  display: flex;
  flex-direction: column;
}

.dropdown-menu li a {
  color: #333;
  padding: 10px 15px;
}

.dropdown-menu li a:hover {
  background: #f2f2f2;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: none !important;
}

@keyframes backgroundMotion {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
.main-header {
    padding: 30px 0;
    text-align: center;
}

.main-header h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.organization {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
}

.logo-container, .logo-container1 {
    width: 250px;
    height: 250px;
    overflow: hidden;
    border-radius: 50%;
    flex-shrink: 0;
}

.jss-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.org-text {
    text-align: center;
    flex-grow: 1;
    padding: 0 20px;
}

.logo-container1 {
    order: 1;
}

.org-text {
    order: 2;
}

.logo-container {
    order: 3;
}

.org-text h2 {
    font-size: 3.5rem;
    color: #3498db;
    margin-bottom: 15px;
    text-align: center;
}

.org-text h3 {
    font-size: 2.5rem;
    color: #3498db;
    text-align: center;
}

/* Events section styles */
.events-section {
    padding: 30px 0;
}

.events-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.event-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card h3 {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 15px;
}

.event-tagline {
    font-size: 1.2rem;
    color: #e74c3c;
    margin-bottom: 20px;
}

.event-description {
    margin-bottom: 25px;
    color: #ecf0f1;
}

.event-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.dates {
    font-size: 1.1rem;
    color: #3498db;
}

.register-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.register-btn:hover {
    background-color: #2980b9;
}

/* Featured event section */
.featured-event {
    padding: 60px 0;
    background-color: rgba(255, 255, 255, 0.02);
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    align-items: center;
}

.event-logo-placeholder {
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 auto;
}

.event-info h2 {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 15px;
}

.event-info h3 {
    font-size: 1.5rem;
    color: #e74c3c;
    margin-bottom: 20px;
}

.main-header{
    position: relative;
}

.logo-container1 {
    position: static;
    left: 0;
}

.logo-container {
    position: static;
}

.featured-description {
    color: #ecf0f1;
}

.powered-by {
    text-align: center;
}

.powered-by p {
    margin-bottom: 15px;
    color: #95a5a6;
}

.sponsor-logo-placeholder {
    width: 150px;
    height: 150px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin: 0 auto;
}


/* Footer styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.footer {
  background: #0a192f;
  padding: 40px 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  text-align: center;
}

.footer-section {
  flex: 1 1 300px;
}

.footer-section h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #64ffda;
}

.footer-section ul {
  list-style: none;
  margin-top: 10px;
}

.footer-section ul li {
  margin: 10px 0;
  font-size: 1rem;
}

.footer-section ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: white;
  text-decoration: none;
}

.footer-section ul li a:hover {
  color: #64ffda;
}

.footer-section p {
  margin: 8px 0;
  font-size: 1rem;
}

.footer-section a {
  color: #64ffda;
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.social-icons a {
  font-size: 1.8rem;
  color: white;
  transition: transform 0.3s, color 0.3s;
}

.social-icons a svg {
  width: 1.8rem;
  height: 1.8rem;
  fill: currentColor;
}

.social-icons a:hover {
  color: #64ffda;
  transform: scale(1.2);
}
.home-header {
    width: 100%;
    position: relative;
    margin: auto;
    background: transparent;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #1d3557;
  font-size: 0.95rem;
  opacity: 0.8;
}

.footer-branch h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: #64ffda;
}

.footer-branch p {
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-section ul li a {
    justify-content: center;
  }
}

/* Members Page Styles */
.members-container {
    background: transparent !important;
    opacity: 0;
    animation: fadeIn 1s ease forwards 3s;
    padding: 0 1rem;
    max-width: 1600px;
    margin: 0 auto;
    margin-top: 0; /* Remove top margin */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    user-select: none;
    position: relative;
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff !important;
    text-shadow: none !important;
    margin-top: 0;
    padding-top: 0;
}

@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff6b6b, transparent);
    animation: lineGrow 2s ease forwards;
}

@keyframes lineGrow {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100px;
        opacity: 1;
    }
}

.members-row {
    display: flex;
    justify-content: center;   /* Center all items */
    gap: 3rem;                 /* Even spacing between cards */
    margin-bottom: 4rem;
    flex-wrap: wrap;           /* Allow wrapping on smaller screens */
}

.flip-card {
    background-color: transparent;
    display: flex;             /* Center content inside each card */
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 220px;
    perspective: 1000px;
    flex: 0 0 auto;
    margin: 0;                 /* Removed extra side margins */
    padding: 10px;
    cursor: pointer;
    user-select: none;         /* Prevent text selection */
    animation: float 6s ease-in-out infinite; /* Floating animation */
}


@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother transition */
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg) scale(1.05); /* Added scale effect on hover */
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease; /* Smooth shadow transition */
}

.flip-card:hover .flip-card-front,
.flip-card:hover .flip-card-back {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.flip-card-front {
    background-color: #fff;
    color: black;
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease; /* Smooth image transition */
}

.flip-card:hover .flip-card-front img {
    transform: scale(1.1); /* Slight zoom effect on hover */
}

.flip-card-back {
    background-color: #f8f9fa;
    color: #333;
    transform: rotateY(180deg);
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flip-card-back h3 {
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.flip-card-back p {
    margin: 3px 0;
    line-height: 1.3;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.flip-card:hover .flip-card-back h3,
.flip-card:hover .flip-card-back p {
    transform: translateY(0);
    opacity: 1;
}

/* Welcome Overlay Styles */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #0a192f;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeOut 1s ease forwards 2s;
}

.welcome-text {
    color: #64ffda;
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

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

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100vw;
    min-height: 100vh;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
    opacity: 1;
    background: #000;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .members-container {
    max-width: 100%;
    padding: 0 0.5rem;
  }
  .members-row {
    gap: 1.5rem;
  }
  .flip-card {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 900px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 10px;
  }
  .nav-right {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: flex-start;
  }
  .members-row {
    gap: 1rem;
  }
  .flip-card {
    width: 140px;
    height: 140px;
  }
  .section-title {
    font-size: 2rem;
  }
}
.chapter-description {
    margin-left: 1rem; 
}

.chapter-description ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem; 
    list-style-type: disc;
    color: #ddd; 
}

.chapter-description li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 4px;
  }
  .logo h2 {
    font-size: 1.2rem;
  }
  .nav-right {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-items: flex-start;
  }
  .members-row {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .flip-card {
    width: 90vw;
    max-width: 300px;
    height: 90vw;
    max-height: 300px;
  }
  .section-title {
    font-size: 1.3rem;
  }
}