* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

body {
  background: #000;
  
}


.cursor{
  width: 25px;
  height: 25px;
  border: 2px solid #a3401d;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  mix-blend-mode: difference;
}

/* ================= NAVBAR ================= */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 8%;
  background: transparent;
  color: white;
  border-bottom: 1px solid rgba(129, 128, 128, 0.2);
  width: 100%;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #000000;
}

/* Logo */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(to right, #cd5227, #a3401d);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Nav Links */

.nav-links {
  display: flex;
  justify-content: right;
  align-self: center;
  list-style: none;
  gap: 40px;
  width: 80%;
}

.nav-links i {
  background: linear-gradient(to right, #cd5227, #a3401d);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 5px;
  font-weight: bold;
}

.nav-links a {
  text-decoration: none;
  color: #aaa;
  font-size: 16px;
  overflow: hidden;
  display: inline-block;
}

.nav-links span {
  position: relative;
  display: inline-block;
  transition: 0.4s;
}

/* Duplicate text */
.nav-links span::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 100%;
  background: linear-gradient(to right, #cd5227, #a3401d);
  background-clip: text;
  -webkit-text-fill-color: transparent; /* Hover Color */
}

/* Hover Effect */
.nav-links a:hover span {
  transform: translateY(-100%);
}

/* Toggle Button */

.toggle {
  display: none;
  font-size: 22px;
  cursor: pointer;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: #111;
    padding: 20px 0;
    display: none;
    text-align: center;
    border-radius: 0;
    z-index: 2;
  }

  .nav-links.active {
    display: flex;
  }

  .toggle {
    display: block;
  }

  .cursor{
    display: none;
  }
}

/* ================= HERO SECTION ================= */

.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0px 20px 80px; /* top padding navbar ke liye */
  overflow: hidden;
  background-image: url("./Background.svg"); /* apni image path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
  margin-bottom: 50px;
}


/* Icon Container */
.icon-logo {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 20%;
  right: 20px;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* Icon Styling */
.icon-logo a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: gray;
  border-radius: 50%;
  font-size: 24px;
  color: #a3401d;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

/* Hover Animation */
.icon-logo a:hover {
  transform: translateY(-8px) scale(1.2);
  color: white;
  background: #a3401d;
  box-shadow: 0 12px 25px rgba(163, 64, 29, 0.5);
}

/* Floating Animation (loop) */
.icon-logo a i {
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

/* Slight delay for each icon */
.icon-logo a:nth-child(1) i { animation-delay: 0s; }
.icon-logo a:nth-child(2) i { animation-delay: 0.2s; }
.icon-logo a:nth-child(3) i { animation-delay: 0.4s; }
.icon-logo a:nth-child(4) i { animation-delay: 0.6s; }
.icon-logo a:nth-child(5) i { animation-delay: 0.8s; }

/* Floating keyframes */
/* @keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
  75% { transform: translateY(-6px); }
} */

/* Responsive */
@media (max-width: 768px) {
  .icon-logo {
    display: flex;
    flex-direction: row;
    bottom: -50%;
    right: 45px;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  .icon-logo a {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .icon-logo {
    gap: 15px;
  }
  .icon-logo a {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

.container {
  max-width: 800px;
  width: 100%;
}

.hero-section .full {
  font-size: 18px;
  letter-spacing: 3px;
  font-weight: 600;
  margin-bottom: 15px;
  background: linear-gradient(to right, #cd5227, #a3401d);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.hero-section h1 {
  font-size: 50px;
  line-height: 1.3;
  margin-bottom: 20px;
  color: white;
  font-weight: 600;
}



.hero-section p {
  font-size: 18px;
  color: #aaa;
  line-height: 1.6;
}

/* Buttons */
.btn {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn .view {
  text-decoration: none;
    background-color: #a3401d;
    padding: 10px 30px;
    border: none;
    border-radius: 10px;
    border-top: 1px solid white;
    font-size: 15px;
    margin-right: 20px;
    color: white;
}

.btn .view:hover {
    box-shadow: 0 0 30px #a3401d;
    cursor: pointer;
    background-color: #b83a0c;
}


.btn .contact {
  text-decoration: none;
    padding: 10px 30px;
    border: none;
    border-radius: 10px;
    border: 1px solid #a3401d;
    font-size: 15px;
    cursor: pointer;
    background-color: transparent;
    color: white;
}

.btn .contact:hover {
    background-color: #a3401d;
     box-shadow: 0 0 30px #a3401d;
}

/* ================= RESPONSIVE ================= */

/* Tablet */
@media (max-width: 992px) {
  .hero-section {
    padding: 120px 20px 80px;
  }
}

/* Mobile */
@media (max-width: 600px) {

  .hero-section {
    padding: 100px 20px 60px;
    margin-top: -100px;
  }

  .container {
    margin-top: 30px;
  }

  .btn {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .hero-section .icon-logo {
    position: relative;
    left: 1px;
    margin-top: 20px;
  }

  .btn .view,
  .btn .contact {
    width: 100%;
    max-width: 280px;
    text-align: center;
    margin: 0;
  }

  .hero-section h1 {
    font-size: 35px;
  }

  .hero-section p {
    font-size: 16px;
  }
}


/* skill section */

.skills-section {
    padding: 80px 10%;
    text-align: center;
    color: #fff;
}

.section-title {
    font-size: 40px;
    margin-bottom: 60px;
    margin-top: -100px;
    position: relative;
    animation: fadeDown 1s ease-in-out;
}

.section-title::after {
    content: "";
    width: 100px;
    height: 4px;
    background: #a3401d;
    display: block;
    margin: 15px auto 0;
    border-radius: 5px;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-box {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: 0.4s ease;
    animation: fadeUp 1s ease forwards;
    transform: translateY(40px);
    opacity: 0;
}

.skill-box:nth-child(1) { animation-delay: 0.2s; }
.skill-box:nth-child(2) { animation-delay: 0.4s; }
.skill-box:nth-child(3) { animation-delay: 0.6s; }
.skill-box:nth-child(4) { animation-delay: 0.8s; }
.skill-box:nth-child(5) { animation-delay: 1s; }
.skill-box:nth-child(6) { animation-delay: 1.2s; }
.skill-box:nth-child(7) { animation-delay: 1.4s; }
.skill-box:nth-child(8) { animation-delay: 1.6s; }
.skill-box:nth-child(9) { animation-delay: 1.8s; }

.skill-box i {
    font-size: 50px;
    margin-bottom: 20px;
}

.skill-box h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.skill-box:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 0 25px #a3401d;
}

/* Progress Bar */
.progress {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    border-radius: 10px;
    animation: fillBar 2s forwards;
}

.html { width: 95%; background: #e34c26; }
.css { width: 90%; background: #264de4; }
.js { width: 85%; background: #f0db4f; }
.react { width: 80%; background: #61DBFB; }
.node { width: 75%; background: #3C873A; }
.git { width: 85%; background: #F1502F; }
.tailwind { width: 85%; background: #5fbcff; }
.github { width: 85%; background: #000000; }
.c { width: 85%; background: #5787b7; }

/* Animations */
@keyframes fadeUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fillBar {
    from { width: 0; }
}


/* project section */

.project-section{
  width:100%;
  padding:100px 0;
  position:relative;
  overflow:hidden;
}

/* Heading */
.project-heading{
  text-align:center;
  font-size:60px;
  margin-bottom:60px;
  letter-spacing:3px;
  text-transform:uppercase;
  color: white;
}

.project-heading::after{
  content:"";
  width:120px;
  height:4px;
  background:#ff5c2c;
  display:block;
  margin:20px auto 0;
  border-radius:10px;
}

/* ================= LINK BOX ================= */

.project-link{
  text-decoration:none;
  color:inherit;
  display:block;
}

.box{
  width:100%;
  height:160px;
  border-bottom:1px solid #444;
  display:flex;
  align-items:center;
  position:relative;
  padding-left:60px;
  cursor:pointer;
  transition:0.3s ease;
}

.project-link:hover .box{
  background:#111;
}

.box h1{
  font-size:6rem;
  text-transform:uppercase;
  z-index:2;
  mix-blend-mode:difference;
  transition:0.3s ease;
  color: white;
}


/* Hover Image */
.box img{
  width:450px;
  height:200px;
  border-radius:20px;
  position:absolute;
  opacity:0;
  transition:opacity 0.2s linear;
  object-fit:cover;
  pointer-events:none;
  transform:translate(-50%,-50%);
  box-shadow:0 15px 40px rgba(0,0,0,0.6);
}

/* Tablet */
@media(max-width:768px){

  .project-heading{
    font-size:40px;
  }

  .box{
    padding-left:30px;
  }

  .box h1{
    font-size:8vw;
  }
}

/* Mobile */
@media(max-width:480px){

  .project-heading{
    font-size:32px;
  }

  .box{
    height:110px;
  }

  .box h1{
    font-size:10vw;
  }

  .box img{
    width:100px;
    height:100px;
  }
}


.contact-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  background-color: #000;
}

.contact-section .container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
}

.contact-section .heading {
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: white;
  margin-bottom: 70px;
}

.contact-section .heading::after {
    content: "";
    width: 300px;
    height: 4px;
    background: #a3401d;
    display: block;
    margin: 15px auto 0;
    border-radius: 5px;
}


.contact-section .sub-text {
  font-size: 15px;
  color: #aaa;
  text-align: left;
  margin-bottom: 40px;
}

.contact-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.contact-info {
  flex: 1;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.info-item i {
  font-size: 24px;
  color: #a3401d;
}

.info-item a {
  font-size: 18px;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-item a:hover {
  color: #a3401d;
}

.contact-form-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.input-group {
  margin-bottom: 20px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 16px;
  outline: none;
  transition: background 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
  background: rgba(255, 255, 255, 0.15);
}

.send-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: #a3401d;
  color: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.send-btn:hover {
  background: #b83a0c;
}

@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
  }

  .contact-info,
  .contact-form-card {
    width: 100%;
  }

  .contact-section .heading {
    font-size: 36px;
    margin-top: 200px;
  }

  .contact-section .heading::after {
    width: 100px;
}


  .contact-section .sub-text {
    font-size: 16px;
  }

  .info-item a {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .contact-section .heading {
    font-size: 32px;
  }

  .contact-section .sub-text {
    font-size: 14px;
  }

  .info-item a {
    font-size: 14px;
  }

  .input-group input,
  .input-group textarea {
    font-size: 14px;
  }

  .send-btn {
    font-size: 16px;
  }
}


.footer {
    background-color: #000;
    color: #fff;
    padding: 80px 10% 30px 10%;
    border-top: 1px solid #1a1a1a;
    margin-top: 120px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

/* Typography */
.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-desc {
    color: #999;
    line-height: 1.6;
    font-size: 0.95rem;
    max-width: 350px;
}

.footer-title {
    color: #a3401d; /* Cyan color */
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

/* Links & List */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

/* Social & Contact */
.footer-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-contact a {
    color: #999;
    text-decoration: none;
}

.text-cyan {
    color: #a3401d;
}

.footer-socials {
    display: flex;
    gap: 20px;
    font-size: 1.2rem;
}

.footer-socials a {
    color: #999;
    transition: 0.3s;
    text-decoration: none;
    font-size: 25px;
}

.footer-socials a:hover {
    color: #a3401d;
    transform: translateY(-3px);
}

/* Bottom Bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #1a1a1a;
    padding-top: 30px;
    color: #666;
    font-size: 0.85rem;
}

.back-to-top {
    color: #999;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.back-to-top:hover {
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer {
        padding: 50px 5% 20px 5%;
        overflow: hidden;
        margin-top: 250px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }

    .footer-contact {
      font-size: 13px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}