/* BASE */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #07090f;
  color: #fff;
}
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 5px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(7, 9, 15, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}


:root {
  --bg-dark: #07090f;
  --card-dark: #0f1420;

  --neon-blue: #00ffff;
  --neon-purple: #8a2be2;

  --text-main: #ffffff;
  --text-muted: #9aa4b2;

  --gradient: linear-gradient(135deg, #00ffff, #8a2be2);
}
.nav-logo {
  font-weight: bold;
  font-size: 20px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: #aaa;
  transition: 0.3s;
}


.nav-links a:hover {
  color: var(--neon-blue);
}

.nav-btn {
  padding: 6px 14px;
  border: 1px solid #00ffff;
  border-radius: 20px;
}

.project-page {
  padding: 5px 8%;
  background: radial-gradient(circle at 80% 20%, rgba(138,43,226,0.15), transparent 40%),
              radial-gradient(circle at 20% 80%, rgba(0,255,255,0.1), transparent 40%),
              var(--bg-dark);
}
.project-page::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(138,43,226,0.15), transparent);
  top: 100px;
  right: 100px;
  z-index: 0;
}

.project-container {
  position: relative;
  z-index: 1;
}
/* MEDIA */
.project-media {
  height: 450px;
    margin-bottom: 60px;
  border-radius: 20px;
  overflow: hidden;

  border: 1px solid rgba(255,255,255,0.08);

  /* Neon glow */
  box-shadow:
    0 0 40px rgba(138,43,226,0.2),
    0 0 80px rgba(0,255,255,0.08);

  transition: 0.4s ease;
}

.project-media:hover {
  transform: scale(1.01);
  box-shadow:
    0 0 60px rgba(138,43,226,0.3),
    0 0 100px rgba(0,255,255,0.15);
}

.project-media iframe,
.project-media img {
  width: 100%;
  height: 500px;
  border-radius: 16px;
  border: none;

  box-shadow: 0 0 40px rgba(138,43,226,0.25);
}

/* HEADER */
.project-header h1 {
  font-size: 48px;
  margin-bottom: 18px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.project-description {
  max-width: 100%;
  line-height: 1.7;

  padding: 18px 22px;

  color: #cbd5e1;

  background: linear-gradient(
    145deg,
    rgba(0,255,255,0.05),
    rgba(138,43,226,0.08)
  );

  border-left: 3px solid #00ffff;
  border-radius: 10px;

  position: relative;
}

/* TAGS */
.tag-container span {
  background: rgba(0,255,255,0.08);
  border: 1px solid rgba(0,255,255,0.4);
  color: var(--neon-blue);

  padding: 6px 14px;
  border-radius: 20px;
  margin: 5px;
  font-size: 13px;

  transition: 0.3s;
}

.tag-container {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-container span:hover {
  background: rgba(138,43,226,0.2);
  border-color: var(--neon-purple);
}

/* SECTION BLOCK */
.section-block {
  margin-top: 50px;
}

.section-block h2 {
  margin-bottom: 10px;
}

.section-block ul {
  padding-left: 20px;
}

.section-block li {
  margin-bottom: 10px;
  color: #ccc;
}
.section-block h2,
.left h2,
.info-box h3 {
  position: relative;
}

.section-block h2::after,
.left h2::after,
.info-box h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gradient);
  margin-top: 6px;
}
/* MAIN GRID */
.project-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 40px;
  align-items: start;
}

.tech-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tech-box .tag-container span {
  display: inline-block;
  padding: 6px 12px;
  margin: 4px;
  border-radius: 20px;
  background: rgba(138,43,226,0.15);
  border: 1px solid rgba(138,43,226,0.4);
  color: #caa6ff;
}
/* LEFT */
.left ul {
  padding-left: 20px;
}

.left li {
  margin-bottom: 10px;
  color: #ccc;
}
.info-box,
.tech-box,
.section-block,
.left {
  background: linear-gradient(145deg, rgba(15,20,32,0.8), rgba(10,12,20,0.9));
  border-radius: 16px;
  padding: 25px;

  border: 1px solid rgba(255,255,255,0.05);

  transition: 0.3s ease;
}

.info-box:hover,
.tech-box:hover,
.section-block:hover,
.left:hover {
  border-color: rgba(138,43,226,0.4);
  box-shadow: 0 0 30px rgba(138,43,226,0.15);
}

.info-box p {
  margin: 8px 0;
  color: #bbb;
}

/* HOVER EFFECT (optional but nice) */
.project-media:hover {
  transform: scale(1.01);
  transition: 0.3s ease;
}
.info-box,
.tech-box {
  width: 100%;
}
.section-block,
.left,
.info-box,
.tech-box {
  background: rgba(255,255,255,0.03);
  padding: 25px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
}
.info-box:hover,
.tech-box:hover,
.section-block:hover {
  transform: translateY(-4px);
  transition: 0.3s ease;
  border-color: rgba(138,43,226,0.4);
}
.project-header {
  margin-bottom: 40px;
}

.project-content {
  margin-top: 50px;
}

