@keyframes increaseHeight {
    0% {
        height: 0px;
    }

    100% {
        height: 200px;
    }
}

header {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 999;
    background-color: hsla(0, 0%, 100%, .9);
    box-shadow: 0 10px 50px 0 rgba(74, 144, 226, .08);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

header nav {
    height: 100px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: bold;
    border: 2px solid;
    padding: 0 20px;
}

header nav ul {
    display: flex;
    justify-content: center;
    column-gap: 30px;
}

header nav ul li {
    list-style: none;
}

header nav ul li a {
    cursor: pointer;
    text-decoration: none;
    color: var(--primary-text);
}

header nav ul li a:hover {
    /* font-weight: bold; */
    color: var(--primary-color);
}

nav ul li a:active {
    color: var(--primary-color);
}

/* Mobile MENU STYLES */
.menu-wrap {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 999;
}

.menu-wrap .toggler {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    cursor: pointer;
    width: 50px;
    height: 50px;
    opacity: 0;
}

.menu-wrap .hamburger {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    width: 60px;
    height: 60px;
    padding: 1rem;
    /* background: var(--primary-color); */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hamburger Line */
.menu-wrap .hamburger>div {
    position: relative;
    flex: none;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

/* Hamburger Lines - Top & Bottom */
.menu-wrap .hamburger>div::before,
.menu-wrap .hamburger>div::after {
    content: '';
    position: absolute;
    z-index: 1;
    top: -10px;
    width: 100%;
    height: 2px;
    background: inherit;
}

/* Moves Line Down */
.menu-wrap .hamburger>div::after {
    top: 10px;
}

/* Toggler Animation */
.menu-wrap .toggler:checked+.hamburger>div {
    transform: rotate(135deg);
}

/* Turns Lines Into X */
.menu-wrap .toggler:checked+.hamburger>div:before,
.menu-wrap .toggler:checked+.hamburger>div:after {
    top: 0;
    transform: rotate(90deg);
}

/* Rotate On Hover When Checked */
.menu-wrap .toggler:checked:hover+.hamburger>div {
    transform: rotate(225deg);
}

/* Show Menu */
.menu-wrap .toggler:checked~.menu {
    visibility: visible;
}

.menu-wrap .toggler:checked~.menu>div {
    transform: scale(1);
    transition-duration: var(--menu-speed);
}

.menu-wrap .toggler:checked~.menu>div>div {
    opacity: 1;
    transition: opacity 0.4s ease 0.4s;
}

.menu-wrap .menu {
    position: fixed;
    top: 300px;
    left: 0;
    width: 100%;
    height: 100%;
    visibility: hidden;
    /* overflow: hidden; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-wrap .menu>div {
    background: var(--overlay-color);
    border-radius: 50%;
    width: 200vw;
    height: 200vw;
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: all 0.4s ease;
}

.menu-wrap .menu>div>div {
    text-align: center;
    max-width: 90vw;
    max-height: 100vh;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.menu-wrap .menu>div>div>ul>li {
    list-style: none;
    color: #fff;
    font-size: 1.5rem;
    padding: 1rem;
}

.menu-wrap .menu>div>div>ul>li>a {
    color: inherit;
    text-decoration: none;
    transition: color 0.4s ease;
}

.menu-wrap {
    display: none;
}

/* BANNER SECTION */

/* Animations */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(0);
    }
}

.left,
.right {
    flex: 1;
}

.left {
    animation: slideInFromLeft 3s ease-in;
}

.right {
    animation: slideInFromRight 3s ease-in;
}

.right-content {
    width: 100%;
    height: 600px;
    /* background-image: url(''); */
    background-size: cover;
    background-position: center;
    margin-bottom: 110px;
}

.left .greeting,
.left #career {
    color: var(--dark);
    padding: 10px;
    font-size: 1.5rem;
}

.left #name {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1.2;
}

.btn-contact,
.btn-let-talk {
    text-decoration: none;
    display: inline-block;
    padding: 15px 50px;
    background-color: var(--secondary-color);
    border-radius: 12px;
    color: #FFF;
    /* font-weight: bold; */
    cursor: pointer;
}

.btn-download {
    font-family: 'Poppins', sans-serif;
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border: none;
    background-color: var(--secondary-color);
    cursor: pointer;
    color: var(--light);
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: all 0.3s ease; /* Smooth transition */
}

.btn-download:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px); /* Slight lift on hover */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

.btn-view-demo {
    width: 100%;
    border-radius: 12px;
    text-align: center;
}

.btn-contact:hover,
.btn-let-talk:hover {
    background-color: var(--primary-color);
    /* border: 1px solid var(--primary-color); */
    /* color: #178573; */
    /* font-weight: bold; */
}

.social {
    margin-top: 100px;
    border-top: 1px solid var(--dark);
    padding: 10px;
}

.social .social-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social a {
    color: var(--primary-text);
}

.social .line {
    width: 20px;
    height: 2px;
    background-color: var(--primary-text);
}

/*---------------- ABOUT SECTION ----------------*/

/* Modern Hero Styles */
.hero {
    min-height: calc(100vh - 120px);
    align-items: center;
    gap: 40px;
}

.hero-left {
    padding: 40px 0;
}

.hero-badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    letter-spacing: .08em;
    color: var(--primary-color);
    background: rgba(23, 133, 115, 0.08);
    border: 1px solid rgba(23, 133, 115, 0.25);
    border-radius: 999px;
    margin-bottom: 16px;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.1;
    color: var(--primary-text);
    margin-bottom: 10px;
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-typed {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    color: var(--dark);
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--secondary-text);
    max-width: 60ch;
    margin-bottom: 28px;
}

