/* Global Styles */
:root {
    --primary-color: #002e5b;
    /* Dark Navy Blue */
    --secondary-color: #ff9f1c;
    /* Bright Orange */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease-in-out;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.section-title .underline {
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto;
    border-radius: 2px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: center;
    /* Center align items */
    gap: 50px;
    /* Space between logo and links */
    align-items: center;
    height: 100px;
    /* Increased height */
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    transition: var(--transition);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--secondary-color);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px;
    transition: var(--transition);
}

/* Hamburger Animation */
.toggle .line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line:nth-child(2) {
    opacity: 0;
}

.toggle .line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 46, 91, 0.85), rgba(0, 46, 91, 0.65)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop');
    /* Innovation/Tech Background */
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 100px;
    /* Navbar height */
    position: relative;
}

/* Logo Styling */
.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo {
    flex-shrink: 0;
}

.nav-logo {
    height: 85px;
    width: auto;
    display: block;
}

.nav-logo-mobile {
    display: none;
    height: 70px;
    width: auto;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    white-space: nowrap;
}

.hero-content {
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.logos-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.hero-template-img {
    height: 100px;
    /* Adjusted size */
    width: auto;
    border-radius: 5px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Enhanced Highlight Badge with Rotating Glow Animation */
.aicte-badge {
    position: relative;
    background: transparent;
    color: #ff9f1c;
    /* Orange Text */
    font-weight: 800;
    font-size: 1.5rem;
    padding: 12px 35px;
    border-radius: 50px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 0 20px rgba(0, 46, 91, 0.5);
}

/* Rotating Gradient Border */
.aicte-badge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300%;
    padding-bottom: 300%;
    height: 0;
    background: conic-gradient(from 0deg, transparent 0deg, transparent 270deg, #ff9f1c 360deg);
    animation: rotate-border 4s linear infinite;
    z-index: -2;
    border-radius: 50px;
}


/* Inner Background */
.aicte-badge::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: #002e5b;
    /* Blue Background */
    border-radius: 50px;
    z-index: -1;
}

@keyframes rotate-border {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


.hero h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.hero .date {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    background: rgba(255, 159, 28, 0.9);
    display: inline-block;
    padding: 10px 30px;
    border-radius: 50px;
    color: var(--primary-color);
}

.hero .organizer,
.hero .college,
.hero .sub-college {
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--secondary-color);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: justify;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-card h3 i {
    color: var(--secondary-color);
}

/* Topics Section */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.topic-item {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color);
    font-weight: 500;
}

.topic-item:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

/* Committee Section */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.committee-column h3 {
    color: var(--secondary-color);
    margin: 25px 0 15px;
    font-size: 1.3rem;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.committee-column ul li {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.role {
    font-size: 0.85rem;
    color: #666;
    display: block;
    margin-top: 2px;
}

/* Registration & Dates */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.dates-list li {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.dates-list li:hover {
    background: var(--white);
    padding-left: 20px;
    border-left: 4px solid var(--secondary-color);
}

.date-label {
    font-weight: 600;
    color: var(--primary-color);
}

.date-val {
    color: #555;
    background: #eef;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.publication-info {
    margin-top: 30px;
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.fees-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.fees-table th,
.fees-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.fees-table th {
    background: var(--primary-color);
    color: var(--white);
}

.fees-table tr:hover {
    background: #f9f9f9;
}

.payment-details {
    background: #fff3e0;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ffe0b2;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.footer-section p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.6;
}

.brouchure img{
    width: 100%;
    height: auto;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transform-origin: bottom center;
    transition: opacity 0.7s cubic-bezier(.2,.9,.2,1), transform 0.7s cubic-bezier(.2,.9,.2,1);
}

@keyframes scaleUpFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
        transform-origin: bottom center;
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        transform-origin: bottom center;
    }
}

/* Image Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
    transition: background 300ms ease;
}

.lightbox.open {
    display: flex;
}

.lightbox.animating {
    background: rgba(0, 0, 0, 0);
}

.lightbox-img {
    max-width: 92vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: top 300ms ease, left 300ms ease, width 300ms ease, height 300ms ease;
}

.lightbox.animating .lightbox-img {
    position: fixed;
    will-change: top, left, width, height;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    font-size: 32px;
    line-height: 1;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

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

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

/* Mobile Responsive */
@media (max-width: 992px) {
    .committee-grid {
        grid-template-columns: 1fr;
    }

    .two-column-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        height: calc(100vh - 100px);
        top: 100px;
        background: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        /* Changed to 100% for mobile */
        transform: translateX(100%);
        transition: transform 0.3s ease-in;
    }

    .nav-links li {
        opacity: 0;
    }

    .hamburger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }

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

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    /* Logo Switching Breakpoint */
    @media (max-width: 1250px) {
        .nav-container {
            justify-content: space-between;
        }

        .nav-logo {
            display: none;
        }

        .nav-logo-mobile {
            display: block;
        }

        .nav-links {
            gap: 20px;
            /* Reduced gap */
        }

        .nav-links li a {
            font-size: 0.9rem;
            /* Smaller font */
        }

        .logo-text {
            font-size: 1.5rem;
            /* Smaller logo text */
        }
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}