@import url('https://fonts.googleapis.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%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    overflow-x: hidden;
    background: radial-gradient(circle at center, #200000 0%, #000 80%);
    color: white;
    position: relative; /* Ensures video z-index works */
}


header{
    margin-top: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: rgba(0, 0, 0, 0.3); 
    backdrop-filter: blur(5px);
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: 3rem;
    color: #b74b4b;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

/* --- THIS WAS THE FIXED SYNTAX --- */
.logo .white-text {
   color: #ffffff;
}

.logo:hover{
    transform: scale(1.1);
}

nav a{
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active{
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}

/* --- THIS IS THE NEW STYLE FOR THE MOBILE ICON --- */
#menu-icon {
    font-size: 3.6rem;
    color: #b74b4b;
    cursor: pointer;
    display: none; /* Hidden on desktop */
}

section{
    min-height: 100vh;
    padding: 10rem 9% 5rem; 
}

/* This .home style applies to Home and About sections */
.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background: none; 
    min-height: 100vh;
    padding: 10rem 9% 5rem; 
}

.home .home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span{
    color: #b74b4b;
}

.home-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p{
    font-size: 1.6rem;
}

.home-img {
    position: relative;
    width: 340px;
    height: 440px;
    border-radius: 50% / 50%;
    background: radial-gradient(circle at center, #da4343 0%, #c82525 70%, #000 100%);
    box-shadow: 0 0 80px 25px #ff4d4d;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0;
    animation: glow 5s ease-in-out infinite alternate;
}

.home-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50% / 60%;
    position: relative;
    z-index: 2;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 40px 12px #ff4d4d;
        background: radial-gradient(circle at center, #ff4d4d 0%, #990000 70%, #000 100%);
    }
    50% {
        box-shadow: 0 0 55px 15px #ff6666;
        background: radial-gradient(circle at center, #ff6666 0%, #b30000 70%, #000 100%);
    }
    100% {
        box-shadow: 0 0 40px 12px #ff4d4d;
        background: radial-gradient(circle at center, #ff4d4d 0%, #990000 70%, #000 100%);
    }
}


.home-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    max-width: 700px;
    margin-left: 40px;

}

.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;
}

.social-icons a:hover{
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: #b74b4b;
    box-shadow: 0 0 25px #b74b4b;
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: black;
    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: scale(1.03); /* Changed from 3d */
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 25px #b74b4b;
}

.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span {
  position: relative;
  display: inline-block;
  color: #b74b4b;
}

.typing-text span::before {
  content: "software Developer";
  animation: words 20s infinite;
}

.typing-text span::after {
  content: "";
  position: absolute;
  right: -10px; /* moves cursor just after the text */
  top: 0;
  height: 100%;
  width: 3px;
  background: #b74b4b; /* blinking red line */
  animation: cursor 0.6s infinite;
}



@keyframes cursor{
    to{
        border-left: 3px solid #b74b4b;
    }
}

@keyframes words{
    0%, 20%{
        content: "ML Enthusiast";
    }
    21%, 40%{
        content: "Web Developer";
    }
    41%, 60%{
        content: "Gamer";
    }
    61%, 80%{
        content: "UI/UX Maze";
    }
    81%, 100%{
        content: "Sportsperson";
    }
}

#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.35);
    background-color: black;
    transition: opacity 1s ease-in-out;
}
@keyframes smoothLoop {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* ✨ Normal soft shine animation */
@keyframes whiteShine {
  0% {
    text-shadow: 0 0 4px #ffffff, 0 0 8px #e6e6e6;
  }
  50% {
    text-shadow: 0 0 10px #ffffff, 0 0 20px #e6e6e6, 0 0 30px #ffffff;
  }
  100% {
    text-shadow: 0 0 4px #ffffff, 0 0 8px #e6e6e6;
  }
}

@keyframes redShine {
  0% {
    text-shadow: 0 0 4px #ff6f61, 0 0 8px #ff6f61;
  }
  50% {
    text-shadow: 0 0 10px #ff2b2b, 0 0 20px #ff4d4d, 0 0 30px #ff0000;
  }
  100% {
    text-shadow: 0 0 4px #ff6f61, 0 0 8px #ff6f61;
  }
}

.banoth {
  color: #ffffff;
  animation: whiteShine 3s infinite alternate;
  transition: text-shadow 0.3s ease;
}

.vikas {
  color: #ff6f61;
  animation: redShine 3s infinite alternate;
  transition: text-shadow 0.3s ease;
}

.banoth.bright,
.vikas.bright {
  animation: none;
}

.banoth.bright {
  text-shadow: 0 0 25px #ffffff, 0 0 40px #ffffff, 0 0 60px #ffffff;
}

.vikas.bright {
  text-shadow: 0 0 25px #ff2b2b, 0 0 40px #ff4d4d, 0 0 60px #ff0000;
}


/* ======================================================= */
/* == NEW CSS FOR SERVICES, SKILLS, PROJECTS, CONTACT == */
/* ======================================================= */

/* --- General Heading for New Sections --- */
.main-text{
    width: 100%;
    text-align: center;
    margin-bottom: 2rem;
}

.main-text span {
    color: #ffffff;
    font-size: 1.6rem; /* Increased size */
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.main-text h2{
    font-weight: 700;
    font-size: 4.5rem; /* Increased size */
    color: #b74b4b; /* Your theme color */
}

/* --- Services Section --- */
.services {
    background: transparent; /* Show video */
}

.section-services{
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 2rem;
}

.services-box{
    flex: 1 1 25rem; /* Min-width 25rem */
    padding: 2rem 1rem 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.4); /* Dark, semi-transparent */
    border: 1px solid #b74b4b; /* Your theme color */
    border-radius: 10px;
    transition: transform 0.4s, box-shadow 0.4s;
    display: flex; /* <-- ADDED */
    flex-direction: column; /* <-- ADDED */
} 

.services-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px #b74b4b; /* Your theme shadow */
}

