/* styles.css */

/* Image Optimization - Prevent Blurriness */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
}

/* Ensure images maintain quality on different screen densities */
img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
}

/* High DPI display optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h3 {
    color: #2c5aa0;
    font-size: 24px;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #2c5aa0;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2c5aa0;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Dropdown container */
.nav-menu .dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* Dropdown content (hidden by default) */
.nav-menu .dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    z-index: 1000;
    top: 100%;
    left: 0;
    border-radius: 4px;
    overflow: hidden;
}

/* Dropdown links */
.nav-menu .dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background 0.2s;
}

.nav-menu .dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* Show the dropdown on hover */
.nav-menu .dropdown:hover .dropdown-content {
    display: block;
}

/* Optional: Style the caret icon */
.nav-menu .dropdown > span i {
    margin-left: 6px;
}

/* Sections */
.section {
    padding: 100px 0 60px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: #2c5aa0;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
}

/* Home Section */
.home-section {
    background: linear-gradient(135deg, #f7f7f7 0%, #edf8ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-size: 48px;
    color: #2c5aa0;
    margin-bottom: 10px;
    text-align: center;
}

.hero-content h2 {
    font-size: 24px;
    color: #2c5aa0;
    margin-bottom: 30px;
    text-align: center;
    font-weight: normal;
}

.hero-description {
    font-size: 18px;
    color: #5b5959;
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.facilities h3 {
    font-size: 28px;
    color: #2c5aa0;
    text-align: center;
    margin-bottom: 40px;
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.facility-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.facility-item:hover {
    transform: translateY(-5px);
}

.facility-item i {
    font-size: 40px;
    color: #2c5aa0;
    margin-bottom: 15px;
}

.facility-item h4 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.facility-item p {
    color: #666;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.btn {
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #2c5aa0;
    color: #fff;
}

.btn-primary:hover {
    background: #1e3d6f;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #2c5aa0;
    border: 2px solid #2c5aa0;
}

.btn-secondary:hover {
    background: #2c5aa0;
    color: #fff;
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, #f7f7f7 0%, #edf8ff 100%);
}

.director-message {
    max-width: 900px;
    margin: 0 auto;
}

.director-info {
    text-align: center;
    margin-bottom: 40px;
}

.director-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 5px solid #2c5aa0;
    object-fit: cover;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    transition: transform 0.3s ease;
}

.director-photo:hover {
    transform: translateZ(0) scale(1.05);
    -webkit-transform: translateZ(0) scale(1.05);
}

.director-info h3 {
    font-size: 28px;
    color: #2c5aa0;
}

.message-content {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.message-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

.director-signature {
    text-align: right;
    margin-top: 30px;
    font-size: 18px;
    color: #2c5aa0;
}

/* Colleges Section */
.colleges-section {
    background: linear-gradient(135deg, #f7f7f7 0%, #edf8ff 100%);
}

.colleges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.college-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.college-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.college-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    transition: transform 0.3s ease;
    background-color: #f8f9fa;
}

.college-card img:hover {
    transform: translateZ(0) scale(1.02);
    -webkit-transform: translateZ(0) scale(1.02);
}

.college-info {
    padding: 25px;
}

.college-info h3 {
    font-size: 20px;
    color: #2c5aa0;
    margin-bottom: 10px;
}

.college-info p {
    color: #666;
    margin-bottom: 5px;
}

.view-details {
    color: #2c5aa0;
    font-weight: 600;
    margin-top: 15px;
    display: inline-block;
}

.view-details i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.college-card:hover .view-details i {
    transform: translateX(5px);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #f7f7f7 0%, #edf8ff 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 24px;
    color: #2c5aa0;
    margin-right: 20px;
    width: 30px;
}

.info-item h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.info-item p {
    color: #666;
}

.contact-form {
    background: #fbfdff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form h3 {
    font-size: 24px;
    color: #2c5aa0;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* WhatsApp Popup */
.whatsapp-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    background: #25d366;
    padding: 15px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    animation: bounce 2s infinite;
}

.whatsapp-popup a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.whatsapp-popup i {
    font-size: 24px;
    margin-right: 10px;
}

.popup-text {
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Footer */
.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        padding: 15px;
        display: block;
        border-bottom: 1px solid #eee;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content h2 {
        font-size: 20px;
    }
    
    .facility-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .colleges-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .whatsapp-popup {
        bottom: 20px;
        right: 20px;
        padding: 12px;
    }
    
    .popup-text {
        display: none;
    }
    
    .section {
        padding: 80px 0 40px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content h2 {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .facility-item {
        padding: 20px;
    }
}



.college-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.college-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.view-details {
    color: #2c5aa0;
    font-weight: 600;
    transition: color 0.3s ease;
}

.college-card:hover .view-details {
    color: #1e3d6f;
}

@media (max-width: 900px) {
    .nav-menu .dropdown-content {
        position: static;
        box-shadow: none;
        min-width: 100%;
    }
}