/* ========================================
   LOCVIE Integrated Services Ltd.
   Professional Corporate Website
   ======================================== */

:root {
  --primary-blue: #0033A0;
  --primary-red: #E30613;
  --dark-navy: #0A1F44;
  --light-blue: #E8F0FE;
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== TOP BAR ========== */
.top-bar {
  background: var(--dark-navy);
  color: var(--white);
  font-size: 0.875rem;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar a {
  color: var(--white);
  opacity: 0.9;
}

.top-bar a:hover {
  opacity: 1;
  color: #A5C8FF;
}

.top-bar .contact-info {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.top-bar .contact-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========== HEADER / NAV ========== */
.header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 56px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .company {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-blue);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.logo-text .tagline {
  font-size: 0.7rem;
  color: var(--primary-red);
  font-style: italic;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  display: block;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-700);
  border-radius: 6px;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--primary-blue);
  background: var(--light-blue);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.dropdown-menu a:hover {
  background: var(--light-blue);
  color: var(--primary-blue);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-blue);
  cursor: pointer;
  padding: 8px;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 560px;
  background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-blue) 60%, #0047AB 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/offshore-platform.jpg') center/cover no-repeat;
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero h1 span {
  color: #FF6B6B;
}

.hero .subtitle {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 12px;
  font-weight: 500;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary-red);
  color: var(--white);
}

.btn-primary:hover {
  background: #C10510;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(227, 6, 19, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary-blue);
  border-color: var(--white);
}

.btn-blue {
  background: var(--primary-blue);
  color: var(--white);
}

.btn-blue:hover {
  background: #002680;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 51, 160, 0.3);
}

/* ========== SECTION COMMON ========== */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header .label {
  display: inline-block;
  background: var(--light-blue);
  color: var(--primary-blue);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  color: var(--dark-navy);
  margin-bottom: 12px;
  font-weight: 800;
}

.section-header p {
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ========== STATS ========== */
.stats {
  background: var(--dark-navy);
  color: var(--white);
  padding: 50px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-red);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ========== DIVISIONS CARDS ========== */
.divisions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.division-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.division-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.division-card .card-img {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.division-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.division-card:hover .card-img img {
  transform: scale(1.08);
}

.division-card .card-img .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,31,68,0.7), transparent);
}

.division-card .card-body {
  padding: 24px;
}

.division-card .card-body h3 {
  font-size: 1.25rem;
  color: var(--dark-navy);
  margin-bottom: 8px;
  font-weight: 700;
}

