/* -------------------------------------------------
   GLOBAL VARIABLES
------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Merriweather:wght@400;500&display=swap');

:root{
  /* Palette – Monochrome + subtle accent */
  --bg-light:#f1f3f7;
  --bg:#e3e6ec;
  --bg-dark:#caced6;

  --accent:#4a90e2;
  --accent-dark:#356ab4;

  --text:#222222;
  --text-light:#ffffff;

  --shadow-light:rgba(255,255,255,.7);
  --shadow-dark:rgba(0,0,0,.15);

  --radius:20px;
  --transition:.35s cubic-bezier(.4,.2,.2,1);
}

/* -------------------------------------------------
   RESET & BASE
------------------------------------------------- */
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'Merriweather',serif;
  color:var(--text);
  background:var(--bg-light);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4,h5,h6{
  font-family:'Montserrat',sans-serif;
  font-weight:700;
  color:var(--text);
  margin:0 0 1rem;
  text-align:center;
}

/* -------------------------------------------------
   UTILITIES
------------------------------------------------- */
.container{
  width:90%;
  max-width:1200px;
  margin:0 auto;
}
.btn,
button,
input[type='submit']{
  padding:.8rem 2.2rem;
  background:var(--accent);
  color:var(--text-light);
  border:none;
  border-radius:50px;
  font-family:'Montserrat',sans-serif;
  font-weight:600;
  cursor:pointer;
  transition:var(--transition);
  box-shadow:3px 3px 6px var(--shadow-dark),-3px -3px 6px var(--shadow-light);
}
.btn:hover,
button:hover,
input[type='submit']:hover{
  background:var(--accent-dark);
  transform:translateY(-2px);
}
.read-more{
  color:var(--accent);
  font-weight:700;
  text-decoration:none;
  position:relative;
}
.read-more::after{
  content:'→';
  margin-left:.3rem;
  transition:var(--transition);
}
.read-more:hover::after{transform:translateX(4px);}

/* -------------------------------------------------
   NEOMORPHIC SURFACES
------------------------------------------------- */
.neomorph{
  background:var(--bg);
  border-radius:var(--radius);
  box-shadow:8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}
.neomorph-inset{
  box-shadow:inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
}

/* -------------------------------------------------
   HEADER
------------------------------------------------- */
.header{
  position:fixed;
  top:0;left:0;width:100%;
  background:var(--bg);
  box-shadow:0 4px 12px rgba(0,0,0,.06);
  z-index:1000;
}
.header .container{display:flex;align-items:center;justify-content:space-between;padding:.8rem 0;}
.logo{font-family:'Montserrat',sans-serif;font-weight:700;font-size:1.4rem;color:var(--accent);}
.nav ul{list-style:none;margin:0;padding:0;display:flex;gap:1.5rem;}
.nav a{color:var(--text);font-weight:600;text-decoration:none;transition:var(--transition);}
.nav a:hover{color:var(--accent);}
.burger{display:none;font-size:1.5rem;background:none;color:var(--text);}

/* Mobile Navigation */
@media(max-width:768px){
  .nav{position:fixed;top:64px;right:-100%;width:70%;height:calc(100vh - 64px);background:var(--bg);transition:var(--transition);flex-direction:column;padding:2rem;}
  .nav.open{right:0;}
  .nav ul{flex-direction:column;gap:1rem;}
  .burger{display:block;}
}

/* -------------------------------------------------
   HERO
------------------------------------------------- */
.hero{
  position:relative;
  padding:160px 20px 140px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  background-size:cover;
  background-repeat:no-repeat;
  background-attachment:fixed;
  overflow:hidden;
}
.hero-title{font-size:2.8rem;color:var(--text-light);text-shadow:1px 1px 3px rgba(0,0,0,.6);}
.hero-sub{max-width:700px;color:var(--text-light);margin-bottom:2rem;text-shadow:1px 1px 3px rgba(0,0,0,.6);}
.hero-btn{font-size:1rem;}

/* Particle Animation */
.hero::before{
  content:'';
  position:absolute;inset:0;
  background:
    radial-gradient(circle at 20% 30%,rgba(255,255,255,.15) 0,transparent 50%),
    radial-gradient(circle at 70% 40%,rgba(255,255,255,.1) 0,transparent 50%),
    radial-gradient(circle at 25% 70%,rgba(255,255,255,.05) 0,transparent 50%);
  background-size:300px 300px;
  animation:particles 40s linear infinite;
  pointer-events:none;
}
@keyframes particles{
  0%{background-position:0 0,0 0,0 0;}
  100%{background-position:1000px 600px,800px 400px,600px 800px;}
}

/* -------------------------------------------------
   SECTIONS
------------------------------------------------- */
section{padding:80px 0;position:relative;}
.section-title{text-shadow:1px 1px 3px rgba(0,0,0,.08);margin-bottom:3rem;}

