/* ===== Perfect Soft Solutions - Main Stylesheet ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --navy: #0a1628;
  --navy-mid: #112244;
  --blue: #1a4bbd;
  --electric: #3a7bff;
  --gold: #f0a500;
  --gold-light: #ffc94d;
  --white: #ffffff;
  --off-white: #f4f7ff;
  --gray: #8899bb;
  --light-gray: #e8edf8;
  --dark-gray: #3a4a6b;
  --gradient: linear-gradient(135deg, #1a4bbd 0%, #3a7bff 100%);
  --gradient-gold: linear-gradient(135deg, #f0a500 0%, #ffc94d 100%);
  --shadow: 0 20px 60px rgba(10,22,40,0.15);
  --shadow-blue: 0 10px 40px rgba(58,123,255,0.3);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--navy);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; line-height: 1.25; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border-radius: 50px; font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: none; transition: var(--transition); letter-spacing: 0.3px;
}
.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 50px rgba(58,123,255,0.5);
}
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
  transform: translateY(-3px);
}
.btn-gold {
  background: var(--gradient-gold);
  color: var(--navy);
  box-shadow: 0 10px 30px rgba(240,165,0,0.4);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(240,165,0,0.5); }

/* ===== SECTION HEADERS ===== */
.section-tag {
  display: inline-block; background: rgba(58,123,255,0.1);
  color: var(--electric); font-size: 13px; font-weight: 600;
  padding: 6px 18px; border-radius: 50px; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 16px;
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: clamp(32px, 4vw, 48px); color: var(--navy); margin-bottom: 16px; }
.section-header p { font-size: 17px; color: var(--gray); max-width: 600px; margin: 0 auto; }
.highlight { color: var(--electric); }

/* ===== HEADER / NAV ===== */
header {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  transition: var(--transition);
  padding: 0;
}
header.scrolled {
  background: var(--navy);
  box-shadow: 0 4px 30px rgba(10,22,40,0.3);
}
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
}
.logo {
  display: flex; align-items: center; gap: 12px;
}
.logo-icon {
  width: 44px; height: 44px; background: var(--gradient);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 24px; height: 24px; fill: white; }
.logo-text { display: flex; flex-direction: column; }
.logo-text span:first-child {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700; color: var(--white);
  line-height: 1;
}
.logo-text span:last-child { font-size: 11px; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; }

