* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: wheat;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

section:nth-child(even) {
    background: #F7F7F7;
}

header {
    width: 100%;
    background: #111;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 5%;
    max-width: 100%;
    overflow: hidden;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
    transition: 0.3s ease;
}

.nav-links li a:hover {
    color: #3B82F6;
}

.hamburger {
    display: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

#menu-toggle {
    display: none;
}

@media (max-width: 768px) {

    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: #111;
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 20px 0;
        display: none;
    }

    #menu-toggle:checked~.nav-links {
        display: flex;
    }
}

.hero {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 10% 80px;
    gap: 40px;
    height: auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #000000;
    margin-bottom: 10px;
}

.hero-content h1 span {
    color: #3B82F6;
}

.hero-content h2 {
    font-size: 2rem;
    color: #4B5563;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.1rem;
    color: #4B5563;
    max-width: 500px;
    margin-bottom: 25px;
}

.hero-btn {
    display: inline-block;
    background: #3B82F6;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.3s;
}

.hero-btn:hover {
    background: #1D4ED8;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 380px;
    max-width: 100%;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .hero {
        padding: 0 8%;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content h2 {
        font-size: 1.7rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding: 80px 5%;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-content h2 {
        font-size: 1.4rem;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin: 15px auto;
    }

    .hero-btn {
        padding: 10px 25px;
        font-size: 1rem;
    }

    .hero-image img {
        width: 280px;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }
}

.about {
    padding: 40px 10%;
    background: #ffffff;
    text-align: center;
}

.about h2 {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 20px;
}

.about-text {
    max-width: 700px;
    margin: 0 auto 30px;
    color: #4B5563;
    font-size: 1.1rem;
}

.about-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.info-box {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    padding: 25px 30px;
    width: 280px;
    border-radius: 8px;
    transition: 0.3s;
}

.info-box h3 {
    color: #3B82F6;
    margin-bottom: 10px;
}

.info-box p {
    color: #4B5563;
}

.info-box:hover {
    border-color: #3B82F6;
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .about {
        padding: 35px 5%;
    }

    .about h2 {
        font-size: 2rem;
    }

    .info-box {
        width: 100%;
        max-width: 350px;
    }
}

.projects {
    padding: 50px 10%;
    background: #ffffff;
    text-align: center;
}

.projects h2 {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 35px;
}

.projects-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.project-card {
    width: 300px;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    padding: 25px;
    border-radius: 10px;
    transition: 0.3s;
}

.project-card h3 {
    color: #000000;
    margin-bottom: 10px;
}

.project-card p {
    color: #4B5563;
    margin-bottom: 20px;
}

.project-btn {
    display: inline-block;
    background: #3B82F6;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    transition: 0.3s;
    font-size: 0.95rem;
}

.project-btn:hover {
    background: #1D4ED8;
}

.project-card:hover {
    border-color: #3B82F6;
    transform: translateY(-6px);
}

@media (max-width: 768px) {
    .projects {
        padding: 45px 5%;
    }

    .project-card {
        width: 100%;
        max-width: 350px;
    }
}

.skills {
    padding: 60px 10%;
    background: #ffffff;
    text-align: center;
}

.skills h2 {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 40px;
}

.skills-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.skill-box {
    width: 120px;
    height: 120px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
    padding: 10px;
}

.skill-box h3 {
    margin: 0;
}

.skill-box h3 img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.skill-box:hover {
    border-color: #3B82F6;
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .skills {
        padding: 50px 5%;
    }

    .skill-box {
        width: 100px;
        height: 100px;
    }

    .skill-box h3 img {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .skill-box {
        width: 90px;
        height: 90px;
    }

    .skill-box h3 img {
        width: 40px;
        height: 40px;
    }
}

.contact {
    padding: 60px 10%;
    background: #ffffff;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 15px;
}

.contact-text {
    color: #4B5563;
    margin-bottom: 40px;
    font-size: 1.1rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.contact {
    padding: 60px 10%;
    background: #ffffff;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.contact h2 {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 15px;
}

.contact-text {
    color: #4B5563;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-form {
    max-width: 600px;
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 1rem;
    color: #000000;
    outline: none;
    resize: none;
    transition: 0.3s;
}

.contact-form textarea {
    min-height: 130px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #3B82F6;
}

.contact-btn {
    background: #3B82F6;
    color: #ffffff;
    padding: 14px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    font-size: 1.1rem;
    transition: 0.3s;
}

.contact-btn:hover {
    background: #1D4ED8;
}

@media (max-width: 992px) {
    .contact {
        padding: 50px 8%;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 45px 6%;
    }

    .contact h2 {
        font-size: 2rem;
    }

    .contact-text {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .contact-form {
        max-width: 100%;
        gap: 15px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.95rem;
        padding: 12px 14px;
    }

    .contact-btn {
        padding: 12px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact {
        padding: 40px 5%;
    }

    .contact h2 {
        font-size: 1.8rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.9rem;
        padding: 11px 12px;
    }
}

.social-links {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid #3B82F6;
    border-radius: 50%;
    background: #ffffff;
    transition: 0.3s ease;
}

.social-links a img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.social-links a:hover {
    background: #3B82F6;
    border-color: #3B82F6;
    transform: translateY(-4px);
}

.social-links a:hover img {
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    .social-links {
        gap: 18px;
    }

    .social-links a {
        width: 44px;
        height: 44px;
    }

    .social-links a img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .social-links {
        gap: 15px;
    }

    .social-links a {
        width: 40px;
        height: 40px;
    }

    .social-links a img {
        width: 18px;
        height: 18px;
    }
}

.footer {
    background: #000000;
    padding: 20px 10%;
    text-align: center;
}

.footer p {
    color: #ffffff;
    font-size: 0.95rem;
}

.footer p span {
    color: #3B82F6;
    font-weight: 600;
}

.footer p span:hover {
    color: #60A5FA;
}

@media (max-width: 768px) {
    .footer p {
        font-size: 0.85rem;
    }
}