/* =========================
   GENERAL RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #fdfdfd;
    color: #333;
    line-height: 1.6;
}


/* =========================
   HEADER
========================= */

header {
    background: white;
    padding: 20px 8%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

nav {
    display: flex;
    align-items: center;
    justify-content: right;
}

nav h2 {
    color: blue;
    font-size: 30px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
}

nav ul li a:hover {
    color:blue;
}


/* =========================
   HERO SECTION
========================= */

.hero {
    min-height: 90vh;
    padding: 80px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: 50px;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: blue;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-image img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid blue;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}


/* =========================
   BUTTON
========================= */

.btn {
    display: inline-block;
    background: blue;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}


/* =========================
   SECTIONS
========================= */

section {
    padding: 90px 8%;
    text-align: center;
}

section h2 {
    font-size: 40px;
    color: blue;
    margin-bottom: 30px;
}


/* =========================
   ABOUT
========================= */

#about {
    background: #fff5f8;
}

#about img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 25px;
    border: 5px solid blue;
}

#about p {
    max-width: 800px;
    margin: auto;
}


/* =========================
   HOBBIES
========================= */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: auto;
}

.card {
    background: white;
    padding: 40px 20px;
    border-radius: 20px;
    font-size: 40px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: 0.4s;
}

.card h3 {
    font-size: 18px;
    margin-top: 15px;
}

.card:hover {
    transform: translateY(-10px);
}


/* =========================
   PROJECT / EXPERIENCE
========================= */

#projects {
    background: #fff5f8;
}

.project {
    background: white;
    padding: 30px;
    margin: 20px auto;
    width: 70%;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.project h3 {
    color: blue;
    margin-bottom: 10px;
}


/* =========================
   CONTACT
========================= */

.contact-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
    max-width: 1000px;
    margin: auto;
    text-align: left;
}

.contact-info,
.contact-form {
    width: 50%;
}

.contact-info h3 {
    margin-bottom: 15px;
}

.contact-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.contact-box i {
    color: blue;
    font-size: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: blue;
}

.contact-form button {
    align-self: flex-start;
}


/* =========================
   FOOTER
========================= */

footer {
    background: blue;
    color: white;
    padding: 30px;
    text-align: center;
}

.footer-content h2 {
    margin-bottom: 10px;
}

.footer-content h2 span {
    color: #fff;
}

.footer-social {
    margin: 20px 0;
}

.footer-social a {
    color: white;
    font-size: 25px;
    margin: 0 10px;
    transition: 0.3s;
}

.footer-social a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

.copyright {
    font-size: 14px;
    margin-top: 15px;
}


/* =========================
   BACK TO TOP
========================= */

.top-btn {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: blue;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.top-btn:hover {
    transform: translateY(-5px);
}


/* =========================
   ANIMATION
========================= */

@keyframes slideUp {
    0% {
        transform: translateY(40px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}


/* =========================
   MOBILE RESPONSIVENESS
========================= */

@media (max-width: 768px) {

    header {
        padding: 15px 5%;
    }

    nav ul {
        display: none;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 5%;
    }

    .hero-text h1 {
        font-size: 38px;
    }

    .hero-image img {
        width: 250px;
        height: 250px;
        margin-top: 30px;
    }

    section {
        padding: 70px 5%;
    }

    section h2 {
        font-size: 32px;
    }

    .project {
        width: 100%;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-info,
    .contact-form {
        width: 100%;
    }

}
/* =========================
   HERO BUTTONS
========================= */

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: blue;
    border: 2px solid blue;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-secondary:hover {
    background: blue;
    color: white;
    transform: translateY(-3px);
}