:root {
  --primary: #fbbf24;
  --accent: #ff3366;
  --accent-hover: #ff1149;
  --text-primary: #fafafa;
  --text-secondary: #a3a3a3;
  --text-muted: #999;
  --bg-dark: #000;
  --light-dark: #2e2e2e;
  --bg-section: #0a0a0a;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
}

/* Navbar */

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--light-dark);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 26px;
}

.logo-icon {
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links .active {
  color: var(--accent);
  text-decoration: underline;
}

.nav-cta {
  background: var(--accent);
  color: var(--bg-dark);
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.nav-cta span {
  display: inline;
  background: transparent;
  padding: 0;
}

.nav-cta:hover {
  background: var(--primary);
  transform: translateY(-1px);
}

/* ===============================
   RESPONSIVE NAVBAR
================================= */

/* Hide mobile CTA by default */
.mobile-cta {
  display: none;
}

/* Tablet + Mobile */
@media (max-width: 1024px) {
  .mobile-menu-btn {
    display: block;
  }

  .desktop-cta {
    display: none;
  }

  .nav-container {
    position: relative;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(13, 13, 13, 0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
    padding: 2rem;
    display: none;
    border-bottom: 1px solid var(--light-dark);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    font-size: 1.05rem;
    width: 100%;
  }

  /* CTA at bottom */
  .mobile-cta {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
  }

  .mobile-cta .nav-cta {
    width: 100%;
    text-align: center;
    padding: 0.9rem;
    font-size: 1rem;
    color: black;
  }
}

/* Mobile fine-tuning */
@media (max-width: 768px) {
  .nav-container {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    padding: 1.5rem;
    gap: 1.2rem;
  }

  .nav-links a {
    font-size: 1rem;
  }
}

.hero-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;

  --s: 37px; /* control the size */

  --c: #0000, #282828 0.5deg 119.5deg, #0000 120deg;
  --g1: conic-gradient(from 60deg at 56.25% calc(425% / 6), var(--c));
  --g2: conic-gradient(from 180deg at 43.75% calc(425% / 6), var(--c));
  --g3: conic-gradient(from -60deg at 50% calc(175% / 12), var(--c));
  background: var(--g1), var(--g1) var(--s) calc(1.73 * var(--s)), var(--g2),
    var(--g2) var(--s) calc(1.73 * var(--s)), var(--g3) var(--s) 0,
    var(--g3) 0 calc(1.73 * var(--s)) #1e1e1e;
  background-size: calc(2 * var(--s)) calc(3.46 * var(--s));
}

.hero-section p {
  font-family: "Space Grotesk", sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 62px;
}

/* Portfolio Section */

/* ==============================
   Collections Section
============================== */

.collections {
  padding: 120px 50px 100px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 48px;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ==============================
   Category Tabs
============================== */

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 30px;
  background: transparent;
  border: 1px solid var(--text-muted);
  color: var(--text-muted);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ==============================
   Collections Grid
============================== */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

/* ==============================
   Collection Card
============================== */

.collection-card {
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  width: 400px;
  height: -webkit-fill-available;
}

.collection-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(255, 51, 102, 0.25);
}

/* Stagger animation */
.collection-card:nth-child(1) {
  animation-delay: 0.1s;
}
.collection-card:nth-child(2) {
  animation-delay: 0.2s;
}
.collection-card:nth-child(3) {
  animation-delay: 0.3s;
}
.collection-card:nth-child(4) {
  animation-delay: 0.4s;
}
.collection-card:nth-child(5) {
  animation-delay: 0.5s;
}
.collection-card:nth-child(6) {
  animation-delay: 0.6s;
}
.collection-card:nth-child(7) {
  animation-delay: 0.7s;
}
.collection-card:nth-child(8) {
  animation-delay: 0.8s;
}

.features-list{
  display: flex;
  flex-direction: column ;
  gap: 10px;
}
.features-list p{
  margin: 0px;
  font-size: 14px;
  color: #cdcdcd;
}

/* ==============================
   Thumbnail
============================== */

.collection-thumbnail {
  width: 100%;
  height: fit-content;
  overflow: hidden;
  position: relative;
}

.collection-thumbnail img {
  width: 100%;
  height: fit-content;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.collection-card:hover .collection-thumbnail img {
  transform: scale(1.05);
}

.collection-thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 51, 102, 0.12) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.8s ease;
}

.collection-card:hover .collection-thumbnail::after {
  transform: translateX(100%);
}

/* ==============================
   Card Content
============================== */

.card-content {
  padding: 25px;
  background: var(--light-dark);
  height: -webkit-fill-available;
}

.card-badge {
  display: flex;
  flex-direction: row;
  gap: 4px;
  background-color: var(--text-primary);
  width: fit-content;
  justify-content: center;
  align-items: center;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;

  font-size: 12px;
  margin: 0px !important;
  color: var(--bg-dark) !important;
}

.card-badge span {
  color: var(--bg-dark) !important;
}

.card-badge svg {
  color: var(--bg-dark) !important;
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-subtitle {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.card-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
}

.portfolio-wrapper {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 40px;
  justify-content: center;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 14px;
  margin-top: 10px;
}

.tech-stack p {
  margin: 0px;
  font-size: 14px;
  color: #cdcdcd;
}

/* ==============================
   Animations
============================== */

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

/* ==============================
   Responsive
============================== */

@media (max-width: 768px) {
  .collections {
    padding: 80px 20px 50px;
  }

  .section-title {
    font-size: 36px;
  }

  .card-content {
    padding: 20px;
  }
}

/* Footer */
footer {
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0px;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--accent-light);
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .logo {
    justify-content: center;
  }
  .footer-social-icons-row {
    justify-content: center;
  }
  .footer-icons-container button {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 880px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    margin: 1rem auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

.footer-icons-container {
  position: relative;
  width: fit-content;
  /*  choose your size */
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.footer-icons-container button {
  width: 50px;
  height: 50px;
  border: none;
  background-color: #313638;
  transition: 0.3s;
  cursor: pointer;
}

.icon {
  width: 26px;
  height: 26px;
  fill: #fff;
}

.footer-icons-container button:nth-child(1):hover {
  background-color: #2753a7;
}

.title {
  color: gray;
  font-weight: 700;
  font-size: 17px;
  position: absolute;
  top: -35px;
  left: 0;
}

/* Floating Scroll-to-Top Button */
/* Floating Scroll-to-Top Button */
#scrollTopBtn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  position: fixed; /* Make it float */
  bottom: 30px; /* Distance from bottom */
  right: 30px; /* Distance from right */
  z-index: 1000; /* Always on top */
  overflow: hidden;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  background: linear-gradient(144deg, #af40ff, #5b42f3 50%, #00ddeb);
  transition: width 0.3s, height 0.3s;
  animation: float 2.5s ease-in-out infinite; /* Floating animation */
}

/* Icon */
#scrollTopBtn .sign {
  width: 100%;
  font-size: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

/* Text */
#scrollTopBtn .text {
  position: absolute;
  right: 0;
  width: 0;
  opacity: 0;
  color: white;
  font-size: 1.2em;
  font-weight: 500;
  transition: all 0.3s;
  white-space: nowrap;
}

/* Hover expand */
#scrollTopBtn:hover {
  width: 120px;
  border-radius: 25px;
}

#scrollTopBtn:hover .sign {
  width: 30%;
  padding-left: 15px;
}

#scrollTopBtn:hover .text {
  opacity: 1;
  width: 70%;
  padding-right: 15px;
}

/* Click effect */
#scrollTopBtn:active {
  transform: translate(2px, 2px);
}

.footer-social-icons-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

/* Floating keyframes */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}
