/* Header styles */
header {
    width: 100%;
    text-align: center;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0 0px;
    animation: slideDown 0.8s ease-out;
}

header img {
    width: 60%;
    max-width: 1200px;
    height: 10%;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

header img:hover {
    transform: scale(1.02);
}

.logo {
    height: 150px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.conference-details {
    position: relative;
    text-align: center;
    padding: 10px 20px;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.conference-details h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8em;
    margin: 5px 0 8px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #003366;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1.2s ease-in;
    line-height: 1.3;
}

.conference-details p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1em;
    margin: 4px 0;
    font-weight: 500;
    color: #444;
    animation: fadeIn 1.5s ease-in;
}

/* Header content wrapper */
.header-content {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Header logo styles */
.left-image {
    width: 120px;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 0;
    float: none;
    align-self: flex-start;
}

.head-right-image {
    width: 140px;
    height: auto;
    max-height: 140px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 0;
    float: none;
    align-self: flex-start;
}

.centre-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 10px auto 5px;
    display: block;
}

.college-name {
    margin: 3px 0;
    font-weight: 400;
    font-size: 1em;
}

.dept {
    font-weight: 600;
    color: #003366;
    display: inline;
}

/* Navigation styles */
nav {
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    color: #fff;
    padding: 8px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 100%;
}

/* Add padding to body to prevent content from hiding under fixed nav */
body {
    padding-top: 48px;
    margin: 0;
}

.nav-menu {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
}

.nav-menu li {
    margin: 3px 10px;
    display: flex;
    align-items: center;
}

.nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85em;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.nav-menu li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ffcc00;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu li a:hover {
    color: #ffcc00;
    background: rgba(255, 204, 0, 0.1);
    transform: translateY(-2px);
}

.nav-menu li a:hover::before {
    width: 80%;
}

/* Button styling for Abstract submission */
.nav-menu li a.btn {
    background: linear-gradient(135deg, #ffcc00 0%, #ffd700 100%);
    color: #003366;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.4);
    border: 2px solid #ffcc00;
}

.nav-menu li a.btn::before {
    display: none;
}

.nav-menu li a.btn:hover {
    background: linear-gradient(135deg, #ffd700 0%, #ffcc00 100%);
    color: #003366;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 204, 0, 0.6);
}

/* Announcement banner */
.announcement {
    background: linear-gradient(90deg, #003366 0%, #004080 50%, #003366 100%);
    color: #fff;
    padding: 12px 0;
    text-align: center;
    font-weight: 600;
    font-size: 1.05em;
    animation: fadeIn 2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-top: 2px solid #ffcc00;
    border-bottom: 2px solid #ffcc00;
}

.announcement marquee {
    letter-spacing: 0.5px;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 51, 102, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: fixed;
    right: 15px;
    top: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle .material-icons {
    color: #fff;
    font-size: 28px;
    transition: all 0.3s ease;
    user-select: none;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 51, 102, 0.6);
}

.mobile-menu-toggle:hover .material-icons {
    transform: scale(1.1);
}

.mobile-menu-toggle.active {
    background: rgba(255, 204, 0, 0.2);
}

.mobile-menu-toggle.active .material-icons {
    color: #ffcc00;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Responsive styles for header */
@media (max-width: 1024px) {
    .conference-details {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .left-image,
    .head-right-image {
        align-self: center;
        width: 100px;
        max-height: 100px;
    }
    
    .conference-details h1 {
        font-size: 1.5em;
    }
    
    .conference-details p {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 0px;
    }
    
    nav {
        padding:  0px;
    }
    
    header {
        padding: 5px 0;
    }
    
    .conference-details {
        padding: 8px;
        gap: 10px;
    }
    
    .left-image,
    .head-right-image {
        width: 80px;
        max-height: 80px;
    }
    
    .conference-details h1 {
        font-size: 1.2em;
    }
    
    .conference-details p {
        font-size: 0.9em;
        margin: 2px 0;
    }
    
    .centre-image {
        max-width: 100%;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
        background: rgba(0, 51, 102, 0.9);
        border-radius: 4px;
        
    }
    
    .mobile-menu-toggle.active {
        background: rgba(0, 51, 102, 1);
        right: 290px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, #002244 0%, #003366 100%);
        flex-direction: column;
        align-items: flex-start;
        padding: 70px 20px 20px;
        transition: right 0.4s ease;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    /* Overlay when menu is open */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 280px;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    .nav-menu li {
        margin: 0;
        width: 100%;
    }
    
    .nav-menu li a {
        display: block;
        padding: 14px 16px;
        width: 100%;
        text-align: left;
        font-size: 1em;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }
    
    .nav-menu li a:hover {
        background: rgba(255, 204, 0, 0.1);
        padding-left: 24px;
        transform: none;
    }
    
    .nav-menu li a::before {
        display: none;
    }
    
    .nav-menu li a.btn {
        margin: 15px 0;
        text-align: center;
        border-bottom: none;
        padding: 12px 16px;
    }
    
    .nav-menu li a.btn:hover {
        padding-left: 16px;
    }
    
    .announcement {
        padding: 8px 0;
        font-size: 0.9em;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255,211,1,0.8), 
                     0 0 10px rgba(255,211,1,0.6), 
                     0 0 15px rgba(255,211,1,0.8), 
                     0 0 20px rgba(255,211,1,0.8);
    }
    50% {
        text-shadow: 0 0 20px rgba(255,211,1,1), 
                     0 0 30px rgba(255,211,1,0.9), 
                     0 0 40px rgba(255,211,1,1), 
                     0 0 50px rgba(255,211,1,1),
                     0 0 60px rgba(255,211,1,0.8);
    }
}