*{
    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;
    --text-color: white;
    --main-color: #ea580c;
} 

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

body{
    background: var(--bg-color);
    color: var(--text-color);
}

.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;
    align-items: center;
    z-index: 1000;
    border-bottom: none !important;
}

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

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

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

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

.nav a{
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3 ease-in-out;
    border-bottom: 3px solid transparent;
}
.nav a:hover{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color); 
}

.nav.active {
    display: block;
}

.home{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10rem;
    text-align: center;
    min-height: auto;
    padding: 2rem 15% 5rem;
    margin-top: 90px;
}

.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;
}

@keyframes fadeIn{
    0% {opacity: 0;}
    100% {opacity: 1;}
}

.fade-in-text{
    opacity: 0;
    animation: fadeIn 8s forwards;
    color: #ffffff;
    font-weight: bold;
    font-size: 18px;
}

.home-img img{
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    transition: 0.4s ease-in-out;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 30rem;
    height: 30rem;
}


.home-img img:hover{

    box-shadow: 0 0 25px var(--main-color);
    box-shadow: 0 0 50px var(--main-color);
    box-shadow: 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: 0.3s ease-in-out;
}

.social-icons a:hover{
    color: var(--text-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;
    margin-top: 2%;
    margin-bottom: 2%;
    margin-left: 2%;
    margin-right: 2%;
    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: 0.3s ease-in-out;
    display: grid;
    place-items: center;
}

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

.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);
    min-height: auto;
    padding: 8rem 15%;
}
.about-content h2 {
  font-size: 7rem;
  text-align: left;
  margin-bottom: 40px; 
  display: inline-block;
  border-bottom: 5px solid #0ef;
  padding-bottom: 10px; 
}

.about-content p {
    font-size: 1.8rem;
    border: 2px solid #ea580c;
    border-radius: 12px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 15px #ea580c, inset 0 0 5px rgba(255, 123, 0, 0.2);
    transition: 0.3s ease;
}

.about-content p:hover {
    box-shadow: 0 0 25px #ea580c;
    transform: translateY(-5px);
}

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

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

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

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

.skills{
    background-color: var(--bg-color);
    color: black;
    text-align: center;
    overflow: hidden;
    min-height: auto;
    /* padding: 2rem 15% 5rem; */
}

.skills h2 {
  font-size: 7rem;
  text-align: center;
  margin: 0 auto 40px auto;
  display: inline-block;
  border-bottom: 5px solid #0ef;
  padding-bottom: 2px; 
  color: var(--text-color);
}

.skills-container{
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 20px;
}

.skills-box{
    flex: 1 1 300px;
    height: auto;
    background: #ea580c;
    padding: 30px;
    border-radius: 2px solid #ea580c;
    text-align: center;
    transition: 0.3s ease;
    border-radius: 20px;
    border: 2px solid #ea580c;
    display: flex;
    flex-direction: column;
}

.skills-box:hover{
    background: var(--second-bg-color);
    color: var(--main-color);
    border: 5px solid var(--main-color);
    transform: translateY(-6);
}

.skills-box h4{
    font-size: 4rem;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

.skills-box h4::after{
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background: #0ef;
    bottom: -8px;
    left: 20%;
    border-radius: 5px;
}

.skills h3{
    font-size: 15px;
}

.skills-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 20px;
    margin-top: 20px; 
    width: 100%;
}

.skill-info img{
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
}

