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

body {
    font-family: "Poppins-Semibold", "Poppins", sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 2rem; */
}

/* SVG Container */
.background-svg {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Float Animations */
@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-2px) scale(1.05);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes floatAlt {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(2px) scale(0.95);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

.float1 {
    animation: float 6s ease-in-out infinite;
}

.float2 {
    animation: floatAlt 8s ease-in-out infinite;
}

.float3 {
    animation: float 5s ease-in-out infinite;
}

.float4 {
    animation: floatAlt 7s ease-in-out infinite;
}


/* Navbar */
.navbar {
    /* background-color: rgba(255, 255, 255, 0.8); */
    padding: 2rem 0;
    color: white;
    /* position: fixed; */
    width: 100%;
    height: 100px;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #F111B0;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 30;
}

.menu-toggle .bar {
    height: 4px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: inline-block;
}

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

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

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

@media (max-width: 1230px) {
    .navbar .container {
        padding: 0 2rem;
        /* position: relative; */
        /* flex-direction: column; */
        /* align-items: flex-start; */
    }

    .hero .container h2 {
        font-size: 3rem;
        text-align: center;

    }

}

/* Responsive Nav */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        /* background-color: #6502D6; */
        padding: 1rem 0;
        position: absolute;
        top: 70px;
        left: 0;
        z-index: 10;
        transition: all 0.3s ease;
    }

    .nav-links.show {
        display: flex;
    }

    .navbar .container {
        padding: 0 2rem;
        /* position: relative; */
        /* flex-direction: column; */
        /* align-items: flex-start; */
    }

    .hero span {
        width: 80vw !important;

        img {
            width: 80vw !important;
        }

    }

    .hero .container h2 {
        font-size: 2.6rem;
        text-align: center;
    }
}

@media (max-width: 687px) {



    .hero h2 {
        width: 80vw !important;
    }
}


/* @media (max-width: 413px) {

    .hero .container h2 {
        font-size: 2.6rem;
        text-align: center;

    }

} */

/* Hero Section */
.hero {
    /* background: linear-gradient(to right, #6502D6, #AB09C3); */
    color: #000000;
    text-align: center;
    padding: 2rem 2rem;
    position: relative;
}

.hero h2 {
    position: relative;
    overflow: hidden;
    width: 45vw;
    text-align: left;
    font-size: 500%;
    margin-bottom: 1rem;
    align-items: center;
    display: flex;
}

.hero span {
    width: 45vw;
    position: relative;
    overflow: hidden;

    img {
        width: 40vw;
        height: auto;
    }

}

.hero .container {
    padding: 2rem 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.btn-primary {
    background-color: #F111B0;
    color: white;
    padding: 0.75rem 2rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: #1C8DF6;
    transform: translateY(-2px);
}

/* Features Section */
.features {
    /* background-color: #f9f9f9; */
    padding: 2rem 2rem;
    text-align: center;
}

.features .container {
    display: grid;
    column-gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.features .feature {
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    position: relative;
}

.features h3 {
    color: #6502D6;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    /* background-color: rgba(28, 141, 246, 0.8); */
    /* color: white; */
    /* text-align: right; */
    padding: 2rem 0;
    font-size: 0.9rem;
    font-weight: 600;

    /* .container {

        .company {
            
        }
        .copy {
            text-align: right;
        }
    } */
}

.footer .container {
    /* text-align: right; */
    /* padding: 10px; */
    /* grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) */
    width: 90vw;
    text-align: center;

    span {
        padding: 2rem 2rem 2rem 0rem;


        a {
            color: rgb(28, 141, 246);;
            text-decoration: none;
        }

        a:hover {
            color: #6502D6;
            text-decoration: underline;
        }
    }

    div {
        p {
            padding: 1rem;
        }
    }
}

/* .footer .company{
    width: 45vw;
}

.footer .copy{
    text-align: right;
    width: 45vw;
} */

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.fade-in-2 {
    opacity: 0;
    animation: fadeInUp 2s ease both;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

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

    /* .navbar .container {
      flex-direction: column;
      align-items: flex-start;
    }
    .nav-links {
      margin-top: 1rem;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    } */
    .hero h2 {
        font-size: 3rem;
    }

    .features .feature {
        margin-bottom: 2rem;
    }
}

/* Events Section */
.events {
    padding: 4rem 2rem;
    /* background: #fff; */
    text-align: center;
}

.events h2 {
    /* color: #6502D6; */
    margin-bottom: 2rem;
    font-size: 2rem;
}

.filters {
    margin-bottom: 2rem;
}

.filter-btn {
    background: none;
    border: 2px solid #1C8DF6;
    color: #1C8DF6;
    padding: 0.5rem 1.25rem;
    margin: 0 0.5rem;
    cursor: pointer;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #1C8DF6;
    color: white;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.event-card {
    border: 2px solid #AB09C3;
    padding: 1.5rem;
    border-radius: 1rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fefefe;
    overflow: hidden;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(101, 2, 214, 0.1);
}

.toggle-details {
    margin-top: 1rem;
    background-color: #F111B0;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.toggle-details:hover {
    background-color: #6502D6;
}

.event-details {
    display: none;
    margin-top: 1rem;
    color: #333;
    animation: fadeInUp 0.4s ease forwards;
}

/* AI addition */

.project-pile {
    position: relative;
    width: 100%;
    height: 800px;
    /* Increased to fit larger cards and rows */
    /* margin-top: 100px; */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 100px;
    /* perspective: 1000px; */
    overflow: hidden;
}

.card {
    position: absolute;
    width: 400px;
    background: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    padding: 10px;
    text-align: center;
    transform: translateY(-300px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
    cursor: pointer;
    border-radius: 10px;
    /* z-index: 100; */
}

.card.focused {
    /* position: fixed !important; */
    /* bottom: 75vh; */
    bottom: 25%;
    z-index: 9999 !important;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.4);
    cursor: default;
    pointer-events: auto;
}

.card.focused {
    transform: scale(2) !important;
    transition: transform 0.4s ease, z-index 0.2s ease;

    p {
        font-size: 10px;
    }

    /* h3 {
        font-size: 18px;
        transition: font-size 0.3s ease;
    } */
}


.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 5px;
    transition: height 0.3s ease;
}

.card h3 {
    margin: 10px 0 5px;
    font-size: 16px;
}

.card p {
    font-size: 14px;
    color: #555;
}

/* .card:hover {
    transform: scale(1.05) rotate(0deg) translate(0, 0);
    z-index: 10 !important;
} */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Responsive layout for mobile */
@media (max-width: 768px) {
    .project-pile {
        height: auto;
        flex-direction: column;
        align-items: center;
    }

    .card {
        position: static;
        opacity: 0;
        /* start hidden */
        transform: translateY(50px);
        transition: none;
        margin: 20px 0;
        width: 90%;
        max-width: 400px;
        z-index: 1 !important;
    }

    .card.visible {
        animation: fadeInUp 0.6s ease forwards;
    }

    .card:hover {
        transform: scale(1.03);
    }
}

@media (min-width: 769px) and (max-width: 1300px) {
    .card {
        width: 300px;
    }

    .card img {
        height: 165px;
    }
}