/* ============================================
   P&N International Pte Ltd - Main Stylesheet
   Color Scheme: Blue / Grey / White (from business card)
   Fluid & Dynamic Edition
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary-dark: #1B3A5C;
  --primary: #2874A6;
  --primary-light: #3498DB;
  --accent: #1A5276;
  --heading-color: #4A5568;       /* Grey headings - matching business card */
  --heading-dark: #3A4A5C;        /* Slightly darker grey-blue for emphasis */
  --grey-dark: #2C3E50;
  --grey-medium: #7F8C8D;
  --grey-light: #BDC3C7;
  --grey-bg: #F0F3F5;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(27, 58, 92, 0.08);
  --shadow-hover: 0 12px 40px rgba(27, 58, 92, 0.18);
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius: 12px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--grey-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

ul { list-style: none; }

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--heading-color);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; color: #5A6A7A; }

.section-subtitle {
  color: var(--grey-medium);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.12s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.24s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.36s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(40, 116, 166, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary-dark);
  border-color: var(--white);
  transform: translateY(-3px);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* ---------- Wave Dividers ---------- */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

.wave-divider.flip {
  transform: rotate(180deg);
}

/* ---------- Header / Navigation ---------- */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

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

.logo img {
  height: 48px;
  width: auto;
  transition: var(--transition);
}

.logo:hover img {
  transform: scale(1.03);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--heading-color);
  position: relative;
  padding: 4px 0;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  transition: var(--transition);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links .btn {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.nav-links .btn.btn-primary {
  color: var(--white);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.menu-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--heading-color);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Hero Section ---------- */
.hero {
  background: linear-gradient(135deg, rgba(27, 58, 92, 0.88) 0%, rgba(26, 82, 118, 0.85) 40%, rgba(13, 33, 55, 0.92) 100%),
              url('../img/hero-offshore.jpg') center/cover no-repeat;
  padding: 10rem 0 8rem;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

/* Animated gradient overlay */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(52, 152, 219, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 20%, rgba(26, 82, 118, 0.2) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(40, 116, 166, 0.1) 0%, transparent 50%);
  animation: heroGradientShift 12s ease-in-out infinite;
}

@keyframes heroGradientShift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -2%) rotate(1deg); }
  66% { transform: translate(-1%, 1%) rotate(-0.5deg); }
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(52, 152, 219, 0.08);
  filter: blur(1px);
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  right: -5%;
  top: 10%;
  animation: floatOrb1 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 250px;
  height: 250px;
  right: 20%;
  bottom: 5%;
  background: rgba(255, 255, 255, 0.04);
  animation: floatOrb2 10s ease-in-out infinite;
}

.hero-orb-3 {
  width: 150px;
  height: 150px;
  left: 5%;
  bottom: 15%;
  background: rgba(52, 152, 219, 0.06);
  animation: floatOrb3 7s ease-in-out infinite;
}

@keyframes floatOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 20px) scale(1.05); }
}

@keyframes floatOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(0.95); }
}

@keyframes floatOrb3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -15px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero h1 {
  color: var(--white);
  font-size: 3.2rem;
  margin-bottom: 1.2rem;
  font-weight: 800;
  animation: heroFadeUp 1s ease-out;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary-light), #5dade2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 560px;
  animation: heroFadeUp 1s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: heroFadeUp 1s ease-out 0.4s both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Animated floating lines in hero */
.hero-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-lines span {
  position: absolute;
  width: 1px;
  height: 100%;
  background: linear-gradient(0deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: lineDrift 6s linear infinite;
}

.hero-lines span:nth-child(1) { left: 20%; animation-delay: 0s; animation-duration: 7s; }
.hero-lines span:nth-child(2) { left: 40%; animation-delay: 1s; animation-duration: 8s; }
.hero-lines span:nth-child(3) { left: 60%; animation-delay: 2s; animation-duration: 6s; }
.hero-lines span:nth-child(4) { left: 80%; animation-delay: 3s; animation-duration: 9s; }

@keyframes lineDrift {
  0% { transform: translateY(100%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100%); opacity: 0; }
}

/* ---------- Sections ---------- */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-grey {
  background: var(--grey-bg);
}

.section-dark {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0d2137 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 70% 50%, rgba(52, 152, 219, 0.1) 0%, transparent 60%);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.8);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* ---------- Services Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover::before {
  transform: scaleX(1);
}

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

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  color: var(--white);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-3deg);
}

.service-card h3 {
  color: var(--heading-dark);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--grey-medium);
  margin-bottom: 0;
}

/* ---------- Stats / Counter Bar ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  padding: 3rem 0;
  position: relative;
  z-index: 1;
}

.stat-item {
  transition: var(--transition);
}

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

.stat-item h3 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--primary-light), #5dade2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.3rem;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* ---------- Brands We Carry ---------- */
.brands-section {
  padding: 4rem 0;
  background: var(--white);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  align-items: center;
  justify-items: center;
}

.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  width: 100%;
  height: 100px;
}

.brand-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.brand-item img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: 0.85;
  transition: var(--transition);
}

