/* ==========================================
   K-SOFTONE Premium CSS Stylesheet
   ========================================== */

/* Design Tokens & Theme Variables */
:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #121824;
  --bg-tertiary: #1a2334;
  --accent-blue: #00f0ff;
  --accent-blue-rgb: 0, 240, 255;
  --accent-orange: #ff6b00;
  --accent-orange-rgb: 255, 107, 0;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(0, 240, 255, 0.3);
  
  --font-title: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --neon-blue-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
  --neon-orange-shadow: 0 0 20px rgba(255, 107, 0, 0.25);

  --container-max: 1200px;
  --page-gutter: clamp(16px, 4vw, 24px);
  --section-pad-y: clamp(64px, 8vw, 100px);
  --header-height: 80px;
  --fs-hero: clamp(1.85rem, 1.2rem + 3.2vw, 3.5rem);
  --fs-section: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem);
  --fs-body: clamp(0.95rem, 0.9rem + 0.25vw, 1.1rem);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--section-pad-y) var(--page-gutter);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 60px);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-orange);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-title);
  font-size: var(--fs-section);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: var(--fs-body);
  color: var(--text-muted);
  font-weight: 400;
}

.br-md {
  display: none;
}

@media (min-width: 640px) {
  .br-md {
    display: inline;
  }
}

/* Scroll Reveal: keep content visible for crawlers (avoid soft 404 / blank render) */
.scroll-reveal {
  opacity: 1;
  transform: translateY(24px);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    transform: none;
    transition: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-body);
  gap: 8px;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background-color: var(--accent-orange);
  color: #fff;
  border: 1px solid var(--accent-orange);
  box-shadow: var(--neon-orange-shadow);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--accent-orange);
  box-shadow: 0 0 30px rgba(255, 107, 0, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(0, 240, 255, 0.05);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: var(--neon-blue-shadow);
}

/* ==========================================
   Header & Navigation
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(10, 13, 20, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.header.scrolled {
  padding: 12px 0;
  background-color: rgba(6, 9, 14, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  position: relative;
  z-index: 1002;
}

.logo span {
  color: var(--accent-orange);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-blue);
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-btn {
  background-color: rgba(0, 240, 255, 0.1);
  color: var(--accent-blue) !important;
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 8px 18px !important;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.nav-btn::after {
  display: none;
}

.nav-btn:hover {
  background-color: var(--accent-blue);
  color: var(--bg-primary) !important;
  box-shadow: var(--neon-blue-shadow);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  z-index: 1002;
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}

.mobile-toggle:hover,
.mobile-toggle:focus-visible {
  background-color: rgba(255, 255, 255, 0.06);
}

.nav-backdrop {
  display: none;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('assets/hero_background.jpg');
  background-size: cover;
  background-position: center;
  padding: calc(var(--header-height) + 24px) 0 96px;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 13, 20, 0.95) 0%, rgba(10, 13, 20, 0.8) 50%, rgba(18, 24, 36, 0.95) 100%);
  z-index: 1;
}

.hero-container {
  width: 100%;
  max-width: var(--container-max);
  padding: 0 var(--page-gutter);
  z-index: 2;
}

.hero-content {
  max-width: 820px;
}

.hero-badge {
  font-family: var(--font-title);
  font-size: clamp(0.72rem, 0.65rem + 0.3vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent-blue);
  background-color: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.15);
  padding: 6px 14px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 24px;
  box-shadow: var(--neon-blue-shadow);
  animation: pulseNeon 3s infinite alternate;
}

@keyframes pulseNeon {
  0% {
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
  }
  100% {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  }
}

.hero-title {
  font-family: var(--font-title);
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent-blue) 0%, #00bcff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 400;
  max-width: 42rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.hero-scroll-indicator a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll-indicator i {
  animation: bounceVertical 2s infinite;
}

@keyframes bounceVertical {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

/* ==========================================
   About Section
   ========================================== */
.about-section {
  background-color: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.about-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.about-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-orange));
  opacity: 0.8;
}

.ceo-message-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ceo-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.quote-icon {
  color: var(--accent-blue);
  background-color: rgba(0, 240, 255, 0.08);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.ceo-header h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
}

.ceo-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 30px;
}

.ceo-text strong {
  color: var(--text-main);
  font-weight: 600;
}

.ceo-signature {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ceo-signature .name {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

/* Timeline component */
.history-card h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 5px;
  width: 2px;
  height: calc(100% - 24px);
  background-color: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  top: 6px;
  left: -24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 3px solid var(--border-color);
  z-index: 2;
  transition: var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
  border-color: var(--accent-blue);
  box-shadow: 0 0 10px var(--accent-blue);
}

.timeline-date {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-blue);
  margin-bottom: 6px;
}

.timeline-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================
   Services Section (4 Core Pillars)
   ========================================== */
