:root {
  --bg-dark: #0a0a0c;
  --bg-card: #141416;
  --bg-card-hover: #1c1c1f;
  --primary: #f29520;
  --primary-glow: rgba(242, 149, 32, 0.4);
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  --border-color: rgba(255, 255, 255, 0.08);
  --font-main: 'Plus Jakarta Sans', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- Ambient Background --- */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  will-change: transform;
  contain: strict;
}
.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -10%;
  left: -10%;
  animation: float 20s infinite ease-in-out;
}
.orb-2 {
  width: 300px;
  height: 300px;
  background: #ff5722;
  bottom: 0%;
  right: -5%;
  animation: float 15s infinite reverse ease-in-out;
}
.orb-3 {
  width: 200px;
  height: 200px;
  background: #ffffff;
  top: 40%;
  left: 50%;
  opacity: 0.05;
  animation: float 25s infinite ease-in-out;
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(30px, 50px, 0); }
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  will-change: background-color;
  contain: layout style;
}
.navbar.scrolled {
  background: rgba(10, 10, 12, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-menu a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-menu a:not(.btn-primary-sm):hover {
  color: #fff;
}
.btn-primary-sm {
  background: var(--primary);
  color: #fff!important;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.btn-primary-sm:hover {
  background: #ffaa40;
  box-shadow: 0 0 15px var(--primary-glow);
}
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
}

/* --- Hero --- */
.hero {
  padding-top: 8rem;
  padding-bottom: 4rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
}
.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.gradient-text {
  background: linear-gradient(90deg, #fff, #999);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 90%;
}
.hero-actions {
  display: flex;
  gap: 1rem;
}
.btn-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.btn-glow:hover {
  background: #ffaa40;
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-2px);
}
.btn-outline {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #fff;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-stack {
  position: relative;
  width: 300px;
  height: 400px;
}
.mock-card {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: #1a1a1d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card-1 {
  top: -20px;
  left: -20px;
  transform: rotate(-6deg);
  z-index: 1;
  background: #2a2a2e;
  padding: 20px;
}
.card-2 {
  top: 0;
  left: 0;
  transform: rotate(-3deg);
  z-index: 2;
  background: #222226;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-3 {
  top: 20px;
  left: 20px;
  z-index: 3;
  overflow: hidden;
}
.card-3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.skeleton-lines {
  height: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  width: 80%;
  margin-bottom: 10px;
}
.msg-bubble {
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}
.hero-visual:hover .card-1 { transform: translate(-40px, -40px) rotate(-10deg); }
.hero-visual:hover .card-2 { transform: translate(-20px, -20px) rotate(-5deg); }
.hero-visual:hover .card-3 { transform: translate(0, 0) rotate(0); }

/* --- Section General --- */
.section {
  padding: 6rem 0;
}
.section-header {
  margin-bottom: 4rem;
  text-align: center;
}
.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.text-orange { color: var(--primary); }
.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* --- Bento Grid --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  will-change: transform;
  contain: content;
}
.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  background: var(--bg-card-hover);
}
.span-2 {
  grid-column: span 2;
}
.icon-box {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.bento-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}
.bento-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.card-visual {
  height: 100px;
  margin-top: 2rem;
  border-radius: 8px;
  background: rgba(0,0,0,0.3);
  border: 1px dashed rgba(255,255,255,0.1);
}

