/* ============================================
   KOYETECH - STATIC HTML STYLES
   ============================================ */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f8fafc;
  color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: 72px;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 48px;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 36px;
  margin-bottom: 1.5rem;
}

h4 {
  font-size: 28px;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, background-color 0.3s ease;
}

/* Color Variables */
:root {
  --color-brand-primary: #0ea5e9;
  --color-brand-dark: #0284c7;
  --color-brand-light: #38bdf8;
  --color-brand-accent: #7dd3fc;
  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
  --color-white: #ffffff;
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-400: #cbd5e1;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
}

/* Animations */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
  animation: fade-in 1s ease-out forwards;
}

.animate-scale-in {
  animation: scale-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mesh-bg {
  background-color: #f8fafc;
  background-image:
    radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(56, 189, 248, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(125, 211, 252, 0.1) 0px, transparent 50%);
}

/* Responsive Grid */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-5 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  background: white;
  border-bottom: 1px solid var(--color-slate-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* tighter padding so content sits close to header edges */
  padding: 0.5rem 0.75rem;
}

/* make header container content reach closer to page corners */
header .container {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-brand-primary);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  /* prevent wrapping so caret stays beside text */
  white-space: nowrap;
}

nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-slate-700);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

nav a:hover {
  background-color: var(--color-slate-50);
  color: var(--color-text-main);
}

nav a.active {
  color: var(--color-brand-primary);
  background-color: rgba(14, 165, 233, 0.1);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-brand-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

/* ensure dropdown trigger and caret sit inline */
.dropdown>a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--color-slate-200);
  border-radius: 0.75rem;
  min-width: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  padding: 0.75rem 1.5rem;
  display: block;
  color: var(--color-slate-700);
  font-size: 14px;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: var(--color-slate-50);
  color: var(--color-brand-primary);
  padding-left: 2rem;
}

/* ============================================
   SECTIONS & SPACING
   ============================================ */

section {
  padding: 3rem 0;
}

section.hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, white, rgba(147, 197, 253, 0.3), white);
  position: relative;
  overflow: hidden;
}

section.hero::before,
section.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

section.hero::before {
  width: 500px;
  height: 500px;
  background: rgba(14, 165, 233, 0.05);
  top: 25%;
  left: 25%;
}

section.hero::after {
  width: 500px;
  height: 500px;
  background: rgba(59, 130, 246, 0.05);
  bottom: 25%;
  right: 25%;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 16px;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  line-height: 1.5;
}

.btn-primary {
  background: var(--color-brand-primary);
  color: white;
  border: 2px solid var(--color-brand-primary);
}

.btn-primary:hover {
  background: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
}

.btn-outline {
  background: white;
  color: var(--color-text-main);
  border: 2px solid var(--color-slate-200);
}

.btn-outline:hover {
  background: var(--color-slate-50);
  border-color: var(--color-brand-primary);
}

.btn-rounded {
  border-radius: 50px;
  padding: 0.9rem 2rem;
  font-size: 18px;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 18px;
}

/* Hero buttons layout (side-by-side on desktop, stacked on mobile) */
.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  min-width: 200px;
}

/* Inline SVG logo and brand text */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo {
  display: inline-block;
  width: 44px;
  height: 44px;
}

.brand-text {
  font-weight: 700;
  color: var(--color-brand-primary);
  font-size: 20px;
}

/* site logo image */
.site-logo-img {
  width: 200px;
  height: 45px;
  object-fit: contain;
  display: block;
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: white;
  border: 1px solid var(--color-slate-200);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.5s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: var(--color-brand-primary);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.2);
}

.card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.card:hover .card-title {
  color: var(--color-brand-primary);
}

.card-description {
  color: var(--color-slate-600);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-link {
  color: var(--color-brand-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s ease;
}

.card:hover .card-link {
  transform: translateX(5px);
}

/* ============================================
   FORMS
   ============================================ */

form {
  display: grid;
  gap: 1.5rem;
}

form.two-col {
  grid-template-columns: 1fr 1fr;
}

form.two-col>label {
  grid-column: 1;
}

form.two-col>label:nth-child(odd) {
  grid-column: 1;
}

form.two-col>label:nth-child(even) {
  grid-column: 2;
}

label {
  display: block;
}

label span {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-slate-700);
  display: block;
  margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="phone"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-slate-200);
  background: white;
  border-radius: 0.75rem;
  font-size: 14px;
  color: var(--color-text-main);
  font-family: inherit;
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="phone"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' 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 1rem center;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.form-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group>label {
  grid-column: auto;
}

.form-full {
  grid-column: 1 / -1 !important;
}

.form-error {
  color: #ef4444;
  font-size: 14px;
  margin-top: 0.25rem;
}

.form-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  padding: 1rem;
  border-radius: 0.75rem;
  font-size: 14px;
}

.form-error-msg {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 1rem;
  border-radius: 0.75rem;
  font-size: 14px;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: #0f172a;
  color: var(--color-slate-400);
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--color-slate-800);
}

footer h3 {
  color: white;
  font-size: 20px;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

footer h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 40px;
  height: 2px;
  background: var(--color-brand-primary);
}

