/* Import new fonts for an elegant, techy feel */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;700&family=Orbitron:wght@500;700&display=swap');

body {
    font-family: 'Exo 2', sans-serif;
    margin: 0;
    padding: 0;
    color: #e0e0e0f1;
    background-image: url('bg1.jpeg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    box-sizing: border-box;
    overflow-x: hidden;
}

header {
    background: rgba(18, 18, 30, 0.9);
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5em;
    font-weight: bold;
    color: #00eaff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.nav-links a:hover {
    color: #ff0077;
    transform: translateY(-2px);
}

/* Common Section Styling */
.hero-section,
.register-section,
.events-section,
.about-college-section,
.coordinators-section,
.connect-section,
.location-section {
    max-width: 900px;
    margin: 80px auto 20px;
    padding: 40px;
    background-color: rgba(18, 18, 30, 0.7);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.4);
    color: #e0e0e0;
    text-align: center;
    transition: box-shadow 0.5s ease-in-out;
}

.hero-section:hover,
.register-section:hover,
.events-section:hover,
.about-college-section:hover,
.coordinators-section:hover,
.connect-section:hover,
.location-section:hover {
    box-shadow: 0 0 30px rgba(0, 234, 255, 0.6), 0 0 10px rgba(255, 0, 119, 0.4);
}

/* Specific Page Section Styling */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #00eaff;
    margin-top: 0;
}

.register-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #ff0077;
}

.events-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid #00eaff;
}

.hero-content {
    max-width: 800px;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px #00eaff;
    border: 2px solid #00eaff;
}

.event-title, .register-main-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: #fff;
    margin-top: 10px;
    font-weight: 700;
    text-shadow: 0 0 5px #ff0077, 0 0 10px #ff0077;
}

.events-main-title {
    color: #ff0077;
    text-shadow: 0 0 5px #ff0077, 0 0 10px #ff0077, 0 0 15px #ff0077;
}

.subtitle, .institution-presents {
    font-size: 1.5rem;
    color: #e0e0e0;
}

.center-logo {
    margin: 20px 0;
}

.center-logo img {
    max-width: 400px; /* Increased from 200px */
    height: auto;
    filter: drop-shadow(0 0 10px #00eaff);
}

.register-btn, .register-button {
    display: inline-block;
    background-color: #ff0077;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
    border: 2px solid #ff0077;
    animation: pulse 2s infinite ease-in-out;
}

.register-btn:hover, .register-button:hover {
    background-color: #cc0055;
    transform: scale(1.05);
    box-shadow: 0 0 20px #ff0077;
}

/* This is the new rule to center the button */
.about-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.about-btn, .direction-btn {
    display: inline-block;
    background-color: #00eaff;
    color: #12121e;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: 10px;
}

.about-btn:hover, .direction-btn:hover {
    background-color: #00b3cc;
    transform: scale(1.05);
}

/* Animations */
.animated-section,
.animated-text {
    opacity: 0;
    transform: translateY(20px);
    animation: slide-in 1s ease-out forwards;
}

/* Delay for staggered animations */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1.0s; }
.delay-6 { animation-delay: 1.2s; }
.delay-7 { animation-delay: 1.4s; }
.delay-8 { animation-delay: 1.6s; }
.delay-9 { animation-delay: 1.8s; }
.delay-10 { animation-delay: 2.0s; }
.delay-11 { animation-delay: 2.2s; }

@keyframes slide-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 119, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 0, 119, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 119, 0); }
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
    border-bottom: 2px solid #fff;
    padding-bottom: 10px;
    text-shadow: 0 0 5px #00eaff;
}

.college-description {
    font-size: 1.1rem;
    line-height: 1.6;
}

.location-content,
.coordinators-content,
.connect-content {
    text-align: center;
}

.map-container {
    margin-top: 20px;
}

.location-map-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    border: 2px solid #ff0077;
    box-shadow: 0 0 10px #ff0077;
}

.coordinator-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-top: 25px;
    margin-bottom: 5px;
    color: #00eaff;
}

.red-bold {
    color: #ff0077;
    font-weight: bold;
}

.coordinator-name, .coordinator-details {
    margin: 5px 0;
    font-size: 1.1rem;
}

.connect-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #00eaff;
}

.connect-link {
    font-size: 1.1rem;
    color: #e0e0e0;
    text-decoration: none;
}

.connect-link a {
    color: #ff0077;
    text-decoration: none;
    transition: color 0.3s ease;
}

.connect-link a:hover {
    color: #cc0055;
}

/* Events Specific Styles */
.events-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.event-box {
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid #00eaff;
    border-radius: 10px;
    padding: 30px;
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.event-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #00eaff;
}

.event-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
    filter: brightness(0.9);
}

