* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #1c1713;
  color: #e6eaf0;
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #2a241f;
}
::-webkit-scrollbar-thumb {
  background: #c88a3a33;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c88a3a66;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Modern Navigation */
.navbar {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(61, 53, 44, 0.5);
  background-color: rgba(28, 23, 19, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  padding: 0.8rem 0;
  background-color: rgba(28, 23, 19, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  background: none;
  border: none;
  padding: 5px;
  z-index: 1001;
}
.burger span {
  width: 25px;
  height: 2px;
  background: #c88a3a;
  transition: all 0.3s ease;
  border-radius: 2px;
}
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: scale(1.02);
}
.logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(145deg, #c88a3a, #9e642c);
  border-radius: 10px;
  animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 4px 10px rgba(200, 138, 58, 0.2);
  }
  50% {
    box-shadow: 0 4px 20px rgba(200, 138, 58, 0.5);
  }
}
.logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #f0c674, #c88a3a);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  transition: all 0.3s ease;
}
.nav-links a {
  color: #e9edf0;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.3s ease;
}
.nav-links a:hover {
  color: #c88a3a;
}
.btn-outline {
  border: 1px solid #c88a3a66;
  background: rgba(42, 36, 31, 0.9);
  backdrop-filter: blur(8px);
  color: #e9edf0;
  text-decoration: none;
  padding: 0.55rem 1.4rem;
  border-radius: 40px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: #c88a3a1a;
  border-color: #c88a3a;
  color: #c88a3a;
  /* transform: translateY(-2px); */
}

/* Hero Section with Animated Code Background */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-bottom: 100px;
  isolation: isolate;
}

/* Animated Code Canvas */
#codeCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Dark Overlay with Gradient */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(28, 23, 19, 0.85) 0%,
    rgba(28, 23, 19, 0.7) 50%,
    rgba(28, 23, 19, 0.85) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  padding: 4rem 2rem;
  animation: fadeInUp 0.8s ease forwards;
}

