/* --- CHATBOT STYLES --- */
#chatbot-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 5000;
}

#chat-trigger {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--burgundy);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

#chat-trigger svg {
  width: 28px;
  height: 28px;
}

#chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 320px;
  height: 450px;
  background: rgba(107, 35, 35, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.chat-header {
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header span {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
}

#chat-body {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bot-msg,
.user-msg {
  padding: 10px 15px;
  border-radius: 15px;
  font-size: 0.85rem;
  max-width: 85%;
  line-height: 1.4;
}

.bot-msg {
  background: rgba(255, 255, 255, 0.1);
  align-self: flex-start;
}
.user-msg {
  background: var(--accent);
  color: var(--burgundy);
  align-self: flex-end;
}

.chat-footer {
  padding: 15px;
  display: flex;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
}

#chat-input {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  outline: none;
  font-size: 0.85rem;
}

#send-chat {
  background: transparent;
  border: none;
  color: var(--accent);
  cursor: pointer;
}
#send-chat svg {
  width: 20px;
  height: 20px;
}

/* --- COMPACT CONTACT STYLES --- */
.social-links-row {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-circle:hover {
  background: white;
  color: var(--burgundy); /* Contrast color from your root */
  transform: scale(1.1) rotate(5deg);
  border-color: white;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.8;
  transition: 0.3s ease;
}

.detail-item:hover {
  opacity: 1;
  color: var(--accent);
  transform: translateX(5px);
}

.detail-item svg {
  color: var(--accent);
}

.social-links-row {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-circle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-circle:hover {
  background: white;
  color: var(--burgundy);
  transform: scale(1.1) rotate(8deg);
  border-color: white;
}
:root {
  --burgundy: #6b2323;
  --off-white: #e8e2dc;
  --black: #1a1a1a;
  --accent: #d4af37;
  --glass: rgba(255, 255, 255, 0.05);
}

* {
  cursor: none;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background-color: var(--burgundy);
  font-family: "Montserrat", sans-serif;
  color: white;
  overflow-x: hidden;
}

#cursor {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.1s ease;
}

/* --- PILL HEADER --- */
.pill-nav-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 95%;
  max-width: 1100px;
}

.pill-nav {
  background: rgba(107, 35, 35, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 50px;
  padding: 10px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
/* --- ABOUT ME WITH IMAGE HOLDER --- */
.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.image-holder {
  width: 100%;
  height: 450px;
  background: #ccc;
  border-radius: 15px;
  overflow: hidden;
  border: 10px solid white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
}
.image-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: 0.5s ease;
}
.image-holder:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.nav-icon-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  color: white;
  text-decoration: none;
}
.nav-icon-btn:hover {
  background: white;
  color: var(--burgundy);
}

.nav-items {
  display: flex;
  gap: 20px;
  flex-grow: 1;
  justify-content: center;
}
.nav-link {
  text-align: center;
  text-decoration: none;
  color: white;
  transition: 0.3s;
}
.nav-link strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
}
.nav-link span {
  font-size: 0.55rem;
  opacity: 0.6;
  text-transform: uppercase;
}

/* --- LANDING ANIMATIONS (RETAINED) --- */

.hero h1 {
  font-family: "Abril+Fatface", serif;
  font-size: clamp(4rem, 15vw, 12rem);
  margin: 0;
  z-index: 1;
}
.name-plate {
  display: flex;
  width: 85%;
  justify-content: space-between;
  font-size: clamp(1rem, 5vw, 4rem);
  font-weight: 900;
  z-index: 3;
  letter-spacing: 10px;
  text-transform: uppercase;
  pointer-events: none;
}

/* --- REFINED TECHNICAL SKILLS --- */
/* --- ENHANCED TECH STACK --- */

/* ===== ABOUT SECTION GRID FIX ===== */

.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

/* Desktop layout */
.about-layout {
  grid-template-areas: "text image";
}

.about-text {
  grid-area: text;
}

.image-holder {
  grid-area: image;
}

/* Mobile layout */
@media (max-width: 768px) {
  .about-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "image"
      "text";
  }

  .about-text h2 {
    grid-area: heading;
  }

  .about-text {
    display: contents;
  }

  .image-holder {
    height: 300px;
    margin: 20px 0;
  }
}

.skill-group::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(212, 175, 55, 0.15),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.skill-group:hover::before {
  opacity: 1;
}

