/* ===== CSS VARIABLES ===== */
:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --success: #28a745;
    --danger: #dc3545;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --dark-text: #333333;
    --gray-text: #555555;
    --light-gray: #eaeaea;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-light: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--gradient);
    line-height: 1.6;
    padding: 0 20px 20px 20px;
    min-height: 100vh;
    color: var(--dark-text);
}
a:focus, button:focus, input:focus, textarea:focus {
    outline: 3px solid #ffbf47;
    outline-offset: 2px;
}

/* ===== NAVBAR ===== */
.navbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: var(--white);
    padding: 15px 30px; 
    border-radius: 50px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 5px;
     z-index: 1000; 
    margin-bottom: 30px;
}
.logo {
    font-size: 3.8rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    background-color: #d2ea66;
    border-radius: 5rem;
    width: 8%;
    text-align: center;
    margin-bottom: 2%;
    position: static;

}
.nav-links ul {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: 30px;
}
.nav-links a:hover, .nav-links a:focus {
    color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

/* ===== SECTION CONTAINERS ===== */
.about-section, .references-section, .contact-section {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    padding: 40px;
    transition: transform 0.3s ease;
}
.about-section:hover, .references-section:hover, .contact-section:hover {
    transform: translateY(-5px);
}
.gallery-section, .documents-section {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    padding: 40px;
}
.section-title {
    color: var(--dark-text);
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 4px solid var(--primary);
    font-size: 2.2rem;
    font-weight: 600;
    text-align: center;
}

/* ===== ABOUT SECTION ===== */
.about-header {
    text-align: center;
    margin-bottom: 30px;
}
.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary);
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}
.about-header h1 {
    font-size: 2.8rem;
    color: var(--dark-text);
    margin-bottom: 10px;
}
.tagline {
    font-size: 1.3rem;
    color: var(--primary);
    background: var(--gradient-light);
    display: inline-block;
    padding: 8px 25px;
    border-radius: 50px;
}
.bio {
    background: var(--gradient-light);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 5px solid var(--primary);
}
.bio h2 {
    color: var(--dark-text);
    margin-bottom: 15px;
    font-size: 1.8rem;
}
.bio p {
    color: var(--gray-text);
    font-size: 1.1rem;
    line-height: 1.8;
}
.excerpt {
    background: var(--gradient-light);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
}
.read-more-btn {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}

/* ===== SLIDER & LIGHTBOX ===== */
.slider-container {
    position: relative;
    max-width: 800px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow);
}
input[type="radio"] {
    display: none;
}
.slides {
    display: flex;
    width: 300%;
    transition: transform 0.5s ease-in-out;
}
.slide {
    width: 33.333%;
    text-align: center;
}
.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}
.slide img:hover {
    transform: scale(1.05);
}
.caption {
    padding: 15px;
    text-align: center;
    background: var(--white);
}
#slide1:checked ~ .slides {
    transform: translateX(0);
}
#slide2:checked ~ .slides {
    transform: translateX(-33.333%);
}
#slide3:checked ~ .slides {
    transform: translateX(-66.666%);
}
.dots {
    text-align: center;
    margin-top: 20px;
}
.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}
#slide1:checked ~ .dots label[for="slide1"],
#slide2:checked ~ .dots label[for="slide2"],
#slide3:checked ~ .dots label[for="slide3"] {
    background-color: var(--primary);
}
.dot:hover {
    background-color: var(--primary-dark);
}

/* ===== COURSES & CALENDAR ===== */
.current-courses {
    margin: 40px 0;
}
.course-card {
    display: flex;
    gap: 30px;
    align-items: center;
    background: var(--light-bg);
    border-radius: 15px;
    padding: 25px;
}
.course-card img {
    width: 200px;
    border-radius: 12px;
}
.calendar-preview {
    margin: 40px 0;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}
.month {
    background: var(--light-bg);
    padding: 15px;
    text-align: center;
    border-radius: 12px;
    font-weight: bold;
    border-left: 4px solid var(--primary);
}

