@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary-color: #ff8800;
    --secondary-color: #ffa640;
    --dark-color: #333;
    --light-color: #f9f9f9;
    --accent-color: #ff5500;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
}

header {
    background-color: var(--primary-color);
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    text-align: center;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    letter-spacing: 1px;
}

.logo p {
    font-size: 1.2rem;
    color: white;
    margin-top: -5px;
}

.logo img {
    max-width: 100%; 
    height: auto; 
    max-height: 80px; 
}

main {
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(255,255,255,0.05) 20px, rgba(255,255,255,0.05) 40px),
                     repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(255,255,255,0.05) 20px, rgba(255,255,255,0.05) 40px);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

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

.hero p {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.badge {
    display: inline-block;
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.featured-student {
    padding: 3rem 2rem;
    background-color: white;
}

.student-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

@media (min-width: 768px) {
    .student-card {
        flex-direction: row;
    }
}

.student-image {
    width: 100%;
    max-width: 400px;
    padding: 1rem;
}

.student-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.student-info {
    padding: 2rem;
    flex: 1;
    text-align: center;
}

@media (min-width: 768px) {
    .student-info {
        text-align: left;
    }
}

.student-info h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.student-info h3 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.university {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.score {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.testimony {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    font-style: italic;
    position: relative;
}

.testimony::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -20px;
    left: 10px;
    color: var(--primary-color);
    opacity: 0.2;
}

.approved-gallery {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #f5f5f5;
}

.approved-gallery h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.approved-gallery > p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: #666;
}

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

.student-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.student-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.student-photo {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.student-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}

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

.student-details {
    padding: 1rem;
    text-align: center;
}

.student-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--dark-color);
}

.student-course {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.student-score {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
}

@media (max-width: 767px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
    
    .student-photo {
        height: 180px;
    }
    
    .student-name {
        font-size: 1rem;
    }
    
    .student-course {
        font-size: 0.8rem;
    }
    
    .student-score {
        font-size: 0.9rem;
    }
}

.cta {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

button {
    background-color: white;
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

button:hover {
    background-color: var(--dark-color);
    color: white;
    transform: scale(1.05);
}

footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-logo h2 {
    font-size: 2rem;
    font-weight: 900;
}

.social-media {
    display: flex;
    gap: 1rem;
}

.social-media a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-media a:hover {
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* Media query for mobile devices (max-width: 767px) */
@media (max-width: 767px) {
    header {
        padding: 0.5rem 1rem;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .logo p {
        font-size: 1rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

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

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

    .cta {
        padding: 2rem 1rem;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .cta p {
        font-size: 1rem;
    }

    footer {
        padding: 2rem 1rem 3rem;
    }

    .footer-content {
        flex-direction: column; /* Stack footer content on mobile */
        text-align: center; /* Center align text in footer on mobile */
    }

    .contact-info,
    .footer-logo,
    .social-media {
        margin-bottom: 1rem; /* Add spacing between footer sections on mobile */
    }

    .copyright {
        margin-top: 2rem;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    color: #aaa;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--primary-color);
}

.modal-content h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.modal-content button {
    width: 100%;
    margin-top: 1rem;
    background-color: var(--primary-color);
    color: white;
}

.modal-content button:hover {
    background-color: var(--accent-color);
}