/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff; /* white background */
  color: #1e1a2b;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- BACKGROUND ANIMATION CONTAINER ---- */
#bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
  pointer-events: none; /* allow clicks to pass through */
}

/* each square */
.anim-square {
  position: absolute;
  border-radius: 4px; /* slight rounding for a modern feel */
  opacity: 0;
  will-change: transform, opacity;
  animation: floatSquare linear infinite alternate;
}

/* ---- KEYFRAMES for different movement patterns ---- */
@keyframes float1 {
  0%   { transform: translate(0, 0) scale(0.6); opacity: 0; }
  15%  { opacity: 0.8; }
  50%  { transform: translate(calc(80vw - 100%), calc(60vh - 100%)) scale(1.8); opacity: 0.9; }
  85%  { opacity: 0.8; }
  100% { transform: translate(calc(20vw), calc(90vh - 100%)) scale(0.4); opacity: 0; }
}
@keyframes float2 {
  0%   { transform: translate(0, 0) scale(0.5); opacity: 0; }
  20%  { opacity: 0.7; }
  50%  { transform: translate(calc(-10vw), calc(70vh - 100%)) scale(2.2); opacity: 0.9; }
  80%  { opacity: 0.7; }
  100% { transform: translate(calc(110vw - 100%), calc(10vh)) scale(0.3); opacity: 0; }
}
@keyframes float3 {
  0%   { transform: translate(0, 0) scale(0.7); opacity: 0; }
  10%  { opacity: 0.8; }
  50%  { transform: translate(calc(60vw - 100%), calc(-10vh)) scale(2.5); opacity: 0.9; }
  90%  { opacity: 0.8; }
  100% { transform: translate(calc(40vw), calc(110vh - 100%)) scale(0.5); opacity: 0; }
}
@keyframes float4 {
  0%   { transform: translate(0, 0) scale(0.4); opacity: 0; }
  25%  { opacity: 0.7; }
  50%  { transform: translate(calc(120vw - 100%), calc(50vh - 100%)) scale(2.0); opacity: 0.9; }
  75%  { opacity: 0.7; }
  100% { transform: translate(calc(-20vw), calc(80vh - 100%)) scale(0.6); opacity: 0; }
}
@keyframes float5 {
  0%   { transform: translate(0, 0) scale(0.5); opacity: 0; }
  15%  { opacity: 0.8; }
  50%  { transform: translate(calc(30vw - 100%), calc(100vh - 100%)) scale(1.6); opacity: 0.9; }
  85%  { opacity: 0.8; }
  100% { transform: translate(calc(90vw - 100%), calc(-10vh)) scale(0.3); opacity: 0; }
}

/* ---- MAIN CONTENT (sits above animation) ---- */
.container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* sections with semi‑transparent white background to let squares show through */
nav,
.hero,
.features-section,
.cta-section,
footer {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 32px;
  padding: 0 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  flex-wrap: wrap;
  border-radius: 40px;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  background: rgba(255, 255, 255, 0.75);
}

.hero {
  padding: 3rem 2rem 4rem;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 48px;
  margin-bottom: 3rem;
}

.features-section {
  padding: 3rem 2rem 4rem;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 48px;
  margin-bottom: 3rem;
}

.cta-section {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 48px;
  padding: 3.5rem 2rem;
  margin-bottom: 3rem;
}

