/* 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);
}






/* Home Section */
.home {
    height: calc(100vh - 3rem);
    row-gap: 2rem;
}

.home_data {
    align-self: center;
}

.home_title {
    font-size: var(--big-font-size);
    margin-bottom: var(--mb-3);
}

.home_tile_color {
    color: var(--first-color);
    /* cursor: none; */
}

.home_social {
    display: flex;
    flex-direction: column;
}


/* Animating Text */
.scanner span {
    color: transparent;
    position: relative;
    overflow: hidden;
}

.scanner span::before {
    content: "Designer...!";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    border-right: 3px solid var(--first-color);
    overflow: hidden;
    color: var(--first-color);
    animation: load91371 2s linear infinite;
}

@keyframes load91371 {

    0%,
    10%,
    100% {
        width: 0;
    }

    10%,
    20%,
    30%,
    40%,
    50%,
    60%,
    70%,
    80%,
    90%,
    100% {
        border-right-color: transparent;
    }

    11%,
    21%,
    31%,
    41%,
    51%,
    61%,
    71%,
    81%,
    91% {
        border-right-color: var(--first-color);
    }

    60%,
    80% {
        width: 100%;
    }
}


.home_social_icons {
    width: max-content;
    margin-bottom: var(--mb-1);
    font-size: 1.8rem;
    color: var(--second-color);
}

.home_social_icons:hover {
    color: var(--first-color);
}

.home_img {
    position: absolute;
    right: 0;
    bottom: 0;
    top: 50%;
    width: 350px;
}

.home_img img {
    width: 100%;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 8px 18px;
    border: 1.5px solid var(--first-color);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    font-size: var(--normal-font-size);
    cursor: pointer;
    color: var(--first-color);
    z-index: 1;
}

.download {
    margin-left: 20px;
}

.button:before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleY(1) scaleX(1.25);
    top: 100%;
    width: 140%;
    height: 180%;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: block;
    transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
}

.button:after {
    content: "";
    position: absolute;
    left: 55%;
    transform: translateX(-50%) scaleY(1) scaleX(1.45);
    top: 180%;
    width: 160%;
    height: 190%;
    background-color: var(--first-color);
    border-radius: 50%;
    display: block;
    transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
}

.button:hover {
    color: var(--third-color);
    border: 1px solid var(--first-color);
}

