html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #fff6f9;
    color: #2d133b;
}

/* Sticky Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #6a11cb 0%, #ff6a88 100%);
    padding: 1rem 2rem;
    box-shadow: 0 2px 16px rgba(106,17,203,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.8s cubic-bezier(.77,0,.18,1) 0s 1;
}
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.logo {
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
    transition: transform 0.3s, text-shadow 0.3s;
    text-shadow: 0 2px 12px #ff6a8855;
}
.logo:hover {
    transform: scale(1.08) rotate(-2deg);
    text-shadow: 0 4px 24px #ffb34799;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}
.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s, letter-spacing 0.2s;
    position: relative;
}
.nav-links a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6a88 0%, #ffb347 100%);
    transition: width 0.3s;
    margin-top: 2px;
}
.nav-links a:hover {
    color: #ffb347;
    letter-spacing: 1px;
}
.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section with Animated Background */
.hero {
    background: linear-gradient(120deg, #6a11cb 60%, #ff6a88 100%);
    color: #fff;
    padding: 4rem 2rem 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.18;
    z-index: 0;
    animation: floatBg 8s ease-in-out infinite alternate;
}
.hero::before {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ffb347 0%, #ff6a88 100%);
    left: -120px;
    top: -100px;
    animation-delay: 0s;
}
.hero::after {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #6a11cb 0%, #ff6a88 100%);
    right: -100px;
    bottom: -80px;
    animation-delay: 2s;
}
@keyframes floatBg {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(30px) scale(1.08); }
}
.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1.2s cubic-bezier(.77,0,.18,1) 0.2s both;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    animation: fadeInUp 1.2s cubic-bezier(.77,0,.18,1) 0.3s both;
    text-shadow: 0 2px 16px #6a11cb55;
}
.tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-style: italic;
    animation: fadeInUp 1.2s cubic-bezier(.77,0,.18,1) 0.5s both;
    color: #fffbe6;
}
.stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.stat {
    background: rgba(255,255,255,0.13);
    border-radius: 12px;
    padding: 1.2rem 2rem;
    font-size: 1.2rem;
    min-width: 120px;
    box-shadow: 0 2px 16px #ff6a8822;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1.2s cubic-bezier(.77,0,.18,1) 0.7s both;
    border: 2px solid #ffb34744;
}
.stat:hover {
    transform: scale(1.08) translateY(-6px) rotate(-2deg);
    box-shadow: 0 6px 32px #ffb34755;
    background: #fffbe6;
}
.stat span {
    font-size: 2rem;
    font-weight: bold;
    color: #ffb347;
    display: block;
    transition: color 0.3s;
    text-shadow: 0 2px 12px #ff6a8855;
}
.cta-btn {
    background: linear-gradient(90deg, #ff6a88 0%, #ffb347 100%);
    color: #fff;
    padding: 0.9rem 2.2rem;
    border: none;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 16px #ffb34755;
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    outline: none;
}
.cta-btn::after {
    content: '';
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, #ffb34755 0%, #ff6a8855 100%);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 25px;
    pointer-events: none;
}
.cta-btn:hover, .cta-btn:focus {
    background: linear-gradient(90deg, #ffb347 0%, #ff6a88 100%);
    color: #6a11cb;
    border: 2px solid #ffb347;
    transform: scale(1.06);
    box-shadow: 0 4px 32px #ffb34799, 0 0 16px #ff6a8899;
}
.cta-btn:hover::after, .cta-btn:focus::after {
    opacity: 1;
}

footer {
    background: linear-gradient(90deg, #6a11cb 0%, #ff6a88 100%);
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: 2rem;
    animation: fadeIn 1.2s cubic-bezier(.77,0,.18,1) 1.2s both;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Section Animations */
.about-section, .why-section, .courses-section, .facilities-section, .contact-section {
    animation: fadeInUp 1.2s cubic-bezier(.77,0,.18,1) 0.2s both;
}

/* Card Animations & Hover */
.faculty-card, .reason-card, .course-division, .facility-card {
    animation: fadeInCard 1.1s cubic-bezier(.77,0,.18,1) 0.3s both;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}
@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.faculty-card:hover, .reason-card:hover, .course-division:hover, .facility-card:hover {
    transform: scale(1.04) translateY(-4px) rotate(-1deg);
    box-shadow: 0 6px 24px #ff6a8899;
    background: #fff0f6;
}

/* Director Intro and Faculty Photos */
.director-intro {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.director-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 16px #ff6a8855;
    border: 3px solid #ff6a88;
    background: #fff;
}
.director-message {
    flex: 1;
    min-width: 220px;
}
.director-message h3 {
    margin-top: 0;
    color: #6a11cb;
    font-size: 1.2rem;
    font-weight: 700;
}

.faculty-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 8px #ffb34755;
    border: 2px solid #ff6a88;
    background: #fff;
}

/* Section Layouts */
.about-section, .why-section, .courses-section, .facilities-section, .contact-section, .gallery-section, .testimonials-section, .timeline-section, .faq-section, .mission-section, .methodology-section, .studentlife-section, .officehours-section, .map-section {
    max-width: 900px;
    margin: 2.5rem auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px #e0e3e7;
    padding: 2rem;
    border: 1px solid #e0e3e7;
}
.about-section h2, .why-section h2, .courses-section h2, .facilities-section h2, .contact-section h2, .gallery-section h2, .testimonials-section h2, .timeline-section h2, .faq-section h2, .mission-section h2, .methodology-section h2, .studentlife-section h2, .officehours-section h2, .map-section h2 {
    text-align: left;
    margin-bottom: 1.2rem;
    color: #1976d2;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Cards and Lists */
.faculty-list, .testimonials-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 1rem;
}
.faculty-card, .testimonial-card, .reason-card, .course-division, .facility-card, .timeline-item, .faq-item, .gallery-item {
    background: #f8f9fb;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    box-shadow: 0 1px 4px #e0e3e7;
    border: 1px solid #e0e3e7;
    font-size: 1rem;
    transition: box-shadow 0.2s, border 0.2s;
}
.faculty-card:hover, .testimonial-card:hover, .reason-card:hover, .course-division:hover, .facility-card:hover, .timeline-item:hover, .faq-item:hover, .gallery-item:hover {
    box-shadow: 0 2px 12px #1976d222;
    border: 1.5px solid #1976d2;
    background: #fff;
}
.faculty-card h4, .testimonial-card span {
    color: #1976d2;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}
.gallery-item img {
    width: 100%;
    display: block;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
}
.caption {
    padding: 0.5rem 0.2rem 0.2rem 0.2rem;
    text-align: center;
    font-weight: 500;
    color: #23272f;
    background: none;
    border: none;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}
.timeline-item {
    border-left: 4px solid #1976d2;
    background: #f8f9fb;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    box-shadow: 0 1px 4px #e0e3e7;
    border: 1px solid #e0e3e7;
    margin-left: 0.5rem;
}
.timeline-item .year {
    font-weight: bold;
    color: #1976d2;
    margin-right: 1rem;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-item {
    background: #f8f9fb;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    box-shadow: 0 1px 4px #e0e3e7;
    border: 1px solid #e0e3e7;
}

/* Map Section */
.map-placeholder img {
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 1px 4px #e0e3e7;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
@media (max-width: 700px) {
    .about-section, .why-section, .courses-section, .facilities-section, .contact-section, .gallery-section, .testimonials-section, .timeline-section, .faq-section, .mission-section, .methodology-section, .studentlife-section, .officehours-section, .map-section {
        padding: 1rem;
    }
    .gallery-item img {
        height: 90px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .tagline {
        font-size: 1.1rem;
    }
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    .director-intro {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .director-message {
        text-align: center;
    }
}

/* Why Page Enhancements */
.why-hero-section {
    max-width: 900px;
    margin: 2.5rem auto 1.5rem auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px #ff6a8822;
    padding: 2rem;
    text-align: center;
    animation: fadeInUp 1.2s cubic-bezier(.77,0,.18,1) 0.2s both;
}
.why-hero-section h2 {
    color: #6a11cb;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 12px #ffb34755;
}
.why-intro {
    color: #ff6a88;
    font-size: 1.15rem;
    margin-bottom: 0;
    font-weight: 500;
}
.reasons-section {
    max-width: 1100px;
    margin: 1.5rem auto 1.5rem auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px #ff6a8822;
    padding: 2rem 1.5rem;
    animation: fadeInUp 1.2s cubic-bezier(.77,0,.18,1) 0.3s both;
}
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.reason-card {
    background: #fff0f6;
    border-radius: 12px;
    padding: 1.2rem 1rem 1.2rem 1.2rem;
    font-size: 1.08rem;
    box-shadow: 0 1px 8px #ffb34733;
    border-left: 5px solid #ff6a88;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    transition: box-shadow 0.2s, border 0.2s, background 0.2s;
    animation: fadeInCard 1.1s cubic-bezier(.77,0,.18,1) 0.3s both;
}
.reason-card:hover {
    background: #fffbe6;
    border-left: 5px solid #ffb347;
    box-shadow: 0 4px 16px #ff6a8899;
}
.reason-icon {
    font-size: 1.7rem;
    color: #6a11cb;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px #ffb34755);
}
.divider-section {
    max-width: 900px;
    margin: 2rem auto 1.5rem auto;
    text-align: center;
}
.divider {
    display: inline-block;
    padding: 0.5rem 2.5rem;
    background: linear-gradient(90deg, #ffb347 0%, #ff6a88 100%);
    color: #fff;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 2px 12px #ffb34755;
    letter-spacing: 1px;
}
.comparison-section {
    max-width: 950px;
    margin: 1.5rem auto 1.5rem auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px #ff6a8822;
    padding: 2rem 1.5rem;
    animation: fadeInUp 1.2s cubic-bezier(.77,0,.18,1) 0.4s both;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.05rem;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 8px #ffb34733;
}
.comparison-table th, .comparison-table td {
    padding: 0.8rem 1rem;
    text-align: left;
}
.comparison-table th {
    background: linear-gradient(90deg, #6a11cb 0%, #ff6a88 100%);
    color: #fff;
    font-weight: 700;
    border: none;
}
.comparison-table tr:nth-child(even) td {
    background: #fff0f6;
}
.comparison-table tr:nth-child(odd) td {
    background: #fffbe6;
}
.comparison-table td {
    border: none;
    color: #2d133b;
}
.cta-section {
    max-width: 900px;
    margin: 2.5rem auto 2rem auto;
    text-align: center;
}
.cta-box {
    background: linear-gradient(90deg, #ffb347 0%, #ff6a88 100%);
    color: #fff;
    border-radius: 18px;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    box-shadow: 0 2px 16px #ffb34755;
    display: inline-block;
    margin: 0 auto;
}
.cta-box h3 {
    margin-top: 0;
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .reasons-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    .comparison-table th, .comparison-table td {
        padding: 0.6rem 0.5rem;
    }
}
@media (max-width: 700px) {
    .why-hero-section, .reasons-section, .comparison-section, .cta-section {
        padding: 1rem;
    }
    .divider {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* Animated Milestone Timeline */
.milestone-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin: 2rem 0 1rem 0;
    position: relative;
    padding-bottom: 2.5rem;
    overflow-x: auto;
}
.milestone-timeline::before {
    content: '';
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: 1.7rem;
    height: 6px;
    background: linear-gradient(90deg, #6a11cb 0%, #ff6a88 50%, #ffb347 100%);
    border-radius: 3px;
    z-index: 0;
}
.milestone-card {
    background: #fff0f6;
    border-radius: 16px;
    box-shadow: 0 2px 12px #ffb34733;
    padding: 1.2rem 1.2rem 1.5rem 1.2rem;
    min-width: 160px;
    max-width: 180px;
    text-align: center;
    position: relative;
    z-index: 1;
    border: 2.5px solid #ff6a88;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: milestoneFadeIn 1.1s cubic-bezier(.77,0,.18,1) both;
    opacity: 0;
}
.milestone-card:nth-child(1) { animation-delay: 0.1s; opacity: 1; }
.milestone-card:nth-child(2) { animation-delay: 0.3s; opacity: 1; }
.milestone-card:nth-child(3) { animation-delay: 0.5s; opacity: 1; }
.milestone-card:nth-child(4) { animation-delay: 0.7s; opacity: 1; }
.milestone-card:nth-child(5) { animation-delay: 0.9s; opacity: 1; }
@keyframes milestoneFadeIn {
    0% { opacity: 0; transform: translateY(40px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.milestone-icon {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: #6a11cb;
    filter: drop-shadow(0 2px 8px #ffb34755);
}
.milestone-year {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff6a88;
    margin-bottom: 0.3rem;
}
.milestone-desc {
    font-size: 1rem;
    color: #2d133b;
}
@media (max-width: 900px) {
    .milestone-timeline {
        gap: 1rem;
    }
    .milestone-card {
        min-width: 140px;
        max-width: 160px;
        padding: 1rem 0.7rem 1.2rem 0.7rem;
    }
}
@media (max-width: 700px) {
    .milestone-timeline {
        gap: 0.7rem;
        padding-bottom: 2rem;
    }
    .milestone-card {
        min-width: 120px;
        max-width: 140px;
        padding: 0.7rem 0.5rem 1rem 0.5rem;
    }
    .milestone-timeline::before {
        left: 2%;
        right: 2%;
        height: 4px;
    }
}

/* Facilities Page Modern Features */
.facility-features {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin: 2rem 0 2.5rem 0;
    flex-wrap: wrap;
}
.facility-feature {
    background: #fff0f6;
    border-radius: 16px;
    box-shadow: 0 2px 12px #ffb34733;
    padding: 2rem 1.2rem 1.5rem 1.2rem;
    min-width: 220px;
    flex: 1 1 220px;
    text-align: center;
    border: 2.5px solid #ff6a88;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInCard 1.1s cubic-bezier(.77,0,.18,1) both;
    opacity: 0;
    transition: box-shadow 0.2s, border 0.2s, background 0.2s;
}
.facility-feature:nth-child(1) { animation-delay: 0.1s; opacity: 1; }
.facility-feature:nth-child(2) { animation-delay: 0.3s; opacity: 1; }
.facility-feature:nth-child(3) { animation-delay: 0.5s; opacity: 1; }
.facility-feature:hover {
    background: #fffbe6;
    border: 2.5px solid #ffb347;
    box-shadow: 0 4px 16px #ff6a8899;
}
.facility-icon {
    font-size: 2.5rem;
    margin-bottom: 0.7rem;
    color: #6a11cb;
    filter: drop-shadow(0 2px 8px #ffb34755);
}
.facility-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff6a88;
    margin-bottom: 0.3rem;
}
.facility-desc {
    font-size: 1rem;
    color: #2d133b;
}
.scholarship-highlight {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: linear-gradient(90deg, #ffb347 0%, #ff6a88 100%);
    color: #fff;
    border-radius: 18px;
    padding: 1.5rem 1.2rem;
    box-shadow: 0 2px 16px #ffb34755;
    margin: 0 auto;
    max-width: 700px;
    animation: fadeInUp 1.2s cubic-bezier(.77,0,.18,1) 0.6s both;
}
.scholarship-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 8px #fffbe6);
}
.scholarship-info h3 {
    margin: 0 0 0.5rem 0;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
}
.scholarship-info p {
    margin: 0;
    color: #fffbe6;
    font-size: 1.08rem;
}
@media (max-width: 900px) {
    .facility-features {
        flex-direction: column;
        gap: 1.2rem;
    }
    .scholarship-highlight {
        flex-direction: column;
        text-align: center;
        gap: 0.7rem;
    }
}

/* Facility Inquiry Form */
.facility-inquiry-section {
    margin-top: 2.5rem;
    background: #fff0f6;
    border-radius: 16px;
    box-shadow: 0 2px 12px #ffb34733;
    padding: 2rem 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1.2s cubic-bezier(.77,0,.18,1) 0.7s both;
}
.facility-inquiry-section h3 {
    text-align: center;
    color: #6a11cb;
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    font-weight: 700;
}
.facility-inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}
.facility-inquiry-form input,
.facility-inquiry-form select,
.facility-inquiry-form textarea {
    padding: 0.8rem 1rem;
    border: 1.5px solid #ffb34755;
    border-radius: 8px;
    font-size: 1rem;
    resize: none;
    transition: border 0.2s, box-shadow 0.2s;
    background: #fff;
    color: #2d133b;
}
.facility-inquiry-form input:focus,
.facility-inquiry-form select:focus,
.facility-inquiry-form textarea:focus {
    border: 1.5px solid #ff6a88;
    box-shadow: 0 2px 8px #ffb34733;
    outline: none;
}
.facility-inquiry-form textarea {
    min-height: 90px;
}
.facility-inquiry-form button {
    align-self: flex-end;
}
@media (max-width: 700px) {
    .facility-inquiry-section {
        padding: 1rem;
    }
    .facility-inquiry-form {
        max-width: 100%;
    }
} 