/* RESET */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #000;
  color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  background: rgba(0,0,0,0.8);
  border-bottom: 1px solid #222;
  z-index: 1000;
  backdrop-filter: blur(6px);
}

nav .logo {
  font-weight: 900;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #fff;
  user-select: none;
}

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

nav ul li a {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  user-select: none;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

nav ul li a:hover::after, nav ul li a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* SECTIONS */
section {
  padding: 100px 2rem 60px;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* HERO SECTION (FULLSCREEN SETUP) */
section.hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
  margin: 0;
}

.hero-content {
  text-align: center;
  z-index: 2;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 0.75rem;
}

.subheading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.subheading {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin: 0;
  color: #bbb;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-link {
  color: #fff;
  font-size: 1.35rem;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  opacity: 0.7;
  transform: translateY(-2px);
}

/* SOFT PURPLE GLOW LINE AT BOTTOM */
.hero-glow-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: rgba(168, 85, 247, 0.8);
  box-shadow: 0px -8px 25px 6px rgba(168, 85, 247, 0.6),
              0px -18px 45px 12px rgba(147, 51, 234, 0.3);
  z-index: 1;
}

/* TYPOGRAPHY */
h1, h2 {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.1;
}

h2 {
  font-size: 2rem;
}

p {
  color: #bbb;
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

/* BUTTONS */
a.button {
  display: inline-block;
  padding: 0.65rem 1.7rem;
  border: 2px solid #fff;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: transparent;
  transition: background 0.3s ease, color 0.3s ease;
}

a.button:hover {
  background: #fff;
  color: #000;
}

/* COVER LOADER */
#cover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  transition: opacity 0.5s ease;
}

#cover .cover-content h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.loading-bar {
  width: 200px;
  height: 6px;
  background: #222;
  border-radius: 4px;
  overflow: hidden;
}

.loading-bar div {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg,#fff,#888);
  animation: load 1s forwards;
}

@keyframes load {
  to { width: 100%; }
}

/* CUSTOM CURSOR */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease, border 0.25s ease, transform 0.15s ease;
  z-index: 2000;
  will-change: transform, width, height, background, border;
}

.cursor.text-hover {
  width: 3px;
  height: 24px;
  background: #fff;
  border-radius: 2px;
}

.cursor.interact-hover {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border: 2px solid #fff;
  border-radius: 50%;
}

.cursor.click-glow {
  box-shadow: 0 0 20px 6px rgba(255,255,255,0.4);
  transition: box-shadow 0.3s ease;
}

.hidden {
  display: none;
}

/* STATS */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
  padding: 80px 20px;
  border-top: 1px solid #222;
}

.stat h3 {
  font-size: 2.5rem;
  font-weight: 900;
}

.stat p {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #bbb;
}

.stat {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.stat.visible {
  opacity: 1;
  transform: translateY(0);
}

/* PROJECTS */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.project-item {
  background: #111;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(255,255,255,0.05);
  transition: transform 0.4s ease, opacity 0.6s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  cursor: pointer;
}

.project-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(255,255,255,0.1);
}

.project-item img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* BLOG */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: #111;
  padding: 20px;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(255,255,255,0.1);
}

.blog-card h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.blog-card p {
  color: #bbb;
  font-size: 0.9rem;
  line-height: 1.3em;
  max-height: 5.2em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

/* MODAL (fixed for scroll + full post view) */
.blog-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  z-index: 4000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.blog-modal.active {
  opacity: 1;
  pointer-events: all;
}

.blog-modal-content {
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: #111;
  padding: 30px;
  border-radius: 12px;
  line-height: 1.6;
  scrollbar-width: thin;
  scrollbar-color: #555 #111;
}

.blog-modal-content::-webkit-scrollbar {
  width: 8px;
}

.blog-modal-content::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}

.blog-modal-content h2 {
  margin-bottom: 10px;
  color: #fff;
}

.blog-modal-content p {
  margin-bottom: 1rem;
  color: #ccc;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* SCROLL TO TOP BUTTON */
#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #fff;
  color: #000;
  border: none;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  z-index: 5000;
  font-weight: bold;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem;
  background: #000;
  color: #555;
  font-size: 0.8rem;
  border-top: 1px solid #222;
}

/* SITE FOOTER STYLING */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px 20px;
  margin-top: 60px;
  color: #888;
  font-size: 0.9rem;
  background: #000;
  text-align: left;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-links a {
  color: #b5bac1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.separator {
  color: #444;
}

@media(min-width: 600px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* RESPONSIVE */
@media (max-width: 600px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.6rem; }
}

/* Modal and cursors */
.blog-modal,
.blog-modal-content,
.blog-modal-content * {
  cursor: default !important;
}

/* ABOUT SECTION & DISCORD PROFILE LAYOUT */
.about-section {
  max-width: 1000px !important;
}

.discord-profile-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2.5rem;
  background: #111;
  border: 1px solid #222;
  border-radius: 16px;
  padding: 2rem;
  align-items: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

