@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

* {
    font-family: 'Segoe UI', sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(206deg, #ffffff 0%, #fff4d9 70%, #fde8b2 100%);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
}

header {
    padding: 1rem 3rem;
    text-align: center;
    width: 100%;
    position: sticky;
    top: 0;
    left: 0;
    background-image: linear-gradient(to right, #fff7e5, #fffdf7);
    z-index: 900;
    display: flex;
    justify-content: center;
}

header .pc-nav {
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
}

header nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-direction: row;
    flex-wrap: nowrap;
}

header nav ul li {
    list-style: none;
}

header nav ul li a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    font-size: 1.2rem;
}

header img {
    width: auto;
    mix-blend-mode: multiply;
    height: 60px;
    margin-bottom: 10px;
}

.landing {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1400px;
    padding: 10px;
    flex-grow: 1;
    padding-top: 2rem;
    padding-bottom: 6rem;
}

.srishti-card {
    max-width: 410px;
    text-align: center;
}

.title {
    font-family: 'Pacifico', cursive;
    font-size: 48px;
    margin: 0;
    color: #000;
}

.tagline {
    margin-top: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
}

.tagline .culture {
    color: green;
}

.tagline .ignite {
    color: red;
}

.tagline .innovation {
    color: #2196f3; /* blue */
}

.event-details {
    margin: 26px 0;
    font-size: 1.3rem;
    color: #333;
}

.event-details .date,
.event-details .location {
    display: flex;
    align-items: center;
    font-family: 'Roboto', sans-serif;
    justify-content: flex-start;
    font-weight: 500;
    gap: 8px;
    margin: 12px 0;
}

.directions-btn {
    background: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 1.3rem;
    font-family: 'Roboto', sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 300;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-left: 10px;
    text-decoration: none;
    color: #333;
}

.directions-btn i {
    color: #2196f3;
}

.logo-banner {
    max-width: 500px;
    width: 100%;
    z-index: 0;
}

.logo-right {
    height: 100px;
    width: auto;
}