.brand-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 992px) {
  .brands-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .brand-item {
    height: 80px;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Features / Why Choose Us ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.feature-item {
  display: flex;
  gap: 1.2rem;
  padding: 1.8rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.feature-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateX(5px);
}

.feature-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  background: linear-gradient(135deg, var(--grey-bg), #e8edf2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  transition: var(--transition);
}

.feature-item:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: var(--white);
}

.feature-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.feature-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: ctaPulse 6s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
}

.cta-section h2::after {
  display: none;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  position: relative;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ---------- About Page Specifics ---------- */
.page-hero {
  background: linear-gradient(135deg, rgba(27, 58, 92, 0.9) 0%, rgba(26, 82, 118, 0.88) 100%),
              url('../img/hero-offshore.jpg') center/cover no-repeat;
  padding: 9rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 40% 50%, rgba(52, 152, 219, 0.12) 0%, transparent 50%);
  animation: heroGradientShift 12s ease-in-out infinite;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.6rem;
  margin-bottom: 0.75rem;
  position: relative;
  animation: heroFadeUp 0.8s ease-out;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  position: relative;
  animation: heroFadeUp 0.8s ease-out 0.15s both;
}

.breadcrumb {
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  position: relative;
  animation: heroFadeUp 0.8s ease-out 0.3s both;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
  color: var(--white);
}

/* About Content */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  background: url('../img/about-team.jpg') center/cover no-repeat;
  border-radius: var(--radius);
  height: 400px;
  position: relative;
  overflow: hidden;
}

.about-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(27, 58, 92, 0.08) 0%, rgba(13, 33, 55, 0.12) 100%);
}

.about-text h2::after {
  margin: 0.75rem 0 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.value-card {
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.value-icon {
  width: 74px;
  height: 74px;
  background: linear-gradient(135deg, var(--grey-bg), #e0e8f0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.8rem;
  color: var(--primary);
  transition: var(--transition);
}

.value-card:hover .value-icon {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: var(--white);
  transform: scale(1.1);
}

/* ---------- Services Page Specifics ---------- */
.services-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.services-detail:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.services-detail.reverse {
  direction: rtl;
}

.services-detail.reverse > * {
  direction: ltr;
}

.services-detail-image {
  border-radius: var(--radius);
  height: 320px;
  background-size: cover;
  background-position: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.services-detail-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(27, 58, 92, 0.1) 0%, rgba(13, 33, 55, 0.15) 100%);
  transition: var(--transition);
}

.services-detail-image:hover::after {
  background: linear-gradient(135deg, rgba(27, 58, 92, 0.02) 0%, rgba(13, 33, 55, 0.05) 100%);
}

.services-detail-image.img-onshore {
  background-image: url('../img/onshore-oil.jpg');
}

.services-detail-image.img-offshore {
  background-image: url('../img/offshore-platform.jpg');
}

.services-detail-image.img-datacentre {
  background-image: url('../img/data-centre.jpg');
}

.services-detail-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.services-detail-text ul {
  list-style: none;
  padding: 0;
}

.services-detail-text ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #555;
  font-size: 0.95rem;
  transition: var(--transition);
}

.services-detail-text ul li:hover {
  padding-left: 2rem;
  color: var(--heading-dark);
}

.services-detail-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 50%;
  transform: translateY(-50%);
  transition: var(--transition);
}

.services-detail-text ul li:hover::before {
  transform: translateY(-50%) scale(1.3);
}

/* ---------- Contact Page ---------- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-info-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateX(5px);
}

.contact-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  transition: var(--transition);
}

.contact-info-card:hover .contact-icon {
  border-radius: 50%;
}

.contact-info-card h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--grey-medium);
  margin-bottom: 0.3rem;
}

.contact-info-card p {
  margin-bottom: 0;
  color: var(--heading-color);
  font-weight: 500;
}

.contact-info-card a {
  color: var(--primary);
}

.contact-info-card a:hover {
  text-decoration: underline;
}

/* Contact Form */
.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-form h3 {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--heading-color);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--grey-light);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--grey-bg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(40, 116, 166, 0.1);
}

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

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

/* ---------- Map Section ---------- */
.map-section {
  background: var(--grey-bg);
  padding: 0;
  height: 350px;
  position: relative;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-medium);
  font-size: 1.1rem;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- Footer ---------- */
.footer {
  background: linear-gradient(180deg, #0d1b2a 0%, #081220 100%);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 20% 0%, rgba(52, 152, 219, 0.06) 0%, transparent 50%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
  position: relative;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.3rem 0;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 8px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.footer-contact-item .fc-icon {
  color: var(--primary-light);
  min-width: 18px;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
  position: relative;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  h1 { font-size: 2.2rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero { padding: 8rem 0 6rem; min-height: auto; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-content { grid-template-columns: 1fr; gap: 2rem; }
  .services-detail { grid-template-columns: 1fr; }
  .services-detail.reverse { direction: ltr; }
  .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    gap: 1rem;
    border-radius: 0 0 var(--radius) var(--radius);
  }

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

  .menu-toggle {
    display: flex;
  }

  .services-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 7rem 0 5rem; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 3.5rem 0; }
  .page-hero { padding: 7rem 0 3rem; }

  .hero-orb-1 { width: 200px; height: 200px; }
  .hero-orb-2 { width: 130px; height: 130px; }
  .hero-orb-3 { display: none; }
}

@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { text-align: center; }
}

/* ---------- WhatsApp Floating Button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #FFFFFF;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}
