* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins";
}

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

:root{
    --bg-color:#080808;
    --second-bg-color:#001005;
    --text-color:white;
    --main-color:#00ff51;
    --accent-color:#00c8ff;
    --gradient-primary: linear-gradient(45deg, var(--main-color), var(--accent-color));
    --transition-speed: 0.3s;
}

body{
    background: var(--bg-color);
    color: var(--text-color);
    transition: background 0.5s ease;
    overflow-x: hidden;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease;
}

.preloader-spinner {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 5px solid var(--main-color);
    animation: preloader 1s linear infinite;
}

.preloader-finish {
    opacity: 0;
}

.header{
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 2.5rem 12%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    animation: fadeIn 1s ease forwards;
}

.header.scrolled {
    padding: 1.5rem 12%;
    background: rgba(0, 0, 0, 0.8);
}

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

.logo{
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    animation: slideInLeft 1s ease forwards;
}

.logo:hover{
    transform: scale(1.1);
    text-shadow: 0 0 10px var(--main-color);
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.4s ease;
}

.logo:hover::after {
    width: 100%;
}

span{
    color: var(--main-color);
    position: relative;
    display: inline-block;
}

span::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 81, 0.2);
    z-index: -1;
    transform: skewX(-15deg);
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

span:hover::before {
    opacity: 1;
}

.navbar {
    display: flex;
    animation: slideInRight 1s ease forwards;
}

.navbar a{
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    position: relative;
    transition: all 0.4s ease;
    padding: 0.5rem 0;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.4s ease;
}

.navbar a:hover::after {
    width: 100%;
}

.navbar a:hover{
    color: var(--main-color);
    transform: translateY(-3px);
}

section{
    min-height: 100vh;
    padding: 10rem 12%;
    margin-bottom: 2rem;
    opacity: 0;
    animation: pageTransition 1s ease forwards;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 81, 0.05), transparent 50%);
    z-index: -1;
}

.home{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
    position: relative;
    overflow: hidden;
}

.home-content{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    animation: slideInLeft 1s ease forwards;
    opacity: 0;
    animation-delay: 0.5s;
}

.home-content h1{
    font-size: 8rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.home-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transform: translateX(-100%);
    animation: slideInRight 1.5s ease forwards;
    animation-delay: 1.2s;
}

.home-content h3{
    font-size: 4rem;
    margin: 1rem 0;
    position: relative;
}

.home-content h3 span {
    position: relative;
    display: inline-block;
    animation: pulse 2s infinite;
}

.home-content p {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.8;
    position: relative;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1s;
}

.home-img {
    position: relative;
    animation: slideInRight 1s ease forwards;
    opacity: 0;
    animation-delay: 0.5s;
}

.home-img::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    filter: blur(50px);
    opacity: 0.5;
    z-index: -1;
    border-radius: 50%;
    animation: pulse 3s infinite;
}

.home-img img{
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    transition: all 0.6s ease-in-out;
    animation: float 6s ease-in-out infinite;
}

.home-img img:hover{
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color),
                0 0 100px var(--main-color);
    transform: scale(1.05) rotate(5deg);
}
.social-icons {
    margin: 3rem 0;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.5s;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    color: var(--main-color);
    margin: 0 0.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: -1;
    transition: width 0.4s ease;
    border-radius: 50%;
}

.social-icons a:hover::before {
    width: 100%;
}

.social-icons a:hover{
    color: var(--text-color);
    transform: scale(1.2) translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
    border-color: transparent;
}

.social-icons a i {
    transition: all 0.4s ease;
}

.social-icons a:hover i {
    transform: rotate(360deg);
}

.btn-group{
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 2s;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3.5rem;
    border-radius: 3rem;
    font-size: 1.8rem;
    font-weight: 600;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    gap: 0.8rem;
    background: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    color: black;
    border: 2px solid transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent-color);
    z-index: -1;
    transition: width 0.4s ease;
    border-radius: 3rem;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color);
}