.register-section {
    margin-top: 40px;
    padding: 10px;
    background: #9ecb35;
    border: 1px solid #8b9277;
    border-radius: 30px;
    display: block;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

.register-btn {
    background-color: transparent;
    color: #fff;
    border: 3px dashed #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    border-radius: 20px;
    padding: 0px 20px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-direction: row;
    flex-wrap: nowrap;
}

.register-section:hover {
    background-color: #3aae4d;
    transition: 0.3s ease-in-out;
}

.register-btn .timer {
    color: #000;
    font-size: 1.5rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    flex-direction: row;
    flex-wrap: nowrap;
    position: relative;
    padding-left: 25px;
    border-left: 3px dashed #fff;
}

.register-btn .timer .label {
    font-size: 1rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    left: -15px;
}

.register-btn .timer .countdown {
    text-align: left;
    padding: 5px;
    padding-bottom: 7px;
}

.organised {
    margin-top: 30px;
}

.organised p {
    width: 100%;
    text-align: left;
    font-weight: 500;
    padding-left: 30px;
}

.partner-logos {
    margin-top: 10px;
    background-color: #fff;
    padding: 20px;
    border-radius: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-direction: row;
    flex-wrap: wrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.partner-logos img {
    height: 30px;
    width: auto;
}

.partners {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-bottom: 4rem;
}

.partners h2 {
    font-size: 2rem;
    color: #2f2f2f;
    text-align: center;
    width: 100%;
    margin: 3rem 0px;
    margin-bottom: 0rem;
}

.support-logos {
    margin-top: 10px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 1400px;
}

.support-logos img {
    height: 90px;
    width: auto;
}

footer {
    padding: 2.5rem 1.5rem;
    text-align: center;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
}

footer .whatsapp {
    background: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 0px 20px;
    padding-right: 0px;
    cursor: pointer;
    font-size: 1.3rem;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    color: #000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    height: 44px;
    display: flex;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
}

footer .whatsapp i {
    background-color: #3aae4d;
    color: #fff;
    border-radius: 50%;
    height: 44px;
    width: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 1.5rem;
    right: 2rem;
}

.hamburger {
    font-size: 2rem;
    font-weight: 500;
    cursor: pointer;
    display: none;
}

.sidenav {
    position: fixed;
    top: 0;
    left: -250px;
    height: 100%;
    width: 250px;
    max-width: 70%;
    background-color: #ffffff;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
    padding-top: 60px;
    transition: left 0.3s ease-in-out;
    z-index: 1001;
}

.sidenav a {
    display: block;
    padding: 16px 24px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.sidenav a:hover {
    background-color: #f7f7f7;
}

.sidenav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1000;
}

.about {
    width: 100%;
}

.wave-container {
    position: relative;
    background: transparent;
    color: #fff;
    text-align: center;
    padding-top: 60px;
}

.wave-top {
    position: absolute;
    top: -110px;
    left: 0;
    width: 100%;
    height: 170px;
    overflow: hidden;
    line-height: 0;
}

.wave-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100%;
}

.wave-container .content {
    background-color: #3ab050;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wave-container .content .max-container {
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    padding: 3rem;
    padding-bottom: 4rem;
}

.about h2 {
    font-size: 2rem;
    font-weight: 500;
    color: #fff;
    text-align: left;
}

.about h2 span {
    font-size: 3rem;
    font-weight: 300;
    display: block;
}

.about p {
    max-width: 600px;
    text-align: justify;
    font-size: 1.2rem;
    line-height: 2rem;
}

.about h3 {
    width: 100%;
    text-align: left;
    margin-top: 4rem;
    font-weight: 600;
    font-size: 1.6rem;
    text-transform: uppercase;
}

.about ul {
    text-align: left;
    padding-left: 20px;
    font-size: 1.2rem;
}

.timeline-wrapper {
    background: transparent;
    padding: 3rem;
    padding-bottom: 6rem;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.timeline-wrapper .kathakali-left {
    position: absolute;
    /* padding: 3rem; */
    top: 0;
    left: 0;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    height: 100%;
    transform: translateX(50%);
}

.timeline-wrapper h2 {
    font-size: 2rem;
    color: #0092f2;
    text-align: center;
    padding-bottom: 20px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #0092f2;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    opacity: 0;
    transition: all 0.6s ease-out;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    left: 0;
    transform: translateY(50px);
}

.timeline-item:nth-child(even) {
    left: 50%;
    transform: translateY(50px);
}

.timeline-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    border-left: 6px solid #0092f2;
    position: relative;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 6px solid #0092f2;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background-color: #0092f2;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd)::before {
    right: -10px;
}

.timeline-item:nth-child(even)::before {
    left: -10px;
}

.timeline-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #0092f2;
}

.timeline-phase {
    font-size: 0.95em;
    color: #555;
    margin-top: 4px;
}

.timeline-date {
    margin-top: 10px;
    color: #333;
}

.problem {
    width: 100%;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 4rem;
}

.problem h2 {
    font-size: 2rem;
    color: #3ab050;
    text-align: center;
    width: 100%;
    margin: 3rem 0px;
    margin-bottom: 0rem;
}

.problem .card-wrapper {
    max-width: 1400px;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}

.problem .card-wrapper .card {
    position: relative;
    text-align: center;
    transition: transform 0.3s ease;
    border-radius: 30px;
    width: calc(25% - 40px);
    min-width: 260px;
    min-height: 400px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
}

.problem .card-wrapper .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.problem .card-wrapper .card label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.problem .card-wrapper .card h3 {
    margin: 10px 0;
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.fg-1 {
    flex-grow: 1;
}

.problem .card-wrapper .card img {
    width: 100%;
    max-width: 120px;
    align-self: flex-end;
}

.problem .card-wrapper .card {
    perspective: 1000px;
    background: transparent !important;
    box-shadow: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.problem .card-wrapper .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2), inset 0 -4px 8px rgba(0, 0, 0, 0.2),
        inset 0 4px 8px rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    min-height: 400px;
}

