@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Manrope:wght@600;700;800&display=swap');

:root {
  /* Brand Color Palette */
  --navy-dark: #071927;
  --navy-main: #072A4A;
  --navy-light: #0D3B66;
  --blue-bright: #0077C5;
  --cyan-vibrant: #00A8E8;
  --cyan-glow: rgba(0, 168, 232, 0.35);
  --orange-accent: #FF6B00;
  --orange-hover: #E05D00;
  --earth-warm: #8D5B2A;
  --earth-light: #D4A373;
  
  /* Background & Surfaces */
  --bg-main: #F4F8FA;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-dark-surface: #0A2239;

  /* Text Colors */
  --text-primary: #0F2942;
  --text-secondary: #4A6378;
  --text-muted: #7A92A5;
  --text-white: #FFFFFF;

  /* UI Borders & Shadows */
  --border-light: #E1EBF0;
  --border-focus: #00A8E8;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  
  --shadow-sm: 0 2px 8px rgba(7, 42, 74, 0.05);
  --shadow-md: 0 10px 30px -5px rgba(7, 42, 74, 0.08);
  --shadow-lg: 0 20px 45px -10px rgba(7, 42, 74, 0.14);
  --shadow-glow: 0 10px 25px -4px rgba(0, 168, 232, 0.4);
  --shadow-orange: 0 10px 25px -4px rgba(255, 107, 0, 0.4);

  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Manrope', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.nav-open {
  overflow: hidden;
}

:focus-visible {
  outline: 3px solid rgba(0, 168, 232, 0.55);
  outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--navy-main);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Container */
.container {
  width: min(1240px, calc(100% - 36px));
  margin-inline: auto;
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(7, 42, 74, 0.04);
  transition: all 0.3s ease;
}

.nav-wrapper {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  color: var(--navy-main);
  text-decoration: none;
}

.brand-logo img, .brand-logo svg {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--navy-main);
  background: rgba(0, 168, 232, 0.08);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 12px;
  right: 12px;
  height: 3px;
  background: var(--cyan-vibrant);
  border-radius: 99px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy-main) 0%, var(--navy-light) 100%);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(7, 42, 74, 0.25);
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-main) 100%);
  color: #fff;
}

.btn-orange {
  background: linear-gradient(135deg, var(--orange-accent) 0%, var(--orange-hover) 100%);
  color: var(--text-white);
  box-shadow: var(--shadow-orange);
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 107, 0, 0.45);
  color: #fff;
}

.btn-cyan {
  background: linear-gradient(135deg, var(--cyan-vibrant) 0%, var(--blue-bright) 100%);
  color: var(--text-white);
  box-shadow: var(--shadow-glow);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 168, 232, 0.45);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--navy-main);
  border: 2px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--cyan-vibrant);
  color: var(--cyan-vibrant);
  background: rgba(0, 168, 232, 0.05);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.28);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 34px;
  font-size: 17px;
  border-radius: var(--radius-lg);
}

/* Badges & Chips */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-cyan {
  background: rgba(0, 168, 232, 0.12);
  color: #0077B6;
  border: 1px solid rgba(0, 168, 232, 0.3);
}

.badge-orange {
  background: rgba(255, 107, 0, 0.12);
  color: var(--orange-accent);
  border: 1px solid rgba(255, 107, 0, 0.3);
}

.badge-green {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-dark {
  background: var(--navy-dark);
  color: var(--cyan-vibrant);
  border: 1px solid rgba(0, 168, 232, 0.25);
}

/* Hero Section */
.hero-section {
  position: relative;
  background-color: #041424;
  background-image:
    linear-gradient(90deg, rgba(4, 20, 36, .98) 0%, rgba(4, 20, 36, .9) 36%, rgba(7, 42, 74, .5) 66%, rgba(0, 32, 57, .2) 100%),
    url('../images/hero-drilling-2026.webp');
  background-size: cover;
  background-position: center;
  color: var(--text-white);
  padding: 90px 0 110px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--cyan-glow) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.2) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: clamp(38px, 5.5vw, 64px);
  color: #FFFFFF;
  margin: 16px 0 20px;
  line-height: 1.15;
}

