
:root {
    --primary: #206bc4;
    --primary-dark: #0a58ca;
    --primary-rgb: 32, 107, 196;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: #fff;
    color: #1a1a2e;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

.dark body, html.dark body { background: #12151d; color: #e4e6ef; }

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    width: 100%; 
    z-index: 99999; 
    display: flex; 
    transition: opacity 0.4s ease, visibility 0.4s ease;
    justify-content: center;
}
html.dark #preloader { background: rgba(15,17,23,0.5); }
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-ring {
    width: 48px; height: 48px;
    border: 3px solid rgba(32,107,196,0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== HEADER ===== */
header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: 72px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); 
    transition: all 0.3s ease;
}
html.dark header { 
    border-bottom-color: rgba(255,255,255,0.06);
}
header.scrolled {
    height: 64px;
    box-shadow: 0 4px 24px rgba(32,107,196,0.08);
}

.logo-icon {
    width: 40px; height: 40px;  
    flex-shrink: 0;
}
footer .logo-icon {
    width: 70px; height: 70px; 
}

nav a {
    font-size: 14px; font-weight: 500; letter-spacing: 0.3px;
    color: #444; transition: color 0.2s;
    position: relative; padding: 4px 0;
}
html.dark nav a { color: #aaa; }
nav a::after {
    content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
    height: 2px; background: var(--primary); transform: scaleX(0);
    transform-origin: center; transition: transform 0.25s;
    border-radius: 2px;
}
nav a:hover, nav a.active { color: var(--primary); }
nav a:hover::after, nav a.active::after { transform: scaleX(1); }

/* ===== HERO ===== */
.hero {
    min-height: 80vh;
    padding-top: 72px;
    display: flex; align-items: center;
    position: relative; overflow: hidden;
}

.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background: radial-gradient(ellipse 80% 60% at 60% 0%, rgba(32,107,196,0.07) 0%, transparent 70%),
                radial-gradient(ellipse 50% 40% at 10% 100%, rgba(32,107,196,0.05) 0%, transparent 60%);
}
html.dark .hero-bg {
    background: radial-gradient(ellipse 80% 60% at 60% 0%, rgba(32,107,196,0.12) 0%, transparent 70%),
                radial-gradient(ellipse 50% 40% at 10% 100%, rgba(32,107,196,0.08) 0%, transparent 60%);
}

.hero-grid {
    position: absolute; inset: 0; z-index: 0;
    background-image:
    linear-gradient(rgba(32,107,196,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32,107,196,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
}
html.dark .hero-grid {
    background-image:
    linear-gradient(rgba(32,107,196,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32,107,196,0.07) 1px, transparent 1px);
}

.badge-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(32,107,196,0.1); color: var(--primary);
    border: 1px solid rgba(32,107,196,0.2);
    border-radius: 100px; padding: 5px 14px;
    font-size: 13px; font-weight: 600; font-family: 'Syne', sans-serif;
}
html.dark .badge-pill {
    background: rgba(32,107,196,0.15); border-color: rgba(32,107,196,0.3);
}

/* ===== ANIMATED STAT BLOCKS ===== */
.stat-card {
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(32,107,196,0.12);
    border-radius: 16px; padding: 16px 20px;
    backdrop-filter: blur(8px);
}
html.dark .stat-card {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
}

/* ===== FLOATING VISUAL ===== */
.hero-visual {
    position: relative; width: 100%; max-width: 420px;
    margin: 0 auto;
}
.hero-card {
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(32,107,196,0.12);
    border-radius: 20px; padding: 24px;
    box-shadow: 0 20px 60px rgba(32,107,196,0.12);
}
html.dark .hero-card {
    background: rgba(20,24,36,0.95);
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.pulse-ring {
    position: absolute; border-radius: 50%;
    border: 2px solid rgba(32,107,196,0.3);
    animation: pulseRing 3s ease-in-out infinite;
}
@keyframes pulseRing {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.08); opacity: 0.2; }
}
.float-badge {
    position: absolute;
    background: white; border-radius: 12px; padding: 8px 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    font-size: 12px; font-weight: 600; white-space: nowrap;
    display: flex; align-items: center; gap: 6px;
    animation: floatY 4s ease-in-out infinite;
}
html.dark .float-badge { background: #1e2235; }
@keyframes floatY {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary);
    color: white !important; font-weight: 600; font-size: 14px;
    padding: 12px 24px; border-radius: 100px;
    transition: all 0.3s; border: none; cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(32,107,196,0.3);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(32,107,196,0.4); }
.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1.5px solid rgba(32,107,196,0.3); color: var(--primary) !important;
    font-weight: 600; font-size: 14px;
    padding: 11px 24px; border-radius: 100px;
    transition: all 0.3s; cursor: pointer; text-decoration: none;
    background: transparent;
}
.btn-outline:hover { background: rgba(32,107,196,0.06); border-color: var(--primary); transform: translateY(-2px); }