/* -------------------------------------------------
   FEATURES & PORTFOLIO GRIDS
------------------------------------------------- */
.features-grid,
.portfolio-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:2rem;
}

/* -------------------------------------------------
   CARD
------------------------------------------------- */
.card{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  background:var(--bg);
  border-radius:var(--radius);
  box-shadow:6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
  overflow:hidden;
  transition:var(--transition);
}
.card:hover{transform:translateY(-4px);}
.card-image{
  width:100%;
  height:220px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.card-image img{
  width:100%;height:100%;
  object-fit:cover;
  margin:0 auto;
}
.card-content{padding:1.5rem 1.2rem;}

/* -------------------------------------------------
   PROGRESS BAR
------------------------------------------------- */
.progress{
  width:100%;
  height:10px;
  background:var(--bg-dark);
  border-radius:10px;
  overflow:hidden;
  margin-top:1rem;
}
.progress span{
  display:block;
  height:100%;
  background:var(--accent);
  border-radius:10px 0 0 10px;
}

/* -------------------------------------------------
   STAT WIDGETS
------------------------------------------------- */
.stats-widgets{
  display:flex;
  flex-wrap:wrap;
  gap:1.5rem;
  justify-content:center;
}
.widget{
  min-width:160px;
  padding:1.5rem 2rem;
  background:var(--bg);
  border-radius:var(--radius);
  box-shadow:6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
}
.stat-number{
  font-family:'Montserrat',sans-serif;
  font-size:2rem;
  color:var(--accent);
  margin-bottom:.2rem;
}

/* -------------------------------------------------
   LINKS LIST
------------------------------------------------- */
.links-list{
  list-style:none;
  padding:0;
  margin:0 auto;
  max-width:800px;
}
.links-list li{margin:.8rem 0;text-align:center;}
.links-list a{
  color:var(--accent);
  font-weight:600;
  text-decoration:none;
  transition:var(--transition);
}
.links-list a:hover{color:var(--accent-dark);}

/* -------------------------------------------------
   FAQ
------------------------------------------------- */
details{
  background:var(--bg);
  border-radius:var(--radius);
  box-shadow:6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
  padding:1rem 1.5rem;
  margin-bottom:1rem;
  cursor:pointer;
}
summary{font-weight:700;font-family:'Montserrat',sans-serif;}

/* -------------------------------------------------
   FORM
------------------------------------------------- */
form{max-width:600px;margin:0 auto;}
.form-group{display:flex;flex-direction:column;margin-bottom:1.2rem;}
label{font-weight:600;font-family:'Montserrat',sans-serif;margin-bottom:.3rem;}
input,textarea{
  padding:.8rem 1rem;
  border:none;
  border-radius:12px;
  background:var(--bg);
  box-shadow:inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
  font-family:'Merriweather',serif;
  resize:vertical;
}
input:focus,textarea:focus{outline:2px solid var(--accent);}

/* -------------------------------------------------
   FOOTER
------------------------------------------------- */
.footer{
  padding:60px 0 40px;
  background:var(--bg);
  text-align:center;
}
.footer-nav ul{list-style:none;padding:0;margin:0 0 1rem;display:flex;flex-wrap:wrap;gap:1rem;justify-content:center;}
.footer-nav a{color:var(--text);font-weight:600;text-decoration:none;transition:var(--transition);}
.footer-nav a:hover{color:var(--accent);}
.footer .social a{
  color:var(--accent);
  text-decoration:none;
  font-weight:600;
  margin:0 .4rem;
  transition:var(--transition);
}
.footer .social a:hover{color:var(--accent-dark);}

/* -------------------------------------------------
   SUCCESS PAGE
------------------------------------------------- */
.success-page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  text-align:center;
}
.success-page h1{color:var(--accent);margin-bottom:.5rem;}

/* -------------------------------------------------
   PRIVACY & TERMS PAGES
------------------------------------------------- */
.privacy-page,
.terms-page{padding-top:100px;}

/* -------------------------------------------------
   RESPONSIVE TWEAKS
------------------------------------------------- */
@media(max-width:480px){
  .hero-title{font-size:2rem;}
  .btn{padding:.7rem 1.6rem;}
  h1,h2{font-size:1.6rem;}
}

/* -------------------------------------------------
   PARALLAX HELPER
------------------------------------------------- */
.parallax{
  background-size:cover;
  background-repeat:no-repeat;
  background-attachment:fixed;
}

/* -------------------------------------------------
   SCROLL REVEAL PLACEHOLDER (for graceful degradation)
------------------------------------------------- */
.fade-up{opacity:0;transform:translateY(40px);}
.sr{opacity:1 !important;transform:none !important;}
.burger{
  display: none;
}