.problem .card-wrapper .sdg3 .card-front {
    background: linear-gradient(to bottom right, #ff383f, #d62e35);
}
.problem .card-wrapper .sdg4 .card-front {
    background: linear-gradient(to bottom right, #7838fe, #5e2ac7);
}
.problem .card-wrapper .sdg9 .card-front {
    background: linear-gradient(to bottom right, #3ab050, #2e8c40);
}
.problem .card-wrapper .sdg11 .card-front {
    background: linear-gradient(to bottom right, #0092f2, #0078c9);
}

.problem .card-wrapper .card:hover .card-inner {
    transform: rotateY(180deg);
}

.problem .card-wrapper .card-inner p {
    padding: 4px 20px;
    border: 2px solid #fff;
    border-radius: 20px;
    margin-top: 10px;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    padding: 30px;
    border-radius: 30px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
}

.card-front {
    color: white;
}

.card-back {
    background: #2f2f2f;
    color: #fff;
    transform: rotateY(180deg);
    padding: 25px;
    overflow-y: auto;
}

.card-back ul {
    text-align: left;
    padding-left: 20px;
    margin: 0;
}

.card-back li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.partners {
    width: 100%;
    background-color: transparent;
}

.contact {
    width: 100%;
    background-color: #ffcc18;
    color: #2f2f2f;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 3rem;
}

.contact .logo {
    height: 120px;
    background-color: #000;
    border-radius: 30px;
    padding: 20px;
}

.contact a {
    color: #5e2ac7;
    text-decoration: none;
}

.contact p {
    max-width: 300px;
}

.register-now {
    border: 3px solid #fff;
    background-color: #3ab050;
    color: #fff;
    padding: 16px 30px;
    border-radius: 20px;
    font-size: 1.5rem;
    line-height: 1.5rem;
    text-decoration: none;
    margin-bottom: 3rem;
    transition: 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.register-now:hover {
    background-color: #2e8c40;
    transition: 0.3s ease-in-out;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 90%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 28px;
    font-weight: bold;
    color: #444;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #e74c3c;
}

/* Default state (front visible) */
.problem .card-wrapper .card .card-inner {
    transform: rotateY(0deg);
    transition: transform 0.6s ease;
}

/* Flipped state (back visible) */
.problem .card-wrapper .card.flipped .card-inner {
    transform: rotateY(180deg) !important;
}

@media (hover: none) {
    .problem .card-wrapper .card:hover .card-inner {
        transform: rotateY(0deg);
    }
}

@media (max-width: 780px) {
    header {
        padding: 1rem 2rem;
    }
    footer {
        padding: 1.5rem 1rem;
        background-image: linear-gradient(to top, #7d6982, transparent);
    }
    nav {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .logo-banner {
        max-width: 200px;
    }
    .tagline {
        font-size: 1.1rem;
    }
    .logo-right {
        height: 80px;
    }
    .event-details {
        padding: 0px 10px;
    }
    .register-btn {
        font-size: 1.6rem;
    }
    .wave-container .content .max-container {
        padding: 1.5rem;
    }
    .timeline::after {
        left: 20px;
        margin-left: -10px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(even) {
        left: 12px;
        padding-left: 25px;
    }
    .timeline-item::before {
        left: 14px;
    }
    .timeline-item .timeline-content {
        border-left: 6px solid #0092f2;
        border-right: none;
    }
    .timeline-item:nth-child(odd) {
        left: -12px;
    }
    .support-logos img {
        height: 40px;
    }
    .problem .card-wrapper {
        justify-content: center;
    }
    .problem .card-wrapper .card {
        width: 100%;
        max-width: 320px;
    }
    .contact {
        padding-bottom: 9rem;
    }
}
