/* ROOT COLORS & VARIABLES */
:root {
  --primary: #e2e8f0;      /* Light Slate */
  --secondary: #0f172a;    /* Deep Navy */
  --accent: #38bdf8;       /* Sky Blue */
  --bg-light: #020617;     /* Dark Background */
  --white: #ffffff;
  --text-dark: #f8fafc;    /* Light Text */
  --text-light: #cbd5e1;   /* Secondary Light Text */
  --shadow-sm: 0 1px 3px rgba(2, 6, 23, 0.12);
  --shadow-md: 0 8px 24px rgba(2, 6, 23, 0.18);
  --shadow-lg: 0 16px 48px rgba(2, 6, 23, 0.25);
  --glow: 0 0 24px rgba(56, 189, 248, 0.22); /* Subtle glow */
  --radius: 18px;
  --transition: all 0.25s ease;
}

/* RESET & GLOBAL */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: var(--text-dark); }
button,input,textarea,select { font: inherit; }

/* TYPOGRAPHY */
h1,h2,h3,h4 { font-weight: 700; color: var(--primary); line-height: 1.15; }
h1 { font-size: clamp(2.7rem, 5vw, 3.4rem); margin-bottom: 1rem; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 1.75rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1.4rem; color: var(--text-light); }
strong { color: var(--primary); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 2rem; background-color: var(--accent); color: var(--white);
  font-weight: 700; border-radius: 999px; transition: var(--transition);
  border: 2px solid transparent;
}
.btn:hover {
  background-color: transparent; border-color: var(--accent); color: var(--accent);
  transform: translateY(-2px);
}
.btn-secondary {
  background-color: transparent; border: 2px solid var(--white); color: var(--white);
}
.btn-secondary:hover { background-color: var(--white); color: var(--primary); }

/* NAVBAR */
nav {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 6%; background-color: var(--secondary);
  backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); position: sticky;
  top: 0; z-index: 1000;
}
.logo {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 1.15rem; font-weight: 800; color: var(--white); letter-spacing: -0.5px;
  text-decoration: none; flex-shrink: 0;
}
.logo img {
  width: 42px; height: 42px; object-fit: cover; border-radius: 50%;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(226, 232, 240, 0.18);
  box-shadow: 0 4px 12px rgba(2,6,23,0.45);
}
.logo span {
  display: inline-block; vertical-align: middle;
}
.nav-links { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.nav-links a { font-weight: 500; color: var(--text-light); transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* HERO SECTION */
body { position: relative; }

.background-slider {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
}
.background-slider::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.68);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.background-slider .slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  animation: fade 32s ease-in-out infinite;
}
.background-slider .slide1 { background-image: url('../assets/assets/images/image1.jpeg'); animation-delay: 0s; }
.background-slider .slide2 { background-image: url('../assets/assets/images/image2.jpeg'); animation-delay: 8s; }
.background-slider .slide3 { background-image: url('../assets/assets/images/image3.jpeg'); animation-delay: 16s; }
.background-slider .slide4 { background-image: url('../assets/assets/images/image4.jpeg'); animation-delay: 24s; }

@keyframes fade {
  0%, 8%, 100% { opacity: 0; }
  10%, 25% { opacity: 1; }
  27%, 33% { opacity: 0; }
}

