:root {
    --primary: #000000;
    --primary-light: #4c2e46;
    --secondary: #e74c3c;
    --accent: #3498db;
    --light: #f8f9fa;
    --dark: #212529;
    --text: #150b0b;
    --text-light: #6c757d;
    --highlight: #f1c40f;
    --border: #e0e0e0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--light);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary);
    text-decoration-color: black;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    background: linear-gradient(rgba(36, 16, 26, 0.9), rgba(44, 62, 80, 0.8)), 
                url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:skyblue;
}

.header-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.header-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: black;
}

.header-content .title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
    color: black;
    font-weight: 600;
}

.header-content .qualifications {
    font-size: 1.1rem;
    opacity: 0.9;
    color: black;
    font-weight: 600;
}

/* Navigation - Two Row Layout */
.main-nav {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    flex-direction: column;
}

.nav-row {
    display: flex;
    justify-content: center;
    width: 100%;
}

.nav-links {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.5rem 0;
}

.nav-links li {
    margin: 0.3rem;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
    border-radius: 4px;
}

.nav-links a i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.nav-links a:hover {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--secondary);
}

.nav-links .active-link {
    background-color: var(--secondary);
    color: white;
}

.nav-links .active-link:hover {
    background-color: #c0392b;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
    position: absolute;
    right: 20px;
    top: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 5px 0;
    transition: var(--transition);
}

/* Main Content */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.highlight-section {
    background-color: rgba(241, 196, 15, 0.05);
    border-top: 1px solid rgba(241, 196, 15, 0.2);
    border-bottom: 1px solid rgba(241, 196, 15, 0.2);
}

/* Profile Section */
.profile-section {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.profile-image {
    width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.profile-image img {
    width: 200px;
    height: 200px;
    display: block;
    margin: auto;
    object-fit: cover;
}

.social-links {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    color: white;
    background-color: var(--primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.profile-content {
    flex: 1;
}

.profile-content h2 {
    margin-bottom: 1.5rem;
}

.academic-info {
    margin-top: 1.5rem;
}

.info-item {
    margin-bottom: 1.5rem;
}
.info-item p{
    margin-left: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: black;
}

.info-item ul {
    list-style-position: inside;
    margin-top: 1.5rem;
}

.info-item li {
    margin-bottom: 0.5rem;
}

/* Teaching Section */
.subjects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.subject-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.subject-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.subject-card h3 {
    margin-bottom: 1rem;
}

.subject-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.btn-outline {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* CV Section */
.cv-container {
    max-width: 1000px;
    margin: 0 auto;
}

.cv-header {
    text-align: center;
    margin-bottom: 3rem;
}

.cv-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cv-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.cv-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.cv-preview {
    position: relative;
}

.cv-image-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.cv-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.cv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.cv-image-container:hover .cv-overlay {
    opacity: 1;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background-color: white;
    color: var(--primary);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.download-btn:hover {
    background-color: var(--secondary);
    color: white;
}

.download-btn i {
    margin-right: 0.5rem;
}

.cv-highlights h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 2px;
    background-color: var(--secondary);
}

.timeline li {
    position: relative;
    padding-bottom: 1.5rem;
    list-style: none;
}

.timeline li:last-child {
    padding-bottom: 0;
}

.timeline li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1.7rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary);
    border: 2px solid white;
}

.year {
    display: block;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.3rem;
}

.position {
    display: block;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.contact-info h3 i {
    margin-right: 0.5rem;
    color: var(--secondary);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.office-hours {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.office-hours h4 {
    margin-bottom: 0.5rem;
}

.contact-form {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.contact-form h3 i {
    margin-right: 0.5rem;
    color: var(--secondary);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    font-size: 1rem;
    color: var(--text);
    border: none;
    border-bottom: 1px solid var(--border);
    outline: none;
    background: transparent;
}

.form-group textarea {
    resize: none;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: var(--text-light);
    pointer-events: none;
    transition: var(--transition);
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -0.5rem;
    left: 0;
    font-size: 0.8rem;
    color: var(--secondary);
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background-color: var(--secondary);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: #c0392b;
}

.submit-btn i {
    margin-left: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-links h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-social h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-links a {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .profile-section {
        flex-direction: column;
    }
    
    .profile-image {
        margin: 0 auto;
    }
    
    .cv-content {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }

    .nav-links a {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2.5rem;
    }
    
    .header-content .title {
        font-size: 1.2rem;
    }
    
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 2rem;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 0.5rem 0;
        width: 100%;
    }
    
    .nav-links a {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .section-title {
        font-size: 2rem;
    }

    .nav-container {
        padding: 0.5rem 0;
    }

    .nav-row {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .profile-image {
        width: 100%;
    }

    .nav-links a {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}