/* ============================================
   PUSHPAWATI INSTITUTIONS - Modern Design
   Professional, clean, and responsive website
   ============================================ */

/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #334155;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ===== COLOR PALETTE ===== */
:root {
    --primary-navy: #1e3a5f;
    --primary-blue: #3b82f6;
    --pastel-blue: #e0f2fe;
    --light-blue: #f0f9ff;
    --soft-grey: #f8fafc;
    --medium-grey: #e2e8f0;
    --dark-grey: #64748b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --accent-gold: #fbbf24;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-navy);
}

/* ===== NAVIGATION BAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.college-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-navy);
    font-family: 'Poppins', sans-serif;
}

.navbar-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.navbar-links li a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.navbar-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: var(--transition);
}

.navbar-links li a:hover::after,
.navbar-links li a:focus::after {
    width: 100%;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== HERO SECTION WITH SLIDESHOW ===== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 72px;
    text-align: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slideshow .slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.65), rgba(59, 130, 246, 0.55));
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-cta:hover {
    background: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

/* ===== CAMPUS GALLERY CAROUSEL ===== */
.photo-section {
    width: 100%;
    height: 70vh;
    overflow: hidden;
    position: relative;
    background: var(--soft-grey);
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-track {
    display: flex;
    height: 100%;
    width: calc(100vw * 12);
    animation: scroll-carousel 50s linear infinite;
}

.carousel-img {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    filter: brightness(0.95);
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-carousel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-600vw);
    }
}

/* ===== SECTION COMMON STYLES ===== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--primary-navy);
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--dark-grey);
    margin-bottom: 3rem;
}

/* ===== COURSES SECTION ===== */
.courses {
    background: var(--soft-grey);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.course-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--medium-grey);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.course-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.course-title {
    font-size: 1.75rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.course-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.course-details {
    margin-bottom: 1.5rem;
}

.course-details h4 {
    font-size: 1.25rem;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}

.course-list {
    list-style: none;
    padding-left: 0;
}

.course-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.course-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

.eligibility {
    color: var(--dark-grey);
    font-size: 0.9em;
}

.course-benefit {
    background: var(--pastel-blue);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
}

.course-benefit p,
.course-benefit ul {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.course-benefit h4 {
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
}

/* ===== STUDENTS SECTION ===== */
.students-section {
    background: var(--white);
}

.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.student-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--medium-grey);
}

.student-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.student-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.25rem;
    border: 4px solid var(--pastel-blue);
    transition: var(--transition);
}

.student-card:hover .student-photo {
    border-color: var(--primary-blue);
    transform: scale(1.05);
}

.student-info {
    margin-top: 1rem;
}

.student-name {
    font-size: 1.1rem;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.student-job {
    font-size: 0.95rem;
    color: var(--dark-grey);
    font-style: italic;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: var(--soft-grey);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

.about-card {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    align-items: center;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.about-text h3 {
    font-size: 1.75rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.about-text h4 {
    font-size: 1.35rem;
    color: var(--primary-blue);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.about-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-list {
    list-style: none;
    padding-left: 0;
}

.about-list li {
    padding: 0.75rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.7;
}

.about-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-size: 1.5rem;
    line-height: 1;
}

.highlight-text {
    background: var(--pastel-blue);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
    text-align: center;
    color: var(--primary-navy) !important;
    font-size: 1.1rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-navy);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-links a {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* ===== CONTACT MODAL ===== */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.contact-modal.active {
    display: flex;
}

.contact-modal-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 2rem;
    color: var(--dark-grey);
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    transition: var(--transition);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    background: var(--soft-grey);
    color: var(--text-dark);
}

.contact-modal-content h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-navy);
    font-size: 1.75rem;
}

.contact-info p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.contact-info a {
    color: var(--primary-blue);
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ===== BUTTON STYLES ===== */
.cta-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    background: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .navbar-links {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 2rem;
        gap: 0;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
    }

    .navbar-links.open {
        left: 0;
    }

    .navbar-links li {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--medium-grey);
    }

    .navbar-links li a {
        font-size: 1.1rem;
        width: 100%;
        display: block;
    }

    .navbar-toggle {
        display: flex;
    }

    .hero {
        min-height: 80vh;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-slideshow .slide {
        background-position: center center;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .about-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-img {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .section-container {
        padding: 3rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero {
        min-height: 70vh;
        padding: 3rem 1.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    }

    .hero-subtitle {
        font-size: 1rem;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    }

    .hero-overlay {
        background: linear-gradient(135deg, rgba(30, 58, 95, 0.7), rgba(59, 130, 246, 0.6));
    }

    .photo-section {
        height: 50vh;
    }

    .course-card {
        padding: 2rem;
    }

    .students-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.5rem;
    }

    .about-card {
        padding: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .navbar-container {
        padding: 0 1.5rem;
    }

    .college-name {
        font-size: 1rem;
    }

    #logo {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-cta {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }

    .students-grid {
        grid-template-columns: 1fr;
    }

    .course-card {
        padding: 1.5rem;
    }

    .about-card {
        padding: 1.5rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Focus visible for better accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-navy);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}