/* ===== EDUCATIONAL TIMELINE ===== */
.edu-timeline {
    list-style: none;
    padding-left: 0;
}
.edu-timeline li {
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
}

/* ===== EDUCATION CARDS (existing) ===== */
.edu-card {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    padding: 25px;
    background-color: var(--light-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--light-gray);
}
.edu-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
    border-color: var(--primary);
}
.edu-year {
    min-width: 130px;
    font-weight: bold;
    color: var(--primary);
    font-size: 1.1rem;
    background: var(--white);
    padding: 8px 15px;
    border-radius: 25px;
    text-align: center;
    height: fit-content;
    box-shadow: 0 2px 5px rgba(102, 126, 234, 0.2);
}
.edu-details h3 {
    color: var(--dark-text);
    margin-bottom: 8px;
    font-size: 1.4rem;
}
.edu-institute {
    color: #666;
    font-style: italic;
    margin-bottom: 12px;
}
.edu-desc ul {
    margin-left: 20px;
    color: var(--gray-text);
}
.edu-desc li {
    margin-bottom: 8px;
}

/* ===== CERTIFICATIONS ===== */
.cert-list {
    list-style: none;
    padding: 0;
}
.cert-list li {
    padding: 18px 25px;
    margin-bottom: 12px;
    background-color: var(--light-bg);
    border-radius: 10px;
    border-left: 4px solid var(--success);
    color: var(--gray-text);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.cert-list li:hover {
    transform: translateX(8px);
    background-color: #f0f0f0;
    box-shadow: 0 5px 15px rgba(40,167,69,0.2);
}
.cert-list li::before {
    content: "✓ ";
    color: var(--success);
    font-weight: bold;
    margin-right: 10px;
}

/* ===== SKILLS ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}
.skill-category {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--light-gray);
}
.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.2);
    border-color: var(--primary);
}
.skill-category h3 {
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--primary);
    font-size: 1.4rem;
}
.skill-category ul {
    list-style: none;
    padding: 0;
}
.skill-category li {
    padding: 10px 0;
    color: var(--gray-text);
    border-bottom: 1px dashed #dee2e6;
    display: flex;
    align-items: center;
}
.skill-category li::before {
    content: "▹";
    color: var(--primary);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* ===== WORKING EXPERIENCE ===== */
.experience {
    margin-top: 40px;
}
.exp-card {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--light-gray);
}
.exp-card h3 {
    color: var(--primary);
    margin-bottom: 5px;
}
.exp-card ul {
    margin-left: 20px;
    margin-top: 10px;
}
.exp-card li {
    margin-bottom: 8px;
}

/* ===== SEMINARS, LEADERSHIP, VOLUNTEER, HOBBIES ===== */
.seminars, .leadership, .volunteer, .hobbies {
    margin-top: 40px;
}
.seminars ul, .leadership ul, .volunteer ul, .hobbies ul {
    list-style: none;
    padding-left: 0;
}
.seminars li, .leadership li, .volunteer li, .hobbies li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--light-gray);
}
.seminars li strong, .leadership li strong {
    color: var(--primary);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    max-width: 1200px;
    margin: 40px auto;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.testimonial {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--light-gray);
}
.testimonial p {
    font-style: italic;
    margin-bottom: 15px;
}
.testimonial h4 {
    color: var(--primary);
}

/* ===== GALLERY ===== */
.gallery-section .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.gallery-item {
    background: var(--light-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--light-gray);
}
.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(102,126,234,0.3);
    border-color: var(--primary);
}
.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-caption {
    padding: 20px;
    text-align: center;
}
.gallery-caption h3 {
    color: var(--dark-text);
    margin-bottom: 8px;
    font-size: 1.3rem;
}
.gallery-caption p {
    color: var(--gray-text);
    font-size: 0.95rem;
}

