/* --- Global Styles and Theme Setup --- */
:root {
    /* Based on the PDF blue/cyan theme */
    --color-primary: #00FFFF; /* Cyan/Teal Glow Accent */
    --color-secondary: #007bff; /* Secondary Blue Accent */
    --color-dark-bg: #0b111e; /* Extremely Deep Dark Blue/Black */
    --color-card-bg: #151e30; /* Slightly Lighter Dark for Cards/Sections */
    --color-text-light: #ffffff;
    --color-text-dim: #a0a0a0;
    --navbar-height: 70px;
    --card-width-members: 300px; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-dark-bg);
    color: var(--color-text-light);
    overflow-x: hidden; 
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* --- Navigation Bar --- */

/* Mobile Menu Button Fix*/

.menu-toggle {
    display: none; 
    background: transparent;
    border: none;
    color: var(--color-primary);
    font-size: 1.8em;
    cursor: pointer;
    z-index: 1001; 
    padding: 10px;
    margin-right: -10px;
}

.nav-links-container {
    transition: transform 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .navbar {
        position: fixed; 
        height: var(--navbar-height);
        flex-direction: row;
        justify-content: space-between;
        padding: 0 20px;
    }
    .logo-container {
        z-index: 1001; 
    }

    .menu-toggle {
        display: block; 
    }

    .nav-links-container {
        position: absolute;
        top: var(--navbar-height); 
        left: 0;
        width: 100%;
        height: calc(50vh - var(--navbar-height));
        overflow-y: auto;
        background-color: var(--color-dark-bg);
        transform: translateX(100%); 
        transition: transform 0.4s ease-in-out;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        overflow-y: auto; 
        padding: 20px 0;
        z-index: 999;
    }

    .nav-links-container.open {
        transform: translateX(0);
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
    }

    .nav-menu li {
        margin: 20px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a {
        font-size: 1.4em;
        padding: 10px 0;
        display: block;
    }
    .nav-menu a::after {
        left: 50%;
        transform: translateX(-50%);
        bottom: -10px;
    }
    .mu-logo {
        max-width: 70%;
        max-height: auto;
    }
}
/* Complete */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--navbar-height);
    background-color: rgba(11, 17, 30, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.logo-container {
    display: flex;
    align-items: center;
}
.mu-logo {
    /*width: 50px; /* Adjusted size */
    height: 70px;
    object-fit: contain;
    margin-right: 0;
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: var(--color-text-light);
    font-weight: 600;
    font-size: 0.95em;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}
@media (max-width: 768px) {
    .nav-links-container.open .nav-menu a.active::after {
        width: 0;
    }
    
    .hero-section .main-titles .idea-main-logo1 {
        max-width: 50%;
        max-height: auto;
    }
    .hero-section .main-titles .idea-main-logo {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
}

/* --- General Section Styles and Grid --- */
.main-content {
    padding-top: var(--navbar-height);
}

.section {
    padding: 80px 5% 60px;
    scroll-margin-top: 100px; 
}

.section h2 {
    color: var(--color-primary);
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 900;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color-secondary);
    margin: 15px auto 0;
    border-radius: 2px;
}
.section-subtext {
    text-align: center;
    color: var(--color-text-dim);
    margin-top: 30px;
    font-style: italic;
    font-size: 1.1em;
}

.grid-container {
    display: grid;
    gap: 30px;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

/* --- HOME PAGE - HERO SECTION --- */
.hero-section {
    position: relative;
    height: calc(100vh - var(--navbar-height));
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; 
    
    background-image: url('../images/Background.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    border-bottom: 3px solid var(--color-secondary);
}
.hero-pdf-style::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); 
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 5;
    max-width: 900px;
}
/* New Logo style */
.idea-main-logo1 {
     max-width: 100%;
    max-height: 100px; 
    width: auto;
    object-fit: contain;
    margin: 0 auto 1px;
    display: block;
}
.idea-main-logo {
    max-width: 100%;
    max-height: 500px; 
    width: auto;
    object-fit: contain;
    margin: 0 auto 5px;
    display: block;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.8));
}
.sub-idea-title-banner {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--color-primary);
    margin: 10px 0 20px;
}
.tagline-full {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 5px;
    color: var(--color-text-dim);
    margin-bottom: 30px;
}
.date-time-pdf {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 40px;
}
.date-time-pdf i {
    margin-right: 10px;
    color: var(--color-primary);
}
.register-btn {
    background-color: var(--color-primary);
    color: var(--color-dark-bg);
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    margin-bottom: 0; 
}
.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--color-primary);
}


