/* Reset and Base Styles */
/* Global visibility override - ensures all content is visible */
.colleges, .rooms, .amenities, .gallery, .contact, .team,
.college-grid, .rooms-grid, .amenities-grid, .gallery-grid, .contact-form, .team-grid,
.college-card, .room-card, .amenity-card, .gallery-item, .team-member,
[class*="-section"], [class*="-content"] {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --background-color: #ffffff;
    --text-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --animation-duration: 0.8s;
    --animation-timing: cubic-bezier(0.4, 0, 0.2, 1);
    --animation-delay-base: 0.2s;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px var(--shadow-color);
    z-index: 1000;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.logo h1 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.2s ease;
    will-change: color;
}

.nav-links a:hover {
    color: #3498db;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Mobile Navigation Styles */
@media screen and (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--background-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 1.5rem 0;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&q=80&w=1920') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 1rem;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: none;
}

@keyframes fadeIn {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    will-change: transform, background-color;
    transform: translateZ(0);
}

.cta-button:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

/* Nearby Colleges Section */
.colleges {
    padding: 5rem 2rem;
    background-color: #fff;
}

.colleges h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-size: 2.5rem;
}

.college-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 1;
    transform: translateY(0);
}

.college-grid.animate {
    opacity: 1;
    transform: translateY(0);
}

.college-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform, box-shadow;
    transform: translateZ(0);
    opacity: 1;
}

.college-card.animate {
    opacity: 1;
    animation: none;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.college-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.college-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    will-change: transform;
    transition: transform 0.3s ease;
    backface-visibility: hidden;
}

.college-info {
    padding: 1.5rem;
}

.college-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.college-info p {
    color: #666;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.college-info i {
    color: #3498db;
    width: 20px;
}

/* Rooms Section */
.rooms {
    padding: 5rem 2rem;
    background-color: #ffff ;
}

.rooms h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
}

.room-grid.animate {
    animation: fadeInUp 0.8s forwards;
}

.room-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    will-change: transform;
    transform: translateZ(0);
    opacity: 0;
}

.room-card.animate {
    animation: fadeIn 0.5s forwards;
    animation-delay: var(--animation-delay, 0s);
}

.room-card:hover {
    transform: translateY(-5px);
}

.room-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    will-change: transform;
    transition: transform 0.3s ease;
    backface-visibility: hidden;
}

.room-card h3 {
    padding: 1rem;
    color: #2c3e50;
}

.room-card p {
    padding: 0 1rem 1rem;
    color: #666;
}

.book-button {
    display: block;
    text-align: center;
    padding: 1rem;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.book-button:hover {
    background-color: #2980b9;
}

/* Amenities Section */
.amenities {
    padding: 5rem 2rem;
}

.amenities h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.amenity-card {
    text-align: center;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.amenity-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

/* Gallery Section */
.gallery {
    padding: 5rem 2rem;
    background-color: var(--background-color);
    overflow: hidden;
}

/* Gallery Section */
.gallery h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    opacity: 1;
    transform: translateY(0);
    font-size: 2.5rem;
    font-weight: 600;
}

/* Contact Section */
.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    opacity: 1;
    transform: translateY(0);
    font-size: 2.5rem;
    font-weight: 600;
}

.gallery h2.animate {
    animation: fadeInUp 0.8s forwards;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
}

.gallery-grid.animate {
    animation: fadeInUp 0.8s forwards;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0;
    transform: translateZ(0);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.gallery-item.animate {
    animation: fadeIn 0.5s forwards;
    animation-delay: var(--animation-delay, 0s);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--animation-duration) var(--animation-timing);
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Contact Section */
.contact {
    padding: 5rem 2rem;
    background-color: var(--background-color);
    overflow: hidden;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    opacity: 0;
    transform: translateY(20px);
}

.contact h2.animate {
    animation: fadeInUp 0.8s forwards;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
}

.contact-container.animate {
    animation: fadeInUp 0.8s forwards;
}

.contact-info {
    padding: 2rem;
    background-color: var(--background-color);
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--shadow-color);
    transform: translateZ(0);
    will-change: transform;
    transition: transform var(--animation-duration) var(--animation-timing);
}

