* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    scroll-behavior: smooth;
    font-family: "Fantasy", cursive; /* ✅ Browser will use cursive if Fantasy fails */

  }
  :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;
  }
#menu-icon{
    font-size: 3.5rem;
    color: var(--main-color);
    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;
}
.navbar a{
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease-in-out;
    border-bottom: 3px solid transparent;
}
.navbar a:hover{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}
.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: 0.3s ease-in-out;
        color: white;
        border: none;
        white-space: nowrap; /* ✅ Standard property for preventing text wrap */

               
}
.gradient-btn:hover{
    transform: scale(1.05);
}
section{
    min-height: 100vh;
    padding: 10rem 15%;
}
.home{
    display: flex;
    align-items:center;
    justify-content: center;
    gap: 15rem;
}
.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: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    transition: 0.4s ease-in-out;
}
.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: 0.3s ease-in-out;

}
.social-icons a:hover{
    color:var(--text-color);
    background-color: var(--main-color);
    transform: scale(1.2) translateY(-5px); /* ✅ Valid transform syntax */
    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: 0.3s ease-in-out;

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

.leetcode-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    margin: 3rem 0.5rem;
    transition: 0.3s ease-in-out;
  }
  
  .leetcode-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
  }
  
  .leetcode-icon:hover {
    background-color: var(--main-color);
    transform: scale(1.2) translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
  }
  
.about{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10rem;
    background: var(--second-bg-color);

}
.about-img img{
    width:32vw;
    border: 50%;
    box-shadow: 0 0 25px var(--main-color);
    transition: 0.4s ease-in-out;
}
.about-img img:hover{
   
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color),  
                0 0 100px var(--main-color);      
}
.about-content h2{
    font-size: 7rem;
    text-align: left;
}
.about-content p{
    font-size: 1.8rem;
}
.about-content .btn{
    margin: 3rem 0;
}
::-webkit-scrollbar{
    width: 15px;
}
::-webkit-scrollbar-thumb{
    background-color: var(--main-color);
}
::-webkit-scrollbar-track{
    background-color: var(--bg-color);
}
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
  }
  
  .skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
    border: 1px solid var(--main-color);
    width: 100%;
    max-width: 320px;
    transition: transform 0.3s ease-in-out;
  }
  
  .skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--main-color);
  }
  
  .skill-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.2rem;
    border-radius: 15px;
  }
  
  .skill-content h3 {
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 1rem;
  }
  
  .skill-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .skill-content ul li {
    font-size: 1.4rem;
    color: var(--text-color);
    line-height: 1.6;
  }
  
  .heading{
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--text-color);
  }
  .projects-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    place-items: center;
    gap: 3rem;
    row-gap: 5rem;
    align-items: stretch; /* NEW: ensures all cards have equal height */
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-color);
    border: 2px solid var(--main-color);
    border-radius: 3rem;
    gap: 2rem;
    padding: 5rem 2rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 5px var(--main-color);
    transition: 0.3s ease;
    height: 100%; /* NEW: allow stretching */
    min-height: 600px; /* NEW: consistent height for all cards */
    box-sizing: border-box; /* NEW: ensure padding doesn't break size */
}

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

.project-card img {
    max-width: 300px;
    border-radius: 2em;
    object-fit: cover;
}

.project-card h3 {
    font-size: 3rem;
}

.project-card p {
    font-size: 1.6rem;
    margin: 0 0 1rem 0; /* NEW: spacing under paragraph */
}

