/* ------------------------------
   Base Styles & Variables
-------------------------------- */
:root {
  --bg: #ffffff;
  --surface: rgba(37, 109, 228, 0.03);
  --muted: rgba(37, 109, 228, 0.08);
  --text: #00228d;
  --text-soft: rgba(0, 34, 141, 0.75);
  --accent: #256de4;
  --accent-strong: #256de4;
  --complimentary: #256de4;
  --border: rgba(0, 34, 141, 0.12);
  --card: rgba(37, 109, 228, 0.08);
  --shadow: 0 30px 60px rgba(37, 109, 228, 0.18);
  --radius: 1rem;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  scroll-behavior: smooth;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

p {
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0 0 1rem;
}

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

.section {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.section.muted {
  background: var(--muted);
}

.eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--complimentary);
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.btn.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 20px 30px rgba(37, 109, 228, 0.3);
}

.btn.ghost {
  border-color: var(--border);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.25);
}

/* ------------------------------
   Header & Navigation
-------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 34, 141, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav a {
  color: var(--text-soft);
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 0.2rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #ffffff;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--accent);
  display: block;
}

/* ------------------------------
   Hero
-------------------------------- */
.hero {
  padding-top: clamp(2rem, 6vw, 4rem);
  background-image: url("bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0 0 var(--radius) var(--radius);
  position: relative;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.hero-text p {
  max-width: 520px;
}

.hero-visual {
  min-height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo {
  width: min(460px, 80vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: rgba(37, 109, 228, 0.12);
  background-image: url(aijairo_clear.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: none;
  box-shadow: 0 30px 60px rgba(37, 109, 228, 0.25);
}

/* ------------------------------
   About
-------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
  align-items: center;
}

.skills ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.7rem;
  padding: 0;
  margin: 1.5rem 0 0;
}

.skills li {
  padding: 0.6rem 0.9rem;
  background: var(--card);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.about-skills {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.about-skills .skills {
  width: 100%;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* ------------------------------
   Services
-------------------------------- */
.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.8rem;
}

.service-card {
  padding: 1.8rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
}

/* ------------------------------
   Portfolio
-------------------------------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.2rem;
  display: grid;
  gap: 1rem;
  transition: transform var(--transition), border-color var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.project-image {
  width: 100%;
  height: 160px;
  border-radius: calc(var(--radius) - 0.5rem);
  background: rgba(37, 109, 228, 0.15);
  display: grid;
  place-items: center;
  color: var(--text);
  font-weight: 600;
}

/* ------------------------------
   Contact
-------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  background: rgba(37, 109, 228, 0.04);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.contact-form label {
  display: grid;
  gap: 0.5rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  background: rgba(37, 109, 228, 0.08);
  border: 1px solid rgba(0, 34, 141, 0.15);
  border-radius: 0.7rem;
  padding: 0.9rem 1rem;
  color: var(--text);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

/* ------------------------------
   Footer
-------------------------------- */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(0, 34, 141, 0.12);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-soft);
}

/* ------------------------------
   Animations
-------------------------------- */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-right"] {
  transform: translateX(-30px);
}

[data-animate="fade-left"] {
  transform: translateX(30px);
}

[data-animate="fade-right"].visible,
[data-animate="fade-left"].visible {
  transform: translateX(0);
}

/* ------------------------------
   Responsive
-------------------------------- */
@media (max-width: 820px) {
  .nav-toggle {
    display: none;
  }

  .nav {
    position: fixed;
    inset: 0;
    background: rgba(37, 109, 228, 0.96);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 4rem 2rem;
    transform: translateY(-100%);
    transition: transform var(--transition), opacity var(--transition);
    opacity: 0;
    pointer-events: none;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .nav a::after {
    background: #ffffff;
  }
}

@media (max-width: 540px) {
  .hero-cta {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .footer-links a {
    margin-left: 0.5rem;
  }
}