.service-btn{
    width: auto;
    justify-content: center;
    margin-top: auto; /* Added space */
}

.service-icon{
    border: 2px solid #b74b4b; /* Your theme color */
    padding: 2rem;
    margin: 0 auto 1rem auto;
    display: flex;
    height: 60px; /* Increased size */
    width: 60px;  /* Increased size */
    background: #000;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    border-radius: 50%;
    position: relative;
    color: #b74b4b; /* Your theme color */
    box-shadow: 0 0 15px #b74b4b; /* Your theme shadow */
    outline: 3px solid #000;
}

.services-box h3{
    margin-top: 10px;
    font-size: 2rem; /* Increased size */
    color: #b74b4b; /* Your theme color */
}

.services-box p{
    margin: .5rem 0 1rem 0;
    font-weight: 300;
    letter-spacing: 1px;
    color: #ffffff; /* Brighter text */
    line-height: 1.6;
    font-size: 1.4rem; /* Increased size */
}

/* --- Skills Section --- */
.skills{
    background: transparent; /* Show video */
}

.skill-main{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    grid-gap: 3rem; /* Added gap */
}

.skill-main h3{
    margin-bottom: 2rem;
    font-size: 2.5rem; /* Increased size */
    text-align: center;
    color: #ffffff;
    font-weight: 600;
}

.skill-left, .skill-right {
    background: rgba(0, 0, 0, 0.4); /* Dark, semi-transparent */
    border: 1px solid #b74b4b;
    border-radius: 10px;
    padding: 2rem;
}

.skill-bar p {
    font-size: 1.6rem; /* Increased size */
    color: #ffffff;
}

.skill-bar{
    margin-bottom: 2.3rem;
}

