/* =====================================================
   ISLAND VIBE TOURS & EVENTS - Design System
   Concept: 沖縄の海・風・上質なリゾート体験
   ===================================================== */

/* =====================================================
   CSS Variables - Design Tokens
   ===================================================== */
:root {
  /* Primary Colors - 沖縄の海、エメラルドブルー */
  --color-primary: #008B9D;
  --color-primary-light: #00AFCC;
  --color-primary-dark: #005F6E;

  /* Secondary Colors - 砂浜のゴールド・シャンパン */
  --color-secondary: #D4AF37;
  --color-secondary-light: #F1D27E;
  --color-secondary-dark: #A6811C;

  /* Accent Colors - 知的なスレートブルー */
  --color-accent: #4A90E2;
  --color-accent-light: #7BABED;

  /* Neutral Colors */
  --color-white: #FFFFFF;
  --color-black: #1A1A2E;
  --color-gray-100: #F8F9FA;
  --color-gray-200: #E9ECEF;
  --color-gray-300: #DEE2E6;
  --color-gray-600: #6C757D;
  --color-gray-800: #343A40;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, rgba(0, 139, 157, 0.8) 0%, rgba(26, 46, 90, 0.6) 100%);
  --gradient-sunset: linear-gradient(135deg, #FF6B35 0%, #D4AF37 100%);
  --gradient-ocean: linear-gradient(180deg, #00AFCC 0%, #008B9D 100%);

  /* Typography */
  --font-primary: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'M PLUS Rounded 1c', var(--font-primary);

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 40px rgba(26, 46, 90, 0.2);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Z-Index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
}

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

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

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-gray-800);
  background-color: var(--color-white);
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

/* Mobile-only line break */
.sp-only {
  display: none;
}

@media (max-width: 768px) {
  .sp-only {
    display: block;
  }
}

/* =====================================================
   Typography
   ===================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-black);
}

h1 {
  font-size: var(--text-5xl);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-12);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-sunset);
  margin: var(--space-4) auto 0;
  border-radius: var(--radius-full);
}

/* =====================================================
   Layout
   ===================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  text-align: center;
  padding: 0 var(--space-4);
  margin-bottom: var(--space-12);
}

.hero-text-item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease-in-out;
}

.hero-text-item.active {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.hero-text-item.active .hero-tagline {
  animation: slideInDown 1s ease-out forwards;
}

.hero-text-item.active .hero-title {
  animation: slideInUp 1s ease-out 0.2s forwards;
}

.hero-text-item.active .hero-description {
  animation: fadeIn 1s ease-out 0.5s forwards;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hero-buttons {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  opacity: 0;
  animation: fadeIn 1s ease-out 1s forwards;
}

.section {
  padding: var(--space-20) 0;
}

/* =====================================================
   Header / Navigation
   ===================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-sunset);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: var(--text-2xl);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-weight: 500;
  position: relative;
  padding: var(--space-2) 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all var(--transition-base);
}

.nav-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-gray-800);
  transition: all var(--transition-base);
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
  position: relative;
  height: calc(100vh - 80px);
  /* Adjust for header height */
  margin-top: 80px;
  /* Offset for fixed header */
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  overflow: hidden;
  background: var(--color-black);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-background img,
.hero-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slideshow {
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  overflow: hidden;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

/* Hero Slide images are handled via .slide-bg and .slide-fg */
.hero-slide .slide-bg,
.hero-slide .slide-fg {
  display: block;
}

/* Background Layer (Blurred) */
.slide-bg {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  filter: blur(20px) brightness(0.7);
  object-fit: cover;
  z-index: 1;
}

/* Foreground Layer (Full Screen, Top Aligned) */
.slide-fg {
  position: absolute;
  /* Revert to absolute for full screen */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Fill the screen */
  object-position: center 15%;
  /* Prioritize the upper 15% of the image (Shark/Shisa heads) */
  z-index: 2;

  /* ULTIMATE FIX: 1000s transition prevents the 'snap-back' to scale(1) when .active is removed */
  transform: scale(1);
  transition: transform 1000s linear;
}

.hero-slide.active .slide-fg {
  transform: scale(1.08);
  /* Slow zoom into perfect fit */
  transition: transform 10s linear;
  /* Normal zoom speed when active */
}




.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.2) 50%,
      rgba(0, 0, 0, 0.6) 100%);
}

.slide-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  text-align: center;
  padding: 0 var(--space-4);
  margin-bottom: var(--space-12);
}

.hero-text-item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease-in-out;
}

.hero-text-item.active {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.hero-text-item.active .hero-tagline {
  animation: slideInDown 1s ease-out forwards;
}

.hero-text-item.active .hero-title {
  animation: slideInUp 1s ease-out 0.2s forwards;
}

.hero-text-item.active .hero-description {
  animation: fadeIn 1s ease-out 0.5s forwards;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hero-tagline {
  font-size: clamp(0.75rem, 2.5vw, 1.125rem);
  font-weight: 500;
  margin-bottom: var(--space-4);
  opacity: 0;
  /* Handled by animation */
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: clamp(1.75rem, 7vw, 4rem);
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: var(--space-6);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.hero-title span {
  display: inline-block;
  background: var(--gradient-sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: clamp(0.9rem, 3vw, 1.25rem);
  margin-bottom: var(--space-8);
  opacity: 0;
  /* Handled by animation */
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 var(--space-4);
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(0, 119, 182, 0.4);
}

.btn-secondary:hover {
  background: var(--color-secondary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 119, 182, 0.5);
}

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

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

/* =====================================================
   Card Components
   ===================================================== */
.card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

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

.card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: var(--space-6);
}

.card-category {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(255, 107, 53, 0.1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.card-description {
  color: var(--color-gray-600);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.card-comment {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(0, 119, 182, 0.08));
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-primary);
}

.card-comment-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.card-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.card-comment-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-primary);
}

.card-comment-text {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-gray-800);
}

/* =====================================================
   Grid Layouts
   ===================================================== */
.grid {
  display: grid;
  gap: var(--space-8);
}

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

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

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

/* =====================================================
   Section: Local Guide (観光客向け)
   ===================================================== */
.local-guide {
  background: linear-gradient(180deg, var(--color-gray-100) 0%, var(--color-white) 100%);
  position: relative;
  overflow: hidden;
}

.local-guide::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 168, 232, 0.1), transparent);
  pointer-events: none;
}