.badge {
  display: inline-block;
  background: #c88a3a1a;
  backdrop-filter: blur(8px);
  padding: 0.35rem 1.2rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #c88a3a;
  margin-bottom: 1.6rem;
  border: 0.5px solid #c88a3a33;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.02);
  }
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  background: linear-gradient(145deg, #fff6e8, #e6eaf0);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  color: #e9edf0;
  max-width: 925px;
  margin: 0 auto 3rem auto;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.button-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: #c88a3a;
  color: #1c1713;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 48px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}
.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}
.btn-primary:hover {
  background: #d99e4a;
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -12px rgba(200, 138, 58, 0.4);
}
.btn-secondary {
  background: rgba(42, 36, 31, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid #c88a3a66;
  color: #e9edf0;
  padding: 0.9rem 2rem;
  border-radius: 48px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-secondary:hover {
  background: #c88a3a1a;
  border-color: #c88a3a;
  color: #c88a3a;
  transform: translateY(-2px);
}

/* Sections spacing */
section,
.features,
.testimonials-section,
.palette,
.cta-section {
  margin-bottom: 100px;
}
.preview-section {
  margin-bottom: 100px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-sub {
  text-align: center;
  color: #92897d;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 1200px) {
  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tech-card {
  background: #2a241f;
  border-radius: 20px;
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1px solid #3d352c;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
}
.tech-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.tech-card:hover {
  border-color: #c88a3a;
  transform: translateY(-8px) scale(1.02);
  background: #322b24;
  box-shadow: 0 15px 30px -12px rgba(200, 138, 58, 0.3);
}
.tech-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  display: inline-block;
}

/* Modal Styles for Images */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(28, 23, 19, 0.95);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-container {
  background: #1c1713;
  border-radius: 32px;
  border: 1px solid #c88a3a66;
  max-width: 90%;
  width: auto;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.modal-overlay.active .modal-container {
  transform: scale(1);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #3d352c;
  background: #26201b;
}
.modal-header h3 {
  color: #c88a3a;
  font-size: 1.5rem;
  font-weight: 700;
}
.modal-close {
  background: none;
  border: none;
  color: #92897d;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.modal-close:hover {
  color: #e06c75;
  background: #c88a3a1a;
  transform: rotate(90deg);
}
.modal-content {
  padding: 2rem;
  overflow-y: auto;
  max-height: calc(90vh - 80px);
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-image {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Code Card with 3D Hover Effect */
.code-card {
  background: #1c1713;
  border-radius: 24px;
  border: 1px solid #3d352c;
  overflow: hidden;
  box-shadow: 0 25px 40px -20px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
  transform-style: preserve-3d;
}
.code-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.code-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 30px 50px -20px rgba(200, 138, 58, 0.4);
  border-color: #c88a3a;
}
.code-header {
  background: #26201b;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid #3d352c;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e06c75;
  transition: all 0.3s ease;
}
.code-card:hover .window-dot:nth-child(1) {
  background: #e06c75;
  transform: scale(1.2);
}
.code-card:hover .window-dot:nth-child(2) {
  background: #ffb454;
  transform: scale(1.2);
}
.code-card:hover .window-dot:nth-child(3) {
  background: #9ecd7a;
  transform: scale(1.2);
}
.code-content {
  padding: 1.8rem;
  overflow-x: auto;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  line-height: 1.5;
}
pre {
  margin: 0;
  color: #e6eaf0;
}
.token-comment {
  color: #7a7166;
}
.token-keyword {
  color: #c88a3a;
  font-weight: 500;
}
.token-string {
  color: #8fbf7a;
}
.token-function {
  color: #7fb4ca;
}
.token-class {
  color: #d7ba7d;
}
.token-number {
  color: #b48ead;
}
.token-jsx {
  color: #66ccff;
  font-weight: 500;
}

.features {
  background: #1e1915;
  border-radius: 48px;
  padding: 4rem 2rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.feature-card {
  background: #2a241f;
  padding: 1.8rem;
  border-radius: 28px;
  border: 1px solid #3d352c;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}
.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.feature-card:hover {
  border-color: #c88a3a66;
  background: #322b24;
  transform: translateY(-8px);
  box-shadow: 0 15px 30px -12px rgba(200, 138, 58, 0.2);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}
.feature-card:hover .feature-icon {
  transform: scale(1.1);
}
.feature-card h3 {
  font-size: 20px;
  margin-bottom: 0.5rem;
  color: #c88a3a;
}

/* Testimonials Slider */
.testimonials-section {
  padding: 0;
}
.slider-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 32px;
}
.testimonial-slider {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-card {
  flex: 0 0 100%;
  background: #2a241f;
  border-radius: 32px;
  padding: 2.5rem;
  border: 1px solid #3d352c;
  text-align: center;
}
.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c88a3a, #9e642c);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  color: #1c1713;
}
.testimonial-stars {
  margin-bottom: 1rem;
  color: #ffb454;
  font-size: 1.2rem;
  letter-spacing: 2px;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #c88a3a33;
  backdrop-filter: blur(8px);
  border: 1px solid #c88a3a66;
  color: #c88a3a;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  z-index: 10;
}
.slider-btn:hover {
  background: #c88a3a;
  color: #1c1713;
  transform: translateY(-50%) scale(1.05);
}
.slider-btn.prev {
  left: -20px;
}
.slider-btn.next {
  right: -20px;
}
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3d352c;
  cursor: pointer;
  transition: all 0.3s ease;
}
.dot.active {
  background: #c88a3a;
  width: 28px;
  border-radius: 10px;
}

.palette {
  background: #2a241f;
  border-radius: 36px;
  padding: 2rem;
  border: 1px solid #3d352c;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
  position: relative;
  overflow: hidden;
}
.palette.visible {
  opacity: 1;
  transform: translateY(0);
}
.palette::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(200, 138, 58, 0.03) 0%,
    transparent 70%
  );
  animation: rotateBg 20s linear infinite;
  pointer-events: none;
}
@keyframes rotateBg {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.palette:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -15px rgba(200, 138, 58, 0.2);
  border-color: #c88a3a66;
}
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}
.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.swatch:hover {
  transform: translateY(-8px) scale(1.05);
}
.swatch-color {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.cta-section {
  background: linear-gradient(135deg, #2a241f, #201b17);
  border-radius: 40px;
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid #3d352c;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}
.cta-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.footer {
  border-top: 1px solid #3d352c;
  padding: 2rem 0;
  text-align: center;
  color: #92897d;
}

.copyright {
  padding-top: 20px;
  font-size: 12px;
}

.testimonial-text {
  margin-bottom: 20px;
}

.copyright-link {
  color: inherit;
  cursor: pointer;
  font-weight: 500;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .burger {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100vh;
    background: #1c1713;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: left 0.3s ease;
    z-index: 999;
    backdrop-filter: blur(20px);
    border-right: 1px solid #c88a3a33;
  }
  .nav-links.active {
    left: 0;
  }
  .nav-links a {
    font-size: 1.2rem;
  }
  .slider-btn.prev {
    left: 5px;
  }
  .slider-btn.next {
    right: 5px;
  }
  .slider-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .testimonial-card {
    padding: 1.5rem;
  }
  section,
  .features,
  .testimonials-section,
  .palette,
  .cta-section {
    margin-bottom: 60px;
  }
  .hero {
    margin-bottom: 60px;
    min-height: 80vh;
  }
  .modal-container {
    width: 95%;
  }
  .modal-content {
    padding: 1rem;
  }
  .slider-btn {
    top: auto;
    bottom: 0%;
  }
  .slider-btn.prev {
    left: 10px;
  }
  .slider-btn.next {
    right: 10px;
  }
}

@media (max-width: 540px) {
  .logo {
    display: none;
  }
  .hero {
    margin-bottom: 10px;
  }
  section,
  .features,
  .testimonials-section,
  .palette,
  .cta-section,
  .preview-section {
    margin-bottom: 40px;
  }
  .section-sub {
    margin-bottom: 20px;
  }

  .features {
    padding-block: 20px;
  }
  .feature-card {
    padding: 20px;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 30px;
  }
  .hero p {
    font-size: 16px;
  }
  .section-title,
  .cta-section-title {
    font-size: 24px;
  }
  .features {
    padding: 0px;
  }
  .cta-section,
  .palette {
    padding: 20px;
  }
}