footer ul {
  list-style: none;
}

footer li {
  margin-bottom: 0.75rem;
}

footer a {
  color: var(--color-slate-400);
  font-size: 14px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--color-brand-primary);
}

footer .social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

footer .social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
}

footer .social-icon:hover {
  background: var(--color-brand-primary);
  transform: translateY(-3px);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-column {
  margin-bottom: 2rem;
}

.footer-copyright {
  border-top: 1px solid var(--color-slate-800);
  padding-top: 2rem;
  text-align: center;
  color: var(--color-slate-500);
  font-size: 14px;
}

/* ============================================
   PROCESS FLOW - MATCHING EXISTING CARD STYLE
   ============================================ */

.process-flow-container {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.process-flow-item {
  background: white;
  border: 1px solid var(--color-slate-200);
  border-radius: 1.5rem;
  padding: 2.5rem;
  transition: all 0.5s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in-up 0.6s ease forwards;
}

.process-flow-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: var(--color-brand-primary);
}

.process-flow-number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-brand-primary), var(--color-brand-light));
  color: white;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
  transition: all 0.3s ease;
}

.process-flow-item:hover .process-flow-number {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

.process-flow-content {
  flex: 1;
}

.process-flow-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.process-flow-item:hover .process-flow-title {
  color: var(--color-brand-primary);
}

.process-flow-description {
  color: var(--color-slate-600);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

/* Staggered animation delays */
.process-flow-item:nth-child(1) {
  animation-delay: 0.1s;
}

.process-flow-item:nth-child(2) {
  animation-delay: 0.2s;
}

.process-flow-item:nth-child(3) {
  animation-delay: 0.3s;
}

.process-flow-item:nth-child(4) {
  animation-delay: 0.4s;
}

.process-flow-item:nth-child(5) {
  animation-delay: 0.5s;
}

/* Responsive */
@media (max-width: 768px) {
  .process-flow-item {
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
  }

  .process-flow-number {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .process-flow-title {
    font-size: 20px;
  }

  .process-flow-description {
    font-size: 15px;
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet Responsive */
@media (max-width: 1024px) {
  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 42px;
  }

  h3 {
    font-size: 32px;
  }

  .container {
    padding: 0 1.25rem;
  }

  section {
    padding: 2.5rem 0;
  }

  .grid-2,
  .grid-3 {
    gap: 1.5rem;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 24px;
  }

  h4 {
    font-size: 20px;
  }

  p {
    font-size: 15px;
  }

  nav {
    display: none;
    gap: 0;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-top: 1px solid var(--color-slate-200);
    padding: 1rem 0;
  }

  nav.active {
    display: flex;
  }

  nav a {
    padding: 1rem 1.5rem;
    border-radius: 0;
  }

  .nav-toggle {
    display: block;
  }

  .grid-2,
  .grid-3,
  .grid-5 {
    grid-template-columns: 1fr;
  }

  .form-group,
  form.two-col {
    grid-template-columns: 1fr;
  }

  form.two-col>label {
    grid-column: 1;
  }

  form.two-col>label:nth-child(odd) {
    grid-column: 1;
  }

  form.two-col>label:nth-child(even) {
    grid-column: 1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  section {
    padding: 2rem 0;
  }

  section.hero,
  section[style*="padding: 4rem 0"] {
    padding: 2.5rem 0 !important;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem !important;
  }

  /* Responsive card icons */
  .card div[style*="font-size: 3rem"] {
    font-size: 2.5rem !important;
  }

  .card div[style*="width: 80px"] {
    width: 60px !important;
    height: 60px !important;
    font-size: 2rem !important;
  }

  /* Responsive grid layouts */
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Process Flow Responsive */
  .process-flow-item,
  .process-flow-item:nth-child(even) {
    flex-direction: column;
  }

  .process-flow-number-box {
    width: 100%;
    height: 60px;
    flex-direction: row;
    gap: 1rem;
  }

  .process-flow-content,
  .process-flow-item:nth-child(even) .process-flow-content {
    padding: 2rem;
    text-align: left;
  }

  .process-flow-item:nth-child(even) .process-flow-icon {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 20px;
  }

  .container {
    padding: 0 1rem;
  }

  .btn-rounded {
    padding: 0.75rem 1.5rem;
    font-size: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Text Utilities */
.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-brand-primary), var(--color-brand-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-muted {
  color: var(--color-text-muted);
}

.text-white {
  color: white;
}

/* Spacing Utilities */
.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.p-10 {
  padding: 2.5rem;
}

.py-4 {
  padding: 1rem 0;
}

.py-6 {
  padding: 1.5rem 0;
}

.py-8 {
  padding: 2rem 0;
}

.py-12 {
  padding: 3rem 0;
}

.px-4 {
  padding: 0 1rem;
}

.px-6 {
  padding: 0 1.5rem;
}

.px-8 {
  padding: 0 2rem;
}

/* Display Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

/* Visibility */
@media (max-width: 1024px) {
  .hide-mobile {
    display: none;
  }
}

.show-mobile {
  display: none;
}

@media (max-width: 768px) {
  .show-mobile {
    display: block;
  }

  .hide-mobile {
    display: none !important;
  }
}