/* ===== SECTION TITLES ===== */
.section-label {
    font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    color: var(--primary); font-family: 'Syne', sans-serif;
}
.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800; line-height: 1.2; color: #111;
    margin: 8px 0 16px;
}
html.dark .section-title { color: #f0f2f8; }
.section-title em { color: var(--primary); font-style: normal; }
.underline-bar {
    width: 48px; height: 3px; background: var(--primary); border-radius: 2px;
}



/* Skeleton Loading Styles */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

.skeleton-title {
  height: 20px;
  margin-bottom: 10px;
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  width: 80%;
}

.skeleton-date {
  height: 12px;
  width: 60%;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.placeholder .blog-post-image-wrapper {
  height: 200px; 
  background: rgba(0, 0, 0, 0.2);
}

/* Blog Post Card Styles */
 
.blog-post-card {
  display: block;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none; 
}

html.dark .blog-post-card { 
    background: #141828;
    border-color: rgba(255, 255, 255, 0.06);
}

.blog-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.blog-post-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.blog-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-post-card:hover .blog-post-image {
  transform: scale(1.05);
}

.blog-post-content {
  padding: 20px;
}

.blog-post-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html.dark .blog-post-title { 
  color: #eee;
}

.blog-post-date {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

/* ===== SERVICES ===== */
.service-card, .general-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 20px; padding: 28px;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    height: 100%; cursor: default;
    position: relative; overflow: hidden;
}
html.dark .service-card, html.dark .general-card {
    background: #141828;
    border-color: rgba(255,255,255,0.06);
}
.service-card::before {
    content: ''; position: absolute; inset: 0; border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), #3a8fe8);
    opacity: 0; transition: opacity 0.35s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(32,107,196,0.18); color: #fff; }
.service-card:hover::before { opacity: 1; }
.service-card:hover .sc-icon, .service-card:hover .sc-title,
.service-card:hover .sc-desc, .service-card:hover .sc-link { color: #fff; }
.service-card:hover .sc-icon-wrap { background: rgba(255,255,255,0.2); }
.service-card > * { position: relative; z-index: 1; }

.sc-icon-wrap {
    width: 52px; height: 52px; border-radius: 14px;
    background: rgba(32,107,196,0.1);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px; transition: background 0.3s;
}
.sc-badge-wrap {
    border-radius: 14px;
    padding: 4px 10px;
    width: max-content;
    font-size: 11px;
    background: rgba(32,107,196,0.1);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px; transition: background 0.3s;
}
.sc-icon { font-size: 22px; color: var(--primary); transition: color 0.3s; }
.sc-title { font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 700; margin-bottom: 8px; transition: color 0.3s; }
html.dark .sc-title { color: #e4e6ef; }
.sc-desc { font-size: 13.5px; color: #666; line-height: 1.6; transition: color 0.3s; margin-bottom: 16px; }
html.dark .sc-desc { color: #eee; }
.sc-link { font-size: 13px; font-weight: 600; color: var(--primary); transition: color 0.3s; text-decoration: none; display: flex; align-items: center; gap: 6px; }

/* ===== WHY CHOOSE ===== */
.why-card {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 20px; border-radius: 16px;
    background: rgba(32,107,196,0.03); border: 1px solid rgba(32,107,196,0.08);
    transition: all 0.3s;
}
html.dark .why-card { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06); }
.why-card:hover { background: rgba(32,107,196,0.07); transform: translateX(4px); }

/* ===== CLIENTS ===== */
#marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 30px 0;
  border-radius: 20px;
}

#marquee {
  display: flex;
  gap: 40px;
  align-items: center; 
  align-content: center;
  width: max-content;
  animation: scrollMarquee 25s linear infinite;
}

/* Smooth infinite scroll */
@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 6.25rem;
  width: 6.25rem;
  object-fit: cover;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;

  opacity: 0.5;
  filter: grayscale(100%);
  transition: all 0.4s ease; 
  cursor: pointer;

  transform: perspective(500px) translateZ(0);
}

/* Magical hover ✨ */
.client-logo:hover {
  opacity: 1; 
  filter: grayscale(0%);
  transform: perspective(500px) translateZ(15px) scale(1.1); 
}

/* Pause animation on hover */
#marquee-wrapper:hover #marquee {
  animation-play-state: paused;
}
#marquee-wrapper::before,
#marquee-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

#marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #ffffff6b, transparent);
} 
#marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #ffffff67, transparent);
}