/* --- Achievements Grid (Restored & Dark Mode Styled) --- */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.achievement-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.achievement-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
}
.achievement-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: rgba(255,255,255,0.05);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.achievement-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}
.achievement-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --- Showcase --- */
.showcase {
  text-align: center;
}
.phone-mockup-wrapper {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 4rem;
  margin-top: 3rem;
  position: relative;
  overflow-x: auto;
  padding: 3rem 1rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* Hide scrollbars */
  -ms-overflow-style: none;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.phone-mockup-wrapper::-webkit-scrollbar {
  display: none;
}

.phone-mockup {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: 280px;
  height: 580px;
  border: 12px solid #2b2b2b;
  border-radius: 36px;
  background: #000;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s ease;
  contain: content;
}

.phone-mockup:hover {
  transform: translateY(-10px);
}

.phone-mockup.offset {
  display: none;
}
.notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: #2b2b2b;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}
.screen-content {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* --- CTA Banner --- */
.cta-banner {
  position: relative;
  margin: 6rem 1.5rem;
  border-radius: 24px;
  background: #18181b;
  overflow: hidden;
  text-align: center;
  padding: 5rem 2rem;
  border: 1px solid rgba(255,255,255,0.1);
}
.cta-glow-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top center, rgba(242, 149, 32, 0.2), transparent 70%);
  pointer-events: none;
}
.cta-content {
  position: relative;
  z-index: 1;
}
.email-signup {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.email-signup input {
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.3);
  color: #fff;
  width: 300px;
  font-size: 1rem;
}
.email-signup input:focus {
  outline: none;
  border-color: var(--primary);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  background: #050505;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand h4 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.footer-brand p { color: var(--text-muted); }
.footer-col h5 { font-size: 1rem; margin-bottom: 1.2rem; color: #fff; }
.footer-col a {
  display: block;
  margin-bottom: 0.8rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  text-align: center;
  color: #555;
  font-size: 0.85rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* --- Mobile Menu --- */
.mobile-menu-overlay {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  background: var(--bg-dark);
  padding: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transform: translateY(-150%);
  transition: transform 0.3s ease;
  z-index: 99;
}
.mobile-menu-overlay.active {
  transform: translateY(0);
}
.mobile-links a {
  display: block;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions { justify-content: center; }
  .hero-sub { margin: 0 auto 2.5rem; }
  .bento-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .hero-visual { display: none; } /* Hide visual on tablet/mobile for simplicity */
  .achievements-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .email-signup { flex-direction: column; align-items: center; }
  .email-signup input { width: 100%; }

  .hero h1 { font-size: 2.5rem; }
  .achievements-grid { grid-template-columns: 1fr; }
}

/* --- Tech Stack (Section) --- */
.tech-stack-section {
  position: relative;
  padding: 6rem 0;
  background: transparent;
}

.tech-stack-label {
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 4rem;
  font-weight: 600;
  color: #fff;
  opacity: 0.5;
}

.tech-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  flex-wrap: wrap;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.4s ease;
  position: relative;
  cursor: pointer;
}

/* Icon Styles */
.tech-item img {
  height: 60px; /* Big and bold */
  width: auto;
  filter: grayscale(100%) opacity(0.6);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hover Effects */
.tech-item:hover {
  transform: translateY(-8px);
}

.tech-item:hover img {
  filter: grayscale(0%) opacity(1) drop-shadow(0 0 20px rgba(255, 255, 255, 0.25));
  transform: scale(1.15);
}

.tech-item span {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  position: absolute;
  bottom: -35px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.tech-item:hover span {
  opacity: 1;
  transform: translateY(0);
}

/* Specific Logo Tweaks for Dark Mode Visibility */
.tech-item img[alt="Django"] {
  filter: grayscale(100%) invert(1) opacity(0.6);
}
.tech-item:hover img[alt="Django"] {
  filter: grayscale(0%) invert(1) opacity(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

.tech-item img[alt="AWS"] {
  filter: grayscale(100%) invert(1) opacity(0.6);
}
.tech-item:hover img[alt="AWS"] {
  filter: grayscale(0%) invert(1) opacity(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}


.tech-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  flex-wrap: wrap;
}
.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.3s;
  cursor: default;
}
.tech-item:hover {
  opacity: 1;
  transform: translateY(-3px);
}
.tech-item img {
  height: 48px;
  width: auto;
  filter: grayscale(100%);
  transition: filter 0.3s;
}
.tech-item:hover img {
  filter: grayscale(0%);
}
.tech-item span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

/* Specific Logo Tweaks for Dark Mode Visibility */
.tech-item img[alt="Django"] {
  filter: grayscale(100%) invert(1);
}
.tech-item:hover img[alt="Django"] {
  filter: grayscale(0%) invert(1);
}
.tech-item img[alt="AWS"] {
  filter: grayscale(100%) invert(1);
}
.tech-item:hover img[alt="AWS"] {
  filter: grayscale(0%) invert(1);
}

@media (max-width: 600px) {
  .tech-logos { gap: 2.5rem; }
  .tech-item img { height: 36px; }
}

/* --- Community Grid --- */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

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

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

/* --- Carousel Controls --- */
.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(5px);
}

.carousel-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Position buttons absolutely on desktop for cleaner look */
.carousel-btn.prev-btn {
  position: absolute;
  left: 0;
}

.carousel-btn.next-btn {
  position: absolute;
  right: 0;
}

/* On mobile, arrows might overlap content, so we adjust or rely on touch */
@media (max-width: 768px) {
  .carousel-btn {
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.6);
  }
}

/* --- Story Section --- */
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.story-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.story-card:hover {
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-5px);
}

.story-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.story-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.story-card strong {
  color: var(--primary);
}

.story-card.span-full {
  grid-column: 1 / -1;
}

.story-card.highlight-card {
  background: rgba(242, 149, 32, 0.05); /* Slight tint of primary color */
  border-color: rgba(242, 149, 32, 0.3);
}

.story-card.transparent-card {
  background: transparent;
  border: none;
  font-style: italic;
  text-align: center;
  padding: 0;
}

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