*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: -apple-system, sans-serif;
}

:root {
    --bg-color: #ffffff;
    --snd-bg-color: #e8f5f2;
    --text-color: #000000;
    --main-color: #007f70;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    color: var(--text-color);
    background: linear-gradient(-45deg, #ffffff,#e8fff9, #d5fdf9, #ffffff);
    background-size: 400% 400%;
    animation: backgroundMove 12s ease infinite;
}

@keyframes backgroundMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 5%;
    background: var(--main-color);
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
}


.logo {
    font-size: 3rem;
    color: var(--bg-color);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
    margin-left: 20px;
}

.logo:hover {
    transform: scale(1.05);
}

.navbar a {
    font-size: 1.9rem;
    color: var(--bg-color);
    margin-left: 4rem;
    font-weight: 700;
    transition: 0.3s ease;
}

.navbar a:hover,
.navber a.active {
    color: var(--text-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--bg-color);
    cursor: pointer;
    display: none;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img img {
    width: 300px;
    height: 300px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    animation: floatImage 4s ease-in-out infinite;
    transition: 0.4s ease;

}


.home-img img:hover {
    box-shadow: 0 0 25px var(--main-color),
                0 0 35px var(--main-color),
                0 0 45px var(--main-color);
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2.4rem);
    }
    100% {
        transform: translateY(0);
    }
}

.home-content {
    margin-left: 5rem;
}

.home-content h3 {
    font-size: 3.7rem;
    font-weight: 700;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

span {
    color: var(--main-color);
}

.home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p {
    font-size: 1.6rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
}

.social-media a:hover {
    transform: scale(1.2) translateY(-10px);
    background-color: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 25px var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: none;
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn:hover {
    box-shadow: 0 0 1.6rem var(--main-color);
}

.about {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: transparent;
}

.about-img img {
    width: 25vw;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease;
}

.about-img img:hover {
    box-shadow: 0 0 25px var(--main-color),
                0 0 35px var(--main-color),
                0 0 45px var(--main-color);
}

.heading {
    font-size: 6rem;
    text-align: left;
}

.about-content {
    padding: 0 4rem;
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 3rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 1rem 0 2rem;
}

/* hobbies section code */

.hobbies h2 {
    text-align: center;
    margin-bottom: 5rem;
}

.hobbies-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.hobbies-container .hobby-box {
    flex: 1 1 30rem;
    background: #5ae1cf;
    padding: 6rem 2rem 6rem;
    border-radius: 2rem;
    text-align: center;
    border: 0.3rem solid var(--main-color);
    transition: 0.3s ease
}

.hobbies-container .hobby-box:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
}

.hobby-box i {
    font-size: 7rem;
    color: var(--main-color);
}

.hobby-box h3 {
    font-size: 2.6rem;
}

.hobby-box p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}

.gallery {
    min-height: 100vh;
    padding: 90px 8%;
    background: #f7f9f8;
    background-size: 300% 300%;
    animation: galleryBackground 10s ease infinite;
}

@keyframes galleryBackground {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gallery-title {
    text-align: center;
    margin-bottom: 4rem;
}

.gallery-title h2 {
    font-size: 4.5rem;
    color: #006b5b;
    margin-bottom: 1rem;
}

.gallery-title p {
    color: #555;
    font-size: 1.6rem;
}

.gallery-grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);
    gap: 2rem;
}

.gallery-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 1.5rem;
    background: rgb(46, 155, 128);
    border: 2px solid #d9eee9;
    cursor: pointer;
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.15);
    transition: 0.3s ease;
}

.gallery-card img,
.gallery-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.4s ease;
}

.gallery-card:hover {
    transform: translateY(-7px);
    border-color: #008f7a;
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.18);
}

.gallery-card:hover img,
.gallery-card:hover video {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 25px 15px 18px;
    text-align: center;
    color: white;
    background:
        linear-gradient(
            transparent,
            rgba(0, 0, 0, 0.8)
        );
    opacity: 0;
    transition: 0.3s ease;
}
.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    font-size: 30px;
}

.gallery-overlay h3 {
    margin: 5px 0 0;

    font-size: 18px;
}

.back-home {
    display: flex;
    justify-content: center;
    margin-top: 45px;
}

.back-home a {
    padding: 12px 30px;
    background: #008f7a;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: 0.3s ease;
}

.back-home a:hover {
    background: #006b5b;
    transform: translateY(-3px);
}

.media-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.media-content img,
.media-content video {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    display: block;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5);
}

.close-button {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 50px;
    cursor: pointer;
    z-index: 10000;
}

.close-button:hover {
    color: #00bfa5;
}

@media (max-width: 800px) {
    .gallery {
        padding: 70px 5%;
    }
    .gallery-grid {
        grid-template-columns:
            repeat(2,1fr);
    }
}

@media (max-width: 550px) {
    .gallery-grid {
        grid-template-columns:
            1fr;
    }
    .gallery-title h2 {
        font-size: 32px;
    }
}

.contact {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
    background: transparent;
    background-size: 300% 300%;
    animation: contactBackground 12s ease infinite;
}