.button:hover:before {
    top: -35%;
    background-color: var(--first-color);
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.button:hover:after {
    top: -45%;
    background-color: var(--first-color);
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}



/* Tooltip */
.tooltip {
    position: absolute;
    top: calc(-1 * 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(0%) scale(0);
    padding: 2px 15px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s;
    background: var(--first-color);
    color: var(--third-color);
    border-radius: 30px;
    z-index: 99999;
    white-space: nowrap;
}

.tooltip::before {
    position: absolute;
    content: "";
    height: 0.6em;
    width: 0.6em;
    bottom: -0.2em;
    left: 50%;
    transform: translate(-50%) rotate(45deg);
    background: var(--tooltip-bg);
    border-bottom-right-radius: 0.175rem;
}



/* Section */
.section {
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.section_title {
    position: relative;
    font-size: var(--h2-font-size);
    color: var(--first-color);
    margin-top: var(--mb-2);
    margin-bottom: var(--mb-4);
    text-align: center;
}

.section_title::after {
    position: absolute;
    content: '';
    width: 64px;
    height: 0.18rem;
    left: 0;
    right: 0;
    margin: auto;
    top: 2rem;
    background-color: var(--first-color);
}



/* About Section */
.about_container {
    row-gap: 2rem;
    text-align: center;
}

.about_subtitle {
    margin-bottom: var(--mb-2);
}

.about_img {
    justify-content: center;
}

.about_img img {
    width: 500px;
    border-radius: 1rem;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Counter */
.stats-container {
    display: flex;
    gap: 3rem;
    padding-top: 25px;
    justify-content: center;
}

.stat {
    text-align: center;
    cursor: pointer;
}

.counter {
    font-size: var(--big-font-size);
    font-weight: bold;
    color: var(--first-color);
}

.label {
    font-size: 1rem;
    color: var(--second-color);
}



/* Skills */
.skills_subtitle {
    margin-bottom: var(--mb-2);
    text-align: center;
}

.skills_text {
    margin-bottom: var(--mb-4);
}


/* Skill Progress Bars */
.container {
    position: relative;
    max-width: 500px;
    width: 100%;
    margin: 0 15px;
    padding: 10px 20px;
    border-radius: 7px;
}

.container .skill-box {
    width: 100%;
    margin: 25px 0;
}

.skill-box .title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--second-color);
}

.skill-box .skill-bar {
    height: 8px;
    width: 100%;
    border-radius: 6px;
    margin-top: 6px;
    background: rgba(0, 0, 0, 0.1);
}

.skill-bar .skill-per {
    position: relative;
    display: block;
    height: 100%;
    width: 90%;
    border-radius: 6px;
    background: var(--first-color);
    animation: progress 0.4s ease-in-out forwards;
    opacity: 0;
}

.skill-per.Photoshop {
    width: 85%;
    animation-delay: 0.50s;
}

.skill-per.Illsutrator {
    width: 80%;
    animation-delay: 0.75s;
}

.skill-per.Lightroom {
    width: 90%;
    animation-delay: 1s;
}

.skill-per.Indesign {
    width: 65%;
    animation-delay: 1.25s;
}

.skill-per.Figma {
    width: 75%;
    animation-delay: 1.50s;
}

@keyframes progress {
    0% {
        width: 0;
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

.skill-per .skill_tooltip {
    position: absolute;
    right: -14px;
    top: -28px;
    font-size: 9px;
    font-weight: 500;
    color: var(--third-color);
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--second-color);
    z-index: 1;
}

.skill_tooltip::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    height: 10px;
    width: 10px;
    z-index: -1;
    background-color: var(--second-color);
    transform: translateX(-50%) rotate(45deg);
}

.skills_img {
    width: 500px;
    border-radius: 1rem;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Docs Section */
.docs {
    color: var(--first-color);
    font-size: var(--normal-font-size);
}

.docs:hover {
    text-decoration: underline;
}




/* Work Section */
/* Container Styles */
.work_container {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 20px;
    margin-top: var(--mb-2);
}

.work_card {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    /* Space between cards */
    justify-content: center;
    align-items: stretch;
}

/* Card Styles */
.card_item {
    flex: 1 1 calc(33.333% - 20px);
    /* 3 cards per row */
    max-width: calc(33.333% - 20px);
    min-height: 165px;
    /* Ensure equal height */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background-color: var(--fourth-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card_item:hover {
    transform: scale(1.05);
}

/* Link inside card */
.card_item_link {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Ensures link fills the card */
    justify-content: center;
    /* Center content vertically */
    padding: 30px 20px;
    color: var(--second-color);
    text-decoration: none;
    position: relative;
    z-index: 2;
}

/* Hover Animation */
.card_item_bg {
    position: absolute;
    top: -75px;
    right: -75px;
    width: 128px;
    height: 128px;
    background-color: var(--first-color);
    border-radius: 50%;
    z-index: 1;
    transition: transform 0.5s ease;
}

.card_item:hover .card_item_bg {
    transform: scale(10);
    color: var(--fourth-color);
}

/* Text Styles */
.card_item_title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    z-index: 2;
    position: relative;
}

.card_item_type {
    color: var(--second-sub-color);
}

.card_item_year {
    color: var(--second-sub-color);
    font-size: 12px;
    text-align: left;
}

/* Hover Text Color Change */
.card_item:hover .card_item_title {
    color: var(--third-color);
}

.card_item:hover .card_item_type {
    color: var(--third-color);
}

/* Responsive Styles */
@media only screen and (max-width: 768px) {
    .card_item {
        flex: 1 1 calc(50% - 20px);
        /* 2 cards per row */
        max-width: calc(50% - 20px);
    }
}

@media only screen and (max-width: 480px) {
    .card_item {
        flex: 1 1 100%;
        /* 1 card per row */
        max-width: 100%;
    }
}





/* Contact Section */
/* Input Feiled */
.control_input {
    width: 100%;
    font-family: 'Poppins', sans-serif !important;
    font-size: var(--normal-font-size);
    padding: 1rem;
    border-radius: 12px;
    border: 1.5px solid var(--third-sub-color);
    outline: none;
    margin-bottom: var(--mb-4);
    background: none;
    color: var(--second-color);
    transition: border-color 0.3s ease;
    caret-color: var(--first-color);
    resize: none;
}

.control_input::placeholder {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 400;
}


.control_input:focus {
    border-color: var(--first-color);

}

.control_input:hover {
    border: 1px solid var(--first-color);
}

.contact_btn {
    justify-content: center;
    padding: 5px 15px;
}

.conatct_icons {
    justify-content: center;
}

button {
    background-color: transparent;
}


/* International Telephone Input Overrides */
.iti {
    width: 100%;
    margin-bottom: var(--mb-4);
}

.iti__selected-flag {
    padding: 0 15px;
    border-radius: 0.5rem 0 0 0.5rem;
    background-color: var(--fourth-color);
}

.iti__arrow {
    border-top-color: var(--second-color) !important;
}

.iti__country-list {
    background-color: var(--fourth-color);
    border: 0.5px solid var(--first-color);
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Hide scrollbar for Webkit browsers (Chrome, Safari, Edge) */
.iti__country-list::-webkit-scrollbar {
    display: none !important;
}

/* Enable smooth scrolling while hiding scrollbar */
.iti__country-list:hover {
    overflow-y: auto !important;
}

.iti__divider {
    border-bottom-color: var(--first-color) !important;
}

.iti__country.iti__highlight {
    background-color: var(--third-sub-color) !important;
}

.iti__flag-container {
    padding: 0 10px;
}

/* Adjusts the dropdown width */
.iti {
    width: 100%;
}

/* Styling for the selected flag area */
.iti__selected-flag {
    background-color: var(--third-color);
    border-radius: 8px 0 0 8px;
    padding: 10px;
}

/* Enhancing the dropdown list appearance */
.iti__country-list {
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.iti__country {
    background-color: var(--third-color);
}

/* Country list hover effect */
.iti__country:hover {
    background-color: var(--fourth-color);
    color: var(--second-color);
}

/* Flag container styling */
.iti__flag-container {
    padding: 0 12px;
}

/* Dropdown Service Input Styling */
select.control_input {
    background: none;
    color: var(--second-color);
    cursor: pointer;
    -webkit-appearance: none;
    /* Hides default arrow in Chrome, Safari, Edge, Opera */
    -moz-appearance: none;
    /* Hides default arrow in Firefox */
    appearance: none;
    /* Hides default arrow in other browsers */
}

/* Custom arrow for the dropdown */
select.control_input::after {
    content: '\25BC';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--second-color);
}

option {
    background-color: var(--fourth-color);
    color: var(--second-color);
}

option:hover {
    background-color: var(--fourth-color);
}

select.control_input:focus {
    border-color: var(--first-color);
}

select.control_input:hover {
    border: 1px solid var(--first-color);
}




/* 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-6);
    }

    .section_title::after {
        width: 80px;
        top: 3rem;
    }

    .home {
        height: 100vh;
    }

    .home_title {
        margin-top: 10rem;
    }

    .home_data {
        align-self: flex-end;
    }

    .home_social {
        padding-top: 0;
        padding-bottom: 20rem;
        flex-direction: row;
        align-self: flex-end;
    }

    .home_social_icons {
        margin-bottom: 0;
        margin-right: var(--mb-4);
    }

    .home_img {
        width: 400px;
        bottom: 15%;
    }

    .home_img img {
        width: 100%;
    }

    .about_container,
    .skills_container {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
        text-align: initial;
    }

    .about_img img {
        width: 500px;
    }

    .contact_form {
        width: 400px;
    }

    .contact_container {
        justify-items: center;
    }
}



/* Responsive - Big Screen */
@media screen and (min-width : 1024px) {
    .bd_grid {
        margin-left: auto;
        margin-right: auto;
    }

    .home_img {
        right: 10%;
        width: 450px;
    }

    .home_social_icons:hover .tooltip {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(-100%) scale(1);
    }
}