footer {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 40px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

/* ---- LOGO (image) ---- */
.logo-icon-img {
  height: auto;
  width: 250px;
  object-fit: contain;
}
.logo-icon-img:hover {
  transform: scale(1.02);
}

/* ---- NAV LINKS ---- */
.nav-links {
  display: flex;
  gap: 2.5rem;
  font-weight: 500;
  color: #2d2a3e;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
  font-size: 1rem;
}
.nav-links a:hover {
  color: #b8860b;
}
.nav-cta {
  background: #1e1a2b;
  color: white !important;
  padding: 0.6rem 1.6rem;
  border-radius: 40px;
  font-weight: 700;
  transition: background 0.2s, transform 0.1s;
}
.nav-cta:hover {
  background: #3d2f6b !important;
  transform: scale(0.97);
}

/* ---- HAMBURGER ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0.2rem;
  z-index: 20;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #1e1a2b;
  border-radius: 6px;
  transition: all 0.25s ease;
  transform-origin: center;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---- HERO CONTENT ---- */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4rem;
  align-items: center;
}
.hero-content h1 {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
  color: #1e1a2b;
}
.hero-content h1 span {
  background: linear-gradient(145deg, #f5c542, #e6b13a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-content .tagline-big {
  display: inline-block;
  background: rgba(245, 197, 66, 0.15);
  color: #b8860b;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 1.4rem;
  border-radius: 40px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(245, 197, 66, 0.2);
  margin-bottom: 0.8rem;
}
.hero-content p {
  font-size: 1.25rem;
  color: #4a4462;
  max-width: 90%;
  margin-bottom: 2.5rem;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-primary {
  background: #1e1a2b;
  color: white;
  padding: 0.9rem 2.6rem;
  border-radius: 60px;
  font-weight: 700;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.btn-primary i {
  font-size: 1rem;
}
.btn-primary:hover {
  background: #3d2f6b;
  transform: scale(0.98);
}
.btn-outline {
  background: transparent;
  color: #1e1a2b;
  padding: 0.9rem 2.6rem;
  border-radius: 60px;
  font-weight: 600;
  border: 1.5px solid #d2cce0;
  font-size: 1rem;
  cursor: pointer;
  transition: border 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.btn-outline i {
  color: #b8860b;
}
.btn-outline:hover {
  border-color: #b8860b;
  background: #f5f0ff;
}

.hero-stats {
  margin-top: 2.5rem;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.hero-stats div {
  font-weight: 700;
  font-size: 1.2rem;
  color: #1e1a2b;
}
.hero-stats span {
  color: #4a4462;
  font-weight: 400;
}

/* hero card (right side) */
.hero-image {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 48px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.1), 0 0 0 1px rgba(245, 197, 66, 0.15);
  width: 100%;
  min-width: 0;
  overflow: hidden;
  max-width: 420px;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255,255,255,0.3);
}
.hero-card:hover {
  transform: translateY(-6px);
}
.hero-image img{
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}
.hero-card .badge {
  display: inline-block;
  background: rgba(245, 197, 66, 0.15);
  color: #b8860b;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.25rem 1rem;
  border-radius: 30px;
  letter-spacing: 0.3px;
  margin-bottom: 1.2rem;
}
.hero-card h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1e1a2b;
}
.hero-card .price {
  font-size: 2.6rem;
  font-weight: 700;
  color: #1e1a2b;
  margin: 0.5rem 0 1rem;
}
.hero-card .price small {
  font-size: 1rem;
  font-weight: 400;
  color: #6f6887;
  margin-left: 0.25rem;
}
.hero-card .feature-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
}
.hero-card .feature-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0;
  color: #2d2a3e;
}
.hero-card .feature-list i {
  color: #b8860b;
  font-size: 1.1rem;
  width: 1.4rem;
}
.hero-card .btn-primary {
  width: 100%;
  justify-content: center;
  background: #b8860b;
}
.hero-card .btn-primary:hover {
  background: #a0740a;
}

/* ---- FEATURES ---- */
.section-label {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #b8860b;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: #1e1a2b;
}
.section-desc {
  color: #4a4462;
  max-width: 600px;
  font-size: 1.15rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.feature-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  border-radius: 32px;
  padding: 2rem 1.8rem;
  transition: all 0.25s ease;
]']'  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.feature-card:hover {
  transform: translateY(-8px);
  border-color: #f5c542;
  box-shadow: 0 20px 40px -20px rgba(245, 197, 66, 0.2);
}
.feature-icon {
  background: rgba(245, 197, 66, 0.12);
  width: 60px;
  height: 60px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #b8860b;
  margin-bottom: 1.5rem;
}
.feature-card h4 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #1e1a2b;
}
.feature-card p {
  color: #4a4462;
  font-size: 0.98rem;
}

/* ---- CTA ---- */
.cta-section {
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
}
.cta-section h2 {
  font-size: 2.8rem;
  font-weight: 700;
  max-width: 700px;
  margin: 0 auto 1.2rem;
  color: #1e1a2b;
}
.cta-section p {
  font-size: 1.2rem;
  color: #4a4462;
  max-width: 550px;
  margin: 0 auto 2.5rem;
}
.cta-section .btn-primary {
  background: #b8860b;
}
.cta-section .btn-primary:hover {
  background: #a0740a;
}

/* ---- FOOTER ---- */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: #4a4462;
  background: rgba(255, 255, 255, 0.7);
}
.footer-socials {
  display: flex;
  gap: 1.5rem;
  font-size: 1.2rem;
}
.footer-socials a {
  color: #4a4462;
  transition: color 0.2s;
}
.footer-socials a:hover {
  color: #b8860b;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .logo-icon-img {
    height: auto;
    width: 150px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .hero-content p {
    max-width: 100%;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-card {
    max-width: 400px;
    margin: 0 auto;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 700px) {
  .container {
    padding: 0 1rem;
  }
  nav {
    padding: 1rem 1.5rem;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.2rem;
    font-size: 1.4rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
    z-index: 1500;
    padding: 2rem;
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links a {
    font-size: 1.5rem;
  }
  .nav-cta {
    padding: 0.8rem 2.4rem;
    font-size: 1.2rem;
  }
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .cta-section h2 {
    font-size: 2rem;
  }
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .logo-icon-img {
    height: auto;
    width: 100px;
  }
}

@media (max-width: 450px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .btn-primary, .btn-outline {
    padding: 0.7rem 1.8rem;
    font-size: 0.9rem;
  }
}
