/* Allied Industrial Park - Premium Flat UI Enhancements v2 */
:root {
  --brand-blue: #0754b7;
  --brand-blue-2: #083775;
  --brand-red: #f0182d;
  --brand-red-2: #c60819;
  --brand-ink: #071527;
  --brand-ink-2: #13243a;
  --brand-muted: #65758b;
  --brand-soft: #f4f8ff;
  --brand-line: rgba(7, 84, 183, .12);
  --glass: rgba(255,255,255,.78);
  --shadow-xl: 0 30px 90px rgba(8, 28, 61, .18);
  --shadow-lg: 0 20px 55px rgba(8, 28, 61, .13);
  --shadow-md: 0 12px 34px rgba(8, 28, 61, .10);
  --radius-xl: 34px;
  --radius-lg: 24px;
}
* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body {
  background:
    radial-gradient(circle at 5% 3%, rgba(240,24,45,.12), transparent 30vw),
    radial-gradient(circle at 95% 0%, rgba(7,84,183,.15), transparent 34vw),
    linear-gradient(180deg, #ffffff 0%, #f6f9ff 40%, #ffffff 100%) !important;
  color: var(--brand-ink-2) !important;
}
body::before, body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .22;
  pointer-events: none;
  animation: aipFloatBlob 14s ease-in-out infinite alternate;
}
body::before { left: -140px; top: 18vh; background: var(--brand-red); }
body::after { right: -150px; bottom: 5vh; background: var(--brand-blue); animation-delay: -5s; }
@keyframes aipFloatBlob { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(50px,-35px,0) scale(1.12); } }
::selection { background: rgba(240, 24, 45, .16); color: var(--brand-ink); }
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%; height: 3px;
  z-index: 100000;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-blue));
  box-shadow: 0 0 22px rgba(240,24,45,.45);
}
.header {
  position: sticky !important;
  top: 0;
  z-index: 9999;
  background: rgba(255,255,255,.80) !important;
  border-bottom: 1px solid rgba(7,84,183,.10) !important;
  box-shadow: 0 12px 40px rgba(8,28,61,.06) !important;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.logo img, .footer-logo img { filter: drop-shadow(0 10px 20px rgba(7,84,183,.14)); }
.nav-links > li > a {
  position: relative;
  letter-spacing: .04em;
  transition: color .25s ease, transform .25s ease;
}
.nav-links > li > a::before {
  content: "";
  position: absolute;
  left: 50%; bottom: -12px;
  width: 7px; height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-blue));
  transform: translateX(-50%) scale(0);
  transition: transform .25s ease;
}
.nav-links > li > a:hover { color: var(--brand-red) !important; transform: translateY(-1px); }
.nav-links > li > a:hover::before { transform: translateX(-50%) scale(1); }
.dropdown-menu {
  border: 1px solid rgba(7,84,183,.10) !important;
  box-shadow: var(--shadow-lg) !important;
  border-radius: 18px !important;
  overflow: hidden;
}
.social-icons a, .footer-socials a {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-blue)) !important;
  box-shadow: 0 12px 26px rgba(7,84,183,.20) !important;
  transition: transform .3s ease, box-shadow .3s ease !important;
}
.social-icons a:hover, .footer-socials a:hover { transform: translateY(-4px) rotate(-6deg); box-shadow: 0 18px 34px rgba(240,24,45,.25) !important; }