.right {
  display: flex;
  flex-direction: column;
  gap: 20px; /* 👈 controls spacing between boxes */
}
.project-sections {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

/* EACH ROW */
.project-row {
  display: flex;
  gap: 24px;
}

/* LEFT = 70% */
.project-left {
  flex: 7;
  background: linear-gradient(145deg, #0b1220, #0f1a2e);
  padding: 25px;
  border-radius: 16px;

  border: 1px solid rgba(0,255,255,0.1);
}

/* RIGHT = 30% */
.project-right {
  flex: 3;
  background: #0b0f1a;
  padding: 25px;
  border-radius: 16px;

  border: 1px solid rgba(138,43,226,0.15);
}

/* HEADINGS */
.project-left h3,
.project-right h3 {
  margin-bottom: 15px;
  font-size: 20px;
  position: relative;
}

/* COOL UNDERLINE */
.project-left h3::after,
.project-right h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 6px;

  background: linear-gradient(90deg, #00ffff, #8a2be2);
  border-radius: 2px;
}

/* LIST STYLE */
.project-left ul {
  padding-left: 18px;
  line-height: 1.7;
}

/* RIGHT SIDE TEXT */
.project-right p {
  margin-bottom: 10px;
  font-size: 14px;
  color: #ccc;
}

.project-left:hover,
.project-right:hover {
  transform: translateY(-3px);
  transition: 0.3s ease;

  box-shadow: 0 0 20px rgba(138,43,226,0.15);
}
#more-projects-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 10px 0;
}


#more-projects-container {
display: flex;
  gap: 24px;
  overflow-x: auto; /* 👈 smooth horizontal scroll */
  padding-bottom: 10px;
}
#more-projects-container::-webkit-scrollbar {
  height: 6px;
}

#more-projects-container::-webkit-scrollbar-thumb {
  background: #00f0ff;
  border-radius: 10px;
}
.more-card {
  padding: 5px 5px;
min-width: 320px;
  background: #0b1220;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  transition: 0.3s ease;
  border: 1px solid rgba(34,211,238,0.15);
}
.more-card:hover {
  transform: translateY(-6px);
  border-color: #22d3ee;
  box-shadow: 0 0 20px rgba(34,211,238,0.2);
}
.thumb {
  position: relative;
  height: 140px;
  padding: 11px 10px;
  border-radius: 10px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;   /* 🔥 centers content */
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;   /* 🔥 keeps subject centered */
}

.more-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;   /* keeps it clean */
  display: block;
}


.more-card p {
 padding: 2px 5px;
  font-size: 15px;
  font-weight: 600;     /* 🔥 makes it bold */
  color: #e2e8f0;    
}



.more-projects {
 max-width: 1200px;
  margin: 80px 105px; /* centers it */
  padding: 0 20px;
}

.footer {
  margin-top: 80px;
  padding: 40px 20px 20px;

  background: #05070d;
  border-top: 1px solid rgba(0,255,255,0.1);
}

/* MAIN LAYOUT */
.footer-container {
  max-width: 1200px;
  margin: auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;

  gap: 20px;
}

/* LEFT */
.footer-left h3 {
  font-size: 20px;
  margin-bottom: 5px;

  background: linear-gradient(90deg, #00ffff, #8a2be2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-left p {
  font-size: 14px;
  color: #aaa;
}
.footer a:hover {
  text-shadow: 0 0 8px #00ffff;
}
/* LINKS */
.footer-links,
.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-links a,
.footer-socials a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.footer-links a:hover,
.footer-socials a:hover {
  color: #00ffff;
}
.more-card.locked {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  color: #94a3b8;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}
/* BOTTOM */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 13px;
  color: #777;
}

.project-placeholder {
  height: 450px;
  width: 100%;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 1px solid rgba(0, 255, 255, 0.2);

  text-align: center;
  color: #cbd5f5;

  position: relative;
  overflow: hidden;
}

.project-placeholder h2 {
  font-size: 28px;
  color: #22d3ee;
  margin-bottom: 8px;
}

.project-placeholder p {
  font-size: 16px;
  opacity: 0.8;
}

.project-placeholder span {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.6;
}

/* subtle neon glow */
.project-placeholder::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0,255,255,0.15), transparent);
  animation: glowMove 6s linear infinite;
}
.more-placeholder {
    padding: 5px 5px;
    width: 305px;
    height: 150px;
  border-radius: 12px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 1px solid rgba(0, 255, 255, 0.2);

  color: #94a3b8;
  font-size: 14px;
  text-align: center;
}

.more-placeholder span {
  font-size: 20px;
  margin-bottom: 5px;
}
.project-media {
  width: 100%;
  height: 420px;          /* IMPORTANT: fixed height */
  border-radius: 20px;
  overflow: hidden;       /* 🔥 THIS stops overflow */
  background: #020617;

  display: flex;          /* helps centering */
  align-items: center;
  justify-content: center;
}
.project-media iframe{
  width: 100%;
  height: 100%;
  display: block;
}

.project-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;   /* no crop */
  display: block;
  border-radius: 12px;
}

/* video stays cinematic */
.project-media iframe {
  object-fit: cover;
}

/* portrait fix */
.project-media.portrait img {
  object-fit: contain;
  padding: 10px;
}

@keyframes glowMove {
  0% { transform: translate(-50%, -50%); }
  50% { transform: translate(0%, 0%); }
  100% { transform: translate(-50%, -50%); }
}
/* RESPONSIVE */
@media (max-width: 900px) {
/* MAIN GRID → STACK */
  .project-content {
    display: block !important;
  }

  /* EACH ROW STACK */
  .project-row {
    flex-direction: column;
  }

  /* LEFT + RIGHT FULL WIDTH */
  .project-left,
  .project-right {
    width: 100% !important;
  }

  /* 🔥 MAIN FIX: STACK YOUR SECTIONS CLEANLY */
  .project-sections {
    display: block !important;
  }

  .project-sections > * {
    width: 100% !important;
    margin-bottom: 20px;
  }

  /* MEDIA FIX */
  .project-media {
    height: 250px;
  }

  .project-media iframe {
    height: 200px;
  }

  /* TEXT SCALE */
  .project-header h1 {
    font-size: 32px;
  }
  
}