.cta-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--light);
    border-radius: 10px;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    border-radius: 10px;
}

.btn-primary:hover {
    background: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--light);
}

.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 420px;
}

.blob {
    position: absolute;
    width: clamp(280px, 38vw, 520px);
    height: clamp(280px, 38vw, 520px);
    background: radial-gradient(120% 120% at 20% 20%, var(--secondary-color), transparent 60%),
                radial-gradient(120% 120% at 80% 80%, var(--primary-color), transparent 60%);
    filter: blur(24px) saturate(110%);
    opacity: .35;
    border-radius: 40% 60% 70% 30% / 40% 30% 70% 60%;
    animation: blobFloat 12s ease-in-out infinite;
}

@keyframes blobFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(8deg);
    }
}

.photo-card {
    position: relative;
    width: clamp(220px, 26vw, 360px);
    height: clamp(220px, 26vw, 360px);
    background: linear-gradient(160deg, var(--primary-bg), var(--secondary-bg));
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,.12);
    display: grid;
    place-items: center;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--light);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: .08em;
    box-shadow: 0 10px 30px rgba(23,133,115,.4);
}

#about h1::before,
#project h1::before {
    content: "";
    display: inline-block;
    width: 50px;
    height: 5px;
    background-color: var(--primary-color);
    top: 3px;
    right: 5px;
    position: relative;
}

#about h1 #me {
    color: var(--primary-color);
}

.edu-ex {
    padding-top: 50px;
}

.edu-ex .flex {
    flex-wrap: wrap;
}

.work>div {
    flex: 1 1 30%;
    height: 300px;
    padding: 20px;
}

.sub-icon>span {
    position: relative;
}

.edu-work-icon::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 200px;
    position: absolute;
    left: 20px;
    top: 45px;
    background-color: var(--primary-color);
    animation: increaseHeight 2s ease forwards;
}

.duration {
    display: inline-block;
    width: 200px;
    height: 30px;
    padding: 5px;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, 0.1);
    text-align: center;
    border-radius: 30px;
    margin-bottom: 15px;
}

.description {
    margin-left: 3.25rem;
}

.description p:nth-child(3) {
    margin-top: 10px;
}

.description p:last-child {
    margin-top: 10px;
}

/* Programming Skills Section */

.programming {
    padding-top: 50px;
}

.programming .flex {
    gap: 70px;
}

.skills>div {
    flex: 1;
}

.skill-main {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-main .skill-wrrap {
    margin-bottom: 20px;
}

.skill-main .skill-wrrap .skill-name {
    color: var(--primary-text);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.skill-main .skill-wrrap .skill-bar {
    height: 16px;
    background-color: #ccc;
    border-radius: 8px;
}

.skill-main .skill-wrrap .skill-per {
    height: 16px;
    background: #178573;
    border-radius: 8px;
    width: 0;
    transition: 1s linear;
    position: relative;
}

.skill-main .skill-wrrap .skill-per:before {
    content: attr(per);
    position: absolute;
    padding: 4px 6px;
    background-color: #23576f;
    color: #fff;
    font-size: 7px;
    border-radius: 4px;
    top: -35px;
    right: 0;
    transform: translateX(50%);
}

.skill-main .skill-wrrap .skill-per:after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #23576f;
    top: -20px;
    right: 0;
    transform: translateX(50%) rotate(45deg);
    border-radius: 2px;
}

/* PROJECT SECTION */

#project {
    width: 100%;
}

.row,
.row>.column {
    padding: 8px;
}

.column {
    display: none;
    width: 32%;
    padding: 10px;
}

.show {
    display: block;
}

.btn.active {
    background-color: var(--primary-color);
    font-weight: bold;
}

#tabs {
    margin: 50px auto;
    text-align: center;
}

/* Tab container */
.tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
}

/* Style the buttons that are used to open the tab content */
.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
}

/* Change background color of buttons on hover */
.tab button:hover {
    background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
    background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
}

/* BLOG SECTION */

#blog {
    height: 100vh;
}

/* CONTACT SECTION */
#contact {
    margin-bottom: 100px;
}

#contact .flex>div {
    flex: 1;
}

.social-links span {
    padding-right: 10px;
}

.contact-form {
    /* background-color: var(--light); */
    color: var(--dark);
    height: 650px;
}

.contact-form .form {
    width: 500px;
    height: 600px;
    margin: 10px;
    padding: 50px;
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.3), 2px 1px 5px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

form input[type="text"],
form input[type="email"] {
    /* font-family: 'Space Mono', monospace; */
    font-family: 'Poppins', sans-serif;
    border: none;
    background: none;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

form input[type="text"]:focus,
form input[type="email"]:focus {
    border-color: var(--primary-color);
    outline: none;
}

form textarea {
    /* font-family: 'Space Mono', monospace; */
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

form label {
    font-weight: 500;
}

.btn-send {
    text-decoration: none;
    padding: 10px 50px;
    width: 200px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--light);
}

.btn-send:hover {
    background-color: var(--primary-color);
}

/* FOOTER SECTION */
footer {
    background-color: var(--primary-color);
    text-align: center !important;
    color: var(--light);
    padding: 10px 0;
}

/* Responsive YouTube Embed */
.video-embed {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 20px 0;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

footer p {
    text-align: center !important;
}

.btn-top {
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: var(--primary-text);
    position: fixed;
    right: 20px;
    bottom: 20px;
}

.icon-white {
    font-size: 28px;
    margin-right: 20px;
}

/* Toggle Switch */

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: var(--secondary-color);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider:before {
    background-color: #fff;
    bottom: 0.25rem;
    content: "";
    width: 26px;
    height: 26px;
    left: 0.25rem;
    position: absolute;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--secondary-color);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}