.skill-info{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.skill-info h3,
.skill-info h4{
    margin-top: 8px;
    display: inline-block;
    border-bottom: 2px solid #0ef;
    padding-bottom: 2px;
    transition: 0.3 ease;
}

.skills-info:hover h3,
.skill-info:hover h4{
    border-bottom: 2px solid #0ef;
    color: #0ef;
}


.projects{
    background: var(--second-bg-color);
    text-align: center;
    color: black;
    min-height: auto;
    /* padding: 2rem 15% 5rem; */
}

.projects-box {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.projects h2 {
  font-size: 7rem;
  text-align: center;
  margin: 0 auto 40px auto;
  display: inline-block;
  border-bottom: 5px solid #0ef;
  padding-bottom: 2px; 
  color: var(--text-color);
}

.project-card{
    flex: 1 1 300px;
    background: #ea580c;
    padding: 30px;
    border-radius: 2px solid #ea580c;
    text-align: center;
    transition: 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.project-card:hover{
    background: var(--second-bg-color);
    color: var(--main-color);
    border: 5px solid var(--main-color);
    transform: scale(1.03);
}

.project-card img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    border-radius: 8px;
}

.project-card h3 {
    font-size: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    color: black; 
    transition: color 0.3s ease; 
}

.project-card h3::after {
    content: '';
    position: absolute;
    width: 100%;       
    height: 3px;
    background: #ea580c; 
    bottom: -8px;
    left: 0;
    border-radius: 5px;
    transition: background 0.3s ease; 
}

.project-card:hover h3 {
    color:#ea580c; 
}

.project-card:hover h3::after {
    background: #0ef; 
}


.project-card p {
    font-size: 14px;
    color: #ffffff;
}

.project-card ul {
    text-align: left;
    font-size: 13px;
    padding-left: 20px;
    margin: 10px auto;
    width: fit-content;
}

.project-card .btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #0ef;
    color: black;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 800;
}

.certificate{
    background-color: var(--bg-color);
    color: black;
    text-align: center;
    overflow: hidden;
    min-height: auto;
    /* padding: 2rem 15% 5rem; */
}

.certificate h2 {
  font-size: 7rem;
  text-align: center;
  margin: 0 auto 40px auto;
  display: inline-block;
  border-bottom: 5px solid #0ef;
  padding-bottom: 2px; 
  color: var(--text-color);
}

.certificate-container{
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 20px;
}

.certificate-box{
    flex: 1 1 300px;
    background: #ea580c;
    padding: 30px;
    border-radius: 2px solid #ea580c;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3 ease;
    border-radius: 15px;
    overflow: hidden;
}

.certificate-box:hover{
    background: var(--second-bg-color);
    color: var(--main-color);
    border: 5px solid var(--main-color);
    transform: translateY(-6);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.certificate-box h4{
    font-size: 1.6rem;
    margin-top: 1rem;
}

.certificate-box h4::after{
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    bottom: -8px;
    left: 20%;
    border-radius: 5px;
}

.certificate-box img{
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px var(--main-color);
    transition: transform 0.3s ease;
}

.view-btn{
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    border-radius: 20px;
    background: #0ef;
    color: black;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: 0.3s ease;
}

.view-btn:hover{
    background: #0ef;
    box-shadow: 0 0 15px #ff7a00;
}

.contact{
    background: var(--second-bg-color);
    text-align: center;
    min-height: auto;
    padding: 2rem 15% 5rem;
}

.button-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.contact h2{
    font-size: 5rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
    display: inline-block;
    border-bottom: 5px solid #00eeff;
    color: var(--text-color);
}

.button-container .btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background: #00eeff;
    border-radius: 4rem;
    box-shadow: 0 0 1rem #00eeff;
    font-size: 1.6rem;
    color: var(--second-bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
    margin: 1rem;
    text-decoration: none;
}

.button-container .btn:hover{
    box-shadow: none;
    background: #0ef;
    box-shadow: 0 0 15px #ff7a00;
}

section{
    margin: 0;
    min-height: 100vh;
    padding: 5%;
}

.divider{
    border: none;
    height: 1px;
    background: #ccc;
    margin: 0;
    padding-top: 0%;
}

.footer{
    background-color: var(--bg-color);
    margin-top: 0;
    padding-top: 0;
    margin-bottom: 15px;
}

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

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

/* =========================
   TABLETS (≤1024px)
========================= */
@media (max-width: 1024px) {
    html {
        font-size: 55%;
    }

    .header {
        padding: 2rem 8%;
    }

    section {
        padding: 8%;
    }

    .home {
        gap: 6rem;
        /* flex-direction: column;
        gap: 2rem;
        text-align: center;
        padding: 2rem; */
    }

    .skills-box,
    .project-card,
    .certificate-box {
        flex: 1 1 45%;
        height: auto;
    }

    .home-img img {
        width: 280px;
        height: 280px;
    }
}

/* =========================
   MOBILE & SMALL TABLETS (≤768px)
========================= */
@media (max-width: 768px) {

    html {
        font-size: 52%;
    }

    /* NAVBAR */
    #menu-icon {
        display: block;
    }

    .nav {
        position: absolute;
        top: 100%;
        right: 0;
        width: 50%;
        height: auto;
        background: var(--second-bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        border-left: .1rem solid rgba(--main-color);
        display: none;
        flex-direction: column;
        text-align: center;
        padding: 1rem 3%;
    }

    .nav a {
        display: block;
        margin: 3rem 0;
        font-size: 2rem;
        text-align: center;
    }

    .nav.active {
        display: block;
    }

    /* HOME */
    .home {
        flex-direction: column-reverse;
        text-align: center;
        gap: 4rem;
    }

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

    .home-img img {
        width: 260px;
        height: 260px;
    }

    /* CONTAINERS */
    .skills-container,
    .projects-box,
    .certificate-container {
        flex-direction: column;
        align-items: center;
    }

    .skills-box,
    .project-card,
    .certificate-box {
        width: 100%;
        height: auto;
    }

    /* BUTTONS */
    .button-container {
        flex-direction: column;
        gap: 2rem;
    }
}

/* =========================
   SMALL MOBILE (≤480px)
========================= */
@media (max-width: 480px) {

    html {
        font-size: 48%;
    }

    .logo {
        font-size: 2.4rem;
    }

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

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

    .fade-in-text {
        font-size: 1.6rem;
    }

    .home-img img {
        width: 220px;
        height: 220px;
    }

    .heading,
    .skills h2,
    .projects h2,
    .certificate h2,
    .about-content h2,
    .contact h2 {
        font-size: 4rem;
    }

    .social-icons a {
        font-size: 2.2rem;
        padding: 0.7rem;
    }

    .footer ul li {
        display: block;
        margin: 1rem 0;
    }
}
