/* ===== Variables ===== */
:root {
  --navy-50: #f0f4f8;
  --navy-600: #486581;
  --navy-700: #334e68;
  --navy-800: #243b53;
  --navy-900: #102a43;
  --navy-950: #0a1929;
  --accent-400: #38bdf8;
  --accent-500: #0ea5e9;
  --accent-600: #0284c7;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --white: #fff;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --container: 72rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-600);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--navy-700); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy-800); }

/* ===== Layout ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 7rem 0; } }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-label {
  display: block;
  color: var(--accent-500);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.section-label--light { color: var(--accent-400); }
.section-title {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--navy-900);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}
.section-title--light { color: var(--white); }
.section-desc {
  color: var(--gray-500);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto;
}
.section-desc--light { color: var(--gray-400); }

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
  background: transparent;
}
.nav--scrolled {
  background: rgba(10, 25, 41, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
@media (min-width: 768px) { .nav__inner { height: 5rem; } }

.nav__logo {
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}
.nav__logo span { color: var(--accent-400); }

.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) { .nav__links { display: flex; } }

.nav__link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__link:hover,
.nav__link--active { color: var(--white); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  background: var(--accent-500);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: background 0.2s;
}
.nav__cta:hover { background: var(--accent-600); }

.nav__toggle {
  display: flex;
  padding: 0.5rem;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
}
@media (min-width: 768px) { .nav__toggle { display: none; } }

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  background: rgba(16, 42, 67, 0.95);
  backdrop-filter: blur(12px);
}
@media (min-width: 768px) { .mobile-menu { display: none; } }
.mobile-menu__inner { padding: 1rem; }
.mobile-menu__link {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 500;
}
.mobile-menu__link:hover { color: var(--white); }
.mobile-menu__cta {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--accent-500);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
}

/* ===== Hero ===== */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 25%, #1e3a5f 50%, var(--navy-900) 75%, var(--navy-950) 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  padding: 8rem 0 10rem;
  max-width: 48rem;
}
@media (min-width: 768px) { .hero__content { padding: 10rem 0; } }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border-radius: 9999px;
  color: var(--accent-400);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero__badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent-400);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
.hero__title-gradient {
  background: linear-gradient(to right, var(--accent-400), #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: #d1d5db;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) {
  .hero__actions { flex-direction: row; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn--primary {
  background: var(--accent-500);
  color: var(--white);
  font-size: 1.125rem;
}
.btn--primary:hover { background: var(--accent-600); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.2); }
.btn--full { width: 100%; }

/* ===== Cards ===== */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-2xl);
}
.card--border { border: 1px solid var(--gray-100); }
.card--muted { background: var(--gray-50); }

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.75rem;
}
.card__text { color: var(--gray-600); line-height: 1.7; }
.card__text--sm { font-size: 0.875rem; color: var(--gray-500); }

.card__icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(14, 165, 233, 0.1);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-500);
  font-size: 1.5rem;
}

.card__stat {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-500);
  margin-bottom: 0.5rem;
}

/* ===== Grids ===== */
.grid-services {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .grid-services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-services { grid-template-columns: repeat(4, 1fr); } }

.grid-results {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .grid-results { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-results { grid-template-columns: repeat(3, 1fr); } }

.grid-skills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) { .grid-skills { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-skills { grid-template-columns: repeat(4, 1fr); } }

/* ===== Sections backgrounds ===== */
.bg-gray { background: var(--gray-50); }
.bg-white { background: var(--white); }
.bg-navy { background: var(--navy-950); color: var(--white); }

/* ===== Experience timeline ===== */
.timeline { position: relative; padding-left: 3rem; }
@media (min-width: 768px) { .timeline { padding-left: 4rem; } }
.timeline::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-500), var(--navy-700));
}
@media (min-width: 768px) { .timeline::before { left: 1.25rem; } }

.timeline__item { position: relative; margin-bottom: 2.5rem; }
.timeline__item:last-child { margin-bottom: 0; }

.timeline__dot {
  position: absolute;
  left: -3rem;
  top: 0.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.875rem;
  box-shadow: 0 0 0 4px var(--white);
}
@media (min-width: 768px) { .timeline__dot { left: -4rem; } }
.timeline__dot--accent { background: var(--accent-500); }
.timeline__dot--navy { background: var(--navy-700); }

.timeline__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
@media (min-width: 640px) {
  .timeline__header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.timeline__badge {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  width: fit-content;
}
.timeline__badge--accent {
  color: var(--accent-500);
  background: rgba(14, 165, 233, 0.1);
}
.timeline__badge--muted {
  color: var(--gray-500);
  background: var(--gray-100);
}

.timeline__company {
  color: var(--gray-500);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* ===== Skills ===== */
.skill-card {
  background: rgba(16, 42, 67, 0.5);
  border: 1px solid rgba(51, 78, 104, 0.5);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.skill-card:hover {
  background: rgba(36, 59, 83, 0.8);
  border-color: rgba(14, 165, 233, 0.3);
}
.skill-card i {
  font-size: 1.5rem;
  color: var(--accent-400);
  margin-bottom: 0.75rem;
  display: block;
  transition: transform 0.2s;
}
.skill-card:hover i { transform: scale(1.1); }
.skill-card__name {
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
}
.skill-card__desc {
  color: var(--gray-500);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 2fr 3fr; }
}

.about-photo {
  position: relative;
  max-width: 20rem;
  margin: 0 auto;
}
@media (min-width: 768px) { .about-photo { max-width: none; margin: 0; } }

.about-photo__frame {
  aspect-ratio: 1;
  border-radius: var(--radius-2xl);
  background: linear-gradient(to bottom right, var(--navy-800), var(--navy-950));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 4px solid var(--gray-100);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.about-photo__placeholder {
  text-align: center;
  padding: 2rem;
  color: var(--navy-600);
}
.about-photo__placeholder i { font-size: 4rem; margin-bottom: 1rem; display: block; }
.about-photo__hint { font-size: 0.75rem; margin-top: 0.25rem; }

.about-bio p {
  color: var(--gray-500);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.about-bio p:last-of-type { margin-bottom: 0; }

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: background 0.2s;
}
.about-link--dark {
  background: var(--navy-900);
  color: var(--white);
}
.about-link--dark:hover { background: var(--navy-800); }
.about-link--light {
  background: var(--gray-100);
  color: var(--navy-900);
}
.about-link--light:hover { background: #e5e7eb; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-intro h2 {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.contact-intro p {
  color: var(--gray-400);
  font-size: 1.125rem;
}

.form-group { margin-bottom: 1.25rem; }
.form-group:last-of-type { margin-bottom: 0; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #d1d5db;
  margin-bottom: 0.5rem;
}
.form-input {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--navy-900);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-xl);
  color: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: var(--gray-500); }
.form-input:focus {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
textarea.form-input { resize: vertical; min-height: 8rem; }

.form-status { text-align: center; font-size: 0.875rem; margin-top: 0.5rem; }
.form-status--success { color: #4ade80; }
.form-status--error { color: #f87171; }
.form-status[hidden] { display: none; }
.form-honey { display: none; }

/* ===== Footer ===== */
.footer {
  background: var(--navy-950);
  padding: 2rem 0;
  text-align: center;
  color: var(--gray-500);
}
.footer a {
  color: var(--gray-500);
  transition: color 0.2s;
}
.footer a:hover { color: var(--accent-400); }

/* ===== Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
