@import url('https://fonts.goggleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline:none;
    font-family:'Poppins',sans-serif;
}
html{
    font-size: 62.5%;
}
body{
    width:100%;
    height:100vh;
    overflow-x: hidden;
    background-color: #000;
    color:#fff;
}
header{
    margin-top: 20px;
    /* position: fixed; */
    top:0;
    left:0;
    width: 100%;
    padding: 1rem  9%;
    background-color: transparent;
    filter: drop-shadow(10px);
    display:flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;

}
.logo{
    font-size: 3rem;
    color: #b4b4b4;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}
.logo:hover{
    transform: scale(1.3);
    color:#fff;
}
nav a{
    font-size: 5rem;
    color:#fff;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    /* gap:10rem; */
    border-bottom: 3px solid transparent;
}
nav a:hover,
nav a.active{
    color:#b74b4b;
    border-bottom: 3px solid 
    ;
}
@media(max-width:995px){
    nav{
        position: absolute;
        display: none;
        top:0;
        right: 0;
        width: 40%;
        border-left: 3px solid #b4b4b4;
        border-bottom: 3px solid #b4b4b4;
        border-bottom-left-radius: 2rem;
        padding: 1rem solid;
        background-color: #161616;
        border-top:0.1 rem solid rgba(0, 0, 0, 0.1);
    }
    nav.active{
        display:block;
    }
    nav a{
        display: block;
        font-size: 2rem;
        margin: 1rem 0;
    }
    nav a:hover,
    nav a.active{
        padding:0.8rem;
        border-radius: 0.5rem;
        border-bottom: 0.4rem solid #b74b4b;
    }

}
section{
    min-height: 100vh;
    padding: 5rem 9% 5rem 9%;
}
.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: #000;

}
.home .home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
    right:13rem;
    top: 3rem;
}
span{
    color: #b74b4b;
}
.home-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.home-img{
    border-radius: 50%;

}
.home-img img{
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px solid #b74b4b;
    cursor: pointer;
    transition: 0.2s linear;
}
.home-img img:hover{
    font-size:1.8rem;
    font-weight:500;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border:0.2rem solid #b74b4b;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color:#b74b4b;
    /* color:#fff; */
}
.social-icons a:hover{
    color: #000;
    transform: scale(1.3)translateY(-5px);
    background-color: #b74b4b;
    box-shadow: 0 0 25px #b74b4b;
}
@media(max-width:995px){
    .social-icons{
        position: relative;
        margin-left:55px;
    }
}
.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: #000;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #b74b4b;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    transition: 0.3s ease;
    cursor:pointer;
}
.btn:hover{
    transform: scale3d(1.03);
    background-color: #b74b4b;
    color: #000;
    box-shadow: 0 0 25px;
}
.typing-text span{
    position: relative;
    
}
.typing-text span::before{
    content: "Frontend Developer";
    color:#b74b4b;
    animation: words 20s infinite;
}
.typing-text span::after{
    content: "";
    background-color: #000;
    position: absolute;
    width: calc(100% + 8px);
    
    height: 100%;
    border-left: 3px solid #000;
    right: -8;
    animation: cursor 0.6s infinite;
    width: 13px;
    right: 5;

}
p{
    font-size: 1.5rem;
    font-family: cursive;
}
@keyframes cursor{
    to{
        border-left: 3px solid #b74b4b;
        /* white-space: nowrap; */

    }
}
@media (max-width: 768px) {
    .typing-text span::after {
        height: 0.9em;
        right: -20px;
        /* top:30px; */
    }
}
@media(max-width:995px){
    .btn{
        position: relative;
        margin-left: 60px;
    }
}
@media(max-width:995px){
    p{
        font-family:cursive;
    }
}
@keyframes words{
    0%,10%{
        content:"Frontend Developer";
    }
    11%,20%{
        content:"Video Editor";
    }
    21%,30%{
        content:"Poster Designer";
    }
    31%,40%{
        content:"Frontend Developer";
    }
    41%,50%{
        content:"Video Editor";
    }
    51%,60%{
        content:"Poster Designer";
    }
    61%,70%{
        content:"Frontend Developer";
    }
    71%,80%{
        content:"Video Editor";
    }
    81%,90%{
        content:"Poster Designer";
    }
    /* white-space: nowrap; */

    /* 61%,80%{
        content:"Youtuber";
    }
    81%,100%{
        content:"Script Writer";
    } */
}
@media(max-width:995px){
    .home{
        flex-direction: column;
        margin: 5rem 2rem;
    }
    .home .home-content h3{
    font-size: 2.5rem;    
    }
    .home-content h1{
        font-size:5rem;
        position: relative;
        left: -7rem;
    }
    .home-content h1 span{
        position: relative;
        left: 4rem;
    }
    .home-img img{
        /* width: 70v; */
        height: 200px;
        width: auto;
        margin-top: 4rem;
    }
}
.hamburger {
    display: none; 
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

/* Show hamburger icon on mobile screens */
@media(max-width: 995px) {
    .hamburger {
        display: block; 
        margin: 1.5rem 0;
    }

    nav {
        display: none; 
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        border: none;
        background: rgba(0, 0, 0, 0.8);
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;
        z-index: 101;
    }
    nav a{
        gap:-10;
    }
    nav.active {
        display: flex; 
    }
}


/* animation */
@keyframes zoomIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
header{
    animation: zoomIn 0.4s ease-in-out;
    animation: appear 1s linear;
}

@keyframes appear{
    from{
            opacity: 0;
            scale: 0.5;
    }    
    to{
        opacity: 1;
        scale: 1;
    }
}
 
.home-img{
    animation: appear 0.6s linear;
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}
.home-img{
    animation: slideInFromLeft 3s ease-out forwards; 
    

}

@keyframes slideInFromBottom {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}
h1 {
    animation: slideInFromBottom 2s ease-out forwards;
}
h3 {
    animation: slideInFromBottom 2.4s ease-out forwards;
}
p {
    animation: slideInFromBottom 2.8s ease-out forwards;
}
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}
.social-icons{
    animation: slideInFromLeft 3s ease-out forwards; 
}