.contact-info:hover {
    transform: translateY(-5px);
}

.contact-info p {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
    will-change: transform;
    transition: transform var(--animation-duration) var(--animation-timing);
}

.contact-info:hover i {
    transform: scale(1.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    background-color: var(--background-color);
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--shadow-color);
    transform: translateZ(0);
    will-change: transform;
    transition: transform var(--animation-duration) var(--animation-timing);
}

.contact-form:hover {
    transform: translateY(-5px);
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color var(--animation-duration) var(--animation-timing);
    will-change: border-color;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: transform var(--animation-duration) var(--animation-timing),
                background-color var(--animation-duration) var(--animation-timing);
    will-change: transform, background-color;
    transform: translateZ(0);
}

.submit-button:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

.form-success-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    background-color: #2ecc71;
    color: var(--background-color);
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--animation-duration) var(--animation-timing),
                transform var(--animation-duration) var(--animation-timing);
}

.form-success-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: #ffffff;
    padding: 3rem 2rem 1rem;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 1;
    transform: translateY(0);
}

.footer-section {
    opacity: 1;
    transform: translateY(0);
    transition: transform var(--animation-duration) var(--animation-timing);
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
    opacity: 1;
    color: #ffffff;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
    transition: color var(--animation-duration) var(--animation-timing);
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: #ffffff;
    font-size: 1.5rem;
    transition: transform var(--animation-duration) var(--animation-timing),
                color var(--animation-duration) var(--animation-timing);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
    opacity: 1;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 992px) {
    :root {
        --animation-duration: 0.15s;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.3rem;
    }

    .college-grid,
    .room-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        transform: translateZ(0);
        will-change: transform;
        transition: transform var(--animation-duration) var(--animation-timing);
    }

    .nav-toggle:hover {
        transform: scale(1.1);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        flex-direction: column;
        padding: 1rem;
        text-align: center;
        box-shadow: 0 4px 6px var(--shadow-color);
        transform: translateY(-10px);
        opacity: 0;
        transition: transform var(--animation-duration) var(--animation-timing),
                    opacity var(--animation-duration) var(--animation-timing);
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .college-grid,
    .room-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

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

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%) scaleX(0);
    }

    .footer-section:hover h3::after {
        transform: translateX(-50%) scaleX(1);
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --animation-duration: 0.1s;
    }

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

    .hero-content p {
        font-size: 1rem;
    }

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Apply animations to elements */
.hero-content h1 {
    animation: slideInLeft 1s ease-out;
}

.hero-content p {
    animation: slideInRight 1s ease-out 0.3s backwards;
}

.hero-content .cta-button {
    animation: scaleIn 0.8s ease-out 0.6s backwards;
}

.room-card,
.college-card,
.amenity-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.room-card.animate,
.college-card.animate,
.amenity-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease-out;
}

.gallery-item.animate {
    opacity: 1;
    transform: scale(1);
}

/* Enhanced hover animations */
.nav-links a {
    position: relative;
    overflow: hidden;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3498db;
    transition: width 0.3s ease;
}

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

