/* Google font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Marck+Script&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Outfit:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Yeseva+One&display=swap');

/* Variables */
:root {
    /* Dimensions */
    --header-height: 3rem;

    /* Font Weights */
    --font-semi: 600;

    /* Colors */
    --first-color: #adff2f;
    --second-color: #fff;
    --third-color: #000;
    --second-sub-color: #b1b1b1;
    --third-sub-color: #1a1a1a;
    --fourth-color: #121212;

    /* Font Styles */
    --body-font: 'Poppins', serif;
    --big-font-size: 2rem;
    --h2-font-size: 1.5rem;
    --normal-font-size: 0.938rem;

    /* Margins */
    --mb-1: 0.5rem;
    --mb-2: 1rem;
    --mb-3: 1.5rem;
    --mb-4: 2rem;
    --mb-5: 2.5rem;
    --mb-6: 3rem;

    /* Z-index */
    --z-back: -10;
    --z-normal: 1;
    --z-tooltip: 10;
    --z-fixed: 100;
}

/* Media Screen Min-Width: 768px */
@media screen and (min-width: 768px) {
    :root {
        --big-font-size: 3.5rem;
        --h2-font-size: 2rem;
        --normal-font-size: 1rem;
    }
}


/* Base */
*,
::before,
::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: var(--header-height) 0 0 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    color: var(--second-color);
    background-color: var(--third-color);
}

::selection {
    background-color: var(--first-color);
    color: var(--third-color);
}

h1,
h2,
p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* Disable drag-and-drop on images */
img {
    -webkit-user-drag: none;
}



/* Custom CSS Classes */
/* Layout */
.bd_grid {
    max-width: 1024px;
    display: grid;
    grid-template-columns: 100%;
    grid-column-gap: 2rem;
    width: calc(100% - 2rem);
    margin: var(--mb-2);
}



/* Blob Cursor Effect */
.blob {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background: var(--first-color);
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: difference;
    transition: transform 0.1s ease-out, width 0.2s ease-out, height 0.2s ease-out;
    z-index: 10000;
}



/* General Navbar Styling */
nav {
    width: 100%;
    height: 65px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: var(--fourth-color);
}

.nav-container {
    max-width: 1024px;
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 62px;
}

.logo {
    z-index: 1000;
}

.logo a {
    font-size: 18px;
    font-weight: 600;
    color: var(--first-color);
    cursor: pointer;
    text-decoration: none;
}

/* Desktop Menu */
.menu-items {
    display: flex;
    gap: 1.5rem;
}

.menu-items li {
    list-style: none;
}

.menu-items a {
    text-decoration: none;
    color: var(--second-color);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem;
}

.menu-items a:hover {
    color: var(--first-color);
}

/* Dropdown for Desktop */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--fourth-color);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.dropdown-menu li {
    text-align: left;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--second-color);
    transition: 0.3s;
}

.dropdown-menu a:hover {
    color: var(--first-color);
}

/* Show dropdown on hover for desktop with animation */
.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Hamburger Menu */
.hamburger-lines {
    display: none;
    height: 20px;
    width: 28px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1000;
}

.hamburger-lines .line {
    height: 3px;
    width: 100%;
    border-radius: 10px;
    background: var(--second-color);
    transition: all 0.3s ease-in-out;
}

/* Mobile Menu */
.menu-items-mobile {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    /* Full screen height */
    background: var(--fourth-color);
    justify-content: center;
    /* Center vertically */
    align-items: center;
    /* Center horizontally */
    padding: 0;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
}

.menu-items-mobile li {
    margin: 1rem 0;
    font-size: 1.5rem;
    text-align: center;
}

.menu-items-mobile a {
    color: var(--second-color);
    text-decoration: none;
}

.menu-items-mobile a:hover {
    color: var(--first-color);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .menu-items {
        display: none;
    }

    .hamburger-lines {
        display: flex;
    }

    .menu-items-mobile {
        display: flex;
    }
}

/* Toggle Mobile Menu */
input[type="checkbox"] {
    display: none;
}

input[type="checkbox"]:checked~.menu-items-mobile {
    transform: translateX(0);
}

input[type="checkbox"]:checked~.hamburger-lines .line1 {
    transform: rotate(45deg) translate(5px, 5px);
}

input[type="checkbox"]:checked~.hamburger-lines .line2 {
    opacity: 0;
}

input[type="checkbox"]:checked~.hamburger-lines .line3 {
    transform: rotate(-45deg) translate(7px, -7px);
}




/* Section */
.section {
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.section_title {
    position: relative;
    font-size: var(--h2-font-size);
    color: var(--first-color);
    text-align: center;
    margin-top: var(--mb-1);
}

.section_title::after {
    position: absolute;
    content: '';
    width: 64px;
    height: 0.18rem;
    left: 0;
    right: 0;
    margin: auto;
    top: 2rem;
    background-color: var(--first-color);
}



/* Work Section */
.work {
    text-align: center;
}

.work_container {
    row-gap: 2rem;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1rem;
    padding-top: 25px;
    text-align: center;
}

.work_description {
    padding-top: 25px;
}

.work_social {
    padding-top: var(--mb-2);
    text-align: center;
}

.work_social_icons {
    padding-right: 15px;
    font-size: 1.5rem;
    color: var(--second-color);
}

.work_social_icons:hover {
    color: var(--first-color);
}

/* .work_img {
    transition: 0.5s;
    cursor: pointer;
    border-radius: 0.5rem;
    overflow: hidden;
} */

.work_img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Maintain square aspect ratio */
    overflow: hidden;
    border-radius: 0.5rem;
    transition: 0.5s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the image covers the container */
    object-position: center;
    display: block;
}


