/*
Theme Name: Swadha Virtual Solution
Theme URI: 
Author: Antigravity
Author URI: 
Description: A premium theme with a glassmorphism aesthetic, tailored for Swadha Virtual Solution.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: swadha-theme
*/

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

:root {
  --teal-dark: #0d4f5c;
  --teal-mid:  #1a7a8a;
  --teal-light: #2eb8c8;
  --cyan-accent: #5de0ec;
  --white: #f5feff;
  --off-white: #e8f7fa;
  --text-dark: #0a2e35;
  --text-muted: #4a7a85;
  --card-bg: rgba(255,255,255,0.07);
  --glass-border: rgba(93,224,236,0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--teal-dark);
  color: var(--white);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 6%;
  background: rgba(13,79,92,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
  transition: background .3s;
}
.nav-logo { display: flex; align-items: center; gap: .7rem; }
.nav-logo img, .nav-logo svg { width: 36px; height: 36px; }
.nav-logo span {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 700;
  letter-spacing: .04em;
  color: var(--cyan-accent);
}
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a {
  color: var(--off-white); text-decoration: none;
  font-size: .9rem; font-weight: 500; letter-spacing: .04em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--cyan-accent); }
.nav-cta {
  background: var(--teal-light); color: var(--teal-dark);
  border: none; padding: .55rem 1.5rem;
  border-radius: 50px; font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: .9rem; cursor: pointer;
  transition: background .2s, transform .2s;
  text-decoration: none;
  display: inline-block;
}
.nav-cta:hover { background: var(--cyan-accent); transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 7rem 6% 5rem;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(46,184,200,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(93,224,236,.1) 0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 90% 20%, rgba(26,122,138,.25) 0%, transparent 60%);
}
.hex-deco {
  position: absolute; opacity: .07; z-index: 0;
}
.hex-deco.h1 { top: 8%; right: 6%; width: 260px; }
.hex-deco.h2 { bottom: 10%; left: 3%; width: 200px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--card-bg); border: 1px solid var(--glass-border);
  padding: .4rem 1rem; border-radius: 50px; font-size: .8rem;
  color: var(--cyan-accent); letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 1.6rem; position: relative; z-index: 1;
  animation: fadeUp .7s ease both;
}
.hero-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-accent); display: inline-block; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }
h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 900; line-height: 1.08;
  color: var(--white); position: relative; z-index: 1;
  animation: fadeUp .8s .1s ease both;
}
h1 em { font-style: normal; color: var(--cyan-accent); }
.hero-sub {
  margin: 1.5rem auto; max-width: 560px;
  font-size: 1.1rem; color: rgba(245,254,255,.7); line-height: 1.7;
  position: relative; z-index: 1;
  animation: fadeUp .8s .2s ease both;
}
.hero-btns {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  position: relative; z-index: 1;
  animation: fadeUp .8s .3s ease both;
}
.btn-primary {
  background: var(--teal-light); color: var(--teal-dark);
  border: none; padding: .85rem 2.2rem;
  border-radius: 50px; font-family: 'DM Sans', sans-serif;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 24px rgba(46,184,200,.3);
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { background: var(--cyan-accent); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(46,184,200,.45); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(245,254,255,.35);
  padding: .85rem 2.2rem; border-radius: 50px;
  font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 500;
  cursor: pointer; transition: border-color .2s, color .2s, transform .2s;
  text-decoration: none;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--cyan-accent); color: var(--cyan-accent); transform: translateY(-2px); }

/* ── STATS BAR ── */
.stats-bar {
  display: flex; justify-content: center; gap: 0; flex-wrap: wrap;
  margin: 4rem 6% 0;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--glass-border);
  border-radius: 20px; overflow: hidden;
  animation: fadeUp .8s .4s ease both;
}
.stat-item {
  flex: 1; min-width: 160px;
  padding: 2rem 1.5rem; text-align: center;
  border-right: 1px solid var(--glass-border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem; font-weight: 900; color: var(--cyan-accent);
  display: block;
}
.stat-label { font-size: .82rem; color: rgba(245,254,255,.6); letter-spacing: .06em; margin-top: .3rem; }

/* ── SECTION COMMON ── */
section { padding: 7rem 6%; }
.section-label {
  display: inline-block;
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan-accent); margin-bottom: .8rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  line-height: 1.15; color: var(--white);
}
.section-title em { font-style: normal; color: var(--cyan-accent); }

/* ── SERVICES ── */
#services { background: rgba(255,255,255,.02); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 2rem;
  position: relative; overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  cursor: default;
}
.service-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal-light), var(--cyan-accent));
  opacity: 0; transition: opacity .3s;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(93,224,236,.4); box-shadow: 0 16px 48px rgba(0,0,0,.25); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--teal-mid), var(--teal-light));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; font-size: 1.5rem;
}
.service-card h3 {
  font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700;
  color: var(--white); margin-bottom: .6rem;
}
.service-card p { font-size: .88rem; color: rgba(245,254,255,.6); line-height: 1.6; }