@media (max-width: 850px) {
  .discord-profile-card {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

/* DISCORD CARD STYLING */
.discord-card {
  width: 100%;
  max-width: 320px;
  background: #0b0b0c;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #222;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.discord-banner {
  width: 100%;
  height: 100px;
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
}

.discord-avatar-container {
  position: relative;
  margin-top: -45px;
  margin-left: 16px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #0b0b0c;
  padding: 4px;
}

.discord-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.discord-user-info {
  padding: 12px 16px 20px 16px;
}

.discord-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.discord-display-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.discord-verified-badge {
  color: #5865F2;
  font-size: 0.95rem;
}

.discord-handle-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 0.85rem;
  color: #949ba4;
}

.discord-username {
  font-weight: 500;
}

.discord-dot {
  font-size: 0.7rem;
}

.discord-pronouns {
  color: #b5bac1;
}

/* BADGES CONTAINER */
.discord-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  min-height: 24px;
}

.discord-badges img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
}

/* RIGHT SIDE: ABOUT TEXT & LANGUAGES */
.about-content-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-bio {
  color: #bbb;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

/* 3x3 / Grid Rounded Bubble Rectangles */
.languages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 12px;
}

@media (max-width: 500px) {
  .languages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.lang-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  padding: 10px 14px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  transition: all 0.25s ease;
}

.lang-tag:hover {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

/* TESTIMONIALS CAROUSEL */
.testimonials-section {
  padding: 80px 2rem;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonials-section h2 {
  text-align: left;
  margin-bottom: 2rem;
}

.testimonial-carousel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  margin: 0 auto;
  min-height: 280px;
}

.testimonial-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.testimonial-card {
  flex: 0 0 320px;
  background: #111;
  border-radius: 16px;
  padding: 30px;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
              filter 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.5s ease;
}

.testimonial-card.side-card {
  filter: blur(4px);
  opacity: 0.35;
  transform: scale(0.9);
  pointer-events: none;
  background: rgba(255, 255, 255, 0.02);
}

.testimonial-card.center-card {
  filter: blur(0);
  opacity: 1;
  transform: scale(1);
  background: #141416;
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: none;
}

.quote-text {
  position: relative;
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 20px;
}

.quote-large {
  font-size: 2.5rem;
  line-height: 0;
  color: rgba(168, 85, 247, 0.4);
  font-family: serif;
  vertical-align: middle;
}

.quote-start {
  margin-right: 4px;
}

.quote-end {
  margin-left: 4px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.testimonial-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author span {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

@media (max-width: 900px) {
  .testimonial-card.side-card {
    display: none;
  }
  .testimonial-card.center-card {
    flex: 0 0 100%;
    max-width: 360px;
  }
}

/* Bento Grid Layout for Homepage Featured Projects */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.bento-card {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.bento-banner {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bento-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.bento-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
  text-transform: none;
  letter-spacing: normal;
}

.bento-desc {
  font-size: 0.95rem;
  color: #bbb;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.bento-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Projects Page Grid */
.projects-page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 2rem 80px;
}

.projects-page-container h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.projects-page-container p.section-subtitle {
  color: #bbb;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.all-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card-full {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.project-card-full:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.project-card-full h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
  text-transform: none;
}

.project-card-full p {
  color: #bbb;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}

@media (min-width: 768px) {
  .bento-grid .bento-card:first-child {
    grid-column: span 2;
  }
}
/* =========================================
   1. MOBILE NAVIGATION RESPONSIVENESS
   ========================================= */
.hamburger {
  display: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  z-index: 1001;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
    backdrop-filter: blur(10px);
    border-left: 1px solid #222;
    z-index: 1000;
  }
  nav ul.nav-active {
    right: 0;
  }
}

/* =========================================
   2. SMOOTH TESTIMONIAL CAROUSEL
   ========================================= */
.testimonial-carousel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  margin: 0 auto;
  height: 350px; /* Fixed height so absolute cards don't collapse */
  overflow: hidden;
}

.testimonial-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.testimonial-card {
  position: absolute;
  width: 100%;
  max-width: 400px;
  background: #111;
  border-radius: 16px;
  padding: 30px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* This transition is what makes it slide smoothly */
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              filter 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              z-index 0.6s step-end;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.testimonial-card.active-card {
  opacity: 1;
  transform: translateX(0) scale(1);
  z-index: 3;
  pointer-events: auto;
  background: #141416;
  border-color: rgba(168, 85, 247, 0.3);
  filter: blur(0);
}

.testimonial-card.prev-card {
  opacity: 0.35;
  transform: translateX(-70%) scale(0.85);
  z-index: 2;
  filter: blur(4px);
}

.testimonial-card.next-card {
  opacity: 0.35;
  transform: translateX(70%) scale(0.85);
  z-index: 2;
  filter: blur(4px);
}

@media (max-width: 900px) {
  .testimonial-card.prev-card, .testimonial-card.next-card {
    opacity: 0; /* Hide side cards entirely on mobile */
  }
}

/* =========================================
   3. TESTIMONIAL MODAL (Read More)
   ========================================= */
.testi-modal {
  position: fixed;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  z-index: 6000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.testi-modal.active {
  opacity: 1;
  pointer-events: all;
}

.testi-modal-content {
  max-width: 600px;
  background: #111;
  padding: 30px;
  border-radius: 12px;
  line-height: 1.6;
  border: 1px solid rgba(168, 85, 247, 0.4);
}