/* ===== MODERN CSS RESET & VARIABLES ===== */
:root {
    --primary-blue: #1b6f68;
    --secondary-blue: #fbbf24;
    --accent-teal: #fbbf24;
    --accent-amber: #fbbf24;
    --light-bg: #14b8a6;
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border-radius: 16px;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #fbbf24 0%, #14b8a6 100%);
    --gradient-secondary: linear-gradient(135deg, #abd116 0%, #fbbf24 100%);
    --gradient-teal: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    --gradient-light: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--gradient-light);
    min-height: 100vh;
    direction: ltr;
}

/* ===== MAIN CONTAINER ===== */
.main-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* ===== HEADER SECTION ===== */
.header {
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
    color: white;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.profile-section {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.profile-image-container {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 5px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.5s ease;
}

.profile-image-container:hover {
    transform: scale(1.05);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-image-container:hover .profile-image {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.3);
    transition: background 0.3s ease;
}

.profile-image-container:hover .image-overlay {
    background: rgba(30, 58, 138, 0.1);
}

.profile-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.student-info {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-weight: 600;
}

.contact-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.contact-info i {
    color: var(--accent-amber);
}

/* ===== SECTION HEADERS ===== */
.section-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    background: var(--card-bg);
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    border: 2px solid #e2e8f0;
    font-weight: 700;
}

/* ===== MEDIA SECTION ===== */
.media-section {
    margin-bottom: 3.5rem;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.media-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--accent-amber);
    position: relative;
    overflow: hidden;
}

.media-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-secondary);
}

.media-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.media-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.media-card i {
    color: var(--accent-amber);
}

audio, video {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

/* ===== ABOUT SECTION ===== */
.about-section {
    margin-bottom: 3.5rem;
}

.content-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border-left: 6px solid var(--accent-teal);
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-teal);
}

.content-card h2 {
    color: var(--primary-blue);
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.7rem;
    font-weight: 700;
}

.content-card p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.75rem;
}

.university-link {
    text-align: center;
    margin-top: 2.5rem;
}

.university-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gradient-teal);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.university-link a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

/* ===== COURSES SECTION ===== */
.courses-section {
    margin-bottom: 3.5rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
}

.course-list, .grades-table-container {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--accent-amber);
    position: relative;
    overflow: hidden;
}

.course-list::before, .grades-table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-secondary);
}

.course-list h3, .grades-table-container h3 {
    color: var(--primary-blue);
    margin-bottom: 1.75rem;
    font-size: 1.4rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
    font-weight: 700;
}

.course-list ol {
    list-style: none;
    counter-reset: course-counter;
}

.course-list li {
    counter-increment: course-counter;
    padding: 1.25rem 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

.course-list li:hover {
    background-color: #f8fafc;
    border-radius: 8px;
    padding-left: 15px;
}

.course-list li:last-child {
    border-bottom: none;
}

.course-list li:before {
    content: counter(course-counter);
    background: var(--gradient-secondary);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    font-weight: bold;
    flex-shrink: 0;
}

.course-name {
    font-weight: 600;
    color: var(--text-dark);
}

/* ===== TABLE STYLING ===== */
.grades-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-radius: 12px;
    overflow: hidden;
}

.table-header th {
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    padding: 1.5rem;
    text-align: center;
    border: none;
    font-size: 1.05rem;
}

.grades-table th, .grades-table td {
    padding: 1.25rem;
    text-align: center;
    border: none;
}

.grades-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.grades-table tbody tr:hover {
    background-color: #f1f5f9;
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* ===== FORMS SECTION ===== */
.forms-section {
    margin-bottom: 3.5rem;
}

.forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.form-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    border-top: 5px solid var(--accent-teal);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-teal);
}

.form-card:hover {
    transform: translateY(-8px);
}

.form-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid #f1f5f9;
}

.form-header i {
    font-size: 1.75rem;
    color: var(--accent-teal);
}

.form-header h3 {
    color: var(--primary-blue);
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.radio-option:hover {
    background-color: #f8fafc;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-teal);
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1.25rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: 'Segoe UI', sans-serif;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: var(--secondary-blue);
}

/* ===== SPECIAL TEXT ===== */
.special-section {
    margin-bottom: 3.5rem;
}

.special-text-container {
    text-align: center;
}

#special-text {
    font-weight: bold;
    font-style: italic;
    text-decoration: underline;
    font-size: 28px;
    font-family: "Segoe UI", sans-serif;
    text-align: center;
    background: var(--gradient-secondary);
    color: white;
    padding: 25px 50px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    text-shadow: 2px 2px 3px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
    box-shadow: var(--shadow-md);
    display: inline-block;
    letter-spacing: 1px;
    font-weight: 800;
}

@keyframes pulse {
    0% { 
        transform: scale(1); 
        opacity: 0.9;
    }
    50% { 
        transform: scale(1.05); 
        opacity: 1;
    }
    100% { 
        transform: scale(1); 
        opacity: 0.9;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-blue);
    color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3.5rem;
    padding: 3.5rem 3rem;
    position: relative;
    z-index: 1;
}

.footer-info h3, .footer-contact h3 {
    color: var(--accent-amber);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 1.75rem;
    text-align: center;
    font-size: 1rem;
    color: #e2e8f0;
}

/* ===== TABLE WRAPPER ===== */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.grades-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 0 1rem;
        margin: 1.5rem auto;
    }
    
    .header {
        padding: 2rem;
    }
    
    .profile-image-container {
        width: 140px;
        height: 140px;
    }
    
    .profile-info h1 {
        font-size: 2rem;
    }
    
    .media-grid, .forms-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        padding: 2.5rem 2rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
        padding: 0.75rem 2rem;
    }
    
    .content-card, .course-list, .grades-table-container, .form-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .content-card, .course-list, .grades-table-container, .form-card {
        padding: 1.5rem;
    }
    
    .grades-table {
        font-size: 0.9rem;
    }
    
    .grades-table th, .grades-table td {
        padding: 0.75rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    #special-text {
        font-size: 1.3rem;
        padding: 20px 30px;
    }
    
    .header {
        padding: 1.5rem;
    }
    
    .profile-info h1 {
        font-size: 1.7rem;
    }
    
    .student-info {
        font-size: 1.1rem;
    }
}