.skill-left .skill-bar .info{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.skill-left .skill-bar .bar{
    width: 100%;
    height: 10px;
    background-color: #161616; /* Darker bar background */
    border-radius: 25px;
    margin-top: 10px;
    position: relative;
    overflow: hidden; /* Added */
}

.skill-bar .bar span{
    height: 100%;
    position: absolute;
    left: 0;
    background: #b74b4b; /* Your theme color */
    border-radius: 25px;
    box-shadow: 0 0 15px #b74b4b; /* Your theme shadow */
}

/* Set widths for your skills */
.skill-bar .bar .cpp{
    width: 90%;
}
.skill-bar .bar .python{
    width: 85%;
}
.skill-bar .bar .html{
    width: 95%;
}
.skill-bar .bar .css{
    width: 90%;
}
.skill-bar .bar .javascript{
    width: 75%;
}

/* --- Professional Skills (Re-skinned) --- */

.skill-right {
    background: rgba(0, 0, 0, 0.4); 
    border: 1px solid #b74b4b;
    border-radius: 10px;
    padding: 2rem;
}

.profesional{
    display: grid;
    /* This creates 4 columns */
    grid-template-columns: repeat(4, 1fr); 
    grid-gap: 2rem;
    justify-items: center;
    align-items: center;
}

.box{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%; /* Make it responsive to the grid column */
}

/* This is the new SVG circle container */
.circle-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 1rem; /* Space before text */
}

.circle-wrap svg {
    width: 100%;
    height: 100%;
    /* Start the circle from the top */
    transform: rotate(-90deg); 
}

/* This is the dark background track */
.circle-wrap .bg {
    fill: none;
    stroke-width: 10;
    /* Dark track color from your skill bars */
    stroke: #161616; 
}

/* This is the animated progress bar */
.circle-wrap .progress {
    fill: none;
    stroke-width: 10;
    /* Your red theme color */
    stroke: #b74b4b; 
    stroke-linecap: round;
    /* This is the circumference (2 * pi * 54) */
    stroke-dasharray: 339.29; 
    stroke-dashoffset: 0; 
    transition: stroke-dashoffset 1s ease-out;
}

/* Text inside the circle */
.circle-wrap .text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
}

.circle-wrap .text big {
    font-size: 2.5rem; 
    font-weight: 600;
}

/* Text below the circle */
.box small {
    color: #ffffff;
    display: block;
    font-weight: 600;
    font-size: 1.4rem; 
    margin-top: 0.5rem;
    text-align: center;
}

/* --- Setting the percentages for each box --- */
/* Formula: 339.29 * (1 - (percentage / 100)) */

/* 90% boxes */
.profesional .box:nth-child(1) .progress,
.profesional .box:nth-child(2) .progress,
.profesional .box:nth-child(5) .progress,
.profesional .box:nth-child(6) .progress {
    stroke-dashoffset: calc(339.29 * (1 - 0.90)); /* 33.9 */
}

/* 80% boxes */
.profesional .box:nth-child(3) .progress,
.profesional .box:nth-child(4) .progress,
.profesional .box:nth-child(7) .progress,
.profesional .box:nth-child(8) .progress {
    stroke-dashoffset: calc(339.29 * (1 - 0.80)); /* 67.8 */
}


/* --- Projects (Portfolio) Section --- */
.portfolio {
    background: transparent;
}
.container {
    width: 100%;
    text-align: center;
}
.filter-buttons{
    margin: 2rem 0;
    text-align: center;
}

/* Styling filter buttons to look like your nav links */
.filter-buttons .btn{
    background: none;
    outline: none;
    border: none;
    cursor: pointer;
    font-size: 1.8rem; /* Matched nav links */
    font-weight: 500;
    letter-spacing: normal; /* Reset */
    margin-left: 2rem; /* Spaced out */
    color: #ffffff; /* Matched nav links */
    border-bottom: 3px solid transparent;
    border-radius: 0; /* Reset */
    padding: 0; /* Reset */
}

