/*-----------------------[ 1.Main CSS ]------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Space Grotesk", sans-serif;
    font-style: normal;
    scroll-behavior: smooth;
}

/* Persian/Farsi Font */
body.rtl * {
    font-family: "IRANYekanX", sans-serif;
}

html {
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}

a {
    text-decoration: none;
}

ol,
ul {
    padding-left: 0rem !important;
}

dl,
ol,
ul {
    margin-top: 0;
    margin-bottom: 0rem;
}

ul li {
    list-style: none;
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-corner {
    display: none;
}

::-webkit-scrollbar-thumb {
    background: var(--main-text);
    background-clip: content-box;
}

::-webkit-scrollbar-track {
    background-color: #0F141C;
}

body {
    background: var(--primary-color);
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth transitions for all theme-dependent properties */
* {
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Preserve specific transitions for interactive elements */
.btn-custom,
.media-icons,
.services-box,
.info-card,
.progress-item,
.contact-sec-box,
.yer-exp-box {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Minimal dark mode toggle button */
/* Improved Theme Switcher */
.btn-theme-toggle {
    background: transparent;
    border: none;
    padding: 0;
    margin-left: 1rem;
    cursor: pointer;
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

/* Enhanced hover effect with glow */
.btn-theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

body.dark-mode .btn-theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Active state for button press */
.btn-theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon {
    width: 24px;
    height: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Sun Icon Styles */
.sun-icon {
    color: var(--main-text);
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

/* Moon Icon Styles */
.moon-icon {
    color: var(--main-text);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5) rotate(-90deg);
}

/* Force dark mode states if JS fails or before loading */
body.dark-mode .sun-icon {
    opacity: 0;
}

body.dark-mode .moon-icon {
    opacity: 1;
}

/* RTL Support */
body.rtl {
    direction: rtl;
}

body.rtl .btn-theme-toggle {
    margin-left: 0;
    margin-right: 1rem;
}

body.rtl .btn-custom-toggle-main {
    flex-direction: row-reverse;
}

body.rtl .side-menu-ul li a {
    flex-direction: row-reverse;
}

body.rtl .media-main {
    flex-direction: row-reverse;
}

body.rtl .about-col {
    border-right: none;
    border-left: 2px solid var(--primary-color);
}

body.rtl .hero-image-col {
    justify-content: start;
}

body.rtl .user-name {
    left: auto;
    right: -10px;
}

body.rtl .preloader .loading {
    letter-spacing: 0;
}

.container {
    position: relative;
}

/*-----------------------[ 2.Light Mode Colors CSS ]------------------------*/
:root {
    --primary-color: #EDF0F4;
    --side-menu-color: #000000;
    --section-background: #FFFFFF;
    --card-background: #FFF;
    --icons-background: #1E1F21;
    --main-text: #000000;
    --sub-text: #ffffff;
    --btn-border: #000000;
    --side-menu-web: #838485;
    --icons-filter: brightness(0) saturate(100%) invert(0%) sepia(97%) saturate(7486%) hue-rotate(54deg) brightness(99%) contrast(103%);
    --icons-hover: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(0%) hue-rotate(221deg) brightness(101%) contrast(101%);
}

.dark-mode {
    --primary-color: #000000;
    --side-menu-color: #1E1F21;
    --section-background: #1E1F21;
    --icons-background: #000000;
    --main-text: #FFFFFF;
    --sub-text: #b2b2b2;
    --side-menu-web: #FFF;
    --btn-border: #FFFFFF;
    --icons-filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(0%) hue-rotate(221deg) brightness(101%) contrast(101%);
    --icons-hover: brightness(0) saturate(100%) invert(0%) sepia(100%) saturate(6%) hue-rotate(210deg) brightness(97%) contrast(101%);
}

/*-----------------------[ 3.Background Animation]------------------------*/
canvas {
    position: fixed !important;
    z-index: -1;
    top: 0;
}

.background-snow-img {
    background-image: url('../images/shahin-ghanbari-CDIzBKYtoGQ-unsplash.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    height: 100%;
    width: 100%;
}

/*-----------------------[ 3.Page Loader CSS ]------------------------*/
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    /* Light glass */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    overflow: hidden;
    z-index: 99999;
    transition: all 0.5s ease-in-out;
    animation: preloaderPulse 2s ease-in-out infinite;
}

@keyframes preloaderPulse {

    0%,
    100% {
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
    }

    50% {
        backdrop-filter: blur(25px) saturate(200%);
        -webkit-backdrop-filter: blur(25px) saturate(200%);
    }
}

body.dark-mode .preloader {
    background: rgba(0, 0, 0, 0.2);
    /* Dark glass */
}

.preloader svg {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    fill: transparent;
    /* Remove solid fill to show glass */
    opacity: 0;
    /* Hidden by default, controlled by JS if needed */
}

.preloader .loading {
    font-size: 40px;
    font-weight: 700;
    color: var(--main-text);
    text-transform: uppercase;
    letter-spacing: 12px;
    z-index: 99;
    display: flex;
    gap: 10px;
}

.loading span {
    position: relative;
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px) scale(0.5) rotate(-15deg);
    display: inline-block;
    color: var(--main-text);
    text-shadow: 0 0 10px rgba(131, 132, 133, 0.5);
}

body.dark-mode .loading span {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Removed old keyframes to rely on GSAP for better control */

/*-----------------------[ 4.Whole Page Aniamtion CSS ]------------------------*/
.fade_up,
.fade_down,
.zoom_in,
.zoom_out {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade_up {
    transform: translateY(-100%);
}

.fade_down {
    transform: translateY(100%);
}

.zoom_in {
    transform: scale(0.5);
}

.zoom_out {
    transform: scale(1.5);
}

.fade_right {
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade_left {
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.flip_left {
    opacity: 0;
    transform: perspective(400px) rotateY(-90deg);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.flip_right {
    opacity: 0;
    transform: perspective(400px) rotateY(90deg);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.flip_up {
    opacity: 0;
    transform: perspective(400px) rotateX(-90deg);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.flip_down {
    opacity: 0;
    transform: perspective(400px) rotateX(90deg);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/*-----------------------[ 5.Header CSS ]------------------------*/
header {
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 30px;
    margin: 30px 0 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

body.dark-mode header {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.125)
}

/* New Menu */
body.dark-mode header.scrolled {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 40px 70px 0 rgba(0, 0, 0, 0.7),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.7);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 40px 70px 0 rgba(0, 0, 0, 0.7),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.7);
}

li.menu-btn.active a {
    color: var(--main-text);
}

.profile-name {
    color: #000000;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    line-height: 48px;
    padding-top: 90px;
}

.profile-role {
    color: #FFF;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    padding-top: 10px;
    padding-bottom: 20px;
}

.profile-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -120px;
}

.profile-image-container img {
    border-radius: 50%;
    max-width: 3456px;
    max-height: 3456px;
    width: 75%;
    height: auto;
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 1);
}

#mainHeader {
    position: sticky;
    top: 30px;
    z-index: 1000;
}

#menu-list-header {
    display: flex;
    gap: 15px;
}

#menu-list-header.side-menu-ul li a {
    padding: 12px 10px;
}


/* New Menu End */
.main-header-logo {
    display: none;
    text-decoration: none;
}

.menu-toggle-button {
    display: none;
}

.side-menu::-webkit-scrollbar {
    display: none;
}

.logo {
    filter: var(--icons-filter);
}

.logo-text {
    color: var(--main-text);
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.btn-custom img {
    filter: var(--icons-filter);
}

.btn-custom {
    color: var(--btn-border);
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    border-radius: 20px;
    border-top: 2px solid var(--btn-border);
    border-right: 4px solid var(--btn-border);
    border-bottom: 4px solid var(--btn-border);
    border-left: 2px solid var(--btn-border);
    padding: 12px 24px;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-custom:hover {
    background: var(--main-text);
    color: var(--section-background);
    border-radius: 0;
}

.btn-custom:hover img {
    filter: var(--icons-hover);
}

.btn-custom-toggle-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

/*-----------------------[ 6.Side Menu CSS ]------------------------*/
.side-menu-main {
    position: sticky;
    top: 135px;
    width: 100%;
}

.profile-image-container {
    position: relative;
    z-index: 100;
    margin-bottom: -120px;
}

.profile-image-container img {
    position: relative;
    z-index: 10;
    transition: z-index 0s;
}

.profile-image-container img:hover {
    z-index: 1000;
}

.info-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 30px;
    margin-bottom: 20px;
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .info-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.125);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.side-menu-ul li a.active {
    background: #FFF;
    border-radius: 10px;
    color: #000;
}

.side-menu-ul li a.active img {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(5%) hue-rotate(214deg) brightness(98%) contrast(102%);
}

.side-menu-ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--3, #838485);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    padding: 12px 15px;
}

.phone-text {
    color: var(--3, #000000);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.phone-num {
    color: var(--1, #FFF);
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
    display: block;
    margin-bottom: 20px;
    border-bottom: 1px solid transparent;
}

.love {
    color: var(--1, #FFF);
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
    display: block;
    border-bottom: 1px solid transparent;
}

.media-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.media-icons {
    width: 36px;
    height: 36px;
    background: var(--icons-background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
}

.media-icons:hover {
    border-radius: 10px;
    background: #FFF;
    transition: all 0.3s ease-in-out;
}

.media-icons:hover img {
    filter: brightness(0) saturate(100%) invert(11%) sepia(1%) saturate(1367%) hue-rotate(161deg) brightness(98%) contrast(97%);
}

/*-----------------------[ 7.Section One CSS ]------------------------*/
.section-hero,
.section-about,
.section-services,
.section-resume,
.section-contact {
    background: rgba(255, 255, 255, 0.2);
    padding: 60px;
    border-radius: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.12),
        0 2px 8px 0 rgba(0, 0, 0, 0.08),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .section-hero,
body.dark-mode .section-about,
body.dark-mode .section-services,
body.dark-mode .section-resume,
body.dark-mode .section-contact {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4),
        0 2px 8px 0 rgba(0, 0, 0, 0.3),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
}

.greeting-text {
    color: var(--main-text);
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    padding-bottom: 10px;
}

.greeting-text span {
    transform-origin: 70% 70%;
    display: inline-block;
    animation-name: wave-animation;
    animation-duration: 2.5s;
    animation-iteration-count: infinite;
}

@keyframes wave-animation {
    0% {
        transform: rotate(0.0deg);
    }

    10% {
        transform: rotate(14.0deg);
    }

    20% {
        transform: rotate(-8.0deg);
    }

    30% {
        transform: rotate(14.0deg);
    }

    40% {
        transform: rotate(-4.0deg);
    }

    50% {
        transform: rotate(10.0deg);
    }

    60% {
        transform: rotate(0.0deg);
    }

    100% {
        transform: rotate(0.0deg);
    }
}

.main-heading {
    color: var(--main-text);
    font-size: 48px;
    font-weight: 700;
    line-height: 64px;
    padding-bottom: 20px;
}

.sub-heading {
    color: var(--sub-text);
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
}

.hero-image-col {
    display: flex;
    align-items: center;
    justify-content: end;
    position: relative;
}

.hero-image {
    border-radius: 50%;
    max-width: 3456px;
    max-height: 3456px;
    width: 100%;
    height: auto;
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 1);
}

.user-name {
    color: #FFF;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.60) 0%, rgba(0, 0, 0, 0.30) 100%);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    position: absolute;
    left: -10px;
    bottom: 30px;
    padding: 10px 24px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.3);
}

.ityped-cursor {
    font-size: 18px;
    /* Match parent font size */
    opacity: 1;
    -webkit-animation: blink 0.3s infinite;
    -moz-animation: blink 0.3s infinite;
    animation: blink 0.3s infinite;
    animation-direction: alternate;
    color: #fff;
    display: none;
}

@keyframes blink {
    100% {
        opacity: 0;
    }
}


/*-----------------------[ 8.Section Two CSS ]------------------------*/
.about-col {
    border-right: 2px solid var(--primary-color);
}

.about-intro span {
    color: var(--main-text);
    font-size: 48px;
    font-weight: 700;
    line-height: 64px;
    max-width: 160px;
}

.about-intro {
    color: var(--main-text);
    font-size: 48px;
    font-weight: 700;
    line-height: 64px;
    max-width: 160px;
}

.WebExperts {
    color: var(--sub-text);
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    padding-top: 20px;
}

.yer-exp-box-main {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 105px;
}

.yer-exp-box {
    padding: 16px 18px;
    border-radius: 30px;
    border: 2px dashed var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 240px;
}

.yer-exp-box:hover {
    border: 2px dashed var(--main-text);
    border-radius: 0;
}

.yer-exp-box .degit {
    color: var(--main-text);
    font-size: 48px;
    font-weight: 700;
    line-height: 48px;
}

.yer-exp-box div p {
    color: var(--main-text);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.self-taught {
    color: var(--sub-text);
    font-size: 24px;
    font-weight: 400;
    line-height: 36px;
    padding-bottom: 130px;
}

.self-taught span {
    color: var(--main-text);
    font-weight: 500;
}

.self-taught-col {
    padding-left: 60px;
}

.about-detail-main {
    display: flex;
    align-items: center;
    padding-bottom: 10px;
}

.about-detail {
    color: var(--sub-text);
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    max-width: 160px;
    width: 100%;
}

.about-detail-info {
    color: var(--main-text);
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    width: 340px;
}

.about-detail-info::before {
    content: ":";
    color: var(--sub-text);
    padding: 10px;
    margin-right: 15px;
}

.about-deatils-head {
    margin-top: 20px;
}

.brand span {
    font-weight: 400;
}

/*-----------------------[ 9.Section Three CSS ]------------------------*/
.services-box {
    padding: 30px;
    background: linear-gradient(90deg, var(--section-background) 50%, var(--primary-color) 0) repeat-x,
        linear-gradient(90deg, var(--section-background) 50%, var(--primary-color) 0) repeat-x,
        linear-gradient(0deg, var(--section-background) 50%, var(--primary-color) 0) repeat-y,
        linear-gradient(0deg, var(--section-background) 50%, var(--primary-color) 0) repeat-y;
    background-size: 10px 2px, 10px 2px, 2px 10px, 2px 10px;
    background-position: 0 0, 0 100%, 0 0, 100% 0;
}

.services-box:hover {
    -webkit-animation: linearGradientMove 0.3s infinite linear;
    animation: linearGradientMove 0.3s infinite linear;
    border: none;
    border-radius: 0;
    background: linear-gradient(90deg, var(--section-background) 50%, var(--main-text) 0) repeat-x,
        linear-gradient(90deg, var(--section-background) 50%, var(--main-text) 0) repeat-x,
        linear-gradient(0deg, var(--section-background) 50%, var(--main-text) 0) repeat-y,
        linear-gradient(0deg, var(--section-background) 50%, var(--main-text) 0) repeat-y;
    background-size: 10px 2px, 10px 2px, 2px 10px, 2px 10px;
    background-position: 0 0, 0 100%, 0 0, 100% 0;
}

@-webkit-keyframes linearGradientMove {
    100% {
        background-position: 10px 0, -10px 100%, 0 -10px, 100% 10px;
    }
}

@keyframes linearGradientMove {
    100% {
        background-position: 10px 0, -10px 100%, 0 -10px, 100% 10px;
    }
}

.services-box div {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 15px;
}

.services-icon {
    filter: var(--icons-filter);
}

.web-dev-text {
    color: var(--main-text);
    font-size: 24px;
    font-weight: 500;
    line-height: 36px;
}

#services-box {
    margin-top: 40px;
}

.services-box {
    margin-bottom: 20px;
}

/*-----------------------[ 10.Section Four CSS ]------------------------*/
.tab-btn-main {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0 40px;
}

.tab-btn-main a:last-child {
    border: none;
}


.Tabcondent {
    position: absolute;
    width: 50%;
    height: 50%;
    opacity: 0;
    transition: all ease-in-out 0.3s;
}

.tab-btn.tab-active {
    border-right: 4px solid var(--btn-border) !important;
    border-bottom: 4px solid var(--btn-border) !important;
    border-left: 2px solid var(--btn-border) !important;
    border-top: 2px solid var(--btn-border) !important;
    color: var(--main-text) !important;
}

.tab-btn:hover {
    color: var(--main-text) !important;
    background: transparent;
    border: 2px dashed var(--main-text);
}

.Tabcondent.tab-active {
    width: 100%;
    height: 100%;
    opacity: 1;
    border-radius: 0px;
    transition: all ease-in-out 0.6s;
    margin: 0 auto;
    position: relative;
}






.gallery-main-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 1rem;
    justify-content: center;
    align-items: center;
}


ul.slick-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

ul.slick-dots button {
    width: 10px;
    height: 10px;
    font-size: 0;
    border-radius: 50%;
    border: none;
    margin: 0 3px;
    outline: none;
    background: var(--primary-color);
}



.logos {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: flex;
}

.logos-slide {
    animation: 30s slide infinite linear;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
}

.education {
    display: flex;
    position: relative;
    z-index: 1;
    margin-top: 20px;
}

.timeline-marker {
    border: 2px solid var(--main-text);
    border-radius: 100%;
    padding: 5px;
    background-color: var(--section-background);
}

.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 100%;
    background-color: var(--main-text);
}

.degree-title {
    color: var(--main-text);
    font-size: 20px;
    line-height: 28px;
    font-weight: 500;
    text-transform: uppercase;
    margin: 0;
    padding-bottom: 10px;
    transition: all 0.3s;
}

.institution-name {
    padding-bottom: 15px;
    font-size: 18px !important;
}

.degree-desc {
    color: var(--sub-text);
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    transition: all 0.3s;
}

.education:hover .degree-desc {
    color: var(--main-text);
}

.timeline-marker_main {
    padding-left: 20px;
}

body.rtl .timeline-marker_main {
    padding-right: 20px;
}

/*-----------------------[ 13.coding-skill-section CSS ]------------------------*/
.coding-skill-section {
    padding: 60px 0;
}

#progress {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-top: 30px;
    gap: 45px 5px;
}

.progress-item {
    display: flex;
    width: 146px;
    height: 146px;
    border-radius: 50%;
    font-size: 0;
    animation: .4s ease-out reverse;
    position: relative;
}

.progress-item::after {
    content: attr(data-display-value)'%';
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 130px;
    margin: 8px;
    border-radius: 50%;
    background: var(--section-background);
    color: var(--main-text);
    text-align: center;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 32px;
    text-transform: uppercase;
}

.skill-label {
    position: absolute;
    top: 150px;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: var(--main-text);
    text-align: center;
    width: 100%;
}

/*-----------------------[ 14.design-skill-section CSS ]------------------------*/
.design-skill-sub-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0 0 0;
    justify-content: space-between;
}

.design-skills-img-main {
    border-radius: 40px;
    border: 2px solid var(--8, #00CC97);
    background: rgba(0, 204, 151, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 179px;
    width: 100%;
    height: 80px;
}

.photoshop {
    border: 2px solid #31A8FF;
    background: rgba(49, 168, 255, 0.10);
}

.photoshop-text p:nth-of-type(2) {
    color: var(--1, #31A8FF) !important;
}

.adobe-ill {
    border: 2px solid #ff9a00;
    background: rgba(255, 154, 0, 0.10);
}

.adobe-ill-text p:nth-of-type(2) {
    color: var(--1, #ff9a00) !important;
}

.sketch {
    border: 2px solid #FFDB59;
    background: rgba(255, 219, 89, 0.10);
}

.sketch-text p:nth-of-type(2) {
    color: var(--1, #FFDB59) !important;
}

.skill-counter-main p:first-of-type {
    color: var(--main-text);
    font-size: 26px;
    font-weight: 700;
    line-height: 26px;
    text-transform: uppercase;
    padding-bottom: 5px;
}

.skill-counter-main p:nth-of-type(2) {
    color: var(--8, #00CC97);
    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
}

/*-----------------------[ 15.Award-section CSS ]------------------------*/

.flip-box-front:hover,

.mon {
    color: var(--main-text);
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    line-height: 48px;
}

.mon sup {
    font-weight: 500;
    top: -15px;
}


#select-plan input:focus {
    border: 2px dashed #000;
}




.qoute-box h2 {
    color: var(--3, #000);
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
}

.Michel {
    background: #000;
    text-align: center;
    max-width: 150px;
    color: var(--5, #FFF);
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    padding: 10px 0;
    margin-top: 20px;
}

/*-----------------------[ 18.Section Nine CSS ]------------------------*/
.contact-box-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.contact-sec-box {
    padding: 15px 25px;
    border: 2px dashed var(--primary-color);
    border-radius: 15px;
}

.contact-sec-box:hover {
    border: 2px dashed var(--main-text);
    border-radius: 0;
}

.call-us-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--main-text);
    font-size: 24px;
    font-weight: 500;
    line-height: 36px;
}

.call-us-contact-img {
    filter: var(--icons-filter);
}

.day-time {
    color: var(--3, #ffffff);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    padding: 10px 0;
}

.call-num {
    color: var(--main-text);
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
}

.map-iframe {
    width: 100%;
    height: 400px;
    border-radius: 30px;
}


/*-----------------------[ 19.Footer Section CSS ]------------------------*/
footer {
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.2);
    padding: 22px 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.12),
        0 2px 8px 0 rgba(0, 0, 0, 0.08),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4),
        0 2px 8px 0 rgba(0, 0, 0, 0.3),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
}

.rights-reserved {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rights-reserved h2,
.rights-reserved a {
    color: var(--3, #000000);
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    margin-top: 5px;
    margin-bottom: 5px;
}

body.dark-mode .rights-reserved h2,
body.dark-mode .rights-reserved a {
    color: var(--3, #ffffff);
}


/*-----------------------[ 20.Bottom top button CSS ]------------------------*/
button.bottom-top-button {
    position: fixed;
    right: 30px;
    bottom: 20px;
    z-index: 200;
    width: 50px;
    height: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0px 30px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
}

body.dark-mode button.bottom-top-button {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0px 30px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
}

button.bottom-top-button img {
    filter: var(--icons-filter);
}

button.bottom-top-button:hover {
    animation: animate-pulse 3s linear infinite;
}

/*-----------------------[ 21.Bottom left button (Language Switcher) CSS ]------------------------*/
button.bottom-left-button {
    position: fixed;
    left: 30px;
    bottom: 20px;
    z-index: 200;
    width: 50px;
    height: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0px 30px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-mode button.bottom-left-button {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0px 30px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
}

button.bottom-left-button .lang-flag {
    font-size: 14px;
    font-weight: 700;
    color: var(--main-text);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

button.bottom-left-button:hover {
    animation: animate-pulse 3s linear infinite;
}

button.bottom-left-button:hover .lang-flag {
    transform: scale(1.1);
}

/*-----------------------[ 22.Bottom Theme Button CSS ]------------------------*/
button.bottom-theme-button {
    position: fixed;
    left: 30px;
    bottom: 80px;
    /* 50px (language button height) + 10px (gap) + 20px (language button bottom) */
    z-index: 200;
    width: 50px;
    height: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0px 30px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

body.dark-mode button.bottom-theme-button {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0px 30px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
}

button.bottom-theme-button:hover {
    animation: animate-pulse 3s linear infinite;
}

button.bottom-theme-button .theme-icon {
    width: 24px;
    height: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

button.bottom-theme-button .sun-icon {
    color: var(--main-text);
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

button.bottom-theme-button .moon-icon {
    color: var(--main-text);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5) rotate(-90deg);
}

body.dark-mode button.bottom-theme-button .sun-icon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5) rotate(90deg);
}

body.dark-mode button.bottom-theme-button .moon-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
}