/* Brand Logo Section */
.brand_logo_container {
    text-align: center;
    display: flex;
    justify-content: center;
}

.brand_logo {
    max-width: 150px;
    height: auto;
    padding: 15px;
    border-radius: 0.5rem;
    transition: transform 0.5s;
}

/* Hover effect for big screens */
@media (min-width: 1024px) {
    .brand_logo:hover {
        transform: scale(1.05);
    }
}



.nav-buttons {
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
}

.btn-previous,
.btn-next {
    color: var(--second-color);
    background-color: transparent;
    padding: 5px 12px;
    border-radius: 7px;
    font-size: 18px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.btn-previous:hover,
.btn-next:hover {
    color: var(--third-sub-color);
    background-color: var(--first-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-buttons {
        padding: 0 20px;
    }

    .btn-previous,
    .btn-next {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .nav-buttons {
        padding: 10px 15px;
    }

    .btn-previous,
    .btn-next {
        font-size: 14px;
    }
}



/* Modal Styles (Tap to show the image and close) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    transition: opacity 0.2s ease-in-out;
    transform: scale(0.8);
}

.modal.show .modal-content {
    transform: scale(1);
}

.close {
    position: absolute;
    color: transparent;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

/* Arrow buttons for modal navigation */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: var(--second-color);
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    user-select: none;
    z-index: 1001;
    mix-blend-mode: difference;
}

.prev {
    left: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.75);
}

.next {
    right: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.75);
}


/* Responsive styles */
@media only screen and (max-width: 768px) {
    .modal-content {
        width: 100%;
    }

    .close {
        top: 180px;
        right: 15px;
        color: transparent;
    }

    .prev,
    .next {
        font-size: 18px;
        padding: 12px;
    }
}

@media only screen and (min-width: 1024px) {
    .close {
        top: 20px;
        right: 350px;
        padding: 10px;
        border-radius: 50%;
    }

    .close:hover,
    .close:focus {
        color: transparent;
        text-decoration: none;
        cursor: pointer;
        transform: scale(1.1);
    }
}




/* General Footer Styling */
footer {
    background: var(--first-color);
    color: var(--third-color);
    text-align: center;
    padding: 40px 0;
}

/* Social Media Section */
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10%;
}

.social-text {
    font-size: 16px;
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    color: var(--third-color);
    font-size: 24px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--second-color);
}

/* Horizontal Line */
hr {
    border: 1px solid var(--third-color);
    margin: 20px auto;
    width: 90%;
}

/* Footer Main Content */
.footer-content {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    padding: 30px 10%;
    text-align: left;
}

.footer-about,
.footer-links,
.footer-contact,
.footer-services {
    flex: 1;
    min-width: 250px;
    padding: 10px;
}

.footer-about p {
    font-size: var(--normal-font-size);
    line-height: 1.6;
}

.footer-content h3,
.footer-links h3,
.footer-contact h3,
.footer-services h3 {
    font-size: var(--h2-font-size);
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-links ul,
.footer-contact ul,
.footer-services ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li,
.footer-contact ul li,
.footer-services ul li {
    margin: 8px 0;
}

.footer-links ul li a,
.footer-services ul li a {
    color: var(--third-color);
    text-decoration: none;
    font-size: var(--normal-font-size);
    transition: 0.3s;
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
    text-decoration: underline;
}

.footer-contact ul li {
    font-size: var(--normal-font-size);
}

.footer-contact ul li i {
    margin-right: 8px;
}

/* Footer Bottom */
.footer-bottom {
    font-size: var(--normal-font-size);
    padding: 15px 0;
    width: 90%;
    margin: auto;
}

.footer-bottom span {
    font-weight: bold;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .footer-about,
    .footer-links,
    .footer-contact,
    .footer-services {
        text-align: left;
        padding: 15px 0;
    }
}

@media screen and (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-icons {
        margin-top: 10px;
    }

    .footer-content {
        flex-direction: column;
        text-align: left;
    }

    .footer-links ul li,
    .footer-contact ul li,
    .footer-services ul li {
        text-align: left;
    }
}





/* Responsive - Small Screen */
@media screen and (min-width : 768px) {
    body {
        margin: 0;
    }

    .section {
        padding-top: 4rem;
        padding-bottom: 3rem;
    }

    .section_title {
        margin-bottom: var(--mb-4);
    }

    .section_title::after {
        width: 80px;
        top: 3rem;
    }

    .work_container {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        column-gap: 2rem;
    }
}



/* Responsive - Big Screen */
@media screen and (min-width : 1024px) {
    .back-to-top:hover {
        background-color: var(--first-color);
        color: var(--third-color);
    }

    .bd_grid {
        margin-left: auto;
        margin-right: auto;
    }

    .breadcrumb {
        font-size: var(--normal-font-size);
        padding: 5px;
    }

    .work_img:hover {
        transform: scale(1.05);
    }
}