/* BLU Bumi Khatulistiwa - Main Stylesheet */

/* CSS Custom Properties */
:root {
  --color-primary: #4CA5C6;
  --color-secondary: #5CB2BC;
  --color-accent: #6A84A7;
  --color-light: #FFFFFF;
  --color-dark: #21201F;
  --color-gray-50: #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-300: #D1D5DB;
  --color-success: #10B981;
  --color-error: #EF4444;
  --color-warning: #F59E0B;
  
  /* Typography */
  --font-primary: 'Poppins', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* Borders */
  --border-radius: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.3s ease-out;
  --transition-slow: 0.6s ease-out;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  color: var(--color-dark);
  background-color: var(--color-light);
  font-size: var(--font-size-base);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

/* Section Background Gradients */
.section-hero {
  background: linear-gradient(135deg, var(--color-light) 0%, #f8fafc 50%, #e6f3ff 100%);
  position: relative;
  overflow: hidden;
}

.section-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(76, 165, 198, 0.03) 0%, rgba(92, 178, 188, 0.02) 100%);
  pointer-events: none;
}

/* Hero Background Animation */
.section-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(76, 165, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(92, 178, 188, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(106, 132, 167, 0.06) 0%, transparent 50%);
  animation: heroFloat 20s ease-in-out infinite;
  pointer-events: none;
}

/* Floating Orbs Animation */
.hero-orbs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(76, 165, 198, 0.1), rgba(92, 178, 188, 0.08));
  animation: orbFloat 15s ease-in-out infinite;
}

.hero-orb:nth-child(1) {
  width: 120px;
  height: 120px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 18s;
}

.hero-orb:nth-child(2) {
  width: 80px;
  height: 80px;
  top: 60%;
  right: 15%;
  animation-delay: 3s;
  animation-duration: 22s;
}

.hero-orb:nth-child(3) {
  width: 60px;
  height: 60px;
  top: 80%;
  left: 20%;
  animation-delay: 6s;
  animation-duration: 16s;
}

.hero-orb:nth-child(4) {
  width: 100px;
  height: 100px;
  top: 30%;
  right: 30%;
  animation-delay: 9s;
  animation-duration: 20s;
}

/* Keyframe Animations */
@keyframes heroFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(-10px, -15px) rotate(1deg);
  }
  50% {
    transform: translate(5px, -10px) rotate(-1deg);
  }
  75% {
    transform: translate(-5px, -5px) rotate(0.5deg);
  }
}

@keyframes orbFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translate(20px, -30px) scale(1.1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-15px, -20px) scale(0.9);
    opacity: 0.7;
  }
  75% {
    transform: translate(25px, -10px) scale(1.05);
    opacity: 0.9;
  }
}

/* Pulse Animation for Hero Elements */
.hero-pulse {
  animation: heroPulse 4s ease-in-out infinite;
}

.hero-pulse-delayed {
  animation: heroPulse 4s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes heroPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

/* Floating Elements */
.hero-float {
  animation: heroFloatElement 6s ease-in-out infinite;
}

@keyframes heroFloatElement {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Glow Effect */
.hero-glow {
  box-shadow: 0 0 20px rgba(76, 165, 198, 0.3);
  transition: box-shadow 0.3s ease;
}

.hero-glow:hover {
  box-shadow: 0 0 30px rgba(76, 165, 198, 0.5);
}

/* Gradient Text Animation */
.hero-gradient-text {
  background: linear-gradient(45deg, var(--color-primary), var(--color-secondary), var(--color-accent));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Responsive Animation Adjustments */
@media (max-width: 768px) {
  .hero-orb {
    display: none; /* Hide orbs on mobile for better performance */
  }
  
  .section-hero::after {
    animation-duration: 15s; /* Faster animation on mobile */
  }
  
  .hero-pulse,
  .hero-float {
    animation-duration: 6s; /* Slower animations on mobile for better performance */
  }
}

/* High-end device optimizations */
@media (min-width: 1200px) {
  .hero-orb {
    filter: blur(0.5px); /* Subtle blur for smoother appearance */
  }
  
  .section-hero::after {
    animation-duration: 25s; /* Slower, more elegant animation on large screens */
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .section-hero::after,
  .hero-orb,
  .hero-pulse,
  .hero-gradient-text {
    animation: none;
  }
}

.section-profile {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 30%, #f0f8ff 100%);
  position: relative;
}

.section-profile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(76, 165, 198, 0.04) 0%, rgba(106, 132, 167, 0.02) 100%);
  pointer-events: none;
}

.section-ai-consultant {
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 50%, #d1e7ff 100%);
  position: relative;
}

.section-ai-consultant::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(76, 165, 198, 0.05) 0%, rgba(92, 178, 188, 0.03) 100%);
  pointer-events: none;
}

.section-services {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f0f8ff 100%);
  position: relative;
}

.section-services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(106, 132, 167, 0.03) 0%, rgba(76, 165, 198, 0.02) 100%);
  pointer-events: none;
}

.section-team {
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
  position: relative;
}

