/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 50%;
    }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: #b74b4b;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.1);
}

header .logo {
    font-size: 2.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2.4rem;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
}

header nav {
    display: flex;
    gap: 1.5rem;
}

header nav a {
    margin: 0 1rem;
    text-decoration: none;
    color: #fff;
    font-size: 1.6rem;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

header nav a:hover {
    color: #f4f4f9;
    background-color: rgba(255, 255, 255, 0.1);
}

header nav a.active {
    font-weight: bold;
    text-decoration: underline;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 30rem;
        height: 100vh;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 8rem;
        background-color: #b74b4b;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    header nav.active {
        right: 0;
    }

    header nav a {
        display: block;
        margin: 1.5rem 0;
        font-size: 1.8rem;
        width: 100%;
        text-align: center;
    }
}

/* Services Section */
.services {
    max-width: 80rem;
    margin: 2rem auto;
    padding: 2rem;
    text-align: center;
    background: #fff;
    border-radius: 0.8rem;
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
}

.services h2 {
    color: #b74b4b;
    margin-bottom: 2rem;
    font-size: 3rem;
}

.services ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 2rem;
}

.services li {
    font-size: 1.6rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: #f9f9f9;
    border-radius: 0.8rem;
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.services li:hover {
    transform: translateY(-0.5rem);
}

.services li i {
    color: #b74b4b;
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Projects Section */
.projects {
    max-width: 100rem;
    margin: 3rem auto;
    padding: 2rem;
    text-align: center;
    background: #fff;
    border-radius: 0.8rem;
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
}

.projects h2 {
    color: #b74b4b;
    margin-bottom: 2rem;
    font-size: 3rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 2rem;
}

.project-item {
    background: #f9f9f9;
    border-radius: 0.8rem;
    box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.project-item:hover {
    transform: translateY(-0.5rem);
}

.project-item img {
    max-width: 100%;
    height: auto;
    border-radius: 0.8rem;
    margin-bottom: 1rem;
}

.project-item p {
    margin-top: 1rem;
    font-weight: bold;
    font-size: 1.6rem;
}

/* GitHub Link Section */
.github-link {
    text-align: center;
    margin: 3rem auto;
    padding: 2rem;
    max-width: 80rem;
    background: #fff;
    border-radius: 0.8rem;
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
}

.github-link p {
    margin-bottom: 2rem;
    font-size: 1.6rem;
}

.github-link .btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #b74b4b;
    color: #fff;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.github-link .btn:hover {
    background: #a33a3a;
    transform: translateY(-0.3rem);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .services, .projects, .github-link {
        margin: 1.5rem;
        padding: 1.5rem;
    }
    
    .services h2, .projects h2 {
        font-size: 2.5rem;
    }
    
    .services ul {
        grid-template-columns: 1fr;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .github-link .btn {
        padding: 0.8rem 1.6rem;
        font-size: 1.4rem;
    }
}