/* ============================================================
   APPINSTAN PROFILE — Frontend CSS
   Premium Corporate Enterprise Design
   ============================================================ */

:root {
  --navy: #0d1b2a;
  --navy-light: #1a2e45;
  --blue: #1565c0;
  --blue-light: #1e88e5;
  --blue-dark: #0d47a1;
  --teal: #00897b;
  --gold: #f59e0b;
  --gray: #64748b;
  --gray-light: #f8fafc;
  --white: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all .3s cubic-bezier(.4,0,.2,1);
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

/* BASE */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }

/* TYPOGRAPHY */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; color: var(--navy); }
.section-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; color: var(--blue); margin-bottom: .75rem; display: block; }
.section-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; color: var(--navy); margin-bottom: 1rem; }
.section-subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 640px; margin: 0 auto; }
.section-header { text-align: center; }
.py-section { padding: 5rem 0; }
.min-vh-section { min-height: 85vh; }

/* ---- HEADER ---- */
.site-header { background: rgba(13,27,42,.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: .75rem 0; transition: var(--transition); border-bottom: 1px solid rgba(255,255,255,.05); z-index: 1000; }
.site-header.scrolled { padding: .5rem 0; box-shadow: 0 4px 20px rgba(0,0,0,.3); }
.navbar-brand { display: flex; align-items: center; gap: .75rem; }
.logo-img { height: 44px; width: auto; }
.logo-text { font-size: 1.25rem; font-weight: 800; color: #fff; letter-spacing: -.5px; }
.nav-link { color: rgba(255,255,255,.85) !important; font-weight: 500; font-size: .9rem; padding: .5rem .75rem !important; border-radius: 8px; transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: #fff !important; background: rgba(255,255,255,.1); }
.btn-cta { background: linear-gradient(135deg,var(--blue),var(--blue-dark)); color: #fff !important; font-weight: 600 !important; }
.btn-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(21,101,192,.4); }

/* ---- HERO ---- */
.hero-section { background: linear-gradient(135deg, var(--navy) 0%, #1a237e 45%, #0d47a1 100%); padding: 7rem 0 5rem; position: relative; overflow: hidden; min-height: 90vh; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-badge { display: inline-flex; align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.9); font-size: .8rem; font-weight: 600; padding: .4rem 1rem; border-radius: 50px; backdrop-filter: blur(10px); }
.hero-title { font-size: clamp(2rem,5vw,3.25rem); font-weight: 900; color: #fff; line-height: 1.15; margin-bottom: 1.25rem; }
.hero-title span { color: var(--gold); }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,.8); line-height: 1.7; margin-bottom: 0; max-width: 580px; }
.hero-ctas { margin-top: 2rem; }
.hero-trust { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; }
.trust-badge { display: inline-flex; align-items: center; font-size: .85rem; color: rgba(255,255,255,.85); background: rgba(255,255,255,.07); padding: .4rem .85rem; border-radius: 50px; }
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; }
.hero-wave svg { width: 100%; display: block; }
.hero-image-wrapper { position: relative; }
.hero-image { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ---- BUTTONS ---- */
.btn { border-radius: 10px; font-weight: 600; transition: var(--transition); padding: .6rem 1.5rem; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); border: none; box-shadow: 0 4px 15px rgba(21,101,192,.3); }
.btn-primary:hover { box-shadow: 0 8px 25px rgba(21,101,192,.45); }
.btn-whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); border: none; color: #fff; box-shadow: 0 4px 15px rgba(37,211,102,.3); }
.btn-whatsapp:hover { box-shadow: 0 8px 25px rgba(37,211,102,.45); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.6); }

/* ---- STATS SECTION ---- */
.stats-section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat-card { padding: 1.5rem; position: relative; }
.stat-number { font-size: 2.75rem; font-weight: 900; color: var(--blue); line-height: 1; margin-bottom: .25rem; }
.stat-label { font-size: .85rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* ---- SERVICE CARDS ---- */
.service-card { background: #fff; border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--border); transition: var(--transition); position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--blue), var(--teal)); transform: scaleX(0); transform-origin: left; transition: var(--transition); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 60px; height: 60px; background: linear-gradient(135deg, rgba(21,101,192,.1), rgba(21,101,192,.05)); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; transition: var(--transition); }
.service-icon i { font-size: 1.6rem; color: var(--blue); transition: var(--transition); }
.service-card:hover .service-icon { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.service-card:hover .service-icon i { color: #fff; }
.service-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .75rem; color: var(--navy); }
.service-desc { color: var(--text-muted); font-size: .9rem; line-height: 1.65; margin-bottom: 1rem; }
.service-link { color: var(--blue); font-weight: 600; font-size: .875rem; display: inline-flex; align-items: center; gap: .25rem; transition: var(--transition); }
.service-link:hover { gap: .5rem; }

/* ---- WHY SECTION ---- */
.section-why { background: #fff; }
.why-features { display: flex; flex-direction: column; gap: 1.25rem; }
.why-feature { display: flex; align-items: flex-start; gap: 1rem; }
.why-icon { width: 44px; height: 44px; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.why-icon i { font-size: 1.1rem; color: #fff; }
.why-feature h6 { font-weight: 700; margin-bottom: .15rem; font-size: .95rem; }
.why-stats-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.25rem; }
.why-stat-box { border-radius: var(--radius-lg); padding: 2.5rem 2rem; text-align: center; transition: var(--transition); }
.why-stat-box:hover { transform: translateY(-4px); }
.why-stat-box.primary { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.why-stat-box.primary .stat-num { color: #fff; }
.why-stat-box.primary .stat-txt { color: rgba(255,255,255,.8); }
.why-stat-box.light { background: var(--gray-light); border: 1px solid var(--border); }
.why-stat-box.dark { background: var(--navy); }
.why-stat-box.dark .stat-num { color: #fff; }
.why-stat-box.dark .stat-txt { color: rgba(255,255,255,.7); }
.stat-num { font-size: 2.5rem; font-weight: 900; color: var(--blue); line-height: 1.1; }
.stat-txt { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-top: .25rem; }

/* ---- PORTFOLIO CARDS ---- */
.portfolio-card { display: block; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--border); transition: var(--transition); }
.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.portfolio-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--gray-light); }
.portfolio-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.portfolio-card:hover .portfolio-img img { transform: scale(1.05); }
.portfolio-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 3rem; }
.portfolio-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(13,27,42,.8), rgba(21,101,192,.6)); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); }
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-info { padding: 1.25rem 1.5rem; }
.portfolio-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.portfolio-client { font-size: .78rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .5px; }
.portfolio-year { font-size: .78rem; color: var(--text-muted); }
.portfolio-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.portfolio-desc { font-size: .85rem; color: var(--text-muted); margin-bottom: 0; }

/* ---- CLIENTS SLIDER ---- */
.clients-slider { overflow: hidden; position: relative; }
.clients-track { display: flex; gap: 3rem; animation: infiniteScroll 25s linear infinite; width: max-content; align-items: center; }
.clients-track:hover { animation-play-state: paused; }
.client-item { flex-shrink: 0; display: flex; align-items: center; justify-content: center; height: 60px; width: 160px; }
.client-item img { max-height: 50px; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: var(--transition); }
.client-item:hover img { filter: none; opacity: 1; }
.client-name-text { font-weight: 700; color: var(--gray); font-size: .9rem; white-space: nowrap; }
@keyframes infiniteScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- TESTIMONIALS ---- */
.testimonial-card { background: #fff; border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--border); box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; }
.testi-stars { margin-bottom: 1rem; }
.testi-stars i { font-size: .9rem; }
.testi-content { font-style: italic; color: var(--text-muted); line-height: 1.75; flex-grow: 1; margin-bottom: 1.5rem; font-size: .95rem; }
.testi-author { display: flex; align-items: center; gap: 1rem; }
.testi-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--blue); }
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initials { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .85rem; }
.testi-name { font-weight: 700; font-size: .95rem; color: var(--navy); }
.testi-role { font-size: .8rem; color: var(--text-muted); }

/* ---- BLOG CARDS ---- */
.blog-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: var(--transition); display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.blog-img-link { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--gray-light); }
.blog-img-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-img-link img { transform: scale(1.05); }
.blog-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #ddd; font-size: 2rem; }
.blog-body { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.blog-meta { display: flex; gap: 1rem; font-size: .78rem; color: var(--text-muted); margin-bottom: .75rem; }
.blog-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .75rem; line-height: 1.45; }
.blog-title a:hover { color: var(--blue); }
.blog-excerpt { font-size: .875rem; color: var(--text-muted); line-height: 1.65; flex-grow: 1; margin-bottom: 1rem; }
.read-more-link { color: var(--blue); font-weight: 600; font-size: .85rem; display: inline-flex; align-items: center; gap: .25rem; transition: var(--transition); }
.read-more-link:hover { gap: .5rem; }

