* {
  user-select: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html { 
  font-size: 16px;
}

body {
  font-family: "Orbitron", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: rgb(0, 0, 0);
  position: relative;
  min-height: 100vh;
}

/* Hide scrollbar */
::-webkit-scrollbar { width: 0; height: 0; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: transparent; }
* { scrollbar-width: none; }
body { -ms-overflow-style: none; }

/* Stars */
.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  pointer-events: none;
  animation: twinkle 2s infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.3; }
}

/* ========== NAVBAR ========== */
.navbar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.logo {
  position: fixed;
  left: 30px;
  top: 20px;
  text-decoration: none;
  background: rgba(0, 255, 255, 0.08);
  color: #00faff;
  padding: 8px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(0, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
  z-index: 1001;
  transition: all 0.3s ease;
}

.logo:hover {
  background: rgba(0, 255, 255, 0.15);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
  transform: translateY(-2px);
}

.logo img {
  width: 20px;
  height: 20px;
  display: block;
}

/* Desktop Navigation */
.nav-menu {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 8px;
  background: rgba(0, 255, 255, 0.1);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
  list-style: none;
}

.tab-btn {
  background: none;
  border: none;
  color: #00faff;
  font-family: "Orbitron", sans-serif;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #fff;
  text-shadow: 0 0 10px #00faff;
  transform: translateY(-2px);
  background: rgba(0, 255, 255, 0.1);
}

.tab-btn.active {
  background: rgba(0, 255, 255, 0.08);
  color: #fff;
  /* box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); */
}

.tab-btn::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #00faff;
  transform: translateX(-50%);
  transition: width 0.3s ease;
  box-shadow: 0 0 5px #00faff;
}

.tab-btn:hover::after,
.tab-btn.active::after {
  width: 60%;
}

/* Hamburger - Hidden on Desktop */
.nav-toggle {
  display: none;
}

/* ========== MAIN CONTENT ========== */
.main-content {
  padding: 120px 40px 60px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Tab Content */
.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

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

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  font-family: "Outfit", sans-serif;
  color: #fff;
}

.section-header h1 span {
  color: #00faff;
}

.section-header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  font-family: "Outfit", sans-serif;
}

.underline {
  width: 80px;
  height: 3px;
  background: #00faff;
  margin: 20px auto;
  border-radius: 3px;
}

/* Projects Grid */
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  flex: 0 1 350px;
  width: 350px;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 255, 255, 0.3);
  box-shadow: 0 10px 40px rgba(0, 255, 255, 0.2);
}

.project-image {
  width: 100%;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.project-info {
  padding: 24px;
}

.project-info h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-family: "Outfit", sans-serif;
  color: #fff;
}

.project-info p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.6;
  font-family: "Outfit", sans-serif;
  margin-bottom: 15px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.tag {
  padding: 4px 12px;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 20px;
  font-size: 0.75rem;
  color: #00faff;
  font-family: "Outfit", sans-serif;
}