.event-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #00eaff;
    margin-bottom: 10px;
    text-align: center;
    word-wrap: break-word;
}

.view-details-btn,
.next-btn {
    background-color: #ff0077;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
    text-decoration: none;
    display: inline-block;
}

.view-details-btn:hover,
.next-btn:hover {
    background-color: #cc0055;
    transform: scale(1.05);
}

.next-page-container {
    margin-top: 20px;
    text-align: center;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: rgba(18, 18, 30, 0.9);
    margin: 5% auto;
    padding: 20px;
    border: 2px solid #00eaff;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 20px #00eaff;
    animation: slideInFromTop 0.5s ease-out;
}

.close-btn {
    color: #fff;
    float: right;
    font-size: 2.5rem;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: #ff0077;
    text-decoration: none;
}

.modal-inner-content {
    text-align: left;
    padding-top: 20px;
    color: #e0e0e0;
}

.modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: #00eaff;
    margin-bottom: 10px;
    text-align: center;
}

.modal-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: #ff0077;
    margin-top: 20px;
    border-bottom: 2px solid #ff0077;
    padding-bottom: 5px;
}

.modal-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 10px;
}

.rule-section {
    margin-bottom: 20px;
}

.rule-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: #fff;
}

.rule-section ul {
    list-style: none;
    padding: 0;
}

.rule-section li {
    margin-bottom: 5px;
    line-height: 1.5;
}

/* Modal Animation */
@keyframes slideInFromTop {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .event-title,
    .register-main-title,
    .events-main-title {
        font-size: 2.5rem;
    }

    .subtitle, .institution-presents,
    .register-description {
        font-size: 1rem;
    }

    .about-college-section,
    .location-section,
    .coordinators-section,
    .connect-section,
    .events-section {
        padding: 20px;
    }

    .events-container {
        flex-direction: column;
    }

    .event-box {
        width: 80%;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}
/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px; /* Adjust this value if your header is a different height */
        left: 0;
        background: rgba(18, 18, 30, 0.95);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 20px 0;
    }

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

    .nav-links li {
        text-align: center;
        margin: 10px 0;
    }

    .hamburger {
        display: block;
        background: none;
        border: none;
        color: #fff;
        font-size: 2rem;
        cursor: pointer;
    }

    .nav-links a {
        font-size: 1.2rem;
    }
}
/* Event Page Specific Styling */
.events-section {
    min-height: 100vh;
    padding: 80px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: rgba(18, 18, 30, 0.7);
    border: 2px solid #00eaff;
    border-radius: 10px;
    margin: 80px auto 20px;
    max-width: 900px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.events-main-title {
    font-size: 3rem;
    color: #ff0077;
    margin-bottom: 30px;
    font-weight: bold;
    text-shadow: 0 0 5px #ff0077, 0 0 10px #ff0077, 0 0 15px #ff0077;
}

.events-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.event-box {
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid #00eaff;
    border-radius: 10px;
    padding: 20px;
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.event-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #00eaff;
}

.event-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
    filter: brightness(0.9);
}

.event-title {
    font-size: 1.5rem;
    color: #00eaff;
    margin-bottom: 10px;
    text-align: center;
}

.view-details-btn {
    background-color: #ff0077;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.view-details-btn:hover {
    background-color: #cc0055;
}

.next-page-container {
    margin-top: 20px;
}

.next-btn {
    display: inline-block;
    background-color: #00eaff;
    color: #12121e;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.next-btn:hover {
    background-color: #00b3cc;
    transform: scale(1.05);
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: rgba(18, 18, 30, 0.9);
    margin: 5% auto;
    padding: 20px;
    border: 2px solid #00eaff;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 20px #00eaff;
    animation: slideInFromTop 0.5s ease-out;
}

.close-btn {
    color: #fff;
    float: right;
    font-size: 2.5rem;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: #ff0077;
    text-decoration: none;
}

.modal-inner-content {
    text-align: left;
    padding-top: 20px;
}

.modal-title {
    font-size: 2.5rem;
    color: #00eaff;
    margin-bottom: 10px;
    text-align: center;
}

.modal-subtitle {
    font-size: 1.8rem;
    color: #ff0077;
    margin-top: 20px;
    border-bottom: 2px solid #ff0077;
    padding-bottom: 5px;
}

.modal-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 10px;
}

.rule-section {
    margin-bottom: 20px;
}

.rule-section h3 {
    font-size: 1.2rem;
    color: #fff;
}

.rule-section ul {
    list-style: none;
    padding: 0;
}

.rule-section li {
    margin-bottom: 5px;
    line-height: 1.5;
}

/* Modal Animation */
@keyframes slideInFromTop {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .events-main-title {
        font-size: 2.5rem;
    }

    .events-container {
        flex-direction: column;
    }

    .event-box {
        width: 80%;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}