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

:root {
    --bg-color: #080808;
    --second-bg-color: #101010;
    --tetx-color: white;
    --main-color: #ea580c;
}

html {
    font-size: 60%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 7rem;
}

body {
    background: var(--bg-color);
    color: var(--tetx-color);
    position: relative;
}

.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 4rem 15%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    z-index: 1000;
    align-items: center;
}

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

.logo {
    font-size: 3rem;
    color: var(--tetx-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    overflow: auto;
}

.logo:hover {
    transform: scale(1.1);
}

span {
    background: linear-gradient(270deg, #DF8908 10%, #ff1d15 100%);
    background-clip: text;
    color: transparent;
}

.navbar a {
    font-size: 1.8rem;
    color: var(--tetx-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--main-color);
    transition: width 0.3s ease;
}

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

.gradient-btn {
    font-size: 1.8rem;
    padding: 1rem 2rem;
    border-radius: 3rem;
    background: linear-gradient(270deg, #DF8908 10%, #ff1d15 100%);
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    border: none;
    text-wrap: nowrap;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.gradient-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: -1;
}

.gradient-btn:hover {
    transform: scale(1.05);
    letter-spacing: 2px;
    box-shadow: 0 0 25px var(--main-color);
}

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

section {
    min-height: 100vh;
    padding: 10rem 15%;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
    position: relative;
    z-index: 1;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 8, 0.5);
    z-index: -1;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.home-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.home-content h1 {
    font-size: 8rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}

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

.home-content p {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
}

.home-img img {
    width: 25vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    transition: all 0.5s ease;
}

.home-img img:hover {
    box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color), 0 0 100px var(--main-color);
}

.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: 3rem 0.5rem;
    transition: all 0.3s ease;
}

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

.btn-group {
    display: flex;
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: 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.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: -1;
}

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

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

.btn-group a:nth-of-type(2) {
    background-color: black;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-of-type(2):hover {
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    color: black;
}

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

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(234, 88, 12, 0.1), transparent);
    animation: shine 3s infinite;
}

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

.about-img {
    position: relative;
    transition: transform 0.3s ease;
}

.about-img::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--main-color);
    z-index: -1;
    opacity: 0.5;
}

.about-img img {
    width: 32vw;
    box-shadow: 0 0 25px var(--main-color);
    transition: all 0.5s ease;
}

.about-img:hover {
    transform: translateY(-10px);
}

.about-img:hover img {
    box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color), 0 0 100px var(--main-color);
}

.about-content {
    max-width: 50%;
}

.about-content h2 {
    font-size: 7rem;
    text-align: left;
    margin-bottom: 2rem;
    position: relative;
    background: linear-gradient(45deg, var(--main-color), #ff1d15);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--main-color);
    border-radius: 2px;
}

.about-content p {
    font-size: 1.8rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: #e0e0e0;
    text-align: justify;
}

.about-content .btn {
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, var(--main-color), #ff1d15);
    border: none;
    padding: 1.5rem 4rem;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.about-content .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.about-content .btn:hover::before {
    left: 100%;
}

.about-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.4);
}

::-webkit-scrollbar {
    width: 20px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
}

::-webkit-scrollbar-track {
    background-color: var(--bg-color);
}

.project {
    background-color: var(--second-bg-color);
}

.project-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    place-items: center;
    gap: 3rem;
    row-gap: 5rem;
    padding: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    border: 2px solid var(--main-color);
    border-radius: 3rem;
    gap: 2rem;
    padding: 3rem 2rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 5px var(--main-color);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 350px;
}

.project-card:hover {
    box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color);
    transform: scale(1.02);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card h3 {
    font-size: 2.5rem;
    color: var(--main-color);
    margin-top: 1rem;
}

.project-card p {
    font-size: 1.6rem;
    text-align: center;
    color: var(--tetx-color);
    margin: 1rem 0;
}

.heading {
    text-align: center;
    font-size: 7rem;
    margin: 5rem 0;
}

.contact {
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
    padding: 8rem 15%;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(234, 88, 12, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.contact h2 {
    margin-bottom: 3rem;
    color: var(--tetx-color);
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    font-size: 7rem;
    background: linear-gradient(45deg, var(--main-color), #ff1d15);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--main-color);
    border-radius: 2px;
}

.contact form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 5rem 0;
    text-align: center;
    background: rgba(16, 16, 16, 0.5);
    padding: 4rem;
    border-radius: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(234, 88, 12, 0.1);
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.1);
    transition: transform 0.3s ease;
}

.contact form:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(234, 88, 12, 0.2);
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 2.5rem;
    font-size: 1.8rem;
    color: var(--tetx-color);
    background-color: rgba(8, 8, 8, 0.8);
    border-radius: 1.5rem;
    border: 2px solid rgba(234, 88, 12, 0.3);
    margin: 1.5rem 0;
    resize: none;
    transition: all 0.3s ease;
}