/* --- ABOUT IDEA SECTION & PRICE/AWARDS SECTIONS --- */
.about-idea-section {
    text-align: center;
    background-color: var(--color-card-bg);
}
.vision-card {
    padding: 40px;
    border: none;
    background: var(--color-dark-bg);
    border-radius: 15px;
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.2), 0 0 20px rgba(0, 0, 0, 0.5);
    transition: none;
    text-align: justify;
}
.stats-grid {
    display: grid;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
/* Grid for the 4 main stats in About section */
.four-col-grid {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
}
.stat-item {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
}
.stat-item i {
    font-size: 2em;
    color: var(--color-primary);
    margin-bottom: 10px;
}
.count-number {
    font-size: 3em;
    font-weight: 900;
    color: var(--color-text-light);
    line-height: 1;
    margin-bottom: 5px;
}
.stat-item p {
    color: var(--color-text-dim);
    font-weight: 600;
    letter-spacing: 1px;
}

/* Price & Awards Section Specific Styles */
.price-awards-section {
    background-color: var(--color-dark-bg);
}
/* Grid for Price and Awards (2 items) */
.two-col-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    max-width: 800px;
}
.prize-card, .awards-card, .categories-card {
    background: var(--color-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    border-color: var(--color-primary);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.prize-text {
    font-size: 3em; 
    font-weight: 900;
    color: var(--color-secondary);
    line-height: 1.2;
    margin-bottom: 5px;
}

/* --- EVENTS SECTION - Fixed 3x3 Grid --- */
/* --- Event Grid and Card Styles (Integrated with Flip CSS) --- */

.events-grid { 
    /* Maintain your existing grid layout */
    grid-template-columns: repeat(3, minmax(280px, 1fr)); 
    gap: 30px;
}

/* 1. Container for the flip effect (Grid item) */
.event-card-container {
    width: 100%; 
    height: 350px; /* ⭐ CRITICAL: Fixed height is required for the 3D flip to work properly ⭐ */
    perspective: 1000px; /* Establishes the 3D space */
}

/* 2. The Flipper element handles the rotation */
.flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d; /* Key to 3D effect */
    transition: transform 0.8s; /* Animation duration */
}

/* 3. Base styles for Front and Back faces, inheriting from your original classes */
.card.vertical-event-card {
    /* Base styles for the content within the card */
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 20px;
    
    /* Crucial positioning for 3D */
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Crucial 3D properties: Hide the back face when element is rotated away */
    -webkit-backface-visibility: hidden; 
    backface-visibility: hidden; 
    
    /* Center content */
    justify-content: center;
    align-items: center;
    
    /* Ensure existing styling for the card is still present (e.g., background, box-shadow) */
}

/* Existing styles applied to both faces */
.vertical-event-card .card-icon img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin: 0 auto 15px;
    display: block;
}

.vertical-event-card h3 {
    font-size: 1.4em;
    margin-bottom: 5px;
    color: var(--color-primary);
}

