/* ===== VARIABLES ===== */
:root {
  --bg: #ffffff;
  --fg: #000000;
  --mute: #666666;
  --primary: #4f46e5;
  --primary-alt: #9333ea;
  --cta-bg: #4f46e5;
  --cta-hover: #9333ea;
}
[data-theme="dark"] {
  --bg: #121212;
  --fg: #e0e0e0;
  --mute: #aaaaaa;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
  scroll-padding-top: 70px;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

/* ===== GRADIENT TEXT ===== */
.gradient {
  background: linear-gradient(90deg, var(--primary), var(--primary-alt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* ===== NAVIGATION ===== */
nav.navbar {
  background-color: rgba(255, 255, 255, 0.7); /* Light background with transparency */
  backdrop-filter: blur(10px);               /* Apply blur effect */
  -webkit-backdrop-filter: blur(10px);       /* Safari support */
  transition: background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);  /* Optional shadow for depth */
}

.navbar-nav .nav-link {
  font-weight: 600;
  color: var(--fg);
}
.navbar-nav .nav-link.active {
  color: var(--primary);
  font-weight: 700;
  border-radius: 100px;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 1rem 80px;
}
.subheading {
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--mute);
  margin: 0;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin: 0.5rem 0;
}
.tagline {
  font-size: 1rem;
  font-style: italic;
  max-width: 480px;
  color: var(--mute);
}

.text-muted {
  font-size: 1rem;
  font-style: italic;
  max-width: 480px;
  color: var(--mute);
}

/* ===== PROJECT CAROUSEL ===== */
.project-carousel-section {
  width: 100%;
}
.project-carousel-section .container {
  width: 70vw;
  height: 80vh;
  position: relative;
  overflow: hidden;
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  height: 100%;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 1rem;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.project-card {
  flex-shrink: 0;
  scroll-snap-align: start;
  height: 100%;
  width: 60vw;
  margin-right: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  display: flex;
  background: var(--bg);
  transition: transform 0.3s ease;
}
.project-card:hover {
  transform: scale(1.03);
}

#projects img {
  max-height: 400px;
  object-fit: cover;
}
/* Split layout: 70% image, 30% description */
.project-card .mockup-preview {
  width: 50%;
  overflow: hidden;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
.mockup-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.project-card .description {
  width: 30%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  background: var(--bg);
}

.description h2 {
  margin-top: 0;
  font-weight: 700;
  color: var(--primary);
}

.description p {
  color: var(--mute);
  flex-grow: 1;
  margin: 1rem 0;
}

/* Buttons */
.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline-primary:hover {
  background-color: var(--primary);
  color: #fff;
}

/* Navigation Arrows */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: var(--primary);
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  line-height: 48px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background 0.3s ease;
}
.nav-arrow:hover {
  background: var(--primary);
  color: #fff;
}
.nav-arrow.left {
  left: 0.5rem;
}
.nav-arrow.right {
  right: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .project-carousel-section .container {
    width: 40vw;
    height: 60vh;
  }
  .project-card {
    flex-direction: column;
    width: 60vw;
  }
  .project-card .mockup-preview,
  .project-card .description {
    width: 100%;
    border-radius: 0;
  }
  .project-card .mockup-preview img {
    height: 250px;
  }
  .nav-arrow {
    font-size: 2rem;
    width: 40px;
    height: 40px;
    line-height: 40px;
  }
}
.web-preview {
  position: relative;
  width: 100%;
  height: 500px;
  border: 1px solid #ddd;
  background: #f9f9f9;
}

.web-preview iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
  overflow: hidden;
}

.iframe-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10;
  background: transparent;
}
.qr-toggle-box {
  background: rgba(255, 255, 255, 0.95);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: static;
  width: 100%;
}

.qr-toggle-btns {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.qr-toggle-btns button {
  font-size: 0.75rem;
  padding: 3px 10px;
}

.qr-toggle-btns button.active {
  background-color: var(--primary);
  color: white;
}

.qr-img {
  width: 120px;
  height: 120px;
  margin-top: 8px;
}

.qr-img.d-none {
  display: none !important;
}

.qr-img.active {
  display: block !important;
}


.iframe-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #ddd;
}
.iframe-wrapper iframe {
  pointer-events: none; /* Disable interaction */
  width: 100%;
  height: 80vh;
  border: none;
}

/* Overlay slides up on hover */
.card-overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.85);
  color: white;
  text-align: center;
  padding: 20px;
  transition: bottom 0.4s ease;
}
.iframe-wrapper:hover .card-overlay {
  bottom: 0;
}
.card-overlay .card-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.card-overlay .card-text {
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.btn-gradient {
  border-radius: 50px; /* Rounded pill shape */
  padding: 0.4rem 1.2rem;
  font-weight: 600;
  background: linear-gradient(90deg, #4f46e5, #9333ea);
  color: #fff;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background: linear-gradient(90deg, #9333ea, #4f46e5); /* Slight gradient swap */
}

/* Active pill gradient */
#projectTabs .nav-link.active {
  border-radius: 50px; /* Rounded pill shape */
  background: linear-gradient(90deg, #4f46e5, #9333ea);
  color: #fff !important;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#projectTabs .nav-link.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background: linear-gradient(90deg, #9333ea, #4f46e5); /* gradient swap */
}