html.dark #marquee-wrapper::before {
  background: linear-gradient(to right, #1a1a1a71, transparent);
}
html.dark #marquee-wrapper::after {
  background: linear-gradient(to left, #1a1a1a56, transparent);   
} 

 
/* ===== CONTACT ===== */
.form-input {
    width: 100%; padding: 12px 16px; border-radius: 12px;
    border: .5px solid rgba(0,0,0,0.05);
    background: #f8faff; font-size: 14px; font-family: 'DM Sans', sans-serif;
    transition: all 0.25s; outline: none; color: #111;
}
html.dark .form-input {
    background: rgba(255,255,255,0.05); color: #949494;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(32,107,196,0.1); background: #fff; }
html.dark .form-input:focus { background: rgba(255,255,255,0.08); }
.form-input::placeholder { color: #aaa; }

textarea.form-input { resize: none; }

/* ===== CONTACT INFO CARD ===== */
.contact-info-card {
    background: linear-gradient(135deg, var(--primary) 0%, #1a5ab0 100%);
    border-radius: 20px; padding: 36px 20px;
    color: white; position: relative; overflow: hidden;
}
.contact-info-card::before {
    content: ''; position: absolute; top: -40px; right: -40px;
    width: 160px; height: 160px; border-radius: 50%;
    background: rgba(255,255,255,0.07);
}

/* ===== FOOTER ===== */
.main-footer-card {
    background: #0d1222;
    color: rgba(255,255,255,0.7);
    border-radius: 20px; padding: 32px; 
}
html.dark .main-footer-card { background: #080b12; }
footer a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; font-size: 14px; }
footer a:hover { color: #fff; }

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    width: 40px; height: 40px; 
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.25s; color: var(--primary);
    font-size: 1.4rem;
} 

/* ===== MOBILE NAV ===== */
.mobile-nav {
    position: fixed; inset: 0; z-index: 999;
    background: rgba(255,255,255,0.98);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 32px; transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.23,1,0.32,1);
}
html.dark .mobile-nav { background: rgba(10,12,20,0.98); }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700; color: #111; }
html.dark .mobile-nav a { color: #e4e6ef; }

/* ===== BACK TO TOP ===== */
#back-top {
    position: fixed; bottom: 24px; right: 24px; z-index: 500;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--primary); color: white; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(32,107,196,0.4);
    opacity: 0; transform: translateY(12px); transition: all 0.3s; font-size: 16px;
}
#back-top.visible { opacity: 1; transform: translateY(0); }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
    position: fixed; bottom: 80px; right: 24px; z-index: 500;
    background: #25D366; color: white; border-radius: 50px;
    padding: 10px 18px; display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; text-decoration: none;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: all 0.3s;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(37,211,102,0.5); color: white; }