header {
  background: linear-gradient(135deg, #0b1124, #18223c 75%);
  color: var(--white); padding: 6rem 5% 7rem; text-align: center;
}
header p {
  color: rgba(255,255,255,0.8); font-size: 1.1rem;
  max-width: 720px; margin: 0 auto 2.5rem;
}

/* SECTIONS */
section { padding: 5rem 5%; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title p { color: var(--text-light); max-width: 640px; margin: 0 auto; }
.section-light {
  background: var(--white); border-radius: var(--radius); padding: 3rem;
  box-shadow: var(--shadow-sm); margin-bottom: 2rem;
}
.section-light p { color: #475569; }
.card p { color: #94a3b8; }
.container { max-width: 980px; margin: 0 auto; padding: 3rem 0; }

.card {
  background: var(--secondary); padding: 2.2rem; border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-sm), var(--glow); transition: var(--transition);
  border: 1px solid rgba(217,119,6,0.1);
}
.card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-lg), var(--glow);
  border-color: rgba(217,119,6,0.24);
}
.card-icon { font-size: 2.2rem; color: var(--accent); margin-bottom: 1.5rem; }

/* Service card lists */
.card ul { list-style: none; padding: 0; margin: 0; }
.card li { padding: 0.4rem 0; font-size: 0.95rem; line-height: 1.6; color: var(--text-light); }

.form-card {
  max-width: 520px; margin: 0 auto; padding: 2.5rem;
  border-radius: calc(var(--radius) + 4px); background: var(--secondary);
  box-shadow: var(--shadow-sm), var(--glow); border: 1px solid rgba(217,119,6,0.1);
}
.form-card h1 { margin-bottom: 1.4rem; font-size: 2rem; }
.form-intro {
  margin-top: -0.6rem;
  margin-bottom: 1.5rem;
  color: #cbd5e1;
}
.form-control { margin-bottom: 1.2rem; }
.form-control label {
  display: block; margin-bottom: 0.45rem; font-weight: 600;
  color: var(--primary);
}
.form-control input,
.form-control textarea,
.form-control select {
  width: 100%; padding: 1rem 1.1rem; border-radius: 16px;
  border: 1px solid rgba(15,23,42,0.12); background: #f8fafc;
  color: #0f172a; transition: var(--transition);
}
.form-control input::placeholder,
.form-control textarea::placeholder {
  color: #64748b;
  opacity: 1;
}
.form-control input:focus,
.form-control textarea:focus,
.form-control select:focus {
  border-color: rgba(217,119,6,0.45); outline: none;
  box-shadow: 0 0 0 5px rgba(217,119,6,0.08);
}
.form-action {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1rem;
}
.form-link {
  color: var(--accent);
  font-weight: 700;
  transition: var(--transition);
}
.form-link:hover {
  color: var(--primary);
}
.message {
  padding: 1rem 1.25rem; border-radius: 16px; margin-bottom: 1.5rem;
  font-weight: 600;
}
.message.success {
  background: #ecfdf5; color: #166534; border: 1px solid #bbf7d0;
}
.message.error {
  background: #fef2f2; color: #991b1b; border: 1px solid #fecaca;
}

.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.contact-container {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem; align-items: start;
}
.contact-info-item {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-info-item div:first-child {
  font-size: 1.6rem; margin-top: 0.2rem;
}
.social-links { display: flex; gap: 1rem; margin-top: 2rem; }
.social-btn {
  width: 52px; height: 52px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; background: var(--white);
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.social-btn:hover {
   transform: translateY(-3px);
   box-shadow: var(--shadow-md);
   }
.social-btn svg { 
  width: 24px; height: 24px;
   fill: var(--primary);
    transition: var(--transition);
   }
.social-btn:hover svg {
   fill: var(--accent);
   }

footer {
  background-color: var(--secondary); color: var(--white);
  padding: 3rem 5%; text-align: center; margin-top: auto;
  box-shadow: 0 -10px 40px rgba(2, 6, 23, 0.24);
}
footer p { color: var(--white); font-size: 0.95rem; }

@media (max-width: 1024px) {
  nav { padding: 1.25rem 5%; }
  .contact-container { gap: 2rem; }
}
@media (max-width: 768px) {
  h1 { font-size: 2.4rem; } h2 { font-size: 1.9rem; }
  nav { flex-direction: column; align-items: flex-start; padding: 1rem 5%; }
  .nav-links { margin-top: 1rem; gap: 1rem; justify-content: flex-start; }
  .contact-container, .services-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  header { padding: 4.5rem 5% 5rem; }
  .form-card { padding: 2rem; }
  .section-light { padding: 2.5rem 1.5rem; }
}

/* Mobile improvements */
@media (max-width: 420px) {
  header { padding: 3rem 4% 4rem; }
  .logo { font-size: 1.25rem; }
  .nav-links { margin-top: 0.75rem; gap: 0.5rem; width: 100%; display: flex; flex-direction: column; align-items: stretch; }
  .nav-links a, .nav-links .btn, .nav-links .btn-secondary { display: block; width: 100%; padding: 0.75rem 1rem; text-align: center; border-radius: 12px; }
  .btn { width: 100%; padding: 0.85rem; border-radius: 12px; }
  .form-card { margin: 1rem; padding: 1.25rem; width: auto; }
  .contact-container, .services-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .section { padding: 3rem 4%; }
  .background-slider { display: none; }
  footer { padding: 2rem 4%; }
  .card { padding: 1.5rem; }
  h1 { font-size: 2rem; }
}

/* WELCOME PAGE */
.welcome-page {
  background: #020617;
}

.welcome-page footer {
  margin-top: 0;
}

.welcome-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5rem 7%;
  color: var(--white);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.78) 42%, rgba(2, 6, 23, 0.22) 100%),
    url('../assets/assets/images/image3.jpeg');
  background-size: cover;
  background-position: center right;
  animation: welcomeFadeIn 700ms ease forwards;
}

.welcome-hero::before {
  content: '';
  position: absolute;
  inset: auto 7% 3.5rem 7%;
  height: 1px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.75), rgba(245, 158, 11, 0.6), transparent);
  z-index: -1;
}

.welcome-content {
  width: min(100%, 760px);
  animation: welcomeRise 760ms ease forwards;
}

.welcome-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
  color: #fbbf24;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.welcome-kicker::before {
  content: '';
  width: 42px;
  height: 2px;
  background: currentColor;
}

.welcome-content h1 {
  max-width: 720px;
  margin-bottom: 1.25rem;
  color: var(--white);
  font-size: clamp(2.8rem, 6vw, 5.75rem);
  letter-spacing: 0;
}

.welcome-content p {
  max-width: 620px;
  margin-bottom: 2.2rem;
  color: rgba(226, 232, 240, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.welcome-actions .btn {
  min-width: 168px;
  box-shadow: 0 18px 45px rgba(56, 189, 248, 0.2);
}

.welcome-actions .btn-secondary {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.32);
  color: var(--white);
  box-shadow: none;
}

.welcome-actions .btn-secondary:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.72);
  color: var(--white);
}

.welcome-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.welcome-signals span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(203, 213, 225, 0.26);
  background: rgba(15, 23, 42, 0.56);
  color: rgba(248, 250, 252, 0.9);
  font-weight: 700;
  border-radius: 999px;
  backdrop-filter: blur(14px);
}

@keyframes welcomeFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes welcomeRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .welcome-hero {
    min-height: 92vh;
    padding: 4.5rem 5%;
    background-image:
      linear-gradient(180deg, rgba(2, 6, 23, 0.84) 0%, rgba(2, 6, 23, 0.72) 52%, rgba(2, 6, 23, 0.94) 100%),
      url('../assets/assets/images/image3.jpeg');
    background-position: center;
  }

  .welcome-content h1 {
    font-size: clamp(2.35rem, 12vw, 4rem);
  }
}

@media (max-width: 420px) {
  .welcome-hero {
    padding: 4rem 4%;
  }

  .welcome-kicker {
    font-size: 0.75rem;
  }

  .welcome-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .welcome-signals {
    display: grid;
    grid-template-columns: 1fr;
  }

  .welcome-signals span {
    justify-content: center;
  }
}