.services-section {
  background-color: var(--bg-secondary);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px -15px rgba(0, 240, 255, 0.15);
}

.service-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--bg-tertiary);
}

.service-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.service-card:hover .service-image-wrapper img {
  transform: scale(1.06);
}

.image-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 13, 20, 0) 40%, rgba(10, 13, 20, 0.85) 100%);
  z-index: 1;
}

.service-icon {
  position: absolute;
  bottom: 16px;
  right: 20px;
  background-color: var(--accent-orange);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--neon-orange-shadow);
  z-index: 2;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background-color: var(--accent-blue);
  color: var(--bg-primary);
  box-shadow: var(--neon-blue-shadow);
  transform: rotate(360deg);
}

.service-info {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-number {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  margin-bottom: -15px;
  transition: var(--transition-smooth);
}

.service-card:hover .service-number {
  color: rgba(0, 240, 255, 0.08);
}

.service-info .service-tag {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-blue);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.service-info h3 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.service-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact-section {
  background-color: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.02) 0%, transparent 60%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info-panel .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.contact-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-detail-item .icon-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--accent-blue);
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.contact-detail-item:hover .icon-box {
  border-color: var(--accent-blue);
  box-shadow: var(--neon-blue-shadow);
}

.contact-detail-item span {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 4px;
}

.contact-detail-item p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

.contact-detail-item p a {
  color: inherit;
}

.contact-detail-item p a:hover {
  color: var(--accent-blue);
}

/* Contact Form Panel */
.contact-form-panel {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.contact-form-panel h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
  background-color: rgba(26, 35, 52, 0.8);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  padding-right: 40px;
}

.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea {
  border-color: var(--accent-orange);
}

.error-msg {
  display: none;
  font-size: 0.8rem;
  color: var(--accent-orange);
  margin-top: 6px;
  font-weight: 500;
}

.form-group.invalid .error-msg {
  display: block;
}

.submit-btn {
  width: 100%;
  margin-top: 10px;
  padding: 16px;
}

.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-status {
  min-height: 1.4em;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
}

.form-status.error {
  color: var(--accent-orange);
}

/* Success Form Overlay */
.success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.success-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.success-content {
  text-align: center;
  max-width: 400px;
  transform: translateY(20px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-overlay.active .success-content {
  transform: translateY(0);
}

.success-icon {
  color: var(--accent-blue);
  font-size: 3.5rem;
  margin-bottom: 24px;
  display: inline-block;
  animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.success-content h3 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.success-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

.close-success-btn {
  width: 100%;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
  background-color: #06080d;
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px 0;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 60px;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links h4,
.footer-info h4 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  align-self: flex-start;
}

.footer-links a:hover {
  color: var(--accent-blue);
  transform: translateX(4px);
}

.footer-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer-info .copyright {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==========================================
   Responsive Styles (Media Queries)
   ========================================== */

/* Large tablet / small laptop */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-info {
    grid-column: span 2;
  }

  .about-card,
  .contact-form-panel {
    padding: 32px 28px;
  }
}

/* Tablet portrait & mobile landscape */
@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  .header-container {
    padding: 14px var(--page-gutter);
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
  }

  .nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 86vw);
    height: 100vh;
    height: 100dvh;
    background-color: rgba(10, 13, 20, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 8px;
    padding: 88px 28px max(40px, env(safe-area-inset-bottom, 0px));
    transform: translateX(105%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.35);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 14px 8px;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .nav-link::after {
    display: none;
  }

  .nav-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    margin-top: 12px;
  }

  .hero-section {
    align-items: flex-start;
    padding-top: calc(var(--header-height) + 36px);
    padding-bottom: 88px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-scroll-indicator span {
    display: none;
  }

  .about-card {
    padding: 28px 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-info {
    padding: 24px 20px;
  }

  .service-info h3 {
    font-size: 1.2rem;
  }

  .contact-form-panel {
    padding: 28px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    min-height: 48px;
  }

  .form-group textarea {
    min-height: 140px;
  }

  .footer {
    padding: 56px 0 32px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-info {
    grid-column: span 1;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero-badge {
    letter-spacing: 1.5px;
    padding: 5px 10px;
  }

  .hero-actions {
    gap: 12px;
  }

  .ceo-header h3,
  .history-card h3,
  .contact-form-panel h3 {
    font-size: 1.25rem;
  }

  .timeline-date {
    font-size: 1rem;
  }

  .service-number {
    font-size: 2rem;
  }

  .contact-detail-item {
    align-items: flex-start;
  }

  .contact-detail-item .icon-box {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }
}

/* Short viewports (landscape phones) */
@media (max-height: 560px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding-top: calc(var(--header-height) + 28px);
    padding-bottom: 48px;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .nav-menu {
    justify-content: flex-start;
    overflow-y: auto;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-reveal {
    transform: none;
  }
}