@keyframes slideInFromRight {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(-0);
        opacity: 1;
    }
}
.btn{
    animation: slideInFromRight 3s ease-out forwards; 
    /* animation-timeline: view(); */
}

/* =====================================================Stylesheet========================================================================== */

.logo{
    font-size: 2rem;
    color: #b4b4b4;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: 0.5s ease;
}
.logo:hover{
    transform: scale(1.3);
    color:#fff;
}
nav a{
    font-size: 1.2rem;
    color:#fff;
    margin-left: 2rem;
    font-weight: 450;
    font-family: 18px poppins, sans-serif;
    text-decoration: none;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}
nav a:hover,
nav a.active{
    color:#b74b4b;
    border-bottom: 3px solid 
    ;
}
h1{
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: rem;
    color:#fff;
    /* top:30rem;     */
    text-align: center;
    padding-top: 3rem ;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}
h1:hover{
    color:#b74b4b;
    /* border-bottom: 3px solid #b74b4b; */
    transition: 0.3s ease;

}
.wrapper{
    width: 80%;
    margin: 80px auto;
    display:flex;
    flex-direction: row;
    justify-content: center;
}
.content{
    padding: 10% 0;
}
.content h2{
    margin: 14px 0;
    font-family: yatra system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
    font-size: 25px;
}
.content a{
    text-decoration: none;
    background: violet;
    color: #fff;
    padding: 10px 30px;
    display: inline-block;
    margin-top: 20px;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 1.5rem;
    font-family: yatra system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    letter-spacing: 2px;
}
.icon i{
    color: #fff;
    line-height: 80px;
    font-size: 25px;
}
.single-box{
    width: 400px;
    height: 400px;
    margin: 0 15px;
    transition: .7s;
    background: linear-gradient(rgba(0,0,0,0.8),rgba(0,0,0,0.8)),url(web.jpg);
    object-fit: cover;
    text-align: center;
    color:#fff;
    border: 2px solid #b74b4b;
    /* box-shadow: #b74b4b; */
    background-size: cover;
    background-position: center center;
}
.single-box:nth-child(2){
    background:linear-gradient(rgba(0,0,0,0.8),rgba(0,0,0,0.8)),url(poster.png);
    object-fit: cover;
    background-size: cover;
    background-position: center center;
}