@keyframes contactBackground {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.contact .heading {
    text-align: center;
}

.contact h2 {
    margin-bottom: 3rem;
    color: var(--main-color);
}

.contact form {
    max-width: 80rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: 0.8rem;
    border: 0.25rem solid var(--main-color);
    margin: 0.7rem 0;
    resize: none;
}

.contact form .input-box input {
    width: 49%;
    margin: 0.7rem 0.35rem;
}

.contact form .btn {
    margin-top: 2rem;
}

/* footer section code */

.site-footer {
    text-align: center;
    color: var(--bg-color);
    bottom: 0;
    padding: 40px 20px 25px 20px;
    background-color: var(--main-color);
}

.send-msg-btn {
    background-color: var(--snd-bg-color);
    color: #2a9d8f;
    border: none;
    padding: 10px 28px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 35px;
    transition: 0.3s;
}

.send-msg-btn:hover {
    background-color: #f0f0f0;
}

.social-links {
    margin-bottom: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid white;
    border-radius: 50%;
    color: var(--snd-bg-color);
    font-size: 18px;
    margin: 0 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--snd-bg-color);
    color: #2a9d8f;
}

.copyrigth {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;

}

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

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }
    section {
        padding: 10rem 3%;
    }
    .contact form .input-box input {
        width: 100%;
    }
    .footer {
        padding: 2rem 3%;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
        font-size: 3.6rem;
        color: var(--bg-color);
        cursor: pointer;
    }

    .navbar {
        position: absolute;
        top: 100%;
        right: -100%;
        width: 255px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        background: var(--main-color);
        transition: 0.5s ease;
    }

    .navbar a {
        display: block;
        padding: 17px;
        font-size: 22px;
        text-align: right;
    }

    .navbar.active {
        right: 0;
    }
}

    .home {
        flex-direction: column;
    }
    .home-content h3 {
        font-size: 2.6rem;
    }
    .home-content h1 {
        font-size: 5rem;
    }
    .home-content {
        order: 2;
        margin-left: 1rem;
    }
    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }
    .about {
        flex-direction: column-reverse;
    }
    .about-img img {
        width: 70vw;
        margin-top: 4rem;
    }

@media (max-width: 617px) {
    .home-img img {
        width: 70vw;
        margin-top: 8rem;
        
    }
    .about-img img {
        width: 70vw;
        margin-top: 4rem;
    }
}

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

@media (max-width: 768px) {
    .hobbies {
        padding: 80px 5%;
    }
    .hobbies h2 {
        font-size: 34px;
    }
    .hobby-card {
        width: 280px;
        max-width: 280px;
    }
}

.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.animated-background span {
    position: absolute;
    display: block;
    width: 25px;
    height: 25px;
    background: rgba(0, 127, 112, 0.15);
    border-radius: 50%;
    animation: floating 15s linear infinite;
    bottom: -100px;
}

.animated-background span:nth-child(1) {
    left: 10%;
    width: 40px;
    height: 40px;
    animation-duration: 12s;
}

.animated-background span:nth-child(2) {
    left: 20%;
    width: 20px;
    height: 20px;
    animation-duration: 18s;
    animation-delay: 2s;
}

.animated-background span:nth-child(3) {
    left: 35%;
    width: 60px;
    height: 60px;
    animation-duration: 20s;
    animation-delay: 4s;
}

.animated-background span:nth-child(4) {
    left: 50%;
    width: 30px;
    height: 30px;
    animation-duration: 14s;
    animation-delay: 1s;
}

.animated-background span:nth-child(5) {
    left: 65%;
    width: 45px;
    height: 45px;
    animation-duration: 17s;
    animation-delay: 3s;
}

.animated-background span:nth-child(6) {
    left: 75%;
    width: 20px;
    height: 20px;
    animation-duration: 13s;
    animation-delay: 5s;
}

.animated-background span:nth-child(7) {
    left: 85%;
    width: 55px;
    height: 55px;
    animation-duration: 21s;
    animation-delay: 2s;
}

.animated-background span:nth-child(8) {
    left: 90%;
    width: 30px;
    height: 30px;
    animation-duration: 16s;
    animation-delay: 6s;
}

.animated-background span:nth-child(9) {
    left: 45%;
    width: 25px;
    height: 25px;
    animation-duration: 19s;
    animation-delay: 4s;
}

.animated-background span:nth-child(10) {
    left: 5%;
    width: 50px;
    height: 50px;
    animation-duration: 22s;
    animation-delay: 3s;
}

@keyframes floating {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateY(-50vh) rotate(180deg);
    }
    100% {
        transform: translateY(-110vh) rotate(360deg);
        opacity: 0;
    }
}

.same-background {
    background: linear-gradient(135deg, #ffffff, #d5fdf9, #ffffff, #e8fff9)!important;
    background-size: 400% 400% !important;
    animation: sameBackgroundMove 10s ease infinite !important;
}

@keyframes sameBackgroundMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

section.gallery {
    background: transparent !important;
}

button {
    display: center;
    text-decoration: none;
    background: transparent;
    color: white;
    border: 1px solid white;
    padding: 10px 20px;
    border-radius: 4px; 
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    transition: 0.2s ease;
    align-items: center;
}