/* Home hero */
.page-home .hero-section { padding: 28px 0 72px !important; }
.page-home .hero-image-card {
  position: relative;
  isolation: isolate;
  min-height: clamp(560px, 64vw, 720px);
  border-radius: var(--radius-xl) !important;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: var(--shadow-xl) !important;
  background: #071527;
}
.page-home .hero-image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7,21,39,.88) 0%, rgba(7,21,39,.58) 42%, rgba(7,21,39,.08) 100%),
    radial-gradient(circle at 80% 20%, rgba(240,24,45,.25), transparent 22%),
    linear-gradient(180deg, rgba(7,84,183,.05), rgba(7,21,39,.28));
}
.page-home .hero-image-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 26px;
  pointer-events: none;
}
.page-home .hero-image-card > img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  animation: aipHeroZoom 13s ease-in-out infinite alternate;
}
@keyframes aipHeroZoom { from { transform: scale(1.02); } to { transform: scale(1.09) translateX(1.5%); } }
.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 760px;
  padding: clamp(46px, 7vw, 84px);
  color: #fff;
  animation: aipFadeUp .8s ease both;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-copy h1 {
  margin: 0 0 18px;
  max-width: 720px;
  font-size: clamp(42px, 6.6vw, 82px);
  line-height: .95;
  letter-spacing: -.065em;
  color: #fff;
  text-shadow: 0 20px 70px rgba(0,0,0,.35);
}
.hero-copy p {
  max-width: 620px;
  margin: 0 0 26px;
  color: rgba(255,255,255,.86);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.7;
}
.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 28px;
}
.hero-metrics span {
  min-width: 142px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.20);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-metrics strong { display: block; font-size: 22px; line-height: 1; color: #fff; }
.hero-metrics small { display: block; margin-top: 6px; color: rgba(255,255,255,.74); font-size: 12px; }
.hero-actions-premium { display: flex; gap: 14px; flex-wrap: wrap; }
.premium-btn, .project-btn, .read-more-btn, .cta-contact-btn, .footer-cta-btn, .news-btn, .submit-btn, .contact-form .btn, .btn-primary, .btn-home {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 999px !important;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease !important;
}
.premium-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  font-weight: 900;
  text-decoration: none;
}
.premium-btn.primary, .project-btn, .read-more-btn, .cta-contact-btn, .footer-cta-btn, .news-btn, .submit-btn, .contact-form .btn, .btn-primary, .btn-home {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-blue)) !important;
  color: #fff !important;
  box-shadow: 0 18px 42px rgba(240,24,45,.22) !important;
  border: 0 !important;
}
.premium-btn.ghost { color: #fff; border: 1px solid rgba(255,255,255,.32); background: rgba(255,255,255,.11); backdrop-filter: blur(12px); }
.premium-btn::after, .project-btn::after, .read-more-btn::after, .cta-contact-btn::after, .footer-cta-btn::after, .news-btn::after, .submit-btn::after, .contact-form .btn::after, .btn-primary::after, .btn-home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.35) 42%, transparent 72%);
  transform: translateX(-130%);
  transition: transform .65s ease;
}
.premium-btn:hover::after, .project-btn:hover::after, .read-more-btn:hover::after, .cta-contact-btn:hover::after, .footer-cta-btn:hover::after, .news-btn:hover::after, .submit-btn:hover::after, .contact-form .btn:hover::after, .btn-primary:hover::after, .btn-home:hover::after { transform: translateX(130%); }
.premium-btn:hover, .project-btn:hover, .read-more-btn:hover, .cta-contact-btn:hover, .footer-cta-btn:hover, .news-btn:hover, .submit-btn:hover, .contact-form .btn:hover, .btn-primary:hover, .btn-home:hover { transform: translateY(-4px) !important; box-shadow: 0 24px 52px rgba(7,84,183,.26) !important; }
.hero-floating-card {
  position: absolute;
  z-index: 4;
  right: clamp(24px, 5vw, 74px);
  width: min(250px, 36vw);
  padding: 18px 20px;
  border-radius: 22px;
  color: #fff;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
  animation: aipFloatCard 4.8s ease-in-out infinite;
}
.hero-floating-card strong { display: block; font-size: 22px; }
.hero-floating-card span { display: block; margin-top: 4px; color: rgba(255,255,255,.78); font-size: 13px; }
.hero-float-one { bottom: 82px; }
.hero-float-two { bottom: 224px; animation-delay: -2s; }
@keyframes aipFloatCard { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Section & cards */
section { position: relative; }
.section-heading.center span, .why-tag, .news-kicker, .news-label, .eyebrow, .eyebrow.blue {
  color: var(--brand-red) !important;
  letter-spacing: .16em !important;
  font-weight: 900 !important;
}
.section-heading h2, .section-heading h3, .about-content h2, .why-choose-content h2, .about-text-content h2, .news-hero h1, .news-content-card h2, .hero h1 {
  color: var(--brand-ink) !important;
  letter-spacing: -.045em;
}
.about-content p, .why-choose-content p, .about-text-content p, .news-hero p, .news-content-card p, .highlight-box p, .info-text, .field label {
  color: var(--brand-muted) !important;
}
.about-section, .portfolio-section, .projects-section, .why-choose-section, .about-main-section, .philosophy-section, .stats-section, .section, .page-contact .contact-container {
  background: transparent !important;
}
.about-images::before, .about-gallery-wrap::before, .why-choose-images::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(240,24,45,.08), rgba(7,84,183,.10));
  z-index: -1;
}
.hero-image-card, .about-hero-card, .main-image-card, .small-image-card, .gallery-large, .gallery-small, .image-card, .news-image-card {
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid rgba(255,255,255,.74) !important;
  overflow: hidden;
}
.hero-image-card img, .main-image-card img, .small-image-card img, .gallery-large img, .gallery-small img, .image-card img, .news-image-card img, .project-image img {
  transition: transform .75s ease, filter .75s ease;
}
.main-image-card:hover img, .small-image-card:hover img, .gallery-large:hover img, .gallery-small:hover img, .image-card:hover img, .news-image-card:hover img, .project-card:hover .project-image img { transform: scale(1.06); filter: saturate(1.12) contrast(1.04); }
.portfolio-box, .project-card, .why-choose-content, .contact-info, .contact-form, .news-content-card, .news-image-card, .highlight-box, .philosophy-card, .stat-card, .feature-card, .glass-card, .layout-card, .facts-box, .marquee-box, .form-shell {
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(247,250,255,.78)) !important;
  border: 1px solid rgba(7,84,183,.10) !important;
  box-shadow: var(--shadow-md) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease !important;
}
.portfolio-box::before, .project-card::before, .why-choose-content::before, .contact-info::before, .contact-form::before, .news-content-card::before, .philosophy-card::before, .stat-card::before, .feature-card::before, .glass-card::before, .layout-card::before, .facts-box::before, .marquee-box::before, .form-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-blue));
  opacity: .85;
}
.portfolio-box:hover, .project-card:hover, .why-choose-content:hover, .contact-info:hover, .contact-form:hover, .news-content-card:hover, .highlight-box:hover, .philosophy-card:hover, .stat-card:hover, .feature-card:hover, .glass-card:hover, .layout-card:hover, .facts-box:hover, .marquee-box:hover, .form-shell:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg) !important;
  border-color: rgba(240,24,45,.20) !important;
}
.portfolio-icon, .philosophy-icon, .stat-icon, .feature-icon, .info-icon, .step-num, .check-ring {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-blue)) !important;
  color: #fff !important;
  box-shadow: 0 16px 36px rgba(7,84,183,.20) !important;
}
.project-tag, .inventory-pill, .layout-tag, .tick-dot {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-blue)) !important;
  box-shadow: 0 12px 28px rgba(7,84,183,.18) !important;
}
.why-list li, .news-point, .info-box, .mini-box, .fact-item, .field input, .field textarea, .field select, .input-group input, .input-group textarea {
  background: rgba(255,255,255,.78) !important;
  border: 1px solid rgba(7,84,183,.14) !important;
  box-shadow: 0 10px 26px rgba(8,28,61,.05) !important;
}
.input-group input, .input-group textarea, .field input, .field textarea, .field select { transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease; }
.input-group input:focus, .input-group textarea:focus, .field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(240,24,45,.42) !important;
  box-shadow: 0 0 0 5px rgba(240,24,45,.09) !important;
  transform: translateY(-1px);
  outline: none;
}
.cta-box, .footer-cta-box {
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,.22), transparent 24%),
    linear-gradient(135deg, var(--brand-red), var(--brand-blue)) !important;
  box-shadow: 0 28px 80px rgba(7,84,183,.26) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  overflow: hidden;
}
.cta-box::after, .footer-cta-box::after {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  right: -80px; top: -70px;
  background: rgba(255,255,255,.16);
}
.main-footer {
  position: relative;
  background-image: linear-gradient(rgba(3,14,31,.88), rgba(3,14,31,.96)), url("footer-bg.webp") !important;
  background-size: cover !important;
  background-position: center !important;
}
.footer-credit-box {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 14px auto 0;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
}
.footer-credit-box a { color: #ffd166 !important; text-decoration: none; font-weight: 800; }

/* Contact, about, thank you page polish */
.page-contact .hero, .page-news .news-hero, .about-hero, .page-thankyou main {
  position: relative;
  overflow: hidden;
}
.page-contact .hero {
  margin: 28px auto 8px;
  width: min(92%, 1200px);
  padding: 78px 24px !important;
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 20%, rgba(240,24,45,.14), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(7,84,183,.16), transparent 32%),
    linear-gradient(135deg, #ffffff, #eef5ff) !important;
  border: 1px solid rgba(7,84,183,.10);
  box-shadow: var(--shadow-lg);
}
.page-contact .hero h1 { font-size: clamp(38px, 6vw, 72px) !important; background: linear-gradient(90deg, var(--brand-red), var(--brand-blue)); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.page-contact .contact-container { margin-top: 26px !important; }
.page-thankyou body, .page-thankyou { background: radial-gradient(circle at 15% 10%, rgba(240,24,45,.14), transparent 28%), radial-gradient(circle at 85% 0%, rgba(7,84,183,.18), transparent 32%), linear-gradient(135deg, #f5f9ff, #ffffff) !important; }
.page-thankyou .card { box-shadow: var(--shadow-xl) !important; border: 1px solid rgba(7,84,183,.10); animation: aipFadeUp .7s ease both; }
.page-thankyou .card-accent { background: linear-gradient(90deg, var(--brand-red), var(--brand-blue)) !important; }

/* Animations */
@keyframes aipFadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes aipFadeLeft { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: translateX(0); } }
[data-animate-in] { opacity: 0; transform: translateY(26px) scale(.985); filter: blur(5px); }
[data-animate-in].is-visible { opacity: 1; transform: none; filter: blur(0); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1), filter .7s ease; transition-delay: var(--reveal-delay, 0ms); }
.portfolio-box:nth-child(2), .project-card:nth-child(2), .philosophy-card:nth-child(2), .stat-card:nth-child(2), .feature-card:nth-child(2) { --reveal-delay: 90ms; }
.portfolio-box:nth-child(3), .project-card:nth-child(3), .philosophy-card:nth-child(3), .stat-card:nth-child(3), .feature-card:nth-child(3) { --reveal-delay: 160ms; }
.portfolio-box:nth-child(4), .project-card:nth-child(4), .stat-card:nth-child(4), .feature-card:nth-child(4) { --reveal-delay: 230ms; }
[data-parallax="soft"] { will-change: transform; }

@media (max-width: 992px) {
  .navbar.active { box-shadow: var(--shadow-lg) !important; border-radius: 22px; }
  .page-home .hero-image-card { min-height: 720px; }
  .hero-copy { padding: 42px 28px; }
  .hero-floating-card { right: 28px; width: 240px; }
}
@media (max-width: 680px) {
  body::before, body::after { width: 260px; height: 260px; }
  .page-home .hero-section { padding-top: 14px !important; }
  .page-home .hero-image-card { min-height: 760px; border-radius: 22px !important; }
  .page-home .hero-image-card::after { inset: 10px; border-radius: 16px; }
  .hero-copy h1 { font-size: clamp(38px, 12vw, 56px); }
  .hero-copy p { font-size: 15px; }
  .hero-metrics span { flex: 1 1 130px; min-width: 0; }
  .hero-actions-premium { flex-direction: column; }
  .premium-btn { width: 100%; }
  .hero-floating-card { position: relative; right: auto; bottom: auto; left: auto; width: calc(100% - 56px); margin: 12px 28px 0; }
  .hero-float-one, .hero-float-two { bottom: auto; }
  .contact-info, .contact-form, .form-shell { padding: 26px !important; border-radius: 22px !important; }
  .page-contact .hero { padding: 54px 20px !important; border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}