.single-box:nth-child(3){
    background:linear-gradient(rgba(0,0,0,0.8),rgba(0,0,0,0.8)),url(video.jpg);
    object-fit: cover;
    background-size: cover;
    background-position: center center;
}
.single-box:hover{
    transform: scale(1.2);
    /* box-shadow 0.3s ease; */
    z-index: 2;
}
.hamburger {
    display: none; 
}
@media (max-width: 1024px) {
    .wrapper {
        flex-direction: column;
        align-items: center;
    }

    .single-box {
        width: 80%;
        height: auto;
        margin-bottom: 20px;
    }

    .content {
        padding: 5% 0;
    }
}
@media(max-width:995px){
    .hamburger {
        display: none; 
        font-size: 2rem;
        color: #fff;
        cursor: pointer;
    }
}
@media(max-width: 995px) {
    .hamburger {
        display: block; 
    }

    nav {
        display: none; 
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.8);
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;
        z-index: 101;
    }

    nav.active {
        display: flex; 
    }
}
/* Smartphones and Small Devices */
@media (max-width: 768px) {
    .wrapper {
        margin: 50px auto;
        flex-direction: column;
        justify-content: flex-start;
    }

    .single-box {
        width: 90%;
        height: auto;
        margin-bottom: 15px;
        transform: scale(1); /* prevent scaling too large on hover */
    }

    .content h2 {
        font-size: 12px;
    }

    .content a {
        padding: 8px 20px;
        font-size: 12px;
        position: relative;
        top:-1rem;
    }

    .icon i {
        font-size: 20px;
    }
}
/* animation */
@keyframes slideInFromBottom {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}
.single-box {
    animation: slideInFromBottom 0.5s ease-out forwards;
}
#single-box1{
    animation: slideInFromBottom 1s ease-out forwards;
}
#single-box2{
    animation: slideInFromBottom 1.5s ease-out forwards;

}
/* ========================================sevices css========================================================= */

/* ==============================skillr================================================= */

h1 {
    text-align: center;
    margin: 2rem 0;
    font-size: 2.5rem;
    color: #fff;
}

/* Skills Section */
.skills-section {
    padding: 2rem 2rem -5rem 2rem;
    max-width: 12000px;
    margin: auto;
    

}

.skills-container {
    display: flex;
    position: relative;
    top:5rem;
    flex-wrap: wrap;
    justify-content: center;
    /* gap: 1.5rem; */
    gap: 5rem;
    bottom:-5rem;
    border-top: 15rem;
}

/* Skill Cards */
.skill-card {
    background-color: #fff;
    width: calc(33.33% - 1rem);
    height:30rem;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card img {
    width: AUTO;
    height: 60px;
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin: 1rem 0;
    color: #333;
}
h2{
    color:#fff;

}

.skill-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

/* Hover Effects */
.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 10px 8px  16px rgba(218, 8, 8, 0.2);
}

