/* main.css — Imports all modules + section-specific styles
   ============================================================ */
@import url('./reset.css');
@import url('./variables.css');
@import url('./layout.css');
@import url('./components.css');

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

/* ─── SCROLL REVEAL (JS adds .is-visible) ──────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.reveal--left {
  transform: translateX(-28px);
}

.reveal--right {
  transform: translateX(28px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.reveal--delay-1 { transition-delay: 0.10s; }
.reveal--delay-2 { transition-delay: 0.20s; }
.reveal--delay-3 { transition-delay: 0.30s; }
.reveal--delay-4 { transition-delay: 0.40s; }
.reveal--delay-5 { transition-delay: 0.50s; }

/* ─── HERO SECTION ──────────────────────────────────────────── */

/* Arch SVG backdrop — the signature Mediterranean element */
.hero__arch {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero__arch svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Portrait container sits atop the arch */
.hero__visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-top: var(--space-12);
}

.hero__photo-wrap {
  position: relative;
  width: min(380px, 100%);
}

.hero__photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-xl);
  display: block;
  box-shadow: var(--shadow-lg);
  /* Light sepia tint for cohesion */
  filter: brightness(1.02) contrast(0.98);
}

/* Photo placeholder if no image */
.hero__photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--clr-blue-light) 0%, var(--clr-surface) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

/* Floating experience badge */
.hero__badge {
  position: absolute;
  bottom: var(--space-8);
  left: calc(-1 * var(--space-8));
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  animation: float 4s ease-in-out infinite;
}

.hero__badge-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--clr-blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  flex-shrink: 0;
}

.hero__badge-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--clr-blue-deep);
  line-height: 1;
}

.hero__badge-text span {
  font-size: var(--text-xs);
  color: var(--clr-text-sub);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Hero copy */
.hero__copy {
  position: relative;
  z-index: 2;
}

.hero__greeting {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-blue);
  margin-bottom: var(--space-4);
}

.hero__greeting::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: var(--clr-blue);
  border-radius: 1px;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 5.5vw, var(--text-7xl));
  font-weight: 800;
  line-height: var(--leading-tight);
  color: var(--clr-blue-deep);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
}

.hero__role {
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl));
  font-weight: 600;
  color: var(--clr-blue);
  margin-bottom: var(--space-5);
  line-height: var(--leading-snug);
}

.hero__desc {
  font-size: var(--text-lg);
  color: var(--clr-text-sub);
  line-height: var(--leading-relaxed);
  max-width: 440px;
  margin-bottom: var(--space-8);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ─── ABOUT SECTION ─────────────────────────────────────────── */
.about__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.about__eyebrow-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.about__text {
  font-size: var(--text-base);
  color: var(--clr-text-sub);
  line-height: var(--leading-relaxed);
}

.about__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-weight: 700;
  color: var(--clr-blue-deep);
  line-height: var(--leading-snug);
  letter-spacing: -0.02em;
}

.about__philosophy {
  position: relative;
  padding-left: var(--space-6);
  border-left: 3px solid var(--clr-blue);
}

.about__philosophy p {
  font-size: var(--text-base);
  font-style: italic;
  color: var(--clr-text-sub);
  line-height: var(--leading-relaxed);
}

/* Tech stack grid */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.about__skills-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: var(--space-4);
  letter-spacing: 0.02em;
}

/* ─── PROJECTS SECTION ──────────────────────────────────────── */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

@media (max-width: 1024px) {
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .projects__grid {
    grid-template-columns: 1fr;
  }
}

/* ─── SERVICES SECTION ──────────────────────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-5);
}

@media (max-width: 1100px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 380px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
}

/* ─── CONTACT SECTION ───────────────────────────────────────── */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-16);
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: 700;
  color: var(--clr-blue-deep);
  line-height: var(--leading-snug);
  letter-spacing: -0.02em;
}

.contact__tagline {
  font-size: var(--text-base);
  color: var(--clr-text-sub);
  line-height: var(--leading-relaxed);
}

.contact__socials {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.contact__divider {
  width: 40px;
  height: 2px;
  background: var(--clr-blue);
  border-radius: var(--radius-full);
  margin: var(--space-2) 0;
}

.contact__closing {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-blue-deep);
  letter-spacing: 0.04em;
  padding-top: var(--space-4);
  border-top: 1px solid var(--clr-border);
}

@media (max-width: 768px) {
  .contact__inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

/* ─── FOOTER ────────────────────────────────────────────────── */
.site-footer {
  background: var(--clr-blue-deep);
  color: rgba(255,255,255,0.6);
  padding-block: var(--space-8);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer__copy {
  font-size: var(--text-sm);
}

.footer__links {
  display: flex;
  gap: var(--space-6);
}

.footer__link {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color var(--dur-fast);
}

.footer__link:hover {
  color: rgba(255,255,255,0.9);
}

@media (max-width: 600px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}