.division-card .card-body p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.division-card .card-body .link {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.division-card .card-body .link:hover {
  color: var(--primary-red);
}

/* ========== ABOUT PREVIEW ========== */
.about-preview {
  background: var(--off-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-content h2 {
  font-size: 2rem;
  color: var(--dark-navy);
  margin-bottom: 16px;
  font-weight: 800;
}

.about-content p {
  color: var(--gray-600);
  margin-bottom: 16px;
}

.about-content .features {
  margin: 24px 0;
}

.about-content .features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--gray-700);
}

.about-content .features li::before {
  content: '✓';
  background: var(--primary-blue);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-images img {
  border-radius: var(--radius);
  height: 200px;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.about-images img:first-child {
  grid-column: 1 / -1;
  height: 240px;
}

/* ========== WHY US ========== */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.why-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.why-card:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.why-card .icon {
  width: 64px;
  height: 64px;
  background: var(--light-blue);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 20px;
}

.why-card h3 {
  font-size: 1.15rem;
  color: var(--dark-navy);
  margin-bottom: 10px;
  font-weight: 700;
}

.why-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
  background: linear-gradient(135deg, var(--dark-navy), var(--primary-blue));
  color: var(--white);
  padding: 70px 0 60px;
  text-align: center;
  position: relative;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.page-hero p {
  opacity: 0.9;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.breadcrumb a:hover {
  color: #A5C8FF;
}

/* ========== SERVICES LIST ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

.service-item:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.service-item .num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 8px;
}

.service-item h3 {
  font-size: 1.15rem;
  color: var(--dark-navy);
  margin-bottom: 8px;
  font-weight: 700;
}

.service-item p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* ========== GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 240px;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(10,31,68,0.85));
  color: white;
  padding: 30px 16px 14px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-info-box h3 {
  font-size: 1.4rem;
  color: var(--dark-navy);
  margin-bottom: 20px;
  font-weight: 700;
}

.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-detail .icon {
  width: 48px;
  height: 48px;
  background: var(--light-blue);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail h4 {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 2px;
}

.contact-detail p,
.contact-detail a {
  font-weight: 600;
  color: var(--dark-navy);
}

.contact-detail a:hover {
  color: var(--primary-blue);
}

.contact-form {
  background: var(--off-white);
  padding: 36px;
  border-radius: var(--radius-lg);
}

.contact-form h3 {
  font-size: 1.3rem;
  color: var(--dark-navy);
  margin-bottom: 20px;
  font-weight: 700;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.95rem;
  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(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 51, 160, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--dark-navy);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo-text .company {
  color: var(--white);
  font-size: 1.3rem;
}

.footer-brand p {
  opacity: 0.8;
  margin: 16px 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-brand .tagline-footer {
  color: #FF6B6B;
  font-style: italic;
  font-weight: 600;
}

.footer h4 {
  font-size: 1.05rem;
  margin-bottom: 18px;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-red);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  opacity: 0.8;
  font-size: 0.95rem;
}

.footer-links a:hover {
  opacity: 1;
  color: #A5C8FF;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    gap: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links > li > a {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-200);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 16px;
    display: none;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .mobile-toggle {
    display: block;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 480px;
  }

  .top-bar .contact-info {
    gap: 12px;
    font-size: 0.8rem;
  }
}

/* ========== UTILITY ========== */
.bg-light {
  background: var(--off-white);
}

.text-center {
  text-align: center;
}

.mt-40 {
  margin-top: 40px;
}

.mb-20 {
  margin-bottom: 20px;
}

/* ========================================
   3D ENHANCEMENTS – Homepage Focus
   ======================================== */

/* Perspective containers */
.perspective {
  perspective: 1200px;
  perspective-origin: 50% 50%;
}

/* 3D Hero with layered depth */
.hero {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(227, 6, 19, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(0, 51, 160, 0.3) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  transform: translateZ(40px);
  transform-style: preserve-3d;
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateZ(40px) translateY(0); }
  50% { transform: translateZ(40px) translateY(-8px); }
}

.hero h1 {
  text-shadow: 
    0 2px 0 rgba(0,0,0,0.2),
    0 8px 24px rgba(0,0,0,0.35),
    0 0 60px rgba(227, 6, 19, 0.2);
}

.hero .subtitle {
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Floating 3D decorative shapes in hero */
.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero-shape {
  position: absolute;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  animation: floatShape 12s ease-in-out infinite;
}

.hero-shape:nth-child(1) {
  width: 180px; height: 180px;
  top: 15%; right: 8%;
  transform: rotateX(20deg) rotateY(-25deg);
  animation-delay: 0s;
}

.hero-shape:nth-child(2) {
  width: 100px; height: 100px;
  bottom: 20%; right: 22%;
  transform: rotateX(-15deg) rotateY(30deg);
  animation-delay: -3s;
  border-radius: 50%;
}

.hero-shape:nth-child(3) {
  width: 140px; height: 70px;
  top: 55%; right: 5%;
  transform: rotateX(10deg) rotateY(-40deg);
  animation-delay: -6s;
}

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotateX(15deg) rotateY(-20deg); }
  50% { transform: translateY(-20px) rotateX(25deg) rotateY(-10deg); }
}

/* 3D Division Cards */
.divisions-grid {
  perspective: 1400px;
}

.division-card {
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.45s ease;
  will-change: transform;
  position: relative;
}

.division-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.division-card:hover {
  transform: translateY(-16px) rotateX(6deg) rotateY(-4deg) scale(1.02);
  box-shadow: 
    0 25px 50px -12px rgba(0, 51, 160, 0.25),
    0 12px 24px -8px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(0, 51, 160, 0.08);
}

.division-card:hover::before {
  opacity: 1;
}

.division-card .card-img {
  transform: translateZ(20px);
  overflow: hidden;
}

.division-card .card-body {
  transform: translateZ(30px);
  position: relative;
  z-index: 1;
}

.division-card:hover .card-img img {
  transform: scale(1.12);
}

/* 3D Why-us cards */
.why-us-grid {
  perspective: 1200px;
}

.why-card {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease, border-color 0.3s;
}

.why-card:hover {
  transform: translateY(-12px) rotateX(5deg) scale(1.03);
  box-shadow: 
    0 20px 40px -10px rgba(0, 51, 160, 0.2),
    0 8px 16px -4px rgba(0,0,0,0.1);
  border-color: var(--primary-blue);
}

.why-card .icon {
  transform: translateZ(40px);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 8px 20px rgba(0, 51, 160, 0.15);
}

.why-card:hover .icon {
  transform: translateZ(50px) scale(1.1);
  box-shadow: 0 12px 28px rgba(0, 51, 160, 0.3);
}

/* 3D Stats bars */
.stats {
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(227, 6, 19, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.stat-item {
  transform-style: preserve-3d;
  transition: transform 0.35s ease;
}

.stat-item:hover {
  transform: translateY(-6px) scale(1.05);
}

.stat-item h3 {
  text-shadow: 0 4px 12px rgba(227, 6, 19, 0.4);
  transition: transform 0.3s ease;
}

.stat-item:hover h3 {
  transform: scale(1.08);
}

/* 3D About image stack */
.about-images {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.about-images img {
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
  transform-style: preserve-3d;
}

.about-images img:hover {
  transform: translateY(-10px) rotateY(-6deg) scale(1.03);
  box-shadow: 
    0 20px 40px -10px rgba(0,0,0,0.3),
    0 0 0 3px rgba(0, 51, 160, 0.15);
  z-index: 5;
}

/* 3D Buttons */
.btn {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  box-shadow: 
    0 4px 0 #A0040C,
    0 8px 20px rgba(227, 6, 19, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 6px 0 #A0040C,
    0 14px 28px rgba(227, 6, 19, 0.4);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 
    0 2px 0 #A0040C,
    0 4px 12px rgba(227, 6, 19, 0.3);
}

.btn-blue {
  box-shadow: 
    0 4px 0 #002060,
    0 8px 20px rgba(0, 51, 160, 0.3);
}

.btn-blue:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 6px 0 #002060,
    0 14px 28px rgba(0, 51, 160, 0.4);
}

.btn-outline {
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-outline:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* 3D Service items */
.service-item {
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s;
}

.service-item:hover {
  transform: translateY(-8px) rotateX(3deg);
  box-shadow: 0 16px 32px -8px rgba(0, 51, 160, 0.15);
}

/* 3D Gallery items */
.gallery-item {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 
    0 20px 40px -10px rgba(0,0,0,0.35),
    0 0 0 2px rgba(0, 51, 160, 0.2);
  z-index: 2;
}

/* Header glass + depth */
.header {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 
    0 1px 0 rgba(0,0,0,0.05),
    0 4px 20px rgba(0,0,0,0.06);
}

/* Logo subtle 3D */
.logo img {
  transition: transform 0.35s ease;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.logo:hover img {
  transform: scale(1.06) rotate(-2deg);
}

/* Section headers with depth */
.section-header h2 {
  text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* CTA section depth */
section[style*="linear-gradient"] {
  position: relative;
  overflow: hidden;
}

section[style*="linear-gradient"]::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

/* Smooth reveal animation helper */
.reveal-3d {
  opacity: 0;
  transform: translateY(40px) rotateX(8deg);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-3d.visible {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .hero-shape,
  .division-card,
  .why-card,
  .stat-item {
    animation: none !important;
    transition: none !important;
  }
}