/* Tag micro-interaction */
.tag {
  position: relative;
}

.tag:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Focus mode */
.skills-matrix:hover .skill-group {
  opacity: 0.4;
}

.skills-matrix:hover .skill-group:hover {
  opacity: 1;
}

.skills-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}
.skill-group {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 18px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.25),
    inset 0 0 0 rgba(255, 255, 255, 0.2);
}

.skill-group:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-10px) rotateX(5deg);
  border-color: var(--accent);
}

.skill-group h3 {
  font-family: "Abril+Fatface", serif;
  color: var(--accent);
  font-size: 1.6rem;
  margin: 0 0 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-group h3 {
  transform: translateZ(30px);
}

.tag-cloud {
  transform: translateZ(20px);
}

.tag {
  background: rgba(0, 0, 0, 0.2);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--off-white);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s;
}
.tag:hover {
  background: var(--off-white);
  color: var(--burgundy);
}

/* --- BLOCKS --- */
.main-content {
  padding: 0 20px 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.block {
  background: var(--off-white);
  color: var(--black);
  padding: 80px 50px;
  border-radius: 20px;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(50px);
}
.block.dark {
  background: #2e0d0d;
  color: white;
}
h2 {
  font-family: "Abril+Fatface", serif;
  font-size: 4rem;
  line-height: 0.8;
  margin-bottom: 40px;
}

/* --- CONTACT GRID --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 18px;
  margin-bottom: 15px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 10px;
  font-family: "Montserrat", sans-serif;
}
.send-btn {
  background: white;
  color: var(--burgundy);
  padding: 18px;
  border: none;
  font-weight: 900;
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
  text-transform: uppercase;
  transition: 0.3s;
}
.send-btn:hover {
  background: var(--accent);
  color: white;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  h2 {
    font-size: 2.5rem;
  }
}

.side-img {
  position: absolute;
  bottom: 0%; /* Adjust to sit higher or lower */
  width: 25vw; /* Adjust size */
  height: 50vh;
  z-index: 2; /* Behind your name, but in front of background text */
  pointer-events: none;
  opacity: 0.8; /* Subtle transparency to blend with burgundy */
  transition: 0.5s ease;
}

.left-side {
  left: 2%;
}

.right-side {
  right: 2%;
}

.side-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Optional: grayscale to keep the editorial look */
  filter: grayscale(100%) brightness(0.8);
}

/* Hide on mobile so it doesn't get too crowded */
@media (max-width: 768px) {
  .side-img {
    display: block;
    width: 40vw;
    height: 35vh;
    opacity: 0.35; /* subtle, not overpowering */
  }

  .left-side {
    left: -10%;
  }

  .right-side {
    right: -10%;
  }
}

/* --- SCROLLABLE PROJECT SECTION --- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  perspective: 1000px;
  height: auto;
  padding-top: 120px;
  padding-bottom: 80px;
}
.hero {
  position: relative;
  background-color: var(--burgundy);
  /* Adding a subtle crinkled paper texture overlay */
  background-image: url("https://www.transparenttextures.com/patterns/crinkled-paper.png");
}
/* ===== MOBILE SAFETY FIX ===== */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .block {
    padding: 50px 25px;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .hero {
    min-height: auto;
    padding-top: 140px;
    padding-bottom: 120px;
  }

  .hero-img-wrapper {
    position: relative;
    height: 60vh;
  }

  #hero-img {
    max-height: 60vh;
  }

  .editorial-name {
    gap: 12px; /* 🔥 FIXED */
  }

  .projects-scroll {
    padding-bottom: 40px;
  }
}
/* ===== CLEAN MOBILE HERO DESIGN ===== */
@media (max-width: 768px) {
  /* Remove background clutter */

  /* Hero container */
  .hero {
    padding-top: 110px;
    padding-bottom: 60px;
    min-height: auto;
  }

  /* Center the image */
  .hero-img-wrapper {
    position: relative;
    height: auto;
    margin: 20px 0;
  }

  /* Stack name cleanly */
  .editorial-name {
    flex-direction: row; /* 🔥 KEEP LEFT–RIGHT */
    justify-content: space-between;
    align-items: center;
    width: 95%;
    margin-top: 10px;
  }

  .editorial-name span {
    font-size: 2.2rem;
    letter-spacing: 0.12em;
  }

  /* Footer info centered */
  .hero-footer-info {
    position: static;
    margin-top: 15px;
    text-align: center;
    font-size: 0.65rem;
  }
}
@media (max-width: 768px) {
  * {
    cursor: auto;
  }

  #cursor {
    display: none;
  }
}
.menu-toggle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: white;
  font-size: 1.6rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
}