.btn i {
    font-size: 2rem;
    transition: all 0.4s ease;
}

.btn:hover i {
    transform: translateX(3px);
}

/* CV Button Styles */
.cv-btn {
    background: var(--accent-color);
    box-shadow: 0 0 25px var(--accent-color);
}

.cv-btn::before {
    background: var(--main-color);
}

.cv-btn:hover i {
    transform: translateY(3px);
}

.about{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10rem;
    background-color: var(--second-bg-color);
    position: relative;
}

.about::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 81, 0.05) 0%, transparent 50%, rgba(0, 200, 255, 0.05) 100%);
    z-index: -1;
}

.about-img {
    position: relative;
    opacity: 0;
    animation: slideInLeft 1s ease forwards;
}

.about-img::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    filter: blur(50px);
    opacity: 0.3;
    z-index: -1;
    border-radius: 50%;
    animation: pulse 4s infinite;
}

.about-img img{
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    transition: all 0.6s ease-in-out;
    animation: float 6s ease-in-out infinite;
    position: relative;
}

.about-img img:hover{
    box-shadow: 0 0 25px var(--main-color),
    0 0 50px var(--main-color),
    0 0 100px var(--main-color);
    transform: scale(1.05) rotate(-5deg);
}

.about-content {
    opacity: 0;
    animation: slideInRight 1s ease forwards;
}

.about-content h2{
    font-size: 7rem;
    text-align: left;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 5px;
    background: var(--gradient-primary);
}

.about-content p{
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.8;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border-left: 3px solid var(--main-color);
    margin-bottom: 1.5rem;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.5s;
}

.about-content .btn{
    margin: 1rem 0 3rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1s;
}

.cv-note {
    font-size: 1.8rem;
    font-weight: 500;
    margin-top: 2rem;
    color: var(--accent-color);
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.8s;
}

::-webkit-scrollbar{
    width: 15px;
}
::-webkit-scrollbar-thumb{
    background: var(--gradient-primary);
    border-radius: 10px;
}
::-webkit-scrollbar-track{
    background-color: var(--bg-color);
    border-radius: 10px;
}

.heading{
    text-align: center;
    font-size: 7rem;
    margin: 5rem 0;
    position: relative;
    display: inline-block;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: 10px;
}

.services{
    background-color: var(--bg-color);
    text-align: center;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 81, 0.05), transparent 70%);
    z-index: -1;
}

.services h2{
    color: var(--text-color);
    display: inline-block;
}

.services-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    align-items: center;
    gap: 3rem;
    margin-top: 5rem;
}

.services-box{
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 255, 81, 0.1);
    height: 600px;
    border-radius: 2rem;
    cursor: pointer;
    border: 2px solid var(--main-color);
    transition: all 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(50px);
    animation: fadeIn 1s ease forwards;
}

.services-box:nth-child(1) {
    animation-delay: 0.3s;
}

.services-box:nth-child(2) {
    animation-delay: 0.6s;
}

.services-box:nth-child(3) {
    animation-delay: 0.9s;
}

.services-box::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 81, 0.2), transparent);
    transition: all 0.6s ease;
}

.services-box:hover::before {
    top: 100%;
    left: 100%;
}

.services-box:hover{
    background-color: var(--second-bg-color);
    border: 2px solid var(--main-color);
    transform: translateY(-20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-info{
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 5rem;
    transition: all 0.5s ease;
}

.service-info i {
    font-size: 8rem;
    color: var(--main-color);
    margin-bottom: 2rem;
    transition: all 0.5s ease;
}

.services-box:hover .service-info i {
    transform: scale(1.2);
    color: var(--accent-color);
}

.service-info h4{
    font-size: 4rem;
    color: var(--text-color);
    margin: 2rem 0;
    font-weight: 800;
    transition: all 0.5s ease;
    position: relative;
    display: inline-block;
}

.service-info h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.5s ease;
}

.services-box:hover .service-info h4::after {
    width: 80%;
}

.service-info p {
    font-size: 1.8rem;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.8;
    transition: all 0.5s ease;
    opacity: 0.8;
}

.services-box:hover .service-info p {
    color: var(--text-color);
    opacity: 1;
}

/* Projects Section Styles */
.projects {
    background-color: var(--bg-color);
    text-align: center;
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 81, 0.05), transparent 70%);
    z-index: -1;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
}