.hero-title span.highlight {
  background: linear-gradient(120deg, #00D2FF 0%, #0077C5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span.orange {
  background: linear-gradient(120deg, #FF8C38 0%, #FF6B00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 19px;
  color: #C1D5E4;
  margin-bottom: 36px;
  max-width: 620px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* Glass Card Hero Visual Widget */
.hero-widget-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  color: var(--text-white);
  position: relative;
}

.hero-widget-card h3 {
  color: #FFF;
  font-size: 22px;
  margin-bottom: 12px;
}

/* Features & Cards */
.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 54px;
}

.section-subtitle {
  color: var(--cyan-vibrant);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: clamp(28px, 3.8vw, 42px);
  color: var(--navy-main);
  margin-bottom: 16px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 168, 232, 0.4);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 168, 232, 0.12) 0%, rgba(7, 42, 74, 0.06) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--cyan-vibrant);
  margin-bottom: 22px;
}

.card-title {
  font-size: 20px;
  color: var(--navy-main);
  margin-bottom: 12px;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* Dynamic Stats Grid */
.stats-banner {
  background: linear-gradient(135deg, var(--navy-main) 0%, var(--navy-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 50px 40px;
  color: #FFF;
  box-shadow: var(--shadow-lg);
  margin: 30px 0;
}

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

.stat-item h2 {
  font-size: 44px;
  color: #00D2FF;
  margin-bottom: 6px;
}

.stat-item p {
  color: #A9C2D4;
  font-size: 15px;
  font-weight: 600;
}

/* Forms & Interactive Inputs */
.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  max-width: 860px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-main);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  background: #FAFDFF;
  transition: all 0.25s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--cyan-vibrant);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px var(--cyan-glow);
}

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

/* Security Shield Banner (Anti DDoS & Anti Hacking) */
.security-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(7, 42, 74, 0.04);
  border: 1px dashed rgba(0, 168, 232, 0.4);
  border-radius: var(--radius-md);
  margin-top: 24px;
  font-size: 13px;
  color: var(--navy-main);
}

.security-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy-main);
  color: var(--cyan-vibrant);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #B5CBDC;
  padding: 80px 0 30px;
  margin-top: auto;
  border-top: 3px solid var(--cyan-vibrant);
}

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

.footer-brand h3 {
  color: #FFF;
  font-size: 26px;
  margin-bottom: 16px;
}

.footer-brand p {
  line-height: 1.7;
  font-size: 15px;
}

.footer-title {
  color: #FFF;
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #92B1C8;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--cyan-vibrant);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #FFF;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th {
  background: var(--navy-main);
  color: #FFF;
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
}

.custom-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 15px;
}

.custom-table tr:last-child td {
  border-bottom: none;
}

.custom-table tr:hover td {
  background: rgba(0, 168, 232, 0.03);
}

/* Floating WhatsApp Quick Action Button */
.float-wa {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #25D366;
  color: #FFFFFF;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-family: var(--font-heading);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  transition: all 0.3s ease;
}

.float-wa:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 35px rgba(37, 211, 102, 0.55);
  color: #FFF;
}

/* Mobile Nav Drawer Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--navy-main);
  margin: 5px 0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.page-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 0;
  height: 3px;
  z-index: 2000;
  background: linear-gradient(90deg, var(--cyan-vibrant), var(--orange-accent));
  box-shadow: 0 0 14px var(--cyan-glow);
  transition: width 80ms linear;
}

.reveal-ready {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1);
}

.reveal-ready.is-visible {
  opacity: 1;
  transform: none;
}

.btn.is-loading {
  pointer-events: none;
  opacity: .72;
}

.btn.is-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ui-spin .7s linear infinite;
}

@keyframes ui-spin { to { transform: rotate(360deg); } }

@media (min-width: 769px) {
  .section:not(:first-child) {
    content-visibility: auto;
    contain-intrinsic-size: 1px 720px;
  }
}

/* Responsive Utilities */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-section {
    background-image:
      linear-gradient(180deg, rgba(4, 20, 36, .9) 0%, rgba(4, 20, 36, .96) 72%, #041424 100%),
      url('../images/hero-drilling-2026.webp');
    background-position: 62% center;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    flex-direction: column;
    padding: 30px;
    gap: 18px;
    border-bottom: 2px solid var(--cyan-vibrant);
    box-shadow: var(--shadow-lg);
    display: flex;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
  }
  .nav-menu.show {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container { width: min(100% - 24px, 1240px); }
  .hero-section { padding: 58px 0 88px; }
  .hero-title { font-size: clamp(34px, 11vw, 46px); }
  .hero-actions, .hero-actions .btn { width: 100%; }
  .hero-widget-card, .form-card, .card { padding: 22px; }
  .section { padding: 58px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .stats-banner { padding: 32px 20px; }
  .float-wa { width: 52px; height: 52px; padding: 0; justify-content: center; }
  .float-wa span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal-ready { opacity: 1; transform: none; }
}
