@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(to bottom, #fdeaea, #ffe5e5);
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

a:hover {
    opacity: 0.8;
}

header {
    background-color: #8B0000;
    padding: 15px 40px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    gap: 12px;
    align-items: center;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links li a {
    color: #fff;
    font-weight: 500;
    padding: 8px 12px;
    transition: 0.3s ease;
}

.nav-links li a:hover {
    background-color: #ffffff25;
    border-radius: 8px;
}

.hero {
    padding: 70px 20px;
    text-align: center;
    background: linear-gradient(140deg, #8B0000, #b30000);
    color: white;
    border-bottom-left-radius: 35px;
    border-bottom-right-radius: 35px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    animation: fadeIn 1.4s ease;
}

section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #8B0000;
    font-weight: 600;
    position: relative;
}

section h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: #8B0000;
    margin-top: 6px;
    border-radius: 5px;
}

.about-container {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    background: #fff1f1;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

.about-img {
    width: 130px;
    height: 130px;
    border-radius: 15px;
    object-fit: cover;
}

.about-text {
    flex: 1;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill {
    position: relative;
    background: linear-gradient(135deg, #ff9999, #ffe6e6);
    color: #8B0000;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
}

.skill:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.hidden-projects {
    display: none;
}

.load-more-checkbox:checked ~ .hidden-projects {
    display: block;
}

.project-card {
    background: linear-gradient(145deg, #9e1a1a, #b31c1c);
    color: #fff1f1;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #7a0000;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 0 20px rgba(255,150,150,0.1) inset;
    display: flex;
    flex-direction: column;
}

.project-img {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    margin: 15px 0;
    object-fit: cover;
}

.load-more-label {
    display: inline-block;
    margin: 0 auto;
    padding: 10px 25px;
    background: linear-gradient(135deg, #ff9999, #ffe6e6);
    color: #8B0000;
    font-weight: 600;
    border-radius: 25px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s ease;
}

.load-more-label:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.load-more-checkbox:checked ~ .hidden-projects .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff9999, #ffe6e6);
    color: #8B0000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-text a {
    color: #8B0000;
    font-weight: 600;
    font-size: 1.05rem;
}

.contact-text a:hover {
    color: #b30000;
}

footer {
    background-color: #8B0000;
    color: #fff;
    text-align: center;
    padding: 18px 0;
    margin-top: 60px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media(max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-direction: column;
        gap: 12px;
        margin-top: 12px;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-img {
        margin: 0 auto;
    }
}