.menu-toggle:hover {
  background: white;
  color: var(--burgundy);
}

/* MOBILE */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-items {
    display: none;
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: rgba(107, 35, 35, 0.98);
    border-radius: 20px;
    padding: 25px;
    flex-direction: column;
    gap: 20px;
    z-index: 2000;
  }

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

/* Layer 1: The background "PORTFOLIO" text */
/* Layer 1: The background "PORTFOLIO" text */
#p-text {
  position: absolute;
  /* Lowered slightly and made smaller for better readability */
  top: 25%;
  font-family: "Abril Fatface", serif;
  /* Reduced size: clamp(min, preferred, max) */
  font-size: clamp(4rem, 16vw, 14rem);
  line-height: 1;
  /* Increased opacity slightly for better contrast against burgundy */
  color: rgba(255, 255, 255, 0.08);
  z-index: 1;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.05em; /* Added slight spacing between letters */
}

/* Layer 2: Centered Image Wrapper */
.hero-img-wrapper {
  position: absolute;
  bottom: 0;
  height: 100%;
  z-index: 2;
  display: flex;
  justify-content: center;
}

#hero-img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
}

/* Layer 3: The Editorial Name split left and right */
.editorial-name {
  position: relative;
  width: 95%;
  display: flex;
  justify-content: space-between; /* This creates the left/right split */
  z-index: 3; /* Sits on top of the image */
  pointer-events: none;
}

.editorial-name span {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: clamp(2rem, 10vw, 7rem);
  letter-spacing: 0.2em;
  color: white;
}

/* Corner Info detail */
.hero-footer-info {
  position: absolute;
  bottom: 40px;
  left: 40px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.6;
  z-index: 4;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .editorial-name {
    align-items: center; /* Pushes names apart to keep image visible */
  }
}
.project-links {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.project-links a {
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.project-links a:hover {
  background: var(--accent);
  color: var(--burgundy);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.projects-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  margin-top: 40px;
  padding-bottom: 20px;
  scroll-behavior: smooth;
}

.projects-scroll::-webkit-scrollbar {
  height: 6px;
}
.projects-scroll::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

.projects-track {
  display: flex;
  gap: 40px;
  padding: 10px;
  width: max-content;
}

/* --- PROJECT FRAME --- */
.project-frame {
  flex: 0 0 340px;
  height: 380px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: black;
  border: 10px solid white;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transition: 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.project-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.75);
  transition: 0.6s ease;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(107, 35, 35, 0.95),
    rgba(107, 35, 35, 0.2)
  );
  color: white;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(40px);
  transition: 0.6s ease;
}

.project-frame:hover {
  transform: translateY(-15px);
}

.project-frame:hover img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.08);
}

.project-frame:hover .project-overlay {
  opacity: 1;
  transform: translateY(0);
}
/* --- CONTACT INFO LIST --- */
.contact-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6a5cff, #8b7bff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-text span {
  font-size: 0.8rem;
  letter-spacing: 1px;
  opacity: 0.7;
  text-transform: uppercase;
}

.contact-text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: white;
  margin-top: 4px;
}
.contact-item:hover .contact-icon {
  transform: scale(1.05);
  transition: 0.3s ease;
}

/* ===== MOBILE HERO: BIG IMAGE VERSION ===== */
@media (max-width: 768px) {
  /* Hide background text only */

  /* Hero spacing */
  .hero {
    padding-top: 110px;
    padding-bottom: 80px;
  }

  /* Image wrapper controls size */
  .hero-img-wrapper {
    position: relative;
    height: 70vh; /* 🔥 BIG visual impact */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }

  /* Image stays large */
  #hero-img {
    height: 100%;
    width: auto;
    max-height: 70vh;
    object-fit: contain;
  }

  /* Clean name stacking */
  .editorial-name {
    flex-direction: row;
    align-items: center;

    margin-top: -20px; /* overlaps image slightly (editorial look) */
  }

  .editorial-name span {
    font-size: 2.4rem;
    letter-spacing: 0.14em;
  }

  /* Footer info */
  .hero-footer-info {
    position: static;
    margin-top: 10px;
    text-align: center;
    font-size: 0.65rem;
  }
}
