
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --blue-dark: #0a1a2f;
  --blue-mid: #123a60;
  --blue-accent: #38bdf8;
  --bg-soft: #eef2f7;
  --card-radius: 1.5rem;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.10);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-soft);
  color: #0f172a;
  margin: 0;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #0b1630 0, #020617 55%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#preloader .spinner {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: var(--blue-accent);
  animation: spin 0.8s linear infinite;
}

body.loaded #preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Header with blue gradient */
header {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-mid), #165a8e);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.55);
}

header .fw-semibold,
header .small {
  color: #e5f2ff;
}

header .small {
  opacity: 0.85;
  font-weight: 400;
}

/* Logo image */
.brand-logo {
  height: 36px;
  width: auto;
  border-radius: 0.75rem;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
  background: rgba(15,23,42,0.5);
  padding: 2px 4px;
}

/* Navigation */
header .nav-link {
  color: rgba(241, 245, 249, 0.85);
  border-radius: 999px;
  padding-inline: 0.9rem;
  padding-block: 0.45rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

header .nav-link:hover {
  background: rgba(148, 163, 184, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

header .nav-link.active {
  background: rgba(15, 23, 42, 0.6);
  color: #ffffff;
  font-weight: 600;
}

/* Main wrapper */
.main-wrapper {
  padding: 2.5rem 1rem 3rem;
}

@media (min-width: 768px) {
  .main-wrapper {
    padding: 3rem 0 4rem;
  }
}

/* HERO SECTION – bluish blurred interior */
.hero {
  min-height: 70vh;
  padding: 4rem 1.5rem;
  display: flex;
  align-items: center;
  border-radius: var(--card-radius);
  position: relative;
  overflow: hidden;
  color: #fff;
  margin-bottom: 2.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20px;
  background:
    linear-gradient(rgba(10,25,50,0.82), rgba(10,25,50,0.75)),
    url("https://images.unsplash.com/photo-1556912998-c57cc6b63cd7?auto=format&fit=crop&w=1600&q=80")
    center/cover no-repeat;
  filter: blur(9px);
  transform: scale(1.06);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

/* Fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.8s ease-out forwards;
}

.fade-up.delay-1 { animation-delay: 0.15s; }
.fade-up.delay-2 { animation-delay: 0.30s; }
.fade-up.delay-3 { animation-delay: 0.45s; }

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

.badge-soft {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 999px;
  padding: .25rem .9rem;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #e5f2ff;
}

/* Sections */
.section-block {
  padding: 2.5rem;
  border-radius: var(--card-radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  margin-bottom: 2rem;
}

/* Cards / portfolio grid */
.card {
  border-radius: 1.25rem;
  overflow: hidden;
  border: none;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card img {
  height: 220px;
  object-fit: cover;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

/* Portfolio images a bit taller */
.project-card img {
  height: 260px;
}

/* Footer */
footer {
  background: var(--blue-dark);
  color: #e5e7eb;
  padding: 3rem 1rem 1.5rem;
  margin-top: 3rem;
}

footer a {
  color: #e5f2ff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 575.98px) {
  .hero {
    padding: 3rem 1.25rem;
    min-height: 60vh;
  }
  .section-block {
    padding: 2rem 1.5rem;
  }
  header .nav {
    margin-top: 0.75rem;
    gap: 0.35rem;
  }
  header .nav-link {
    padding-inline: 0.7rem;
  }
}
