/* ========================================
   AICTE IDEA LAB - Main Stylesheet
   ======================================== */

:root {
    --iiit-blue: #003366;
    --iiit-accent: #e67e22;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border-light: #e5e7eb;
    --bg-light: #f9fafb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.top-bar {
    background-color: var(--iiit-blue);
    color: white;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.top-bar a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: var(--iiit-accent);
}

header {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-section img {
    height: 4rem;
    object-fit: contain;
}

.logo-divider {
    height: 3rem;
    width: 1px;
    background-color: var(--border-light);
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
}

nav {
    display: flex;
    gap: 2rem;
    font-weight: 600;
    color: var(--text-dark);
}

nav a {
    color: var(--iiit-blue);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--iiit-accent);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a:focus::after {
    width: 100%;
}

nav a:hover {
    color: var(--iiit-accent);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--iiit-blue);
    background: none;
    border: none;
    cursor: pointer;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 51, 102, 0.7), rgba(0, 51, 102, 0.7));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 1rem;
    animation: fadeInDown 1s ease-out;
}

.hero-overlay h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-overlay p {
    font-size: 1.125rem;
    max-width: 40rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn i {
    margin-right: 0.5rem;
}

.btn-primary {
    background-color: var(--iiit-accent);
    color: white;
}

.btn-primary:hover {
    background-color: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

.btn-secondary {
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--iiit-blue);
}

/* ========================================
   MARQUEE / ANNOUNCEMENTS
   ======================================== */

.marquee-bar {
    background-color: #1f2937;
    color: white;
    padding: 0.5rem 0;
    overflow: hidden;
    border-bottom: 4px solid var(--iiit-accent);
}

.marquee-container {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-label {
    background-color: var(--iiit-accent);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-right: 1rem;
    z-index: 10;
    flex-shrink: 0;
}

.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
    font-size: 0.875rem;
}

.marquee-content span {
    margin: 0 2rem;
}

/* ========================================
   SECTIONS
   ======================================== */

section {
    animation: fadeInUp 0.6s ease-out;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--iiit-blue);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.underline {
    width: 5rem;
    height: 0.25rem;
    background-color: var(--iiit-accent);
    margin-bottom: 1.5rem;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-section {
    padding: 4rem 1rem;
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--iiit-blue);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-text ul {
    list-style: none;
    margin-top: 1.5rem;
}

.about-text li {
    color: var(--text-light);
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.about-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--iiit-accent);
    font-weight: 700;
}

.about-image {
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: slideInLeft 0.8s ease-out;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========================================
   FACILITIES SECTION
   ======================================== */

.facilities-section {
    padding: 4rem 1rem;
    background-color: #f3f4f6;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.facility-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--iiit-accent);
}

.facility-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.facility-icon {
    font-size: 2.5rem;
    color: var(--iiit-accent);
    margin-bottom: 1rem;
}

.facility-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.facility-card p {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ========================================
   EVENTS SECTION
   ======================================== */

.events-section {
    padding: 4rem 1rem;
    background-color: white;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.event-card {
    display: flex;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.event-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.event-date {
    background-color: var(--iiit-blue);
    color: white;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-width: 6rem;
    flex-shrink: 0;
}

.event-date-day {
    font-size: 1.75rem;
    font-weight: 700;
}

.event-date-month {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-info h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.event-info p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.event-link {
    color: var(--iiit-accent);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.event-link:hover {
    color: #d35400;
}

/* ========================================
   TEAM SECTION
   ======================================== */

.team-section {
    padding: 4rem 1rem;
    background-color: #f9fafb;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.team-avatar {
    width: 8rem;
    height: 8rem;
    background-color: #e5e7eb;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.team-card p {
    color: var(--iiit-accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background-color: var(--iiit-blue);
    color: white;
    padding: 3rem 1rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a,
.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-section p i {
    margin-right: 0.5rem;
}

.footer-section a {
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--iiit-accent);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.footer-section li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--iiit-accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--iiit-accent);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav {
        display: none;
    }

    .hero-overlay h1 {
        font-size: 2rem;
    }

    .hero-overlay p {
        font-size: 0.875rem;
    }

    .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .facilities-grid {
        grid-template-columns: 1fr;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .marquee-content span {
        margin: 0 1rem;
    }

    .section-title {
        font-size: 1.875rem;
    }
}

@media (max-width: 640px) {
    .header-container {
        padding: 0.75rem;
    }

    .logo-section {
        gap: 0.5rem;
    }

    .logo-section img {
        height: 3rem;
    }

    .logo-text h1 {
        font-size: 1rem;
    }

    .hero-section {
        height: 300px;
    }

    .hero-overlay h1 {
        font-size: 1.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .marquee-label {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }

    .marquee-content {
        font-size: 0.75rem;
    }
}