.guide-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-12);
  padding: 0 var(--space-4);
}

.guide-intro p {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  line-height: 1.9;
}

.guide-intro-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--gradient-ocean);
  color: var(--color-white);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-6);
}

/* =====================================================
   Section: Works (エンタメ関係者向け)
   ===================================================== */
.works {
  background: var(--color-black);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.works::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(255, 107, 53, 0.15), transparent);
  pointer-events: none;
}

.works .section-title {
  color: var(--color-white);
}

.work-card {
  font-size: var(--text-2xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: white !important;
  color: var(--color-primary) !important;
}

.work-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-primary);
}

.work-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
}

.work-details {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-gray-300);
}

.work-detail {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* =====================================================
   Section: CEO Message (代表キャラクター)
   ===================================================== */
.ceo-section {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.ceo-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.2), transparent);
  pointer-events: none;
}

.ceo-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.ceo-image-wrapper {
  position: relative;
}

.ceo-image {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.ceo-image img {
  width: 100%;
  height: auto;
}

.ceo-image-decoration {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 150px;
  height: 150px;
  background: var(--gradient-sunset);
  border-radius: var(--radius-xl);
  z-index: -1;
}

.ceo-info h2 {
  color: var(--color-white);
  margin-bottom: var(--space-6);
}

.ceo-name {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
}

.ceo-title {
  font-size: var(--text-lg);
  opacity: 0.8;
  margin-bottom: var(--space-6);
}

.ceo-message {
  font-size: var(--text-lg);
  line-height: 2;
  margin-bottom: var(--space-8);
}

/* SNS-style daily section */
.ceo-daily {
  margin-top: var(--space-12);
}

.ceo-daily-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.daily-post {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  backdrop-filter: blur(10px);
}

.daily-post-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.daily-post-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--color-accent);
}

.daily-post-meta {
  flex: 1;
}

.daily-post-name {
  font-weight: 600;
  font-size: var(--text-sm);
}

.daily-post-date {
  font-size: var(--text-xs);
  opacity: 0.7;
}

.daily-post-content {
  font-size: var(--text-base);
  line-height: 1.7;
}

.daily-post-image {
  margin-top: var(--space-4);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* =====================================================
   Contact Section
   ===================================================== */
.contact {
  background: var(--color-gray-100);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

.contact-info h3 {
  margin-bottom: var(--space-6);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-sunset);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.contact-form {
  background: var(--color-white);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-4);
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

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

/* =====================================================
   Footer
   ===================================================== */
.footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand .logo {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer-description {
  color: var(--color-gray-300);
  font-size: var(--text-sm);
  line-height: 1.8;
}

.footer-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-5);
}

.footer-links li {
  margin-bottom: var(--space-3);
}

.footer-links a {
  color: var(--color-gray-300);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-8);
  text-align: center;
  color: var(--color-gray-600);
  font-size: var(--text-sm);
}

/* =====================================================
   Animations
   ===================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}

.animate-delay-4 {
  animation-delay: 0.4s;
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .ceo-content {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 768px) {
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.5rem;
  }

  .header-inner {
    height: 70px;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: var(--space-6);
    gap: var(--space-4);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .menu-toggle {
    display: flex;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-5);
  }

  .section {
    padding: var(--space-12) 0;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-sm);
  }

  .section-title {
    font-size: var(--text-2xl);
    padding: 0 var(--space-2);
  }

  .hero-content {
    padding: var(--space-4);
  }

  .hero-tagline {
    letter-spacing: 0.02em;
  }

  .card-content {
    padding: var(--space-4);
  }

  .ceo-message {
    font-size: var(--text-base);
    line-height: 1.8;
  }
}

/* =====================================================
   Lazy Loading
   ===================================================== */
img[data-src] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[data-src].loaded {
  opacity: 1;
}

/* Loading placeholder */
.lazy-placeholder {
  background: linear-gradient(90deg, var(--color-gray-200) 25%, var(--color-gray-100) 50%, var(--color-gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Logo Image */
.logo-image {
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* =====================================================
   Social Appeal Section
   ===================================================== */
.social-appeal {
  background: var(--color-gray-100);
}

.social-appeal-card {
  background: var(--color-white);
  padding: var(--space-10);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--space-8);
  border: 1px solid rgba(0, 139, 157, 0.1);
}

.social-icon {
  font-size: 4rem;
  background: var(--gradient-ocean);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.social-text h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
  color: var(--color-primary);
}

.social-text p {
  line-height: 1.8;
  margin-bottom: var(--space-4);
  color: var(--color-gray-600);
}

.social-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-4);
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
}

@media (max-width: 768px) {
  .social-appeal-card {
    flex-direction: column;
    text-align: center;
    padding: var(--space-6);
  }
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: var(--z-sticky);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: var(--text-lg);
  }
}