.nav-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-links a {
  color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 500;
  padding: 8px 16px; border-radius: 8px; transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white); background: rgba(255,255,255,0.1);
}
.nav-cta { margin-left: 12px; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px; transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; background: var(--navy);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(58,123,255,0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(240,165,0,0.1) 0%, transparent 50%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}
.hero-content {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 64px; position: relative; z-index: 2;
}
.hero-text .tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(240,165,0,0.15); border: 1px solid rgba(240,165,0,0.3);
  color: var(--gold-light); font-size: 13px; font-weight: 600;
  padding: 8px 20px; border-radius: 50px; margin-bottom: 28px;
  letter-spacing: 0.5px;
}
.hero-text h1 {
  font-size: clamp(40px, 5vw, 64px); color: var(--white);
  margin-bottom: 24px;
}
.hero-text h1 em { color: var(--gold); font-style: normal; }
.hero-text p { font-size: 17px; color: rgba(255,255,255,0.7); margin-bottom: 40px; max-width: 480px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 32px; margin-top: 56px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stat-item { text-align: center; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 900; color: var(--white); }
.stat-num span { color: var(--gold); }
.stat-label { font-size: 13px; color: var(--gray); margin-top: 4px; }

.hero-visual {
  position: relative;
}
.hero-card {
  background: var(--navy-mid); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 32px;
  position: relative; overflow: hidden;
}
.hero-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient);
}
.card-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.card-dot { width: 12px; height: 12px; border-radius: 50%; }
.card-dot:nth-child(1) { background: #ff5f57; }
.card-dot:nth-child(2) { background: #ffbd2e; }
.card-dot:nth-child(3) { background: #28c940; }
.service-pills {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px;
}
.pill {
  padding: 8px 16px; border-radius: 50px; font-size: 13px; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.8);
  transition: var(--transition);
}
.pill.active { background: var(--gradient); border-color: transparent; color: white; }
.tech-row {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.tech-badge {
  padding: 6px 14px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 6px;
  font-size: 12px; color: var(--gray); font-weight: 500;
}
.floating-badge {
  position: absolute; background: var(--white); border-radius: 12px;
  padding: 12px 16px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px;
  animation: float 3s ease-in-out infinite;
}
.floating-badge.badge-1 { top: -20px; right: -20px; }
.floating-badge.badge-2 { bottom: 40px; left: -30px; animation-delay: 1.5s; }
.fb-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.fb-text { display: flex; flex-direction: column; }
.fb-text strong { font-size: 14px; font-weight: 600; color: var(--navy); }
.fb-text span { font-size: 11px; color: var(--gray); }

@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* ===== ABOUT ===== */
.about { padding: 100px 0; background: var(--off-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-img-wrap {
  position: relative;
}
.about-img-main {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.about-img-main img { width: 100%; height: 420px; object-fit: cover; }
.about-img-secondary {
  position: absolute; bottom: -32px; right: -32px;
  width: 200px; border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow); border: 4px solid var(--white);
}
.about-img-secondary img { width: 100%; height: 150px; object-fit: cover; }
.experience-badge {
  position: absolute; top: 32px; left: -24px;
  background: var(--gradient); color: var(--white);
  padding: 16px 24px; border-radius: var(--radius-sm);
  text-align: center; box-shadow: var(--shadow-blue);
}
.experience-badge .num { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 900; }
.experience-badge .label { font-size: 12px; opacity: 0.85; margin-top: 2px; }

.about-text h2 { font-size: 40px; margin-bottom: 16px; }
.about-text p { color: var(--dark-gray); margin-bottom: 16px; font-size: 15.5px; }
.about-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0 40px;
}
.about-feature {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px; background: var(--white); border-radius: var(--radius-sm);
  border: 1px solid var(--light-gray);
}
.af-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(58,123,255,0.1); display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.af-text strong { font-size: 14px; font-weight: 600; display: block; color: var(--navy); }
.af-text span { font-size: 13px; color: var(--gray); }

/* ===== SERVICES ===== */
.services { padding: 100px 0; background: var(--white); }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
  background: var(--off-white); border-radius: var(--radius);
  padding: 36px 28px; border: 1px solid var(--light-gray);
  transition: var(--transition); cursor: pointer; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient); opacity: 0; transition: var(--transition);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-blue); border-color: transparent; }
.service-card:hover::before { opacity: 1; }
.service-card:hover * { color: white !important; }
.service-card:hover .sc-icon { background: rgba(255,255,255,0.2) !important; }

.sc-icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: rgba(58,123,255,0.1); display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 20px; transition: var(--transition);
  position: relative; z-index: 1;
}
.service-card h3 { font-size: 20px; margin-bottom: 12px; color: var(--navy); position: relative; z-index: 1; transition: var(--transition); }
.service-card p { font-size: 14px; color: var(--gray); line-height: 1.7; position: relative; z-index: 1; transition: var(--transition); }
.sc-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px; font-size: 13px; font-weight: 600;
  color: var(--electric); transition: var(--transition); position: relative; z-index: 1;
}

/* ===== WHY US ===== */
.why-us { padding: 100px 0; background: var(--navy); position: relative; overflow: hidden; }
.why-us::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(58,123,255,0.2) 0%, transparent 60%);
}
.why-us .section-header h2 { color: var(--white); }
.why-us .section-header p { color: rgba(255,255,255,0.6); }
.why-us .section-tag { background: rgba(240,165,0,0.2); color: var(--gold-light); }

.why-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; position: relative; z-index: 1;
}
.why-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 32px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.why-card:hover { background: rgba(58,123,255,0.15); border-color: rgba(58,123,255,0.4); transform: translateY(-4px); }
.why-card.featured {
  background: var(--gradient); border-color: transparent;
  grid-column: span 1;
}
.wc-num {
  font-family: 'Playfair Display', serif;
  font-size: 56px; font-weight: 900; color: rgba(255,255,255,0.07);
  position: absolute; top: 16px; right: 24px; line-height: 1;
}
.wc-icon { font-size: 36px; margin-bottom: 16px; }
.why-card h3 { font-size: 20px; color: var(--white); margin-bottom: 10px; }
.why-card p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.7; }