.contact form .input-box input:focus,
.contact form textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 15px rgba(234, 88, 12, 0.3);
    outline: none;
    transform: translateY(-5px);
}

.contact form .input-box input::placeholder,
.contact form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact form .input-box {
    position: relative;
    width: 100%;
}

.contact form .btn {
    background: linear-gradient(45deg, var(--main-color), #ff1d15);
    border: none;
    padding: 1.5rem 4rem;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 3rem;
    color: white;
}

.contact form .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.contact form .btn:hover::before {
    left: 100%;
}

.contact form .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.4);
}

.footer {
    background-color: var(--second-bg-color);
    padding: 50px 0;
}

.footer .social-icons {
    text-align: center;
}

.footer ul {
    text-align: center;
    font-size: 1.8rem;
}

.footer ul li {
    display: inline-block;
    margin-left: 20px;
}

.footer ul li a {
    color: white;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.footer ul li a:hover {
    border-bottom: 3px solid var(--main-color);
}

.footer .copyright {
    text-align: center;
    margin-top: 40px;
    font-size: 16px;
}

.skills {
    min-height: auto;
    padding-bottom: 7rem;
    background: var(--second-bg-color);
    position: relative;
}

.skills .skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.skills-row .skills-column {
    flex: 1 1 40rem;
}

.skills-column .title {
    font-size: 2.5rem;
    margin: 0 0 1.5rem;
}

.skills-box .skills-content {
    position: relative;
    border: 0.2rem solid var(--main-color);
    border-radius: 0.6rem;
    padding: 0.5rem 1.5rem;
    z-index: 1;
    overflow: hidden;
}

.skills-box .skills-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0%;
    width: 0%;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transition: 0.5s;
}

.skills-box .skills-content:hover::before {
    width: 100%;
}

.skills-content .progress {
    padding: 1rem 0;
}

.skills-content .progress h3 {
    font-size: 1.7rem;
    display: flex;
    justify-content: space-between;
}

.skills-content .progress h3 span {
    color: var(--text-color);
}

.skills-content .progress .bar {
    height: 2.5rem;
    border-radius: 0.6rem;
    border: 0.2rem solid var(--main-color);
    padding: 0.5rem;
    margin: 1rem 0;
}

.skills-content .progress .bar span {
    display: flex;
    height: 100%;
    border-radius: 0.3rem;
    background: var(--main-color);
    transition: width 1s ease-in-out;
}

.skills-column:nth-child(1) .skills-content .progress:nth-child(1) .bar span {
    width: 90%;
}

.skills-column:nth-child(1) .skills-content .progress:nth-child(2) .bar span {
    width: 80%;
}

.skills-column:nth-child(1) .skills-content .progress:nth-child(3) .bar span {
    width: 65%;
}

.skills-column:nth-child(1) .skills-content .progress:nth-child(4) .bar span {
    width: 75%;
}

.skills-column:nth-child(2) .skills-content .progress:nth-child(1) .bar span {
    width: 67%;
}

.skills-column:nth-child(2) .skills-content .progress:nth-child(2) .bar span {
    width: 85%;
}

.skills-column:nth-child(2) .skills-content .progress:nth-child(3) .bar span {
    width: 70%;
}

.skills-column:nth-child(2) .skills-content .progress:nth-child(4) .bar span {
    width: 73%;
}

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

    .header {
        padding: 2rem 5%;
    }

    #menu-icon {
        display: block;
    }

    .navbar {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--second-bg-color);
        padding: 2rem 0;
        transition: all 0.3s ease;
    }

    .navbar.active {
        transform: translateX(0);
    }

    .navbar a {
        margin: 1rem 0;
        text-align: center;
    }

    .home {
        flex-direction: column;
        gap: 5rem;
    }

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

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

    .about {
        flex-direction: column;
        gap: 5rem;
        padding: 5rem 5%;
    }

    .about-img img {
        width: 80%;
    }

    .about-content {
        max-width: 100%;
    }

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

    .skills .skills-row {
        flex-direction: column;
        gap: 3rem;
    }

    .project-box {
        grid-template-columns: 1fr;
    }

    .contact {
        padding: 5rem 5%;
    }

    .contact form {
        padding: 2rem;
    }
    
    .contact form .input-box input,
    .contact form textarea {
        padding: 2rem;
    }

    .contact h2 {
        font-size: 5rem;
    }

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

