body {
  font-family: Arial, sans-serif;
  background-color: #000000;
  color: #ffffff;
}

h1, h2, h3, h4 {
  font-weight: 700;
}

a {
  color: #f8dcbf;
  transition: color 0.3s ease;
}
a:hover {
  color: #5c340a;
}

/* Header Styles */
.header {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(248, 220, 191, 0.1);
  transition: all 0.3s ease;
}
.header.scrolled {
  background: rgba(0, 0, 0, 0.98);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}
.nav-link {
  position: relative;
  padding: 0.5rem 0;
  margin: 0 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #f8dcbf;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}
.logo {
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}
.logo::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #f8dcbf, transparent);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  transition: all 0.3s ease;
  width: 30px;
  height: 30px;
  position: relative;
}
.mobile-menu-btn:hover {
  transform: rotate(180deg);
}
.mobile-menu-btn .bar {
  position: absolute;
  height: 3px;
  width: 100%;
  background: #f8dcbf;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.mobile-menu-btn .bar:nth-child(1) { top: 6px; }
.mobile-menu-btn .bar:nth-child(2) { top: 13px; opacity: 1; }
.mobile-menu-btn .bar:nth-child(3) { top: 20px; }
.mobile-menu-btn.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.active .bar:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Circle Animation */
.circle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}
.circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(248, 220, 191, 0.1);
  box-shadow: 0 0 20px rgba(248, 220, 191, 0.2);
  animation: fadeInOut 15s infinite ease-in-out;
  z-index: 0;
}
@keyframes fadeInOut {
  0%, 100% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  50% {
    opacity: 0.6;
    transform: translateY(-20px) scale(1);
  }
}
.hero-content { position: relative; z-index: 10; }

/* -----------------------------SCROLLDOWN BUTTON START----------------------------------------*/
/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* visually-hidden (robust cross-browser) */
.visually-hidden,
.scroll-down-btn .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;  /* legacy */
  clip-path: inset(50%) !important;            /* modern */
  white-space: nowrap !important;
  border: 0 !important;
}

/* button base: fully specified so Tailwind won't override visual styles */
.scroll-down-btn {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(248,220,191,0.14), rgba(0,0,0,0.28));
  background-color: rgba(248,220,191,0.08); /* fallback */
  border: 1px solid rgba(248,220,191,0.18);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  text-decoration: none;
  transition: transform 280ms ease, box-shadow 280ms ease;
  z-index: 9999;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

/* hover / focus */
.scroll-down-btn:hover,
.scroll-down-btn:focus {
  transform: translateX(-50%) translateY(-6px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.5), inset 0 0 12px rgba(248,220,191,0.06);
  outline: none;
}
.scroll-down-btn:focus-visible {
  outline: 2px solid rgba(248,220,191,0.95);
  outline-offset: 4px;
}

/* arrow wrapper */
.scroll-down-btn .arrow {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
}

/* chevrons (two layers using pseudo-elements) */
.scroll-down-btn .arrow::before,
.scroll-down-btn .arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-left: 2px solid #f8dcbf;
  border-bottom: 2px solid #f8dcbf;
  transform: translate(-50%, -50%) rotate(-45deg);
  opacity: 0;
  border-radius: 2px;
  box-sizing: border-box;
  pointer-events: none;
}

/* animate them with a small stagger */
.scroll-down-btn .arrow::before {
  animation: arrow-drop 1.6s cubic-bezier(.2,.8,.2,1) infinite;
  animation-delay: 0s;
}
.scroll-down-btn .arrow::after {
  animation: arrow-drop 1.6s cubic-bezier(.2,.8,.2,1) infinite;
  animation-delay: 0.36s;
}

/* keyframes — smooth drop, fade and scale */
@keyframes arrow-drop {
  0% {
    opacity: 0;
    transform: translate(-50%, -66%) rotate(-45deg) scale(0.88);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -42%) rotate(-45deg) scale(1);
  }
  50% {
    opacity: 0.75;
    transform: translate(-50%, -20%) rotate(-45deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 22%) rotate(-45deg) scale(0.92);
  }
}

/* hover glow for chevrons */
.scroll-down-btn:hover .arrow::before,
.scroll-down-btn:hover .arrow::after {
  border-color: #e8c79a;
}

/* small defensive rule to ensure pseudo-elements render */
.scroll-down-btn .arrow,
.scroll-down-btn .arrow::before,
.scroll-down-btn .arrow::after {
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}
/* -------------------------SCROLLDOWN BUTTON END---------------------------------------*/