.filter-buttons .btn:hover,
.filter-buttons .btn.mixitup-control-active {
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
    background: none; /* Override .btn:hover */
    box-shadow: none; /* Override .btn:hover */
    transform: none; /* Override .btn:hover */
}


.portfolio-gallery{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(27rem, 1fr));
    gap: 2rem;
}

.port-box{
    position: relative;
    border-radius: 15px; 
    overflow: hidden;
    background: #161616;
    display: flex;
    /* width: 27rem; /* Let grid handle this */
    height: 27rem; /* Make height equal to width for a square */
    border: 2px solid #b74b4b; /* Your theme color */
    box-shadow: 0 0 15px #b74b4b; /* Your theme shadow */
    transition: transform 0.3s, box-shadow 0.3s;
    justify-content: center; /* Center content if box is bigger */
    align-items: center; /* Center content if box is bigger */
}

.port-box:hover {
    transform: scale(1.03);
    box-shadow: 0 0 35px #b74b4b; /* Brighter glow on hover */
}

.port-image{
    width: 100%;
    height: 100%; /* Make image container fill the square box */
    display: flex; /* For centering the img if needed */
    justify-content: center;
    align-items: center;
}

.port-image img{
    height: 100%; /* Image fills its container */
    width: 100%;  /* Image fills its container */
    object-fit: cover; /* Ensures image covers the area without distortion */
    transition: .5s;
    border-radius: 12px; /* Slightly less than port-box for visual depth */
}


.port-content{
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    
    /* 1. Makes it always visible */
    opacity: 1; 

    /* 2. This is the "visible lightly" background */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 50%); 
    
    display: flex;
    align-items: center;
    
    /* 3. Pushes the title to the bottom */
    justify-content: flex-end; 
    
    flex-direction: column;
    text-align: center;
    transition: .5s;
    
    /* 4. Adds some space for the title at the bottom */
    padding: 0 2rem 2rem 2rem; 
}
/* Hides the description and link by default */
.port-content p,
.port-content a {
    opacity: 0;
    transition: 0.3s ease;
}

/* Shows the description and link on hover */
.port-box:hover .port-content p,
.port-box:hover .port-content a {
    opacity: 1;
}

.port-box:hover .port-content{
    /* 1. Shows the full gradient background from your screenshot */
    background: linear-gradient(rgba(0,0,0,.4), #b74b4b);
    
    /* 2. Moves all the text to the center on hover */
    justify-content: center; 
    padding: 0 2rem; /* Resets the padding */
}

.port-box:hover .port-image img{
    transform: scale(1.1); /* Zoom image on hover */
}

.port-content h3{
    font-size: 2.2rem;
    font-weight: 600;
    color: #ffffff;
}

.port-content p{
    font-size: 1.4rem;
    margin: 5px 0 15px 0;
    color: #ffffff;
}

.port-content a{
    background: #000;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    width: 45px;
    height: 45px;
    border: 1px solid #b74b4b; /* Your theme color */
    outline: 2px solid #000;
    transition: 0.3s;
}

.port-content a:hover {
    background: #b74b4b;
    box-shadow: 0 0 15px #b74b4b;
}
.port-content a:hover i {
    color: #000;
}

.port-content a i{
    font-size: 2rem;
    color: #b74b4b; /* Your theme color */
}

/* --- Contact Section --- */
.contact{
    background: transparent; /* Show video */
}

.contact form{
    text-align: center;
    max-width: 70rem; /* Increased width */
    margin: 1rem auto;
}

.contact form input,
.contact form textarea{
    width: 80%; 
    display: block; 
    margin: 0.8rem auto; 
    color: #ffffff;
    background: rgba(0, 0, 0, 0.4); /* Dark, semi-transparent */
    border: 1px solid #b74b4b; /* Your theme color */
    border-radius: 10px;
    padding: 1.5rem; /* Increased padding */
    font-size: 1.6rem;
}
.contact form input::placeholder,
.contact form textarea::placeholder {
    color: #ccc;
}
.contact form .btn-box {
    text-align: center;
    margin-top: 1rem;
}


/* --- Footer Section --- */
footer{
    padding: 1.5rem 9%;
    display: flex;
    background: #000; /* Your theme background */
    text-align: center;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #b74b4b; /* Your theme accent */
    position : relative;
}

footer p{
    color: #fff;
    font-size: 1.4rem;
    margin-bottom : 1rem;
}

footer a{
  position: absolute;
    right: 9%; /* Aligns it to the right padding */
    bottom: 1.5rem; /* Aligns it to the bottom padding */
    
    display: inline-flex;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    color: black;
    background-color: #b74b4b; /* Your theme accent */
    padding: .8rem;
    border-radius: 5px;
    transition: 0.3s;
}
footer a:hover {
    box-shadow: 0 0 15px #b74b4b;
}

footer a i{
    font-size: 2rem;
    color: #000;
}


/* ======================================================= */
/* == RESPONSIVE MEDIA QUERIES (ORGANIZED) == */
/* ======================================================= */

@media (max-width: 1200px) {
    .profesional {
        /* Change to 2 columns on smaller screens */
        grid-template-columns: repeat(2, 1fr);
        grid-row-gap: 3rem; /* Add more space between rows */
    }
}

@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }
}