.event-time {
    color: var(--color-text-dim);
    font-style: italic;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.vertical-event-card p {
    flex-grow: 1; /* Allows flex to push content up/down */
    margin-bottom: 0; 
}

/* 4. Style the back face */
.card.vertical-event-card.back {
    background: #151e30 ; /* Use a color that contrasts with the front */
    color: rgb(255, 255, 255); /* Text color for the back */
    text-align: left;
    /* Initially rotate the back face 180deg so it starts hidden */
    transform: rotateY(180deg);
}

.card.vertical-event-card.back h4 {
    color: #00ffff;  /* Title color for the back */
    margin-bottom: 10px;
    font-size: 25pt;
}

.card.vertical-event-card.back p {
    font-size: 1.2em;
    margin-bottom: 20px;
    flex-grow: 0; /* Description text shouldn't stretch */
}


/* 5. Trigger the flip on hover */
.event-card-container:hover .flipper {
    transform: rotateY(180deg);
}

/* 6. Mobile Fix (Stacking on small screens) */
@media (max-width: 768px) {
    /* Make the grid a single column */
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Reset 3D effects on the container */
    .event-card-container {
        perspective: none; 
        height: auto; /* Allow dynamic height on mobile */
    }
    .flipper {
        transform-style: flat;
        transition: none;
        transform: none !important;
    }
    
    /* Show both front and back stacked on mobile by resetting 3D positioning */
    .card.vertical-event-card {
        position: relative;
        transform: none;
        backface-visibility: visible;
        margin-bottom: 0;
    }
    
    /* The back face is just stacked below the front face on mobile */
    .card.vertical-event-card.back {
        transform: none;
        background: var(--color-primary); 
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        margin-top: 15px; /* Add space between the stacked front and back */
        color: var(--color-dark-bg); /* Ensure text is readable on the back color */
    }
    .card.vertical-event-card.front {
        margin-bottom: 0; 
    }
}
/* --- REGISTRATION SECTION --- */
.registration-section {
    background-color: var(--color-card-bg);
}
.registration-card-wrapper {
    grid-template-columns: 1fr;
    max-width: 600px;
}
.registration-qr-card {
    text-align: center;
    padding: 40px;
    border-color: var(--color-primary);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
}
.registration-qr-card h3 {
    font-size: 1.8em;
    color: var(--color-secondary);
}
.qr-code-image {
    width: 200px;
    height: 200px;
    margin: 30px auto;
    display: block;
    border: 5px solid var(--color-primary);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    border-radius: 5px;
    object-fit: cover;
}
.registration-qr-card p {
    margin-bottom: 30px;
    color: var(--color-text-dim);
}
.register-link-btn {
    display: block;
    width: 80%;
    max-width: 350px;
    margin: 30px auto 0;
    background-color: var(--color-primary);
    color: var(--color-dark-bg);
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}
.register-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--color-primary);
}

/* --- CAROUSEL STYLING (EXPERTS/LEADERS/TEAM) --- */
.speaker-carousel-section, .leader-carousel-section, .organizing-team-carousel-section .Exhibitor-carousel-section {
    background-color: var(--color-dark-bg);
}
.carousel-container {
    position: relative;
    overflow: hidden; 
    padding: 50px 0;
    max-width: 100vw; 
}
.carousel-track {
    display: flex;
    /* FIX: Use cubic-bezier for a more fluid, car-like movement */
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    padding: 0 0vw; 
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 255, 255, 0.3);
    color: var(--color-dark-bg);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease, transform 0.3s ease;
}
.carousel-btn:hover {
    background: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}
.speaker-prev, .leader-prev, .team-prev, .Exhibitor-prev { left: 20px; }
.speaker-next, .leader-next, .team-next, .Exhibitor-next { right: 20px; }


/* --- CAROUSEL VISUAL FIX: Side Cards vs Center Card --- */