/* -----Flip Card effect start----*/
    /* Skills Section */
    .tech-card {
      background: linear-gradient(145deg, #1b262c, #0f1720);
      border: 1px solid rgba(248, 220, 191, 0.1);
      border-radius: 12px;
      transition: all 0.3s ease;
      overflow: hidden;
      position: relative;
      height: 100%;
      cursor: pointer;
    }
    .tech-card::before {

      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(45deg, rgba(248, 220, 191, 0.05), transparent);
      z-index: 0;
    }
    .tech-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
      border-color: rgba(248, 220, 191, 0.3);
    }
    .skill-bar {
      height: 6px;
      background: rgba(248, 220, 191, 0.2);
      border-radius: 3px;
      overflow: hidden;
      margin-top: 10px;
    }
    .skill-progress {
      height: 100%;
      background: linear-gradient(90deg, #f8dcbf, #d9b48f);
      border-radius: 3px;
      width: 0;
      transition: width 1s ease-in-out;
    }
    .skill-percentage {
      position: absolute;
      top: 15px;
      right: 15px;
      background: rgba(248, 220, 191, 0.1);
      color: #f8dcbf;
      padding: 5px 10px;
      border-radius: 15px;
      font-size: 12px;
      font-weight: bold;
      opacity: 0;
      transform: translateY(10px);
      transition: all 0.3s ease;
    }
    .tech-card:hover .skill-percentage {
      opacity: 1;
      transform: translateY(0);
    }
    .tech-icon {
      color: #f8dcbf;
      font-size: 24px;
      margin-bottom: 15px;
    }
    .skills-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
      gap: 20px;
      max-width: 1200px;
      margin: 0 auto;
    }
    .section-title {
      position: relative;
      display: inline-block;
      margin-bottom: 40px;
    }
    .section-title::after {
      position: absolute;
      bottom: -15px;
      left: 50%;
      transform: translateX(-50%);
      width: 60px;
      height: 3px;
      background: #f8dcbf;
    }
    
    /* Flip card styles */
    .flip-card {
      perspective: 1000px;
      height: 245px;
    }
    .flip-card-inner {
      position: relative;
      width: 100%;
      height: 100%;
      transition: transform 0.6s;
      transform-style: preserve-3d;
    }
    .flip-card.flipped .flip-card-inner {
      transform: rotateY(180deg);
    }
    .flip-card-front, .flip-card-back {
      position: absolute;
      width: 100%;
      height: 100%;
      backface-visibility: hidden;
      border-radius: 12px;
      padding: 20px;
      box-sizing: border-box;
    }
    .flip-card-back {
      background: linear-gradient(145deg, #1b262c, #0f1720);
      transform: rotateY(180deg);
      display: flex;
      flex-direction: column;
      justify-content: center;
      border: 1px solid rgba(248, 220, 191, 0.1);
    }
    .flip-card-back ul {
      list-style-type: none;
      padding: 0;
      margin: 0;
      text-align: left;
    }
    .flip-card-back li {
      color: #d9c9a3;
      margin-bottom: 8px;
      font-size: 14px;
      position: relative;
      padding-left: 20px;
    }
    .flip-card-back li:before {
      content: "•";
      color: #f8dcbf;
      position: absolute;
      left: 0;
    }
    .flip-card-back h4 {
      color: #f8dcbf;
      margin-bottom: 15px;
      font-size: 18px;
      text-align: center;
    }
    
    /* Click instruction indicator */
    .click-indicator {
      position: absolute;
      bottom: 10px;
      left: 50%;
      transform: translateX(-50%);
      color: rgba(248, 220, 191, 0.6);
      font-size: 12px;
      animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
      0% { opacity: 0.6; }
      50% { opacity: 1; }
      100% { opacity: 0.6; }
    }
    
    /* Close button for flip cards */
    .close-btn {
      position: absolute;
      top: 10px;
      right: 10px;
      color: #f8dcbf;
      background: rgba(0, 0, 0, 0.2);
      width: 25px;
      height: 25px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 14px;
      transition: all 0.3s ease;
    }
    
    .close-btn:hover {
      background: rgba(0, 0, 0, 0.4);
      transform: scale(1.1);
    }

/* -----Flip Card effect end----*/

/* -----About Me additional----*/
    /* Animated border styles */
    .image-container {
      position: relative;
      display: inline-block;
    }

    .profile-image {
      border: 3px solid rgba(248, 220, 191, 0.2);
      box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
      transition: all 0.3s ease;
      max-width: 100%;
      height: auto;
      position: relative;
      z-index: 2;
      border-radius: 8px;
    }

    .animated-border {
      position: absolute;
      top: -6px;
      left: -6px;
      right: -6px;
      bottom: -6px;
      border-radius: 12px;
      background: linear-gradient(45deg, #f8dcbf, #d9b48f, #f8dcbf, #d9b48f);
      background-size: 400% 400%;
      z-index: 1;
      animation: gradientShift 3s ease infinite, pulse 2s ease-in-out infinite alternate;
      opacity: 0.7;
      filter: blur(4px);
    }

    .animated-border::after {
      content: '';
      position: absolute;
      top: 1px;
      left: 1px;
      right: 1px;
      bottom: 1px;
      background: #0f1720;
      border-radius: 10px;
      z-index: -1;
    }

    @keyframes gradientShift {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }

    .image-container:hover .animated-border {
      animation: gradientShift 1.5s ease infinite, pulse 1s ease-in-out infinite alternate;
      opacity: 0.9;
      filter: blur(2px);
    }

    .accent-line {
      width: 60px;
      height: 3px;
      background: #f8dcbf;
      margin: 15px 0;
    }

    .lg\:col-span-2 {
      text-align: left;
    }

    .contact-me {
      background-color: #f8dcbf;
      color: #0f1720;
      font-weight: 600;
      padding-top: 0.75rem;
      padding-bottom: 0.75rem;
      padding-left: 1.5rem;
      padding-right: 1.5rem;
      border-radius: 0.5rem;
      transition-property: background-color;
      transition-duration: 300ms;
     }
        
     .contact-me:hover {
       background-color: #e0cba0;
     }

     .view-project {
       border: 1px solid #f8dcbf;
       color: #f8dcbf;
       font-weight: 600;
       padding-top: 12px;
       padding-bottom: 12px;
       padding-left: 24px;
       padding-right: 24px;
       border-radius: 8px;
       transition: all 0.3s;
       background: transparent;

     }
        
     .view-project:hover {
       background-color: #f8dcbf;
       color: #0f1720;
       box-shadow: 0 10px 20px rgba(248, 220, 191, 0.3);
     }

/* -----About Me additional end----*/