/* ===== PROCESS ===== */
.process { padding: 100px 0; background: var(--off-white); }
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative;
}
.process-steps::before {
  content: ''; position: absolute;
  top: 36px; left: 10%; right: 10%; height: 2px;
  background: var(--light-gray); z-index: 0;
}
.process-step { text-align: center; padding: 0 16px; position: relative; z-index: 1; }
.step-num {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--light-gray);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 700; color: var(--gray);
  transition: var(--transition);
}
.process-step.active .step-num {
  background: var(--gradient); border-color: transparent;
  color: white; box-shadow: var(--shadow-blue);
}
.process-step h4 { font-size: 17px; color: var(--navy); margin-bottom: 10px; }
.process-step p { font-size: 13.5px; color: var(--gray); }

/* ===== CONTACT ===== */
.contact { padding: 100px 0; background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.contact-info h2 { font-size: 38px; margin-bottom: 16px; }
.contact-info p { color: var(--dark-gray); margin-bottom: 40px; font-size: 15.5px; }
.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex; align-items: center; gap: 16px;
  padding: 20px; background: var(--off-white);
  border-radius: var(--radius-sm); border: 1px solid var(--light-gray);
}
.ci-icon {
  width: 48px; height: 48px; background: rgba(58,123,255,0.1);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.ci-text strong { display: block; font-size: 14px; font-weight: 600; color: var(--navy); }
.ci-text span { font-size: 14px; color: var(--gray); }

.contact-form {
  background: var(--off-white); border-radius: var(--radius);
  padding: 44px; border: 1px solid var(--light-gray);
}
.contact-form h3 { font-size: 26px; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 8px; letter-spacing: 0.3px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 13px 16px;
  background: var(--white); border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: var(--navy); outline: none;
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(58,123,255,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; justify-content: center; }

/* ===== FOOTER ===== */
footer { background: var(--navy); color: var(--white); }
.footer-main { padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.55); margin: 16px 0 24px; max-width: 280px; }
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: var(--transition);
}
.social-link:hover { background: var(--electric); transform: translateY(-3px); }

.footer-col h4 { font-size: 15px; font-weight: 600; margin-bottom: 20px; color: var(--white); font-family: 'DM Sans', sans-serif; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.55); transition: var(--transition); }
.footer-links a:hover { color: var(--gold-light); padding-left: 4px; }

.footer-newsletter p { font-size: 14px; color: rgba(255,255,255,0.55); margin-bottom: 16px; }
.newsletter-form { display: flex; gap: 0; }
.newsletter-form input {
  flex: 1; padding: 12px 16px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15); border-right: none;
  border-radius: 8px 0 0 8px; color: white; font-family: 'DM Sans', sans-serif;
  font-size: 14px; outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-form button {
  padding: 12px 18px; background: var(--gradient); border: none;
  border-radius: 0 8px 8px 0; color: white; cursor: pointer;
  font-size: 18px; transition: var(--transition);
}
.newsletter-form button:hover { opacity: 0.9; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 13px; color: rgba(255,255,255,0.4); transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--white); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--navy); padding: 160px 0 80px; text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(58,123,255,0.25) 0%, transparent 70%);
}
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); color: var(--white); position: relative; }
.page-hero p { font-size: 17px; color: rgba(255,255,255,0.65); margin-top: 16px; position: relative; }
.breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 16px; font-size: 14px; color: rgba(255,255,255,0.5);
  position: relative;
}
.breadcrumb a { color: var(--gold-light); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: flex;
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;

  height: 100dvh; /* ✅ FIX: dynamic viewport height */

  background: var(--navy-mid);
  z-index: 999;
  padding: 80px 32px 32px;

  flex-direction: column;
  gap: 8px;

  transition: 0.3s ease;
  box-shadow: -10px 0 40px rgba(0,0,0,0.3);

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  
}

.mobile-nav.open { right: 0; display: flex; }
.mobile-nav a { color: rgba(255,255,255,0.8); font-size: 17px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav a:hover { color: var(--gold-light); }
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 998; }
.overlay.active { display: block; }


.floating-contact {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Button style */
.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  text-decoration: none;

  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

/* Colors */
.float-btn.call {
  background: #1a4bbd;
}

.float-btn.whatsapp {
  background: #25D366;
}

/* Hover effect */
.float-btn:hover {
  transform: scale(1.1);
}


/* ===== ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-steps::before { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .about-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .about-img-secondary { display: none; }
  .experience-badge { left: 16px; }
}