/* Smooth Navigation Links */
.navbar a {
    position: relative;
    transition: all 0.3s ease;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--main-color);
    transition: width 0.3s ease;
}

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

/* Smooth Button Transitions */
.btn, .gradient-btn {
    transition: all 0.3s ease;
}

/* Smooth Image Transitions */
.home-img img, .about-img img {
    transition: all 0.5s ease;
}

/* Smooth Form Transitions */
.contact form .input-box input,
.contact form textarea {
    transition: all 0.3s ease;
}

/* Smooth Social Icons Transitions */
.social-icons a {
    transition: all 0.3s ease;
}

/* Add smooth transition to all interactive elements */
a, button, input, textarea {
    transition: all 0.3s ease;
}

/* Add smooth transition to project cards */
.project-card {
    transition: all 0.3s ease;
}

/* Add smooth transition to skills bars */
.skills-content .progress .bar span {
    transition: width 1s ease-in-out;
}

/* Add smooth transition to footer elements */
.footer .social-icons a,
.footer ul li a {
    transition: all 0.3s ease;
}

/* Add smooth transition to mobile menu */
@media (max-width: 768px) {
    .navbar {
        transition: all 0.3s ease;
    }
    
    .navbar.active {
        transform: translateX(0);
    }
}

/* Add this JavaScript to your HTML file for scroll animations */
/* 
<script>
    const observer = new IntersectionObserver((entries) => {
        entries.forEach(entry => {
            if (entry.isIntersecting) {
                entry.target.classList.add('visible');
            }
        });
    }, {
        threshold: 0.1
    });

    document.querySelectorAll('section').forEach((section) => {
        observer.observe(section);
    });
</script>
*/

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    html {
        font-size: 65%;
    }
    
    .header {
        padding: 3rem 10%;
    }
    
    .home {
        gap: 10rem;
    }
}

/* Medium screens (992px to 1199px) */
@media (max-width: 1199px) { 
    html {
        font-size: 55%;
    }
    
    .header {
        padding: 3rem 8%;
    }
    
    .home {
        gap: 8rem;
    }
    
    .home-content h1 {
        font-size: 6rem;
    }
    
    .home-content h3 {
        font-size: 3rem;
    }
}

/* Small screens (768px to 991px) */
@media (max-width: 991px) {
    html {
        font-size: 50%;
    }
    
    .header {
        padding: 2rem 5%;
    }
    
    .home {
        flex-direction: column;
        gap: 5rem;
        text-align: center;
    }
    
    .home-content {
        align-items: center;
    }
    
    .home-img img {
        width: 40vw;
    }
    
    .about {
        flex-direction: column;
        gap: 4rem;
    }
    
    .about-content {
        max-width: 100%;
    }
    
    .skills .skills-row {
        flex-direction: column;
    }

    .project-card {
        max-width: 300px;
    }
    
    .project-card img {
        height: 180px;
    }
}

/* Extra small screens (576px to 767px) */
@media (max-width: 767px) {
    html {
        font-size: 45%;
    }
    
    .header {
        padding: 2rem 4%;
    }
    
    .home-content h1 {
        font-size: 5rem;
    }
    
    .home-content h3 {
        font-size: 2.5rem;
    }
    
    .home-img img {
        width: 60vw;
    }
    
    .about-img img {
        width: 70vw;
    }
    
    .project-card {
        max-width: 280px;
    }
    
    .project-card img {
        height: 160px;
    }
    
    .contact form {
        padding: 2rem;
    }
}

/* Mobile screens (up to 575px) */
@media (max-width: 575px) {
    html {
        font-size: 40%;
    }
    
    .header {
        padding: 1.5rem 3%;
    }
    
    .home-content h1 {
        font-size: 4rem;
    }
    
    .home-content h3 {
        font-size: 2rem;
    }
    
    .home-img img {
        width: 80vw;
    }
    
    .about-img img {
        width: 90vw;
    }
    
    .contact form .input-box input,
    .contact form textarea {
        padding: 1.5rem;
    }
    
    .btn, .gradient-btn {
        padding: 0.8rem 2rem;
        font-size: 1.6rem;
    }

    .project-card {
        max-width: 250px;
    }
    
    .project-card img {
        height: 140px;
    }
}

/* Fix for very small screens */
@media (max-width: 400px) {
    html {
        font-size: 35%;
    }
    
    .navbar a {
        margin-left: 2rem;
    }
    
    .social-icons a {
        font-size: 2.5rem;
        padding: 0.8rem;
    }
}
