/* --- VARIABLES & RESET --- */
:root {
  --primary: #4f46e5;
  --secondary: #06b6d4;
  --accent: #8b5cf6;
  --dark: #0f172a;
  --darker: #020617;
  --text: #475569;
  --text-light: #94a3b8;
  --bg-gradient: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.1);
  --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-gradient);
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5 {
  color: var(--dark);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(40px, 5vw, 72px); margin-bottom: 24px; }
h2 { font-size: clamp(32px, 4vw, 56px); margin-bottom: 20px; }
h3 { font-size: 24px; margin-bottom: 12px; }
p { font-size: 18px; color: var(--text); margin-bottom: 20px; max-width: 70ch; }
.lead { font-size: 22px; color: var(--text); font-weight: 400; }

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* --- ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 100ms; }
.stagger-2 { transition-delay: 200ms; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 40px; border-radius: 100px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; font-weight: 600; text-decoration: none; border: none; cursor: pointer;
  transition: 0.4s ease; box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
  font-size: 16px;
}
.btn:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(79, 70, 229, 0.6); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 40px; border-radius: 100px;
  background: transparent; color: var(--primary);
  border: 2px solid rgba(79, 70, 229, 0.2);
  font-weight: 600; text-decoration: none; cursor: pointer;
  transition: 0.4s ease;
}
.btn-outline:hover { border-color: var(--primary); background: rgba(79, 70, 229, 0.05); }

/* --- HEADER & LOGO --- */
header {
  position: fixed; top: 0; width: 100%; padding: 20px 50px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  z-index: 1000; transition: 0.3s;
}
header.scrolled { padding: 15px 50px; box-shadow: var(--shadow-sm); }
.logo { font-size: 24px; font-weight: 900; color: var(--dark); text-decoration: none; letter-spacing: -1px; display: flex; align-items: center; }
.logo span { color: var(--primary); }

/* Logo Image Styling */
.nav-logo {
    height: 45px;
    width: auto;
    margin-right: 15px;
    border-radius: 50%; /* Makes the logo circular if square */
    transition: 0.3s;
}
header.scrolled .nav-logo { height: 35px; }

nav { display: flex; gap: 30px; align-items: center; }
nav a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 15px; transition: 0.3s; }
nav a:hover, nav a.active { color: var(--primary); }
.nav-cta { background: var(--dark); color: white !important; padding: 10px 25px; border-radius: 50px; }
.nav-cta:hover { transform: translateY(-2px); }
.hamburger { display: none; font-size: 24px; cursor: pointer; color: var(--dark); }

/* --- LAYOUT --- */
section { padding: 100px 50px; position: relative; overflow: hidden; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

/* --- HERO --- */
.hero { min-height: 90vh; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 60px; padding-top: 150px; }
.hero-img { width: 100%; border-radius: 30px; box-shadow: 0 40px 80px rgba(0,0,0,0.1); transform: perspective(1000px) rotateY(-5deg); transition: 0.5s; }
.hero-img:hover { transform: perspective(1000px) rotateY(0deg); }

/* --- CARDS --- */
.feature-card {
  background: white; padding: 50px 40px; border-radius: var(--radius);
  border: 1px solid white; box-shadow: var(--shadow-lg); transition: 0.4s;
}
.feature-card:hover { transform: translateY(-10px); border-color: var(--primary); }
.feature-card i { font-size: 40px; color: var(--primary); margin-bottom: 25px; display: inline-block; }

/* --- PRICING --- */
.pricing-section { background: #fff; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 60px; }
.price-card { background: #f8fafc; padding: 40px 30px; border-radius: 20px; border: 1px solid #e2e8f0; display: flex; flex-direction: column; }
.price-card.featured { background: var(--dark); color: white; transform: scale(1.05); z-index: 2; box-shadow: var(--shadow-lg); }
.price-amount { font-size: 38px; font-weight: 800; margin: 10px 0; }
.features-list { list-style: none; margin-bottom: 30px; flex-grow: 1; }
.features-list li { margin-bottom: 12px; font-size: 14px; display: flex; gap: 10px; }
.features-list li i { color: #10b981; }

/* --- REVIEWS --- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.review-card { background: white; padding: 40px; border-radius: 20px; box-shadow: var(--shadow-sm); }

/* --- BLOG STYLES (UPDATED) --- */
.blog-card {
  background: white; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid #f1f5f9;
  transition: 0.4s ease; display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.blog-img { height: 250px; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.blog-card:hover .blog-img img { transform: scale(1.1); }
.blog-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.blog-tag { 
  background: rgba(79, 70, 229, 0.1); color: var(--primary); 
  padding: 5px 15px; border-radius: 50px; font-size: 12px; font-weight: 700;
  width: fit-content; margin-bottom: 15px; text-transform: uppercase;
}
.card-link { text-decoration: none; color: inherit; display: block; height: 100%; }
.blog-content h3 { color: var(--dark); text-decoration: none; transition: 0.3s; }
.card-link:hover h3 { color: var(--primary); }
.read-more { margin-top: auto; color: var(--primary); font-weight: 600; display: block; }

/* Blog Single Post */
.blog-post-container { max-width: 800px; margin: 150px auto 100px; padding: 0 25px; }
.blog-header { text-align: center; margin-bottom: 40px; }
.blog-main-img { width: 100%; border-radius: 20px; margin-bottom: 40px; }
.blog-body { font-size: 18px; line-height: 1.8; }
.blog-body h2 { margin-top: 40px; }
.blog-body ul { margin-bottom: 20px; padding-left: 20px; }

/* --- PREMIUM CONTACT FORM STYLES --- */
.form-container {
  background: white !important;
  padding: 50px !important;
  border-radius: 30px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important; /* Deep Premium Shadow */
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.form-label {
  display: block;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
  color: var(--dark) !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.form-input {
  width: 100%;
  padding: 16px 20px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  font-size: 16px;
  transition: 0.3s ease;
  font-family: inherit;
  color: var(--dark);
  margin-bottom: 5px;
}

.form-input:focus {
  background: white !important;
  border-color: var(--primary) !important;
  outline: none;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
}

/* Custom Select Arrow */
.select-wrapper { position: relative; }
.select-arrow {
    position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    color: var(--text); pointer-events: none;
}
select.form-input { appearance: none; -webkit-appearance: none; }

/* --- FOOTER --- */
footer { background: var(--dark); color: white; padding: 80px 50px 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-links a { display: block; color: #94a3b8; text-decoration: none; margin-bottom: 10px; }
.footer-links a:hover { color: white; }
.copyright { text-align: center; color: #475569; border-top: 1px solid #1e293b; padding-top: 30px; }
.footer-logo { display: flex; align-items: center; text-decoration: none; color: white; font-size: 24px; font-weight: 800; }
.footer-logo span { color: var(--primary); }

/* --- MOBILE --- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 120px; }
  .hero-img { max-width: 600px; margin: 40px auto; }
  .grid-3, .grid-2, .pricing-grid, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  section { padding: 60px 25px; }
  h1 { font-size: 42px; }
  .hamburger { display: block; }
  nav {
    position: fixed; top: 0; right: 0; width: 80%; height: 100vh;
    background: white; flex-direction: column; padding: 100px 40px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1); transform: translateX(100%);
  }
  nav.active { transform: translateX(0); }
  .close-menu { position: absolute; top: 20px; right: 20px; font-size: 30px; cursor: pointer; }
  
  /* Mobile Form Adjustments */
  .form-container { padding: 30px !important; }
}