/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1e293b;
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #0f4c81;
  --primary-dark: #0a3660;
  --primary-light: #1a6bb5;
  --accent: #00b4d8;
  --accent-light: #48cae4;
  --dark: #0f172a;
  --gray-900: #1e293b;
  --gray-700: #334155;
  --gray-500: #64748b;
  --gray-300: #cbd5e1;
  --gray-100: #f1f5f9;
  --white: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== UTILITY ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-title { font-size: 2.2rem; font-weight: 800; text-align: center; margin-bottom: 12px; color: var(--dark); }
.section-subtitle { text-align: center; color: var(--gray-500); font-size: 1.05rem; max-width: 600px; margin: 0 auto 48px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px;
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: none; transition: var(--transition);
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.badge { display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; }
.badge-accent { background: #e0f7fa; color: var(--accent); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.3rem; font-weight: 800; color: var(--primary);
}
.nav-logo .logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--gray-700);
  transition: var(--transition); position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-cta {
  padding: 10px 24px !important; font-size: 0.88rem !important;
  background: var(--primary); color: var(--white) !important;
  border-radius: 50px; font-weight: 600;
}
.nav-cta:hover { background: var(--primary-dark) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.hamburger span { width: 24px; height: 2px; background: var(--gray-700); transition: var(--transition); }

/* ===== BLOG HERO ===== */
.blog-hero {
  background: linear-gradient(135deg, #0a1628 0%, #0f2847 40%, #0f4c81 100%);
  padding: 140px 0 80px; text-align: center; color: var(--white);
}
.blog-hero h1 { font-size: 2.6rem; font-weight: 800; margin-bottom: 12px; }
.blog-hero p { font-size: 1.1rem; opacity: 0.8; max-width: 600px; margin: 0 auto; }

/* ===== BLOG TABS ===== */
.blog-tabs {
  display: flex; gap: 12px; justify-content: center; margin-bottom: 40px;
}
.tab-btn {
  padding: 12px 28px; border-radius: 50px; border: 2px solid var(--gray-300);
  background: var(--white); font-size: 0.95rem; font-weight: 600;
  color: var(--gray-700); cursor: pointer; transition: var(--transition);
}
.tab-btn.active, .tab-btn:hover {
  background: var(--primary); color: var(--white); border-color: var(--primary);
}

/* ===== BLOG GRID ===== */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.blog-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition);
  border: 1px solid var(--gray-300);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.blog-image {
  height: 180px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.blog-image-icon { font-size: 3rem; opacity: 0.9; }
.blog-cat {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,0.2); backdrop-filter: blur(10px);
  color: var(--white); padding: 4px 12px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 600;
}
.blog-content { padding: 24px; }
.blog-meta {
  font-size: 0.78rem; color: var(--gray-500); margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.blog-content h3 {
  font-size: 1rem; font-weight: 700; color: var(--dark);
  margin-bottom: 8px; line-height: 1.4;
}
.blog-content p {
  font-size: 0.85rem; color: var(--gray-500); line-height: 1.6; margin-bottom: 14px;
}
.blog-readmore {
  font-size: 0.85rem; font-weight: 600; color: var(--primary);
  display: inline-flex; align-items: center; gap: 4px;
  transition: var(--transition);
}
.blog-card:hover .blog-readmore { gap: 8px; }

/* ===== CONTACT SECTION ===== */
.contact-section { background: var(--gray-100); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.contact-info h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.contact-info > p { color: var(--gray-500); margin-bottom: 32px; line-height: 1.7; }
.contact-methods { display: flex; flex-direction: column; gap: 20px; }
.contact-method { display: flex; align-items: center; gap: 16px; }
.contact-method .icon {
  width: 48px; height: 48px; border-radius: 12px; background: #e0f2fe;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.contact-method h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.contact-method p { font-size: 0.85rem; color: var(--gray-500); }
.contact-form {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-md);
}
.contact-form h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 6px; color: var(--gray-700);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--gray-300);
  border-radius: 10px; font-size: 0.9rem; font-family: inherit;
  transition: var(--transition); background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,180,216,0.15);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit {
  width: 100%; padding: 14px; background: var(--primary);
  color: var(--white); border: none; border-radius: 10px;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: var(--transition); font-family: inherit;
}
.form-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ===== FOOTER ===== */
.footer { background: #0a0e1a; color: rgba(255,255,255,0.6); padding: 60px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px;
}
.footer-brand h3 { color: var(--white); font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); color: var(--white); }
.footer-col h4 { color: var(--white); font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.85rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0; text-align: center; font-size: 0.8rem;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--white); box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition); cursor: pointer; border: none;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.5); }
.whatsapp-tooltip {
  position: absolute; right: 72px; bottom: 12px;
  background: var(--white); padding: 8px 16px; border-radius: 8px;
  font-size: 0.82rem; font-weight: 600; color: var(--dark);
  box-shadow: var(--shadow-md); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--gray-300);
  padding: 16px 24px; z-index: 999;
  box-shadow: var(--shadow-md);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 12px 0; font-size: 0.95rem;
  font-weight: 500; color: var(--gray-700); border-bottom: 1px solid var(--gray-100);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .nav-cta {
  display: inline-block; margin-top: 8px; padding: 10px 24px !important;
  background: var(--primary); color: var(--white) !important;
  border-radius: 50px; text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .blog-hero h1 { font-size: 1.8rem; }
  .section { padding: 60px 0; }
  .section-title { font-size: 1.7rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