/* Default style for all cards (which acts as the side card style) */
.speaker-card-item, .member-card, .Exhibitor-card {
    flex-shrink: 0;
    width: 300px;
    margin: 0 15px; 
    text-align: center;
    border-radius: 15px;
    /* FIX: Set default size/opacity (side card state) */
    opacity: 0.8; 
    transform: scale(0.85); 
    transition: transform 0.5s ease, opacity 0.5s ease; /* Smooth transition when changing state */
}
/* Style for the centered, active card */
.speaker-card-item[data-center="true"],
.Exhibitor-card[data-center="true"],
.member-card[data-center="true"] {
    opacity: 1.0; /* Full opacity for center card */
    transform: scale(1.0); /* Full size for center card */
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.4);
    border-color: var(--color-primary);
}


/* Expert Card Specifics (no change needed here, inherits from above) */
.speaker-card-item img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 4px solid var(--color-secondary);
}
.speaker-card-item h3 {
    color: var(--color-text-light);
    margin-bottom: 5px;
}
.speaker-card-item .speaker-title {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 10px;
}
.speaker-card-item .speaker-topic {
    color: var(--color-text-dim);
    font-size: 0.85em;
    margin-bottom: 15px;
}
.speaker-card-item a {
    color: var(--color-primary);
    font-size: 1em;
}

/* Leader/Team Card Specifics (no change needed here, inherits from above) */
.member-card {
    padding: 40px 20px;
}
.member-card img {
    width: 130px; 
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 4px solid var(--color-primary);
}
.member-card .member-title {
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 10px;
}
.member-social a {
    font-size: 1.5em;
    color: var(--color-text-dim);
    transition: color 0.3s;
}
.member-social a:hover {
    color: var(--color-primary);
}


/* --- 7. SUPPORTED BY SECTION - 3 Columns Grid --- */
.supported-by-grid {
    grid-template-columns: repeat(3, minmax(200px, 1fr)); /* 3 columns fix */
    max-width: 1200px;
}
.partner-card {
    text-align: center;
    padding: 20px;
    background-color: var(--color-dark-bg);
    border: 1px solid rgba(0, 123, 255, 0.2);
}
.partner-card img {
    width: 100%;
    max-height: 80px;
    object-fit: contain;
    /*filter: grayscale(100%);*/
    transition: filter 0.3s;
}
.partner-card:hover img {
    filter: grayscale(0%);
}

/* --- 8. SPONSORS SECTION - 2 Columns Grid and Uniformity --- */
.sponsors-grid.two-col-sponsors-grid {
    grid-template-columns: repeat(2, minmax(300px, 1fr)); /* 2 columns fix */
    gap: 30px;
    padding: 40px 0;
}
.uniform-sponsor-card {
    /* Uniform card styling */
    text-align: center;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 300px;
    background-color: var(--color-card-bg);
    border: 3px solid var(--color-secondary); 
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.4);
}
.uniform-sponsor-card img {
    width: 90%;
    max-width: 400px;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: grayscale(50%);
    transition: filter 0.3s ease;
}
.uniform-sponsor-card h3 {
    font-size: 1.8em;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--color-primary); 
}
.uniform-sponsor-card p {
    font-size: 1.1em;
    color: var(--color-text-dim);
    margin-bottom: 25px;
    flex-grow: 1; 
}
.uniform-sponsor-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
    transform: translateY(-5px) scale(1.01);
}
.uniform-sponsor-card:hover img {
    filter: grayscale(0%);
}
.view-details-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--color-primary);
    color: var(--color-dark-bg);
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.view-details-btn:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
}

/* --- 11. DETAILS & CONTACTS FIX --- */
/* Ensure grid layout is fine */
.details-grid-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
/* Social Icon Fix for Images - Ensure styles are robust for the fixed image links */
.social-links-footer {
    display: flex;
    justify-content: left;
    gap: 20px;
    margin-top: 20px;
}
.footer-social-btn {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    color: var(--color-dark-bg);
    transition: transform 0.2s ease;
}
.social-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    filter: invert(1); /* Ensures white icon on colored button */
}
.whatsapp-btn {
    background-color: #25D366; 
}
.telegram-btn {
    background-color: #0088CC; 
}
.footer-social-btn:hover {
    transform: translateY(-2px);
}