.project-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeIn 1s ease forwards;
    border: 1px solid rgba(0, 255, 81, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-box:nth-child(1) {
    animation-delay: 0.2s;
}

.project-box:nth-child(2) {
    animation-delay: 0.4s;
}

.project-box:nth-child(3) {
    animation-delay: 0.6s;
}

.project-box:nth-child(4) {
    animation-delay: 0.8s;
}

.project-box:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 255, 81, 0.2);
    border-color: var(--main-color);
}

.project-img {
    position: relative;
    overflow: hidden;
    height: 250px;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid var(--main-color);
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
    display: block;
}

.project-box:hover .project-img img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

/* Fallback for missing images */
.image-fallback {
    background: linear-gradient(135deg, rgba(0, 255, 81, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.fallback-icon {
    font-size: 5rem;
    color: var(--main-color);
    opacity: 0.7;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.5s ease;
}

.project-box:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1.5rem;
}

.project-link, .project-github {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: var(--main-color);
    border-radius: 50%;
    color: var(--bg-color);
    font-size: 2.5rem;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.5s ease;
}

.project-box:hover .project-link,
.project-box:hover .project-github {
    transform: translateY(0);
    opacity: 1;
}

.project-link:hover, .project-github:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.project-info {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--main-color);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.project-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.4s ease;
}

.project-box:hover .project-info h3::after {
    width: 100%;
}

.project-info p {
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto;
}

.project-tech span {
    padding: 0.5rem 1.5rem;
    background: rgba(0, 255, 81, 0.1);
    border-radius: 2rem;
    font-size: 1.4rem;
    color: var(--main-color);
    transition: all 0.4s ease;
}

.project-tech span:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: translateY(-3px);
}
.inp-btn{
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 3rem;
    font-size: 1.8rem;
    color: black;
    border: 2px solid transparent;
    font-weight: 600;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.5s;
}

.inp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent-color);
    z-index: -1;
    transition: width 0.4s ease;
    border-radius: 3rem;
}

.inp-btn:hover::before {
    width: 100%;
}

.inp-btn:hover{
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color);
}

.contact-sec{
    background-color: var(--second-bg-color);
    position: relative;
    text-align: center;
}

.contact-sec::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 81, 0.05) 0%, transparent 50%, rgba(0, 200, 255, 0.05) 100%);
    z-index: -1;
}

.contact h2{
    margin-bottom: 2rem;
    color: var(--text-color);
}

.contact-sec form {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(50px);
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.5s;
}

.input-group {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.input-box {
    flex: 1;
}

.contact-sec form .input-box input,
.contact-sec form textarea{
    width: 100%;
    padding: 1.5rem 2rem;
    font-size: 1.8rem;
    color: var(--text-color);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 1rem;
    border: 2px solid var(--main-color);
    margin: 1rem 0;
    resize: none;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-sec form .input-box input:focus,
.contact-sec form textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--main-color);
    transform: translateY(-5px);
}

.input-group-2 {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1s;
}

.footer{
    background-color: var(--bg-color);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-primary);
}

.footer .social-icons{
    text-align: center;
    margin-bottom: 30px;
    animation: fadeIn 1s ease forwards;
}

.footer ul{
    text-align: center;
    font-size: 1.8rem;
    margin: 20px 0;
    padding: 0;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.3s;
}

.footer ul li{
    display: inline-block;
    margin: 0 15px;
    position: relative;
}