.section-team::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(76, 165, 198, 0.04) 0%, rgba(92, 178, 188, 0.02) 100%);
  pointer-events: none;
}

.section-contact {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
}

.section-contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(106, 132, 167, 0.02) 0%, rgba(76, 165, 198, 0.01) 100%);
  pointer-events: none;
}

/* Ensure content is above background overlays */
.section-hero > *,
.section-profile > *,
.section-ai-consultant > *,
.section-services > *,
.section-team > *,
.section-contact > * {
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.2;
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); line-height: 1.3; }
h4 { font-size: var(--font-size-xl); line-height: 1.4; }

p {
  color: var(--color-dark);
  margin: 0;
}

/* Links */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

a:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Modern Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: var(--font-size-base);
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  user-select: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.025em;
  font-family: var(--font-primary);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Primary Button - Modern Gradient */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-light);
  box-shadow: 0 4px 14px 0 rgba(76, 165, 198, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(76, 165, 198, 0.35);
}

.btn-primary:hover:not(:disabled)::before {
  left: 100%;
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 14px 0 rgba(76, 165, 198, 0.25);
}

/* Secondary Button - Modern Outline */
.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px 0 rgba(76, 165, 198, 0.15);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--color-primary);
  color: var(--color-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(76, 165, 198, 0.3);
  border-color: var(--color-primary);
}

.btn-secondary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 14px 0 rgba(76, 165, 198, 0.15);
}

/* Ghost Button - Minimal Style */
.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(76, 165, 198, 0.1);
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

/* Button Sizes */
.btn-sm {
  padding: 10px 20px;
  font-size: var(--font-size-sm);
}

.btn-lg {
  padding: 16px 32px;
  font-size: var(--font-size-lg);
}

.btn-xl {
  padding: 18px 36px;
  font-size: var(--font-size-xl);
}

/* Button with Icon */
.btn-icon {
  padding: 12px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
}

.btn-icon.btn-sm {
  width: 40px;
  height: 40px;
  padding: 8px;
}

.btn-icon.btn-lg {
  width: 56px;
  height: 56px;
  padding: 16px;
}

/* Loading State */
.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Button Groups */
.btn-group {
  display: inline-flex;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
}

.btn-group .btn {
  border-radius: 0;
  margin: 0;
}

.btn-group .btn:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.btn-group .btn:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* Responsive Buttons */
@media (max-width: 768px) {
  .btn {
    padding: 12px 24px;
    font-size: var(--font-size-sm);
  }
  
  .btn-lg {
    padding: 14px 28px;
    font-size: var(--font-size-base);
  }
  
  .btn-xl {
    padding: 16px 32px;
    font-size: var(--font-size-lg);
  }
}

/* Form Elements */
input, textarea, select {
  border: 1px solid var(--color-gray-300);
  border-radius: var(--border-radius);
  padding: 12px 16px;
  font-size: var(--font-size-base);
  font-family: var(--font-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgb(76 165 198 / 0.1);
}

input:invalid, textarea:invalid {
  border-color: var(--color-error);
}

/* Modal Styles */
.modal-backdrop {
  transition: opacity var(--transition-normal);
  backdrop-filter: blur(4px);
}

.modal-content {
  transition: transform var(--transition-normal);
  max-height: 90vh;
  overflow-y: auto;
}

/* Loading Animations */
.loader {
  border: 4px solid var(--color-gray-200);
  border-top: 4px solid var(--color-primary);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Pulse animation for loading states */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Slide animations */
.animated-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animated-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card Styles */
.card {
  background-color: var(--color-light);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-xl);
  transition: all var(--transition-normal);
}

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

.card-service {
  cursor: pointer;
  text-align: center;
  border: 1px solid var(--color-gray-200);
}

.card-service:hover {
  border-color: var(--color-primary);
}

/* Alert Styles */
.alert {
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-md);
  border-left: 4px solid;
}

.alert-info {
  background-color: #EBF8FF;
  border-color: var(--color-primary);
  color: #1E40AF;
}

.alert-success {
  background-color: #ECFDF5;
  border-color: var(--color-success);
  color: #065F46;
}

.alert-error {
  background-color: #FEF2F2;
  border-color: var(--color-error);
  color: #991B1B;
}

.alert-warning {
  background-color: #FFFBEB;
  border-color: var(--color-warning);
  color: #92400E;
}

/* Header Styles */
header {
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2.25rem;
    --font-size-4xl: 1.875rem;
    --font-size-3xl: 1.5rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: var(--font-size-sm);
  }
  
  .card {
    padding: var(--spacing-lg);
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-5xl: 1.875rem;
    --font-size-4xl: 1.5rem;
  }
  
  .modal-content {
    margin: var(--spacing-md);
    max-height: calc(100vh - 2rem);
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .animated-section {
    transition: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #0056b3;
    --color-secondary: #004085;
    --color-dark: #000000;
  }
}

/* Focus styles for better accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--color-dark);
  color: var(--color-light);
  padding: 8px;
  border-radius: var(--border-radius);
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Print styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  a, a:visited {
    text-decoration: underline;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
  
  .no-print {
    display: none !important;
  }
} 