:root {
  --bg-main: #0b0b0b;
  --bg-secondary: #121212;
  --text-main: #ffffff;
  --text-muted: #cfcfcf;
  --accent-red: #e10600;
  --accent-red-dark: #b00400;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', sans-serif;
  --font-bold: 700;
  --font-semibold: 600;
  --font-medium: 500;
  --line-height-tight: 1.2;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: #0a0a0a;
  color: var(--text-main);
  line-height: var(--line-height-normal);
}

    
    a {
      text-decoration: none;
      color: inherit;
      pointer-events: auto;
    }

    /* ---------- HERO ---------- */
    .hero {
      background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
                  url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c") center/cover;
      padding: 100px 20px;
      text-align: center;
      padding-top: 150px;
    }

    .hero h1 {
      font-size: 48px;
      font-weight: 900;
      margin-bottom: 20px;
      line-height: 1.1;
      letter-spacing: -1px;
    }

    .hero p {
      font-size: 18px;
      opacity: 0.85;
      margin-bottom: 30px;
      line-height: 1.6;
      font-weight: 500;
    }

    @media (max-width: 768px) {
        .hero h1 {
            font-size: 32px;
        }
        .hero p {
            font-size: 16px;
        }
    }

    .btn {
  background: var(--accent-red);
  padding: 14px 36px;
  border-radius: 999px;
  font-weight: 700;
  color: white;
  box-shadow: 0 0 18px rgba(225,6,0,0.6);
  transition: 0.3s;
}

.btn:hover {
  background: var(--accent-red-dark);
  box-shadow: 0 0 28px rgba(225,6,0,0.9);
}

    /* ---------- STATS ---------- */
    .stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  padding: 40px;
  background: var(--bg-secondary);
  border-top: 1px solid #1f1f1f;
  border-bottom: 1px solid #1f1f1f;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  flex: 1;
  min-width: 200px;
}

.stat span {
  font-size: 28px;
  font-weight: 900;
  display: block;
  margin-bottom: 8px;
  color: #C84C38;
}

.stat p, .stat {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .stats {
    gap: 30px;
    flex-direction: column;
  }
}

/* FILTERS */
.filters {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 30px;
  position: relative;
}

.filter-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #1b1b1b;
  border: 1px solid rgba(200, 76, 56, 0.3);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 280px;
}

.filter-toggle-btn:hover,
.filter-toggle-btn.active {
  background: var(--accent-red);
  box-shadow: 0 0 12px rgba(225, 6, 0, 0.6);
  border-color: var(--accent-red);
}

.filter-toggle-btn .toggle-arrow {
  transition: transform 0.3s ease;
}

.filter-toggle-btn.active .toggle-arrow {
  transform: rotate(180deg);
}