.footer ul li a{
    color: var(--text-color);
    position: relative;
    padding: 5px 0;
    transition: all 0.4s ease;
}

.footer ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.4s ease;
}

.footer ul li a:hover::after {
    width: 100%;
}

.footer ul li a:hover{
    color: var(--main-color);
}

.footer .copyright{
    text-align: center;
    margin-top: 40px;
    font-size: 16px;
    opacity: 0.7;
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.6s;
}
@media(max-width:1200px) {
    html {
        font-size: 55%;
    }

    .home {
        gap: 8rem;
    }

    .services-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

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

    #menu-icon{
        display: block;
        cursor: pointer;
        animation: pulse 2s infinite;
    }

    .navbar{
        position: absolute;
        top: 100%;
        right: -100%;
        width: 270px;
        padding: 2rem;
        background-color: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(15px);
        border-left: 2px solid var(--main-color);
        border-bottom: 2px solid var(--main-color);
        border-bottom-left-radius: 2rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        transition: all 0.5s ease;
        box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.3);
    }

    .navbar.active{
        right: 0;
    }

    .navbar a{
        display: block;
        font-size: 2rem;
        margin: 1.5rem 0;
        color: var(--text-color);
        animation: slideInRight 0.5s ease forwards;
        opacity: 0;
    }

    .navbar a:nth-child(1) {
        animation-delay: 0.1s;
    }

    .navbar a:nth-child(2) {
        animation-delay: 0.2s;
    }

    .navbar a:nth-child(3) {
        animation-delay: 0.3s;
    }

    .navbar a:nth-child(4) {
        animation-delay: 0.4s;
    }

    .home{
        flex-direction: column-reverse;
        margin: 5rem 0;
        gap: 5rem;
        padding-top: 5rem;
    }

    .home-content{
        align-items: center;
        text-align: center;
    }

    .home-content h1 {
        font-size: 6rem;
    }

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

    .home-img img{
        width: 52vw;
    }

    .about{
        flex-direction: column-reverse;
        text-align: center;
        gap: 5rem;
    }

    .about-content h2{
        text-align: center;
        margin: 2rem 0;
    }

    .about-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-img img{
        width: 53vw;
    }

    .input-group {
        flex-direction: column;
        gap: 0;
    }
}

@media(max-width:768px) {
    .header {
        padding: 2rem 6%;
    }

    .header.scrolled {
        padding: 1.2rem 6%;
    }

    section {
        padding: 8rem 6%;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-content h3 {
        font-size: 2.5rem;
    }

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

    .home-img img {
        width: 70vw;
    }

    .about-img img {
        width: 70vw;
    }

    .services-box {
        height: auto;
    }

    .service-info {
        padding: 3rem;
    }

    .service-info h4 {
        font-size: 3rem;
    }

    .service-info p {
        font-size: 1.6rem;
    }

    .heading {
        font-size: 5rem;
    }

    .projects-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .project-img {
        height: 200px;
    }

    .project-info h3 {
        font-size: 2.2rem;
    }

    .project-info p {
        font-size: 1.5rem;
    }
}

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

    .header {
        padding: 1.5rem 4%;
    }

    .header.scrolled {
        padding: 1rem 4%;
    }

    section {
        padding: 6rem 4%;
    }

    .home-content h1 {
        font-size: 4rem;
    }

    .home-content h3 {
        font-size: 2rem;
    }

    .btn-group {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .social-icons a {
        font-size: 2.5rem;
        padding: 0.8rem;
    }

    .about-content h2 {
        font-size: 4rem;
    }

    .projects-container {
        grid-template-columns: 1fr;
    }

    .project-tech {
        justify-content: center;
    }

    .project-tech span {
        padding: 0.4rem 1.2rem;
        font-size: 1.2rem;
    }

    .project-link, .project-github {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }

    .footer ul li {
        margin: 0 10px;
    }
}