/* ===== DOCUMENTS ===== */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.document-card {
    background: var(--light-bg);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
}
.document-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(102,126,234,0.2);
    border-color: var(--primary);
}
.document-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
    text-align: center;
}
.document-card h3 {
    color: var(--dark-text);
    margin-bottom: 10px;
    font-size: 1.4rem;
    text-align: center;
}
.document-card p {
    color: var(--gray-text);
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 0.95rem;
    text-align: center;
}
.download-btn {
    display: inline-block;
    background: var(--gradient);
    color: var(--white);
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(102,126,234,0.3);
    margin-top: auto;
}
.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(102,126,234,0.5);
}
.download-btn i {
    margin-right: 8px;
}

/* ===== REFERENCES ===== */
.reference-card {
    display: flex;
    gap: 25px;
    padding: 25px;
    margin-bottom: 20px;
    background-color: var(--light-bg);
    border-radius: 12px;
    border: 1px solid var(--light-gray);
    border-left: 5px solid var(--primary);
    transition: all 0.3s ease;
}
.reference-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 20px rgba(102,126,234,0.15);
    border-color: var(--primary);
}
.ref-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 5px 10px rgba(102,126,234,0.3);
}
.ref-info h3 {
    color: var(--dark-text);
    margin-bottom: 5px;
    font-size: 1.4rem;
}
.position {
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 10px;
}
.contact {
    margin: 5px 0;
}
.contact a {
    color: var(--gray-text);
    text-decoration: none;
    transition: color 0.3s;
}
.contact a:hover {
    color: var(--primary);
    text-decoration: underline;
}
.relationship {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
    color: #777;
    font-style: italic;
}

/* ===== CONTACT ===== */
.contact-info {
    background: var(--gradient-light);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid var(--light-gray);
}
.contact-info p {
    margin: 12px 0;
    font-size: 1.1rem;
}
.contact-info a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.contact-section h3 {
    color: var(--dark-text);
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-align: center;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-text);
    font-weight: 500;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102,126,234,0.1);
}
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}
.submit-btn, .reset-btn {
    flex: 1;
    padding: 14px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.submit-btn {
    background: var(--gradient);
    color: var(--white);
}
.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(102,126,234,0.4);
}
.reset-btn {
    background: var(--danger);
    color: var(--white);
}
.reset-btn:hover {
    background: #c82333;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(220,53,69,0.3);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--white);
    border-radius: 50px;
    padding: 30px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}
footer .social-links {
    margin-bottom: 15px;
}
footer .social-links a {
    color: var(--primary);
    margin: 0 15px;
    font-size: 2rem;
    transition: all 0.3s ease;
    display: inline-block;
}
footer .social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    color: var(--secondary);
}
.copyright {
    color: #999;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* ===== STUDENT INFO ===== */
.student-info {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    background: var(--gradient-light);
    padding: 10px;
    border-radius: 30px;
    margin-bottom: 20px;
}
.student-id, .student-name {
    display: inline-block;
    margin: 0 15px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    .nav-links ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .about-section, .references-section, .contact-section, .gallery-section, .documents-section {
        padding: 25px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .profile-img {
        width: 140px;
        height: 140px;
    }
    .about-header h1 {
        font-size: 2rem;
    }
    .tagline {
        font-size: 1rem;
    }
    .edu-card {
        flex-direction: column;
        gap: 15px;
    }
    .edu-year {
        align-self: flex-start;
    }
    .reference-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .ref-image {
        width: 120px;
        height: 120px;
    }
    .button-group {
        flex-direction: column;
    }
    .gallery-grid, .documents-grid, .testimonial-grid, .calendar-grid {
        grid-template-columns: 1fr;
    }
    .slide img {
        height: 250px;
    }
    .course-card {
        flex-direction: column;
        text-align: center;
    }
    .course-card img {
        width: 100%;
    }
}
@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }
    .nav-links ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.about-section, .references-section, .contact-section, .gallery-section, .documents-section, .gallery-item, .document-card, .testimonials, footer {
    animation: fadeInUp 0.8s ease-out;
}