@media(max-width:995px){
    /* --- NEW: Show Mobile Icon --- */
    #menu-icon {
        display: block;
    }

    /* --- Mobile Nav Menu --- */
    nav{
        position: absolute;
        display: none;
        top: 100%; /* Changed from 0 to 100% to open below header */
        right: 0;
        width: 40%;
        border-left: 3px solid #b74b4b;
        border-bottom: 3px solid #b74b4b;
        border-bottom-left-radius: 2rem;
        padding: 1rem; /* Simplified padding */
        background-color: #161616;
        border-top: 0.1rem solid rgba(0,0,0,0.1);
    }

    nav.active{
        display: block;
    }

    nav a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        text-align: center; /* Added for better mobile view */
    }

    nav a:hover,
    nav a.active{
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #b74b4b;
    }

    /* --- Mobile Home/About Section --- */
    .home{ 
        flex-direction: column;
        margin: 5rem 4rem;
        text-align: center; /* Center text on mobile */
    }
    .home-content {
        align-items: center; /* Center content */
        margin-left: 0; /* Remove margin */
    }

    .home .home-content h3{
        font-size: 2.5rem;
    }

    .home-content h1{
        font-size: 5rem;
    }

    .home-img img{
        width: 70vw;
        margin-top: 4rem;
    }
    .social-icons {
        justify-content: center; /* Center social icons */
    }

    /* Make .home sections stack on mobile */
    .home {
        flex-direction: column-reverse; /* Image on top */
    }
    .home.about, .home.services {
        flex-direction: column; /* Keep image on top */
    }
}

@media(max-width:768px){
    /* Stack skills */
    .skill-main{
        grid-template-columns: 1fr;
    }
    .skill-right {
        margin-top: 2rem;
    }
    
    .profesional {
        grid-template-columns: 1fr 1fr; /* Keep 2 columns on tablet */
    }
    
    .filter-buttons .btn {
        margin-left: 1rem;
        font-size: 1.6rem;
    }

    /* Footer padding */
    footer {
        padding-bottom: 5rem; /* Give more space for the button on smaller screens */
    }
    footer a {
        right: 5%; /* Adjust right position for smaller screens */
        bottom: 1rem; /* Adjust bottom position */
    }
}

@media(max-width: 480px) {
    .circle-wrap {
        width: 100px;
        height: 100px;
    }
    .circle-wrap .text big {
        font-size: 2rem;
    }
}

@media(max-width:420px){
    .profesional {
        grid-template-columns: 1fr; /* Stack skill circles */
    }
}