.project-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.project-link {
  padding: 8px 16px;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 8px;
  color: #00faff;
  text-decoration: none;
  font-size: 0.85rem;
  font-family: "Outfit", sans-serif;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-link:hover {
  background: rgba(0, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Coming Soon */
.coming-soon {
  text-align: center;
  padding: 100px 20px;
}

.coming-soon i {
  font-size: 5rem;
  color: rgba(0, 255, 255, 0.3);
  margin-bottom: 20px;
}

.coming-soon h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  font-family: "Outfit", sans-serif;
  color: #fff;
}

.coming-soon p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  font-family: "Outfit", sans-serif;
}

/* ========== TABLET (768px - 1024px) ========== */
@media (max-width: 1024px) and (min-width: 769px) {
  .main-content {
    padding: 100px 30px 50px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .section-header h1 {
    font-size: 2.5rem;
  }

  .tab-btn {
    font-size: 0.9rem;
    padding: 10px 18px;
  }
}

/* ========== MOBILE (≤768px) ========== */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 10px;
  }

  .logo {
    left: 15px;
    top: 15px;
    padding: 6px 10px;
  }

  .logo img {
    width: 18px;
    height: 18px;
  }

  /* Show hamburger */
  .nav-toggle {
    display: flex;
    position: fixed;
    right: 15px;
    top: 15px;
    background: rgba(0, 255, 255, 0.08);
    border: 1.5px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1002;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
    padding: 0;
  }

  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #00faff;
    border-radius: 2px;
    transition: 0.3s;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Mobile Menu */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75vw;
    max-width: 300px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 40px 20px;
    background: rgba(0, 20, 30, 0.95);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 0;
    border: none;
    border-left: 2px solid rgba(0, 255, 255, 0.4);
    box-shadow: -10px 0 50px rgba(0, 255, 255, 0.2);
    z-index: 1001;
    transition: right 0.4s ease;
  }

  .nav-menu.open {
    right: 0;
  }

  .tab-btn {
    font-size: 1.1rem;
    padding: 10px 20px;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateX(30px);
  }

  .nav-menu.open .tab-btn {
    animation: slideIn 0.4s forwards;
  }

  .nav-menu.open .tab-btn:nth-child(1) { animation-delay: 0.1s; }
  .nav-menu.open .tab-btn:nth-child(2) { animation-delay: 0.2s; }
  .nav-menu.open .tab-btn:nth-child(3) { animation-delay: 0.3s; }
  .nav-menu.open .tab-btn:nth-child(4) { animation-delay: 0.4s; }

  @keyframes slideIn {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  /* Overlay when menu open */
  body.menu-open {
    overflow: hidden;
  }

  body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    animation: fadeInOverlay 0.3s;
  }

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

  /* Main Content */
  .main-content {
    padding: 100px 20px 50px;
  }

  .section-header h1 {
    font-size: 2rem;
  }

  .section-header p {
    font-size: 0.95rem;
    padding: 0 10px;
  }

  .underline {
    width: 60px;
  }

  /* Projects Grid - Single Column */
  .projects-grid {
    gap: 20px;
  }

  .project-card {
    flex: 1 1 100%;
    max-width: 500px;
  }

  .project-image {
    height: 180px;
    font-size: 2.5rem;
  }

  .project-info {
    padding: 20px;
  }

  .project-info h3 {
    font-size: 1.2rem;
  }

  .project-info p {
    font-size: 0.85rem;
  }

  .coming-soon {
    padding: 60px 20px;
  }

  .coming-soon i {
    font-size: 3.5rem;
  }

  .coming-soon h2 {
    font-size: 1.6rem;
  }

  .coming-soon p {
    font-size: 0.95rem;
  }
}

/* ========== SMALL MOBILE (≤480px) ========== */
@media (max-width: 480px) {
  .main-content {
    padding: 90px 15px 40px;
  }

  .section-header h1 {
    font-size: 1.7rem;
  }

  .section-header p {
    font-size: 0.9rem;
  }

  .nav-menu {
    width: 85vw;
  }

  .tab-btn {
    font-size: 1rem;
  }

  .project-info {
    padding: 18px;
  }

  .project-info h3 {
    font-size: 1.1rem;
  }

  .project-links {
    flex-direction: column;
  }

  .project-link {
    justify-content: center;
  }
}

/* ========== LANDSCAPE MODE ========== */
@media (max-height: 500px) and (orientation: landscape) {
  .main-content {
    padding: 80px 20px 40px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header h1 {
    font-size: 1.8rem;
  }

  .coming-soon {
    padding: 40px 20px;
  }

  .coming-soon i {
    font-size: 2.5rem;
  }

  .nav-menu {
    padding: 20px;
    gap: 15px;
  }

  .tab-btn {
    padding: 8px 16px;
    font-size: 0.95rem;
  }
}

/* ========== LARGE DESKTOP (>1400px) ========== */
@media (min-width: 1400px) {
  .main-content {
    max-width: 1600px;
    padding: 140px 60px 80px;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
  }

  .section-header h1 {
    font-size: 3.5rem;
  }

  .section-header p {
    font-size: 1.2rem;
  }
}