.cta-button,
.book-button,
.submit-button {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover,
.book-button:hover,
.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.social-links a {
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Team Section */
.team {
    padding: 5rem 2rem;
    background-color: var(--background-color);
}

.team h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    font-size: 2.5rem;
    font-weight: 600;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: transform var(--animation-duration) var(--animation-timing);
    text-align: center;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-info {
    padding: 1.5rem;
}

.team-info h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.team-info p {
    color: #666;
    margin-bottom: 1rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.team-social a {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: transform var(--animation-duration) var(--animation-timing);
}

.team-social a:hover {
    transform: scale(1.2);
}

.gallery h2.animate {
    animation: fadeInUp 0.8s forwards;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
}

.gallery-grid.animate {
    animation: fadeInUp 0.8s forwards;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0;
    transform: translateZ(0);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.gallery-item.animate {
    animation: fadeIn 0.5s forwards;
    animation-delay: var(--animation-delay, 0s);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--animation-duration) var(--animation-timing);
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Contact Section */
.contact {
    padding: 5rem 2rem;
    background-color: var(--background-color);
    overflow: hidden;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    opacity: 0;
    transform: translateY(20px);
}

.contact h2.animate {
    animation: fadeInUp 0.8s forwards;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
}

.contact-container.animate {
    animation: fadeInUp 0.8s forwards;
}

.contact-info {
    padding: 2rem;
    background-color: var(--background-color);
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--shadow-color);
    transform: translateZ(0);
    will-change: transform;
    transition: transform var(--animation-duration) var(--animation-timing);
}

.contact-info:hover {
    transform: translateY(-5px);
}

.contact-info p {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
    will-change: transform;
    transition: transform var(--animation-duration) var(--animation-timing);
}

.contact-info:hover i {
    transform: scale(1.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    background-color: var(--background-color);
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--shadow-color);
    transform: translateZ(0);
    will-change: transform;
    transition: transform var(--animation-duration) var(--animation-timing);
}

.contact-form:hover {
    transform: translateY(-5px);
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color var(--animation-duration) var(--animation-timing);
    will-change: border-color;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: transform var(--animation-duration) var(--animation-timing),
                background-color var(--animation-duration) var(--animation-timing);
    will-change: transform, background-color;
    transform: translateZ(0);
}

.submit-button:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

.form-success-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    background-color: #2ecc71;
    color: var(--background-color);
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--animation-duration) var(--animation-timing),
                transform var(--animation-duration) var(--animation-timing);
}

.form-success-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: #ffffff;
    padding: 3rem 2rem 1rem;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 1;
    transform: translateY(0);
}

.footer-section {
    opacity: 1;
    transform: translateY(0);
    transition: transform var(--animation-duration) var(--animation-timing);
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
    opacity: 1;
    color: #ffffff;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
    transition: color var(--animation-duration) var(--animation-timing);
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: #ffffff;
    font-size: 1.5rem;
    transition: transform var(--animation-duration) var(--animation-timing),
                color var(--animation-duration) var(--animation-timing);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
    opacity: 1;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 992px) {
    :root {
        --animation-duration: 0.15s;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.3rem;
    }

    .college-grid,
    .room-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        transform: translateZ(0);
        will-change: transform;
        transition: transform var(--animation-duration) var(--animation-timing);
    }

    .nav-toggle:hover {
        transform: scale(1.1);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        flex-direction: column;
        padding: 1rem;
        text-align: center;
        box-shadow: 0 4px 6px var(--shadow-color);
        transform: translateY(-10px);
        opacity: 0;
        transition: transform var(--animation-duration) var(--animation-timing),
                    opacity var(--animation-duration) var(--animation-timing);
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .college-grid,
    .room-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

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

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%) scaleX(0);
    }

    .footer-section:hover h3::after {
        transform: translateX(-50%) scaleX(1);
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --animation-duration: 0.1s;
    }

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

    .hero-content p {
        font-size: 1rem;
    }

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Apply animations to elements */
.hero-content h1 {
    animation: slideInLeft 1s ease-out;
}

.hero-content p {
    animation: slideInRight 1s ease-out 0.3s backwards;
}

.hero-content .cta-button {
    animation: scaleIn 0.8s ease-out 0.6s backwards;
}

.room-card,
.college-card,
.amenity-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.room-card.animate,
.college-card.animate,
.amenity-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease-out;
}

.gallery-item.animate {
    opacity: 1;
    transform: scale(1);
}

/* Enhanced hover animations */
.nav-links a {
    position: relative;
    overflow: hidden;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3498db;
    transition: width 0.3s ease;
}

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

.cta-button,
.book-button,
.submit-button {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover,
.book-button:hover,
.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.social-links a {
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}