/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f5f0e1;
    --secondary-color: #e6ddc6;
    --accent-color: #c8b6a6;
    --text-color: #4a4a4a;
    --header-height: 60px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    margin-bottom: 2rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #7c6a55;
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--text-color);
    transition: transform 0.3s ease;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 2rem;
}

.main-nav a {
    display: block;
    padding: 5px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Main Content */
main {
    padding-top: var(--header-height);
}

section {
    padding: 4rem 0;
}

.hero {
    text-align: center;
    padding: 6rem 0;
    background-color: var(--secondary-color);
}

.hero h1 {
    margin-bottom: 1.5rem;
}

/* About Section */
.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.about-image {
    flex: 1;
    position: relative;
}

.profile-image {
    width: 100%;
    border-radius: 10px;
    display: block;
}


.about-text {
    flex: 2;
}

/* Teaching Section */
.teaching-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.teaching-card {
    padding: 2rem;
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.teaching-card:hover {
    transform: translateY(-5px);
}

/* Resources Section */
.resources-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.resources-list li {
    padding: 1rem;
    background-color: var(--secondary-color);
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.resources-list li:hover {
    transform: translateY(-3px);
}

/* Contact Section */
.contact {
    background-color: var(--secondary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-icon {
    display: block;
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-icon:hover {
    transform: scale(1.2);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #a99986;
}

/* Footer */
footer {
    background-color: var(--accent-color);
    padding: 2rem 0;
    text-align: center;
    color: white;
}

/* Media Queries */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: 0;
        background-color: var(--secondary-color);
        overflow: hidden;
        transition: height 0.3s ease;
    }
    
    .main-nav.active {
        height: calc(100vh - var(--header-height));
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 2rem;
    }
    
    .main-nav li {
        margin: 1rem 0;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        width: 80%;
        margin: 0 auto 2rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .teaching-grid {
        grid-template-columns: 1fr;
    }
}