/* Media Queries */
@media (max-width: 768px) {
    .skill-card {
        width: calc(50% - 1rem);
        height: 35rem;
        position: absolute;
        z-index: 2;
    }

    h1 {
        font-size: 2rem;
    }
}
@media (max-width: 768px) {
    .skill-container {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
  
    .skill-card {
      width: 90%;
      margin-bottom: 1rem;
      position: static; /* Important if they're overlapping due to absolute */
    }
  }
  
@media (max-width: 480px) {
    .skill-card {
        width: 100%;
    }

    h1 {
        font-size: 1.8rem;
    }
}

/* .skills{
    width:100%;
    max-width:600px;
    padding: 0 20px;
}
.skills .skill-name{
    font-size: 18px;
    font-weight: 700;
    color: #f1f1f1;
    position: relative;
    top:5px;
    text-transform: uppercase;
    margin: 20px 0;
}
.skill-bar{
    height: 14px;
    background: #282828;
    border-radius: 3px;
}
.skill-per{
    height: 14px;
    background:#d13639;
    border-radius: 3px;
    position: relative;
    animation: fillBars 2.5s 1;
}
.skill-per::before{
    content: attr(per);
    position: absolute;
    padding: 4px 6px;
    background: #f1f1f1;
    border-radius: 4px;
    font-size: 12px;
    top: -35px;
    right: 0;
    transform: translateY(50%);
}
.skill-per::after{
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: #f1f1f1;
    top:-20px;
    right: 0;
    transform: translateX(50%) rotate(45deg);
    border-radius: 2px;
} */
p2{
    color: rgb(85, 85, 85);
    font-size:2rem;
    font-weight: bold;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', 'Arial', 'sans-serif';
    /* border-top: 13rem; */
    position: relative;
    top: 3.5rem;
}
@keyframes fillBars{
    from{
        width:0;
    }
    to{
        width: 100%;
    }
}
p1{
    color:goldenrod;
    font-size: 3rem;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-weight: bold;
    padding: 2rem 0rem;
}
@media(max-width:995px){
    .hamburger {
        display: none; 
        font-size: 2rem;
        color: #fff;
        cursor: pointer;
    }
}
@media(max-width: 995px) {
    .hamburger {
        display: block; 
    }

    nav {
        display: none; 
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.8);
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;
        z-index: 101;
    }

    nav.active {
        display: flex; 
    }
}
/* =========================================skills================================================================== */

/* =======================================================contact================================================================= */
.contact-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 20rem 0rem; */
    background: linear-gradient(180deg, #000000, #81ecec);
    /* padding: 20px; */
    margin-top: -10rem;
  }
  
  .container {
    max-width: 600px;
    text-align: center;
    background-color: #fff;
    padding: 40px;
    /* padding: 15rem 0rem; */
    position: relative;
    top: 10rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  h2 {
    font-weight: 600;
    margin-bottom: 10px;
    color: #2d3436;
  }
  
  p3{
    margin-bottom: 30px;
    font-size: 20px;
    color: #636e72;
    padding: 2rem 0rem 4rem 0rem; 
  }
  
  .contact-form {
    margin-bottom: 30px;
    position: relative;
    top: 3rem;
  }
  
  .input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
  }
  
  .input-group input, textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #dfe6e9;
    font-size: 16px;
  }
  
  textarea {
    resize: none;
  }
  
  .input-group input {
    width: 100%;
    padding: 12px;
    /* background-color: #0984e3; */
    color: white;
    /* border: none; */
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  .input-group input, .input-group textarea {
    color: #2d3436; 
  }
  
  .submitbtn{
    width: 100%;
    padding: 12px;
    background-color: #0984e3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  submitbtn:hover {
    background-color: #74b9ff;
  }
  
  /* Social Links */
  .social-links {
    display: flex;
    justify-content: center;
    /* height: 8rem; */
    /* width: auto; */
    position:relative;
    top: 2rem;
    gap: 30px;
    margin-top: 20px;
  }
  
  .social-links a {
    text-decoration: none;
    color: #2d3436;
    transition: color 0.3s ease;
    /* size: 5rem;*/
    /* height:50px; */
    /* width: 50px; */
    font-size: 15px;
  }
  
  .social-links a:hover {
    color: #b74b4b;
  }
  @keyframes appear {
      0% {
        opacity: 0;
        transform: translateY(20px); /* Optional: Start slightly lower */
      }
      100% {
        opacity: 1;
        transform: translateY(0); /* End in its original position */
      }
     } 
   .container{ 
      animation: appear 2s ease-out forwards;
     } 
     @media (max-width: 995px) {
        .contact-section {
            position: relative;
            min-height: 105vh;
            top: 15rem;
            background: linear-gradient(180deg, #000000, #81ecec); /* Adjust gradient for better visibility */
            padding: 20px 20px 5rem 20px; /* Increase padding for better spacing */
            text-align: center; /* Center content on mobile */
        }
    }
    
     /* ===================================================contact ends====================================================== */