.filter-buttons-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 999px;
  background: #1b1b1b;
  border: 1px solid rgba(200, 76, 56, 0.2);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
  white-space: nowrap;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent-red);
  box-shadow: 0 0 12px rgba(225, 6, 0, 0.6);
  border-color: var(--accent-red);
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
  .filter-toggle-btn {
    display: flex;
  }

  .filter-buttons-container {
    display: none;
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    gap: 10px;
  }

  .filter-buttons-container.active {
    display: flex;
    animation: slideDown 0.3s ease;
  }

  .filter-btn {
    padding: 12px 18px;
    font-size: 14px;
    width: 100%;
    font-weight: 700;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Desktop Responsiveness */
@media (min-width: 768px) {
  .filters {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .filter-toggle-btn {
    display: none !important;
  }

  .filter-buttons-container {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .filter-btn {
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 700;
    border: 1px solid rgba(200, 76, 56, 0.3);
    letter-spacing: 0.5px;
  }

  .filter-btn:hover {
    transform: translateY(-2px);
  }
}

    

    /* ---------- PROJECT GRID ---------- */
    .projects {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 30px;
      padding: 60px 40px;
      width: 100%;
      background: #0a0a0a;
    }

    @media (max-width: 768px) {
      .projects {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        gap: 25px;
      }
    }

    @media (min-width: 769px) and (max-width: 1024px) {
      .projects {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (min-width: 1025px) {
      .projects {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @keyframes slideInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes scaleIn {
      from {
        opacity: 0;
        transform: scale(0.95);
      }
      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    .card {
      background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(200,76,56,0.05) 100%);
      border-radius: 16px;
      overflow: hidden;
      border: 1px solid rgba(200, 76, 56, 0.2);
      transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
      animation: slideInUp 0.6s ease-out forwards;
      backdrop-filter: blur(10px);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .card:nth-child(1) {
      animation-delay: 0.1s;
    }

    .card:nth-child(2) {
      animation-delay: 0.2s;
    }

    .card:nth-child(3) {
      animation-delay: 0.3s;
    }

    .card:nth-child(4) {
      animation-delay: 0.4s;
    }

    .card:hover {
      transform: translateY(-8px) scale(1.02);
      border-color: #C84C38;
      box-shadow: 0 12px 40px rgba(200, 76, 56, 0.3);
    }

    .card img {
      width: 100%;
      height: 240px;
      object-fit: cover;
      transition: transform 0.5s ease;
    }

    .card:hover img {
      transform: scale(1.08);
    }

    .card-body {
      padding: 24px;
    }

    .card h3 {
      font-size: 20px;
      margin-bottom: 8px;
      color: #ffffff;
      font-weight: 700;
      line-height: 1.3;
    }

    .card p {
      font-size: 14px;
      color: var(--text-muted);
      margin-bottom: 18px;
      line-height: 1.6;
      font-weight: 500;
    }

    .view-link {
      font-size: 14px;
      color: var(--accent-red);
      font-weight: 500;
    }

   /* READY */
   .ready {
     display: flex;
     justify-content: center;
     align-items: center;
     padding: 80px 40px;
     background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(200,76,56,0.1) 100%);
     border-top: 1px solid rgba(200, 76, 56, 0.2);
     min-height: 300px;
     animation: slideInUp 0.8s ease-out 0.5s backwards;
   }

   .start {
     text-align: center;
     max-width: 700px;
   }

   .start h2 {
     font-size: 52px;
     font-weight: 900;
     margin-bottom: 30px;
     line-height: 1.2;
     letter-spacing: -0.5px;
     color: #ffffff;
   }

   .start h2 span {
     display: inline-block;
     background: linear-gradient(135deg, #C84C38 0%, #ff6b5b 100%);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     animation: shimmer 3s ease-in-out infinite;
   }

   @keyframes shimmer {
     0%, 100% {
       opacity: 1;
     }
     50% {
       opacity: 0.8;
     }
   }

   @media (max-width: 768px) {
     .start h2 {
       font-size: 32px;
     }
     .ready {
       padding: 50px 20px;
     }
   }

.red-btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--accent-red);
  color: white;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(225, 6, 0, 0.6);
  transition: all 0.3s ease;
}

.red-btn:hover {
  background: var(--accent-red-dark);
  box-shadow: 0 0 28px rgba(225, 6, 0, 0.9);
}


    /* ---------- FOOTER ---------- */
    footer {
      text-align: center;
      padding: 30px;
      font-size: 13px;
      opacity: 0.6;
    }

/* ========== MOBILE MENU BUTTON & NAVIGATION ========== */

/* Menu Button (replaces hamburger) */
.menu-button {
  background: linear-gradient(135deg, rgba(200, 76, 56, 0.9), rgba(255, 107, 91, 0.9));
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 10px 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 999995;
  border-radius: 10px;
  min-width: 90px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(200, 76, 56, 0.3);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  pointer-events: auto;
}

.menu-button:hover {
  background: linear-gradient(135deg, rgba(200, 76, 56, 1), rgba(255, 107, 91, 1));
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(200, 76, 56, 0.4);
}

.menu-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(200, 76, 56, 0.3);
}

.menu-text {
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

/* Active state - change to "Close" */
.menu-button.active {
  background: linear-gradient(135deg, rgba(80, 80, 90, 0.85), rgba(100, 100, 110, 0.85));
  border-color: rgba(200, 76, 56, 0.6);
}

.menu-button.active .menu-text::before {
  content: 'Close';
}

.menu-button.active .menu-text {
  font-size: 0;
  letter-spacing: 0;
}

.menu-button.active .menu-text::before {
  font-size: 15px;
  letter-spacing: 0;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background: linear-gradient(135deg, #505060 0%, #606070 100%);
  z-index: 999990;
  transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.mobile-menu.active {
  right: 0;
  visibility: visible;
  opacity: 1;
  pointer-events: auto !important;
  transform: translate3d(0, 0, 0);
}

/* Mobile Menu Content */
.mobile-menu-content {
  padding: 80px 30px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  pointer-events: auto !important;
  position: relative;
  z-index: 999991;
}

/* Mobile Navigation Links */
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto !important;
  position: relative;
  z-index: 999992;
}

.mobile-nav-link {
  display: block;
  padding: 14px 18px;
  color: white !important;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer !important;
  pointer-events: auto !important;
  user-select: none;
  transform: none !important;
  will-change: transform, background;
  position: relative;
  z-index: 999999;
}

a.mobile-nav-link {
  pointer-events: auto !important;
  cursor: pointer !important;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: rgba(200, 76, 56, 0.2) !important;
  border-color: rgba(200, 76, 56, 0.4) !important;
  color: #ff6b5b !important;
  transform: translateX(8px);
  box-shadow: 0 2px 8px rgba(200, 76, 56, 0.2);
}

/* Force clickability on mobile nav links */
.mobile-menu.active .mobile-nav-link {
  pointer-events: auto !important;
  cursor: pointer !important;
  display: block !important;
  position: relative !important;
  z-index: 999999 !important;
  touch-action: manipulation !important;
}

.mobile-menu.active .mobile-nav {
  pointer-events: auto !important;
  z-index: 999998 !important;
}

.mobile-menu.active .mobile-menu-content {
  pointer-events: auto !important;
  z-index: 999997 !important;
}

.mobile-menu.active a {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Mobile Language Switcher */
.mobile-lang-switcher {
  order: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: auto !important;
}

.lang-divider {
  color: rgba(255, 255, 255, 0.3);
  opacity: 1 !important;
  animation: none !important;
}

.mobile-lang-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
  opacity: 1 !important;
  animation: none !important;
  display: inline-block !important;
  pointer-events: auto !important;
  user-select: none;
}

.mobile-lang-btn.active {
  color: white !important;
  background: rgba(200, 76, 56, 0.2) !important;
}

.mobile-lang-btn:hover {
  color: white !important;
  background: rgba(255, 255, 255, 0.1);
}

/* Overlay Background for Mobile Menu */
.mobile-menu-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.1) !important;
  z-index: 9998 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
  pointer-events: none !important;
}

.mobile-menu-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important;
}

/* Tablet and Desktop - Hide Mobile Menu Button */
@media (min-width: 768px) {
  .mobile-menu {
    display: none;
  }
  
  .menu-button {
    display: none !important;
  }
}

/* Tablet Portrait and Below - Show Menu Button */
@media (max-width: 767px) {
  .menu-button {
    display: flex !important;
  }
}

/* Small Mobile Adjustments */
@media (max-width: 480px) {
  .mobile-menu {
    width: 90%;
  }
  
  .mobile-nav-link {
    font-size: 16px;
    padding: 12px 16px;
  }
  
  .mobile-menu-content {
    padding: 75px 24px 24px;
    gap: 12px;
  }
  
  .mobile-lang-switcher {
    gap: 4px;
    padding: 8px;
    margin-top: 6px;
  }
  
  .mobile-lang-btn {
    padding: 5px 12px;
    font-size: 15px !important;
  }
  
  .menu-button {
    min-width: 80px;
    height: 40px;
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* Additional mobile visibility fixes */
@media (max-width: 767px) {
  #mobile-menu {
    display: block !important;
  }
  
  .mobile-nav-link {
    pointer-events: auto !important;
    cursor: pointer !important;
  }
}

