/* Custom styles for Don Askarian's portfolio */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom base styles */
@layer base {
  html {
    scroll-behavior: smooth;
  }
  
  body {
    @apply antialiased;
  }
  
  /* Remove all border radius */
  * {
    border-radius: 0 !important;
  }
  
  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  
  ::-webkit-scrollbar-track {
    @apply bg-black;
  }
  
  ::-webkit-scrollbar-thumb {
    @apply bg-red-800;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    @apply bg-red-700;
  }
}

/* Custom components */
@layer components {
  .btn {
    @apply inline-block px-6 py-3 text-sm font-medium uppercase tracking-wider transition-colors duration-200;
  }
  
  .btn-primary {
    @apply bg-red-800 text-white hover:bg-red-700;
  }
  
  .btn-outline {
    @apply border border-white text-white hover:bg-white hover:text-black;
  }
  
  /* Aspect ratio containers */
  .aspect-w-16 {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  }
  
  .aspect-h-9 {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  /* Custom underline effect */
  .underline-effect {
    position: relative;
    display: inline-block;
  }
  
  .underline-effect::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    @apply bg-red-800;
    transition: width 0.3s ease;
  }
  
  .underline-effect:hover::after {
    width: 100%;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  @media (max-width: 640px) {
    header nav {
      padding-left: 0.9rem;
      padding-right: 0.9rem;
      flex-direction: column;
      align-items: center;
      gap: 0.9rem;
      padding-top: 1.5rem;
    }

    .mobile-menu-toggle {
      position: absolute;
      top: 0.75rem;
      right: 0.9rem;
    }

    header .nav-links {
      position: absolute;
      top: calc(100% + 0.75rem);
      left: 0.9rem;
      right: 0.9rem;
      display: none;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      padding: 1rem 1.1rem 2.4rem;
      background: rgba(0, 0, 0, 0.96);
      border: 1px solid rgba(255, 255, 255, 0.12);
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
      backdrop-filter: blur(6px);
      border-radius: 0;
      transform-origin: top;
      z-index: 40;
    }

    header .nav-links.is-open {
      display: flex;
      animation: mobileNavFade 0.22s ease forwards;
    }

    header .nav-links li + li {
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      margin-top: 0.75rem;
      padding-top: 0.75rem;
    }

    header .nav-links li:last-child {
      padding-bottom: 0.6rem;
    }

    header .nav-links .nav-link {
      width: 100%;
      font-size: clamp(0.78rem, 3.4vw, 0.95rem);
      letter-spacing: 0.08em;
      text-align: center;
      padding-inline: 0;
      padding-block: 0.25rem;
      justify-content: center;
      white-space: nowrap;
    }

    header .nav-links .nav-link::after {
      bottom: -6px;
    }

    .site-logo {
      display: flex !important;
      justify-content: center;
    }
  }

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

  body.mobile-nav-open {
    overflow: hidden;
    touch-action: none;
  }

  .mobile-menu-toggle[aria-expanded="true"] {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.6);
  }

  .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    padding-bottom: 2px;
  }

  @media (min-width: 768px) {
    .nav-link {
      font-size: 1rem;
    }
  }

  .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: #991b1b;
    transition: width 0.3s ease;
  }

  .nav-link:hover::after,
  .nav-link:focus-visible::after,
  .nav-link.active::after {
    width: 100%;
  }

  .site-logo img {
    display: block;
  }
}

.footer-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.footer-meta .footer-separator {
  color: #6b7280;
}

@media (max-width: 640px) {
  .footer-meta {
    flex-direction: column;
    gap: 0.3rem;
  }

  .footer-meta .footer-separator {
    display: none;
  }
}