/* --- RESPONSIVENESS --- */
@media (max-width: 1000px) {
    .events-grid { 
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    .sponsors-grid.two-col-sponsors-grid {
        grid-template-columns: 1fr; /* Stack sponsors on small screens */
    }
    .supported-by-grid {
         grid-template-columns: repeat(2, minmax(150px, 1fr)); /* 2 columns on small screen */
    }
}
@media (max-width: 768px) {
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }
    .hero-section {
        height: 70vh;
        min-height: 500px;
    }
    .idea-main-logo {
        max-height: 150px;
    }
    .sub-idea-title-banner {
        font-size: 1.2rem;
    }
    .tagline-full {
        letter-spacing: 2px;
    }
    .four-col-grid, .two-col-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); 
    }
    /* Hide buttons on mobile where a simple scroll is expected */
    .carousel-btn {
        display: none;
    }
    /* Disable the visual center effect on mobile for better touch scrolling */
    .speaker-card-item, .member-card {
        opacity: 1.0;
        transform: scale(1.0);
    }
    .carousel-track {
        /* Remove the padding that tries to center the first card */
        padding: 0 20px; 
        /* Allow natural overflow scroll */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory; 
        transition: none; /* Disable JS transition for better touch scroll */
    }
    .speaker-card-item {
        scroll-snap-align: center;
    }
}
/* Certificate Modal Styles */
.certificate-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(11, 17, 30, 0.95);
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.3s ease-out;
}

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

.certificate-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: linear-gradient(135deg, var(--color-card-bg) 0%, #1a2540 100%);
    margin: auto;
    padding: 50px 40px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.4s ease-out;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 255, 255, 0.08);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-100px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 25px;
    color: var(--color-text-dim);
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.1);
}

.close-modal:hover,
.close-modal:focus {
    color: var(--color-primary);
    background: rgba(0, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.modal-header-section {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.15);
}

.modal-logo {
    height: 70px;
    width: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.modal-content h2 {
    color: var(--color-text-light);
    margin-bottom: 15px;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-content h2 i {
    color: var(--color-primary);
    margin-right: 15px;
    font-size: 2.2rem;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.modal-subtitle {
    color: var(--color-text-dim);
    margin-bottom: 0;
    font-size: 1.05rem;
    text-align: center;
    line-height: 1.6;
    font-weight: 400;
}

.modal-search-box {
    display: flex;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 30px;
    background: rgba(0, 255, 255, 0.03);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.modal-search-box .input-group {
    flex: 1;
    position: relative;
}

.modal-search-box .search-input {
    width: 100%;
    padding: 18px 20px 18px 60px;
    font-size: 1.1rem;
    background: var(--color-dark-bg);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    color: var(--color-text-light);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-search-box .search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.1);
    transform: translateY(-1px);
}

.modal-search-box .search-input::placeholder {
    color: var(--color-text-dim);
    opacity: 0.6;
}

.modal-search-box .input-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    font-size: 1.4rem;
    pointer-events: none;
}

.modal-search-box .search-btn {
    padding: 18px 40px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #00d4d4 100%);
    color: var(--color-dark-bg);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 3px 10px rgba(0, 255, 255, 0.2);
}

.modal-search-box .search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.modal-search-box .search-btn:active {
    transform: translateY(-1px);
}

.modal-search-box .search-btn:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.5;
}

.modal-search-box .search-btn i {
    margin-right: 10px;
}

.error-message {
    display: none;
    margin-top: 20px;
    padding: 15px 20px;
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid rgba(255, 0, 0, 0.4);
    border-radius: 10px;
    color: #ff6b6b;
    text-align: center;
    font-weight: 600;
    animation: shake 0.5s;
}

.error-message.show {
    display: block;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

#modalProjectDetails.project-card {
    background: var(--color-card-bg);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
    animation: slideUp 0.5s ease-out;
}

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

#modalProjectDetails .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.2);
}

#modalProjectDetails .card-header h3 {
    font-size: 1.6rem;
    color: var(--color-text-light);
    font-weight: 600;
}

