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

body {
    background-color: #1a1a1a;
    color: white;
    overflow-x: hidden;
}

/* Navbar styles */

/* Anchor Tag */
a{
    text-decoration: none;
    color: white;
  }
  
  
  
  
  .home-img{
      width: 400px;
      height: 250px;
      margin-top: 30px;
  }
  
  .gdg-logo{
      width: 100px;
      height: 100px;
      margin-top: 40px;
      margin-bottom: 0;
  }
  

/* Hero section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    margin-bottom: -200px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: bold;
    line-height: 1.2;
}

.animation-cont{
    display: flex;
    justify-content: end;
    /* align-items: start;  */
    height: 30vh;
    transform: scale(1.4);
    position: relative;
    left: -320px;
    top: -275px;
}

/* Responsive styles for mobile devices */
@media (max-width: 768px) {
    .hero {
        height: 50vh;
        padding: 0 1rem;
        margin-bottom: -50px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .animation-cont {
        transform: scale(0.8);
        position: relative;
        left: 0;
        top: 0;
        justify-content: center;
        align-items: center;
        height: 30vh;
        margin-top: -50px;
        margin-bottom: 50px;
        width: 100%;
    }
    
    #animation-container {
        margin: 0 auto;
    }
    
    #fallback-text {
        text-align: center;
    }
    
    /* Project card adjustments for mobile */
    .projects-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 1rem;
        margin-top: 50px;
    }
    
    .project-card {
        width: 100%;
        max-width: 320px;
        margin: 0 auto 1.5rem auto;
    }
    
}

@media (max-width: 480px) {
    .hero {
        height: 40vh;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        text-align: center !important;
        margin-left: 0 !important;
    }
    
    .animation-cont {
        transform: scale(0.7);
        margin-top: 0;
    }
    
    .project-card {
        max-width: 280px;
    }
}

.hero span{
    font-size: 2rem;
}

/* project tile section */

.projects-grid {
    color: white;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem; /* Add gaps between cards */
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
    margin-top: 100px;
}

.project-card {
    position: relative;
    width: 390px;
    height: 400px;
    border: 1px solid rgb(255, 255, 255); /* Light border with transparency */
    border-radius: 20px;
    overflow: hidden; /* Ensures the ::before layer doesn't overflow */
    transition: 0.5s;
    transform-style: preserve-3d;
    margin-bottom: 2rem; /* Ensure consistent spacing */
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(112, 107, 107, 0.2); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Apply blur for glass effect */
    z-index: -1; /* Place the background behind the content */
    pointer-events: none; /* Ensure the layer doesn't interfere with clicks */
}


.project-card:hover {
    transform: perspective(1000px) rotateX(var(--rotateX)) rotateY(var(--rotateY));
    box-shadow: 25px 25px 35px rgba(116, 170, 170, 0.5);
}

#pro0 {
    background-image:url("../assets/project/card.png");
   }

#pro1 {
 background-image:url("../assets/project/card.png");
}

#pro2 {
    background-image:url("../assets/project/card.png");
   }

   #pro3 {
    background-image:url("../assets/project/card.png");
   }

   #pro4 {
    background-image:url("../assets/project/card.png");
   }

   #pro5 {
    background-image:url("../assets/project/card.png");
   }

   .content {
    padding: 40px;
    color: white;
}

.content h2 {
    font-size: 2.5em;
    margin-bottom: 5px;
    font-weight: 700;
}

.content h1 {
    margin-top: 50px;
    padding-bottom: 50px;
    font-size: 2.5em;
    font-weight: 700;
}

.project-logo {
    position: absolute;
    top: 60px;
    right: 90px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;

}

.icon {
    color: #4169e1;
    margin: 15px 0;
}

.scroll-icon {
    animation: scrollAnimation 2s infinite;
}

@keyframes scrollAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.description {
    font-size: 0.95em;
    line-height: 1.4;
    color: #ffffff;
    margin-bottom: 10px;
    margin-top: 40px;
}

.buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

.live {
    background: #4169e1;
    color: white;
}

.details {
    background: #4169e1;
    color: white;
    /* border: 1px solid #4169e1; */
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(204, 204, 204, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .project-card {
        height: 380px;
    }
    
    .content h2 {
        font-size: 2em;
    }
}

/* Optional: Add a smooth transition when scrolling */
html {
    scroll-behavior:smooth;
}


/* footer */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}


.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 150px;
    position: relative;
    margin-top: 100px;
}

.questions {
    position: relative;
    z-index: 2;
}

.questions h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}

.footer-social-icons a {
    width: 30px;
    height: 30px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.1);
}

.social-icons img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.email-text {
    color: #ccc;
    font-size: 0.8em;
}

.join-chapter {
    background-color: rgba(21, 23, 27, 0.1);
    padding: 15px 30px;
    border-radius: 20px;
    text-decoration: none;
    color: white;
    text-align: center;
    transition: background-color 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.join-chapter:hover {
    background-color: rgba(255, 255, 255, 0.2);
}


.cloud-image{
    position: absolute;
    height: 100%;
    width: 100%;
    background-image: url(../assets/footer/footer.png);
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -1;
    margin-left: -20px;
    margin-bottom: -180px;
}

.footer-sections {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    gap: 20px;
    flex-wrap: wrap;
}

.section {
    flex: 1;
    min-width: 200px;
}

.section h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    transition: width 0.3s ease;
}

.section:hover h2::after {
    width: 75px;
}

/* Section-specific colors */
.about h2::after { background-color: #ff4444; }
.events h2::after { background-color: #109554; }
.projects h2::after { background-color: #FBCC43; }
.teams h2::after { background-color: #4285F4; }

.section ul {
    list-style: none;
}

.section li {
    margin-bottom: 10px;
    color: #ccc;
    transition: color 0.3s ease, padding-left 0.3s ease;
    cursor: pointer;
}

.section li:hover {
    color: white;
    padding-left: 10px;
}

.developer {
    text-align: center;
    /* margin-top: 50px; */
    padding: 20px;
    color: #ccc;
}