/* ── WHY CHOOSE ── */
#why {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.why-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.why-hex-wrap {
  width: 320px; height: 340px; position: relative;
}
.why-hex-wrap svg { width: 100%; height: 100%; opacity: .18; }
.why-center-card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: .4rem;
}
.why-center-num {
  font-family: 'Playfair Display', serif; font-size: 4rem; font-weight: 900;
  color: var(--cyan-accent); line-height: 1;
}
.why-center-label { font-size: .85rem; color: rgba(245,254,255,.6); }
.why-list { list-style: none; margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.2rem; }
.why-list li {
  display: flex; align-items: flex-start; gap: 1rem;
  font-size: .95rem; color: rgba(245,254,255,.8); line-height: 1.6;
}
.why-check {
  flex-shrink: 0; width: 24px; height: 24px;
  border-radius: 50%; background: linear-gradient(135deg, var(--teal-light), var(--cyan-accent));
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.why-check svg { width: 12px; height: 12px; }

/* ── HOW IT WORKS ── */
#how { text-align: center; background: rgba(255,255,255,.02); }
.steps-wrap {
  display: flex; gap: 0; margin-top: 3.5rem;
  position: relative; flex-wrap: wrap; justify-content: center;
}
.steps-wrap::before {
  content: ''; position: absolute;
  top: 36px; left: 15%; right: 15%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal-light), var(--cyan-accent), var(--teal-light), transparent);
}
.step {
  flex: 1; min-width: 180px; max-width: 220px;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 1rem; position: relative; z-index: 1;
}
.step-num {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-mid), var(--teal-light));
  border: 3px solid var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 900;
  color: var(--white); margin-bottom: 1.2rem;
  box-shadow: 0 0 0 6px rgba(46,184,200,.15);
}
.step h4 { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: .4rem; }
.step p { font-size: .82rem; color: rgba(245,254,255,.55); line-height: 1.5; }

/* ── CONTACT ── */
#contact {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { font-size: 1rem; color: rgba(245,254,255,.65); line-height: 1.7; margin-bottom: 2.5rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem;
  font-size: .95rem; color: rgba(245,254,255,.75);
}
.contact-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--card-bg); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.contact-item a { color: var(--cyan-accent); text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px; padding: 2.5rem;
}
.contact-form h3 {
  font-family: 'Playfair Display', serif; font-size: 1.4rem;
  margin-bottom: 1.8rem; color: var(--white);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group label { font-size: .8rem; color: rgba(245,254,255,.55); letter-spacing: .06em; }
.form-group input, .form-group textarea, .form-group select {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--glass-border);
  border-radius: 10px; padding: .75rem 1rem;
  color: var(--white); font-family: 'DM Sans', sans-serif; font-size: .9rem;
  outline: none; transition: border-color .2s;
  width: 100%;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--teal-light);
}
.form-group select option { background: var(--teal-dark); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit {
  width: 100%; padding: .9rem;
  background: linear-gradient(135deg, var(--teal-light), var(--cyan-accent));
  border: none; border-radius: 50px;
  font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 700;
  color: var(--teal-dark); cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.form-submit:hover { opacity: .9; transform: translateY(-2px); }
.form-msg { margin-top: 1rem; font-size: .88rem; text-align: center; display: none; color: var(--cyan-accent); }

/* ── FOOTER ── */
footer {
  background: rgba(0,0,0,.25);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 6%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-logo {
  font-family: 'Playfair Display', serif; font-size: 1.1rem;
  color: var(--cyan-accent); font-weight: 700;
}
.footer-copy { font-size: .8rem; color: rgba(245,254,255,.4); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: .82rem; color: rgba(245,254,255,.5); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--cyan-accent); }

/* ── BLOG ── */
#blog {
  background: var(--teal-dark);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem; margin-top: 3rem;
}
.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px; overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); border-color: rgba(93,224,236,.4); box-shadow: 0 16px 48px rgba(0,0,0,.25); }
.blog-image {
  width: 100%;
  height: 200px;
  background-color: var(--teal-mid);
  background-size: cover;
  background-position: center;
}
.blog-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.blog-date {
  font-size: 0.8rem;
  color: var(--cyan-accent);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.blog-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}
.blog-content h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.blog-content h3 a:hover {
  color: var(--cyan-accent);
}
.blog-content p {
  font-size: 0.9rem;
  color: rgba(245,254,255,.7);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.blog-read-more {
  align-self: flex-start;
  color: var(--cyan-accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s;
}
.blog-read-more:hover {
  gap: 0.8rem;
}

/* Single Post */
.single-post-content {
  padding: 10rem 6% 5rem;
  max-width: 800px;
  margin: 0 auto;
}
.single-post-header {
  margin-bottom: 3rem;
  text-align: center;
}
.single-post-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-top: 1rem;
}
.post-thumbnail {
  width: 100%;
  border-radius: 20px;
  margin-bottom: 3rem;
}
.post-content {
  font-size: 1.05rem;
  color: rgba(245,254,255,.8);
  line-height: 1.8;
}
.post-content h2, .post-content h3 {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  margin: 2rem 0 1rem;
}
.post-content p {
  margin-bottom: 1.5rem;
}
.post-content a {
  color: var(--cyan-accent);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── MOBILE ── */
@media (max-width: 900px) {
  #why, #contact { grid-template-columns: 1fr; gap: 3rem; }
  .why-visual { display: none; }
  .steps-wrap::before { display: none; }
}
@media (max-width: 640px) {
  nav { padding: 1rem 5%; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed;
    top: 62px; left: 0; right: 0;
    background: rgba(13,79,92,.97); padding: 2rem;
    gap: 1.5rem;
  }
  .nav-links.open + .nav-cta { display: block; margin: 0 1.5rem 1.5rem; }
  section { padding: 5rem 5%; }
  .form-row { grid-template-columns: 1fr; }
  .stats-bar { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--glass-border); }
  .stat-item:last-child { border-bottom: none; }
}