#modalProjectDetails .card-header h3 i {
    color: var(--color-primary);
    margin-right: 12px;
}

#modalProjectDetails .badge {
    padding: 8px 20px;
    background: var(--color-primary);
    color: var(--color-dark-bg);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#modalProjectDetails .details-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#modalProjectDetails .detail-row {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    padding: 18px;
    background: rgba(0, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
}

#modalProjectDetails .detail-row:hover {
    border-color: var(--color-primary);
    background: rgba(0, 255, 255, 0.08);
    transform: translateX(5px);
}

#modalProjectDetails .detail-label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-dim);
    font-weight: 600;
    font-size: 0.95rem;
}

#modalProjectDetails .detail-label i {
    color: var(--color-primary);
    font-size: 1.2rem;
    width: 25px;
}

#modalProjectDetails .detail-value {
    color: var(--color-text-light);
    font-weight: 500;
    word-break: break-word;
    display: flex;
    align-items: center;
}

#modalProjectDetails .editable-row {
    background: rgba(0, 255, 255, 0.08);
    border: 2px solid var(--color-primary);
}

#modalProjectDetails .detail-value.editable {
    display: flex;
    gap: 15px;
}

#modalProjectDetails .editable-input {
    flex: 1;
    padding: 12px 15px;
    font-size: 1rem;
    background: var(--color-dark-bg);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--color-text-light);
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s;
}

#modalProjectDetails .editable-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.15);
}

#modalProjectDetails .update-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

#modalProjectDetails .update-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
}

#modalProjectDetails .update-btn i {
    margin-right: 8px;
}

#modalProjectDetails .update-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    display: none;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

#modalProjectDetails .update-message.success {
    background: rgba(34, 197, 94, 0.15);
    border: 2px solid #22c55e;
    color: #4ade80;
    display: block;
}

#modalProjectDetails .update-message.error {
    background: rgba(255, 0, 0, 0.15);
    border: 2px solid rgba(255, 0, 0, 0.4);
    color: #ff6b6b;
    display: block;
}

#modalProjectDetails .certificate-actions {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid rgba(0, 255, 255, 0.2);
    text-align: center;
}

#modalProjectDetails .certificate-btn {
    padding: 18px 50px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #00d4d4 100%);
    color: var(--color-dark-bg);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.25);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

#modalProjectDetails .certificate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.35);
}

#modalProjectDetails .certificate-btn:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
    opacity: 0.5;
}

#modalProjectDetails .certificate-btn i {
    margin-right: 10px;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 35px 25px;
        margin: 10px;
    }
    
    .modal-logo {
        height: 50px;
        margin-bottom: 15px;
    }
    
    .modal-header-section {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }
    
    .modal-content h2 {
        font-size: 1.6rem;
    }
    
    .modal-subtitle {
        font-size: 0.95rem;
    }
    .modal-search-box {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    .modal-search-box .search-btn {
        width: 100%;
        padding: 16px 30px;
    }
    .modal-search-box .search-input {
        font-size: 1rem;
        padding: 16px 20px 16px 55px;
    }
    .modal-search-box .input-icon {
        font-size: 1.2rem;
        left: 18px;
    }
    #modalProjectDetails .detail-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    #modalProjectDetails .detail-value.editable {
        flex-direction: column;
    }
    #modalProjectDetails .update-btn {
        width: 100%;
    }
    #modalProjectDetails .certificate-btn {
        width: 100%;
        font-size: 1rem;
        padding: 16px 30px;
    }
    .close-modal {
        font-size: 28px;
        right: 15px;
        top: 15px;
        width: 35px;
        height: 35px;
    }
}