.project-card ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.project-card ul li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ffff;
}
/* Contact Section */
.contact {
    padding: 8rem 5% 5rem;
    background-color: var(--bg-color);
  }
  
  .contact .heading {
    text-align: center;
    font-size: 4rem;
    margin-bottom: 3rem;
    color: var(--main-color);
  }
  
  .contact form {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  
  .input-group,
  .input-box {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .input-group input,
  .input-box input,
  .input-group-2 textarea {
    flex: 1;
    padding: 1.2rem;
    border: 2px solid var(--main-color);
    border-radius: 1.5rem;
    background-color: transparent;
    color: var(--text-color);
    font-size: 1.4rem;
    width: 100%;
  }
  
  .input-group-2 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .input-group-2 textarea {
    resize: none;
  }
  
  form .btn {
    align-self: center;
    padding: 1rem 2.5rem;
    font-size: 1.4rem;
    border-radius: 2rem;
    background-color: var(--main-color);
    color: var(--bg-color);
    cursor: pointer;
    transition: 0.3s ease;
  }
  
  form .btn:hover {
    box-shadow: 0 0 15px var(--main-color);
  }
  
  /* Footer Section */
  .footer {
    background-color: var(--bg-color);
    padding: 4rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid var(--main-color);
  }
  
  .footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
  }
  
  .footer .social-icons a {
    font-size: 2.5rem;
    color: var(--main-color);
    transition: 0.3s ease;
  }
  
  .footer .social-icons a:hover {
    color: var(--text-color);
  }
  
  .footer .leetcode-icon img {
    height: 2.2rem;
    width: auto;
    filter: invert(100%);
    transition: 0.3s ease;
  }
  
  .footer .list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .footer .list li {
    list-style: none;
  }
  
  .footer .list a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.3rem;
    transition: 0.3s ease;
  }
  
  .footer .list a:hover {
    color: var(--main-color);
  }
  
  .footer .copyrigth {
    font-size: 1.2rem;
    color: #aaa;
  }
  /* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 1024px) {
    html {
      font-size: 55%;
    }
    .header {
      padding: 3rem 10%;
    }
    section {
      padding: 8rem 10%;
    }
  }
  
  @media (max-width: 768px) {
    html {
      font-size: 50%;
    }
  
    .header {
      padding: 2rem 5%;
    }
  
    .navbar {
      position: absolute;
      top: 100%;
      left: -100%;
      width: 100%;
      background: rgba(0, 0, 0, 0.95);
      backdrop-filter: blur(10px);
      flex-direction: column;
      align-items: center;
      gap: 2rem;
      padding: 2rem 0;
      transition: 0.3s ease;
    }
  
    .navbar.active {
      left: 0;
    }
  
    #menu-icon {
      display: block;
      cursor: pointer;
    }
  
    .home {
      flex-direction: column;
      gap: 5rem;
    }
  
    .home-content {
      align-items: center;
      text-align: center;
    }
  
    .about {
      flex-direction: column;
      text-align: center;
      gap: 5rem;
    }
  
    .about-content h2 {
      text-align: center;
    }
  
    .skills-container {
      grid-template-columns: 1fr;
    }
  
    .projects-box {
      grid-template-columns: 1fr;
    }
  
    .input-group {
      flex-direction: column;
    }
  }
  
  /* ================= ANIMATIONS ================= */
  .skill-card,
  .project-card,
  .about-content,
  .contact form {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
  }
  
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* ================= VISUAL ENHANCEMENTS ================= */
  
  /* Section Headings Glow */
  .heading {
    text-shadow: 0 0 15px var(--main-color);
  }
  
  /* Project image hover effect */
  .project-card img:hover {
    transform: scale(1.05);
    transition: 0.3s ease;
  }
  
  /* Add glowing hover to buttons */
  .btn:hover,
  .gradient-btn:hover {
    box-shadow: 0 0 15px var(--main-color),
                0 0 30px var(--main-color),
                0 0 45px var(--main-color);
  }
  
  /* Add slight glow to cards on hover */
  .skill-card:hover,
  .project-card:hover {
    box-shadow: 0 0 10px var(--main-color),
                0 0 20px var(--main-color);
  }
/* Basic Header Layout */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 9%;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }
  
  .navbar {
    display: flex;
    gap: 3rem;
  }
  
  .navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    transition: 0.3s ease;
  }
  
  .navbar a:hover,
  .navbar a.active {
    color: var(--main-color);
  }
  
  /* Menu Icon for Mobile */
  .menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
  }
  
  .menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--main-color);
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  
  /* Responsive Styles */
  @media (max-width: 768px) {
    .menu-toggle {
      display: flex;
    }
  
    .navbar {
      position: fixed;
      top: 0;
      right: -100%;
      width: 100%;
      height: 100vh;
      background: rgba(0,0,0,0.95);
      backdrop-filter: blur(10px);
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 2rem;
      transition: right 0.3s ease;
    }
  
    .navbar.active {
      right: 0;
    }
  
    .menu-toggle.open span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }
  
    .menu-toggle.open span:nth-child(2) {
      opacity: 0;
    }
  
    .menu-toggle.open span:nth-child(3) {
      transform: rotate(-45deg) translate(6px, -6px);
    }
  }
    
  