/* ===== HERO TITLE ===== */
.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800; color: #0d1222;
}
html.dark .hero-title { color: #f0f2f8; } 

.contact-card { background: white; border: 1px solid rgba(0,0,0,0.06); border-radius: 20px; padding: 36px 20px; }
html.dark .contact-card { background: #141828; border-color: rgba(255,255,255,0.06); }  

/* ===== NOTIFICATION TOAST ===== */
#toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
    background: #111; color: white; padding: 12px 24px; border-radius: 100px;
    font-size: 14px; font-weight: 500; z-index: 9999; transition: transform 0.35s ease;
    white-space: nowrap;
}
#toast.show { transform: translateX(-50%) translateY(0); }

html.dark { color-scheme: dark; }

.rotate-y{
  animation: animeRotateY 6s linear infinite; 
}

@keyframes animeRotateY {
  0% { transform: perspective(600px) rotateY(0deg); }
  100% { transform: perspective(600px) rotateY(360deg); }
}

.delay-50 { animation-delay: .05s; }
.delay-100 { animation-delay: .1s; }
.delay-150 { animation-delay: .15s; }
.delay-200 { animation-delay: .2s; }
.delay-300 { animation-delay: .3s; }
.delay-400 { animation-delay: .4s; }
.delay-500 { animation-delay: .5s; }
.delay-1500 { animation-delay: 1.5s; }

.hero-copy { line-height: 1.7; margin: 20px 0 32px; max-width: 480px; font-size: 16px; }
.hero-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.hero-card-header .logo-icon { width: 40px; height: 40px; font-size: 20px; }
.hero-card-header .logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.hero-card-header-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px; }
.hero-card-header-subtitle { font-size: 12px; color: #888; }
.hero-status-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }
.hero-chart { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin-bottom: 16px; }
.hero-chart-bar { flex: 1; border-radius: 4px 4px 0 0; }
.hero-chart-bar.bar-1 { background: rgba(32,107,196,0.15); height: 40%; }
.hero-chart-bar.bar-2 { background: rgba(32,107,196,0.25); height: 65%; }
.hero-chart-bar.bar-3 { background: rgba(32,107,196,0.4); height: 50%; }
.hero-chart-bar.bar-4 { background: var(--primary); height: 90%; }
.hero-chart-bar.bar-5 { background: rgba(32,107,196,0.3); height: 70%; }
.hero-chart-bar.bar-6 { background: rgba(32,107,196,0.5); height: 80%; }
.hero-chart-bar.bar-7 { background: var(--primary); height: 95%; }
.hero-progress { background: rgba(32,107,196,0.08); border-radius: 100px; height: 8px; overflow: hidden; }
.hero-progress-bar { background: linear-gradient(90deg, var(--primary), #3a8fe8); width: 88%; height: 100%; border-radius: 100px; }
.hero-progress-meta { display: flex; justify-content: space-between; margin-top: 6px; }
.hero-badge-left { bottom: -20px; left: -16px; animation-delay: .5s; z-index: 5; }
.hero-badge-right { top: 20px; right: -24px; animation-delay: 1.5s; z-index: 5; }
.pulse-ring-large { width: 340px; height: 340px; top: 50%; left: 50%; margin: -170px 0 0 -170px; }
.pulse-ring-medium { width: 280px; height: 280px; top: 50%; left: 50%; margin: -140px 0 0 -140px; animation-delay: 1s; }
.contact-info-row { display: flex; align-items: center; gap: 14px; }
.contact-detail-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-detail-title { font-size: 11px; opacity: .7; margin-bottom: 2px; }
.contact-detail-value { color: white; font-weight: 600; font-size: 14px; }
.contact-info-card-inner { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15); position: relative; z-index: 1; }
.contact-socials { display: flex; gap: 10px; }
.contact-social-link { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; color: white; transition: background 0.2s; }
.contact-social-link:hover { background: rgba(255,255,255,0.25); }
.cta-strip { background: var(--primary); padding: 48px 0; border-radius: 20px; box-shadow: 0 12px 32px rgba(32,107,196,0.15); }
.cta-strip p { opacity: .85; margin-bottom: 24px; font-size: 15px; }
.cta-btn { display: inline-flex; align-items: center; gap: 8px; background: white; color: var(--primary); font-weight: 700; font-size: 14px; padding: 12px 28px; border-radius: 100px; text-decoration: none; transition: all .3s; }
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
#clients { padding: 72px 0; }
#marquee { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; align-items: center; }