/* ---- CTA SECTION ---- */
.section-cta { background: linear-gradient(135deg, var(--navy), #1a237e, var(--blue-dark)); position: relative; overflow: hidden; }
.cta-box { position: relative; z-index: 1; }
.cta-title { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 800; color: #fff; margin-bottom: 1rem; }
.cta-subtitle { color: rgba(255,255,255,.8); font-size: 1rem; max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* ---- FOOTER ---- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); }
.footer-top { padding: 4rem 0 3rem; }
.footer-company-name { font-size: 1.4rem; font-weight: 800; color: #fff; }
.footer-desc { font-size: .875rem; color: rgba(255,255,255,.65); line-height: 1.7; margin-top: .75rem; }
.footer-logo { max-height: 45px; filter: brightness(0) invert(1); }
.footer-social { display: flex; gap: .5rem; }
.social-link { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); transition: var(--transition); font-size: 1rem; }
.social-link:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.footer-heading { font-size: .8rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,.5); font-weight: 700; margin-bottom: 1.25rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .875rem; transition: var(--transition); }
.footer-links a:hover { color: #fff; padding-left: .25rem; }
.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-list li { display: flex; gap: .75rem; margin-bottom: .75rem; font-size: .875rem; color: rgba(255,255,255,.65); align-items: flex-start; }
.footer-contact-list i { color: var(--blue-light); font-size: 1rem; flex-shrink: 0; margin-top: .15rem; }
.footer-contact-list a { color: rgba(255,255,255,.65); transition: var(--transition); }
.footer-contact-list a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.25rem 0; }
.footer-bottom p { color: rgba(255,255,255,.5); }

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float { position: fixed; bottom: 2rem; right: 2rem; width: 58px; height: 58px; background: linear-gradient(135deg, #25d366, #128c7e); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.6rem; box-shadow: 0 6px 25px rgba(37,211,102,.5); z-index: 999; transition: var(--transition); animation: waPulse 2.5s infinite; }
.whatsapp-float:hover { color: #fff; transform: scale(1.15); box-shadow: 0 8px 30px rgba(37,211,102,.65); animation: none; }
.wa-tooltip { position: absolute; right: 70px; background: var(--navy); color: #fff; font-size: .8rem; padding: .4rem .8rem; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: var(--transition); }
.whatsapp-float:hover .wa-tooltip { opacity: 1; }
@keyframes waPulse { 0%,100% { box-shadow: 0 6px 25px rgba(37,211,102,.5); } 50% { box-shadow: 0 6px 35px rgba(37,211,102,.8), 0 0 0 8px rgba(37,211,102,.15); } }

/* ---- BACK TO TOP ---- */
.back-to-top { position: fixed; bottom: 5.5rem; right: 2rem; width: 40px; height: 40px; background: var(--blue); border: none; border-radius: 10px; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; pointer-events: none; transition: var(--transition); z-index: 998; font-size: 1rem; }
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--blue-dark); transform: translateY(-3px); }

/* ---- BREADCRUMB ---- */
.page-breadcrumb { background: var(--gray-light); border-bottom: 1px solid var(--border); padding: .85rem 0; }
.breadcrumb { margin-bottom: 0; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }
.breadcrumb-item a { color: var(--blue); }

/* ---- PAGE HEADERS ---- */
.inner-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--blue-dark) 100%); padding: 5rem 0 4rem; text-align: center; }
.inner-hero h1 { color: #fff; font-size: clamp(1.75rem,4vw,2.5rem); }
.inner-hero p { color: rgba(255,255,255,.7); font-size: 1rem; margin-bottom: 0; }

/* ---- DETAIL PAGES ---- */
.content-body h2,h3,h4 { color: var(--navy); margin-top: 2rem; margin-bottom: 1rem; }
.content-body p { line-height: 1.8; color: var(--text-muted); }
.content-body ul, .content-body ol { padding-left: 1.5rem; }
.content-body ul li, .content-body ol li { margin-bottom: .5rem; color: var(--text-muted); }

/* ---- CONTACT FORM ---- */
.contact-card { background: #fff; border-radius: var(--radius-lg); padding: 2.5rem; border: 1px solid var(--border); box-shadow: var(--shadow); }
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-info-icon { width: 46px; height: 46px; background: linear-gradient(135deg, rgba(21,101,192,.1), rgba(21,101,192,.05)); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-icon i { color: var(--blue); font-size: 1.2rem; }

/* ---- CAREER ---- */
.career-card { background: #fff; border-radius: var(--radius-lg); padding: 1.75rem 2rem; border: 1px solid var(--border); transition: var(--transition); display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.career-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.career-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .5rem; font-size: .8rem; color: var(--text-muted); }
.career-meta i { color: var(--blue); }

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
  .py-section { padding: 3.5rem 0; }
  .hero-section { padding: 5rem 0 3rem; min-height: auto; }
  .hero-title { font-size: 2rem; }
  .why-stats-grid { grid-template-columns: repeat(2,1fr); }
  .career-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 576px) {
  .py-section { padding: 2.5rem 0; }
  .why-stats-grid { grid-template-columns: repeat(2,1fr); }
  .footer-top { padding: 2.5rem 0 2rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; }
  .stat-number { font-size: 2.25rem; }
}

/* ---- AOS (already has its CSS but we customize transitions) ---- */
[data-aos] { transition-duration: 0.6s; }
