body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding-top: 64px;
  background-color: #1a1a1a;
  color: #e0e0e0;
}

:root {
  --accent-color: #ff8c00;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-up.delay-200 {
  animation-delay: 0.2s;
}

.animate-fade-in-up.delay-400 {
  animation-delay: 0.4s;
}

.typing-text {
  overflow: hidden;

  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: 0.05em;
  animation: typing 3.5s steps(40, end) forwards;
  width: 0;
}

/* --- Hamburger Icon Animation CSS --- */
.hamburger-button {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
  z-index: 70;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #e0e0e0;
  border-radius: 9999px;
  transition: all 0.3s ease-in-out;
  position: relative;
}

/* Initial state for lines */
.hamburger-button .hamburger-line:nth-child(1) {
  top: 0;
}
.hamburger-button .hamburger-line:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
}
.hamburger-button .hamburger-line:nth-child(3) {
  top: 0;
}

/* State when menu is open (transforms to X) */
.hamburger-button.open .hamburger-line:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}

.hamburger-button.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-100%);
}

.hamburger-button.open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg);
  top: -10px;
}

/* Explicitly hide hamburger on medium and larger screens */
@media (min-width: 768px) {
  .hamburger-button {
    display: none !important; /* Force hide */
  }
}

/* Mobile menu overlay state */
#mobile-menu-overlay {
  background-color: rgba(0, 0, 0, 0.9);
  position: fixed;
  height: 100vh;
  width: 100vw;
  inset: 0;
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}

#mobile-menu-overlay.open {
  transform: translateX(0);
}

body.no-scroll {
  overflow: hidden;
}

#mobile-menu-overlay .nav-link.active {
  color: var(--accent-color);
  font-weight: 600;
}

/* Typing animation */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

html {
  scroll-behavior: smooth;
}

.nav-link.active {
  color: var(--accent-color);
  font-weight: 600;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #1a1a1a;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.btn-primary:hover {
  background-color: #e67e00;
  transform: translateY(-2px);
}

.btn-secondary {
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.btn-secondary:hover {
  background-color: var(--accent-color);
  color: #1a1a1a;
  transform: translateY(-2px);
}

/* Projects */
#projects {
  padding: 50px 0;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 40px;
  margin-top: 50px;
}

.work {
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.work img {
  width: 100%;
  border-radius: 10px;
  display: block;
  transition: transform 0.5s;
}

.layer {
  width: 100%;
  height: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.6), var(--accent-color));
  border-radius: 10px;
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 40px;
  text-align: center;
  font-size: 14px;
  transition: height 0.5s;
}

.layer h3 {
  font-weight: 500;
  margin-bottom: 20px;
}

.layer a {
  margin-top: 20px;
  color: var(--accent-color);
  text-decoration: none;
  font-size: 18px;
  line-height: 60px;
  background: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
}

.work:hover img {
  transform: scale(1.1);
}

.work:hover .layer {
  height: 100%;
}

.btn {
  display: block;
  margin: 50px auto;
  width: fit-content;
  border: 1px solid var(--accent-color);
  padding: 14px 50px;
  border-radius: 30px;
  text-decoration: none;
  color: #fff;
  transition: 0.5s ease, color 0.5s ease;
}

.btn:hover {
  background: var(--accent-color);
}

button.btn {
  background-color: transparent;
}

/* Responsive Video Container */
.video-responsive-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
}

.video-responsive-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.skill-tag {
  background-color: #333333;
  color: #e0e0e0;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
  border: 1px solid #4a4a4a;
}
.skill-tag:hover {
  background-color: var(--accent-color);
  color: #1a1a1a;
}

/* Contact section send button */
.btn-contact-submit {
  overflow: hidden;
  z-index: 10;
  background-color: transparent;
  color: #e0e0e0;
  transition: color 0.4s ease-in-out;
  border: 2px solid var(--accent-color);
  position: relative;
}

.btn-contact-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--accent-color);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.5, 1.5, 0.5, 1);
}

.btn-contact-submit:hover::before {
  transform: scaleX(1);
}

.btn-contact-submit:hover {
  color: #1a1a1a;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Animation pulse effect */
.whatsapp-float {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* WhatsApp media querry for responsiveness */
@media screen and (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 24px;
  }
}
