/* =========================================================
   IdDB — House Style
   Colors:  bg #374455 · bg-dark #2b3444 · bg-light #3f4e62
            cyan #02C9E1 · blue #005B96 · coral #F76F8E
   Fonts:   Exo 2 (headings) · Inter (body)
   ========================================================= */

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

/* --- Reset & base ---------------------------------------- */

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

:root {
  --bg:           #374455;
  --bg-dark:      #2b3444;
  --bg-light:     #3f4e62;
  --bg-card:      #3a4d61;

  /* Brand palette */
  --cyan:         #02C9E1;
  --cyan-hover:   #02adc2;
  --blue:         #005B96;
  --blue-hover:   #004a7a;
  --coral:        #F76F8E;
  --coral-hover:  #e05577;

  /* Semantic aliases */
  --accent:       var(--cyan);
  --accent-hover: var(--cyan-hover);

  --text:         #ffffff;
  --text-muted:   rgba(255, 255, 255, 0.55);
  --border:       rgba(255, 255, 255, 0.08);

  --font-heading: 'Exo 2', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius:       10px;
  --radius-lg:    18px;
  --transition:   0.2s ease;
  --max-width:    1100px;
  --section-gap:  5rem;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-hover); }

/* --- Typography ------------------------------------------ */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.2rem; }

p {
  color: var(--text-muted);
  max-width: 65ch;
}

strong { color: var(--text); }

/* --- Layout helpers -------------------------------------- */

.container {
  width: min(var(--max-width), 100% - 2rem);
  margin-inline: auto;
}

.section { padding-block: var(--section-gap); }
.section--dark { background-color: var(--bg-dark); }

/* --- Accent bar on headings ----------------------------- */

.heading-accent {
  display: inline-block;
  position: relative;
  padding-bottom: 0.4em;
}

.heading-accent::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 2.5rem;
  height: 3px;
  background: var(--coral);
  border-radius: 2px;
}

/* --- Buttons -------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75em 1.8em;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn--primary {
  background: var(--accent);
  color: var(--bg-dark);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--cyan) 30%, transparent);
}

.btn--outline {
  background: transparent;
  color: var(--cyan);
  border: 2px solid var(--cyan);
}
.btn--outline:hover {
  background: var(--cyan);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

.btn--coral {
  background: var(--coral);
  color: #ffffff;
}
.btn--coral:hover {
  background: var(--coral-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--coral) 35%, transparent);
}

.btn--blue {
  background: var(--blue);
  color: #ffffff;
}
.btn--blue:hover {
  background: var(--blue-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

/* --- Navigation ----------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg-dark) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}

.nav__logo img { height: 36px; width: auto; }

.nav__right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--text); }

/* --- Language switcher ---------------------------------- */

.lang-switcher {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: calc(var(--radius) - 2px);
  padding: 3px;
  border: 1px solid var(--border);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.3em 0.65em;
  border-radius: calc(var(--radius) - 4px);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: var(--coral);
  color: #fff;
}

/* --- Hero ----------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding-block: 8rem 6rem;
  background-color: var(--bg-dark);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 95% 50%, color-mix(in srgb, var(--cyan) 10%, transparent), transparent),
    radial-gradient(ellipse 50% 60% at 5% 85%, color-mix(in srgb, var(--blue) 18%, transparent), transparent),
    radial-gradient(ellipse 35% 40% at 50% 5%, color-mix(in srgb, var(--coral) 7%, transparent), transparent);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
}

.hero__logo-native {
  display: block;
  width: 300px; /* 70% of native 429px */
  height: auto;
  margin-left: -22px;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 28px color-mix(in srgb, var(--cyan) 30%, transparent));
}

.hero__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.975rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 0.05em;
  margin-bottom: 1.75rem;
}

.hero__line {
  display: block;
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.05;
}

.hero__line--big {
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--text);
  letter-spacing: -0.01em;
}

.hero__line--mid {
  font-size: clamp(1.6rem, 4vw, 3rem);
  color: var(--text-muted);
  font-weight: 600;
}

.hero__title em {
  display: block;
  font-style: normal;
  font-weight: 900;
  font-size: clamp(1.8rem, 4.5vw, 3.5rem);
  color: var(--coral);
  line-height: 1.1;
  animation: glow-coral 4s ease-in-out infinite;
}

.hero__lead {
  font-size: 1.1rem;
  max-width: 72ch;
  margin-bottom: 2.25rem;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Hero badge ----------------------------------------- */

.hero__badge {
  position: absolute;
  right: max(2rem, 6%);
  top: 50%;
  transform: translateY(-50%) rotate(8deg);
  z-index: 3;
  width: 140px;
  height: 140px;
  background: var(--coral);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--coral) 25%, transparent),
              0 20px 50px color-mix(in srgb, var(--coral) 30%, transparent);
  animation: badge-breathe 3.5s ease-in-out infinite;
}

.hero__badge-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-heading);
  color: #fff;
  line-height: 1.05;
  text-align: center;
}

.hero__badge-content span {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.85;
  margin: 0.15em 0;
}

.hero__badge-content strong {
  font-size: 2.1rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

/* --- Hero floating shapes ------------------------------- */

.hero__shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.shape {
  position: absolute;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.shape--1 {
  width: 80px; height: 80px;
  background: var(--cyan);
  opacity: 0.07;
  border-radius: 50%;
  top: 12%; left: 62%;
  animation: float-a 9s infinite;
}

.shape--2 {
  width: 50px; height: 50px;
  background: var(--coral);
  opacity: 0.10;
  border-radius: 10px;
  top: 72%; left: 40%;
  animation: float-b 7s 1s infinite;
}

.shape--3 {
  width: 110px; height: 110px;
  background: transparent;
  border: 2px solid var(--cyan);
  opacity: 0.06;
  border-radius: 50%;
  top: 20%; left: 75%;
  animation: float-a 11s 2s infinite;
}

.shape--4 {
  width: 30px; height: 30px;
  background: var(--blue);
  opacity: 0.20;
  border-radius: 6px;
  top: 80%; left: 70%;
  animation: float-b 6s 0.5s infinite;
}

.shape--5 {
  width: 18px; height: 18px;
  background: var(--coral);
  opacity: 0.25;
  border-radius: 50%;
  top: 35%; left: 55%;
  animation: float-a 5s 3s infinite;
}

/* Left-side + scattered shapes */
.shape--6 {
  width: 44px; height: 44px;
  background: var(--cyan);
  opacity: 0.10;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  top: 62%; left: 6%;
  animation: float-a 7s 0.8s infinite;
}

.shape--7 {
  width: 56px; height: 56px;
  background: transparent;
  border: 2px solid var(--coral);
  opacity: 0.11;
  border-radius: 8px;
  top: 10%; left: 8%;
  animation: float-b 9s 2s infinite;
}

.shape--8 {
  width: 42px; height: 42px;
  background: var(--blue);
  opacity: 0.18;
  border-radius: 50%;
  top: 42%; left: 3%;
  animation: float-c 11s 1s infinite;
}

.shape--9 {
  width: 22px; height: 22px;
  background: var(--coral);
  opacity: 0.20;
  border-radius: 4px;
  top: 83%; left: 20%;
  animation: float-b 6s 3s infinite;
}

.shape--10 {
  width: 66px; height: 66px;
  background: transparent;
  border: 2px solid var(--cyan);
  opacity: 0.08;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  top: 22%; left: 22%;
  animation: float-a 8s 0.5s infinite;
}

.shape--11 {
  width: 16px; height: 16px;
  background: var(--blue);
  opacity: 0.28;
  border-radius: 3px;
  top: 57%; left: 34%;
  animation: float-c 5s 1.5s infinite;
}

.shape--12 {
  width: 50px; height: 50px;
  background: transparent;
  border: 2px solid var(--coral);
  opacity: 0.09;
  border-radius: 50%;
  top: 87%; left: 48%;
  animation: float-a 10s 2.5s infinite;
}

/* --- Stats strip ---------------------------------------- */

.stats-strip {
  background: var(--bg-card);
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--border);
  padding-block: 2.25rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat__num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat:nth-child(1) .stat__num { color: var(--cyan); }
.stat:nth-child(2) .stat__num { color: var(--coral); }
.stat:nth-child(3) .stat__num { color: #5ba8d4; }
.stat:nth-child(4) .stat__num { color: var(--coral); }

.stat__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* --- Section header ------------------------------------- */

.section__header {
  margin-bottom: 3rem;
}

.section__header p {
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

/* --- Pillars (3-up) ------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
}

.pillar {
  text-align: center;
}

.pillar__icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pillar:hover .pillar__icon {
  transform: scale(1.25) rotate(-8deg);
}

.pillar h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

/* --- Project grid --------------------------------------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.75rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.25s ease,
              box-shadow 0.35s ease;
}

.project-card:hover {
  transform: translateY(-8px) rotate(-0.6deg);
  border-color: color-mix(in srgb, var(--coral) 50%, transparent);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 0 1px color-mix(in srgb, var(--coral) 20%, transparent);
}

/* --- Project card: media -------------------------------- */

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-dark);
}

.project-card__media img,
.project-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.project-card:hover .project-card__media img,
.project-card:hover .project-card__media video {
  transform: scale(1.05);
}

.project-card__media--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--blue) 60%, var(--bg-dark)),
    var(--bg-dark)
  );
}

.project-card__fallback-emoji {
  font-size: 4.5rem;
  display: block;
}

.project-card__age {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.68rem;
  padding: 0.2em 0.7em;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* --- Project card: body --------------------------------- */

.project-card__body {
  padding: 1.5rem;
}

.project-card__body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.project-card__body p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.1rem;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* --- Tag / badge ---------------------------------------- */

.tag {
  display: inline-block;
  padding: 0.22em 0.7em;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  cursor: default;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.2s ease,
              box-shadow 0.2s ease,
              border-color 0.2s ease;
}

.tag:hover {
  transform: scale(1.12) translateY(-2px);
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 30%, transparent);
}

.tag--coral {
  background: color-mix(in srgb, var(--coral) 14%, transparent);
  color: var(--coral);
  border-color: color-mix(in srgb, var(--coral) 28%, transparent);
}
.tag--coral:hover {
  background: color-mix(in srgb, var(--coral) 28%, transparent);
  border-color: color-mix(in srgb, var(--coral) 60%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--coral) 30%, transparent);
}

.tag--blue {
  background: color-mix(in srgb, var(--blue) 20%, transparent);
  color: #6ab4e8;
  border-color: color-mix(in srgb, var(--blue) 40%, transparent);
}
.tag--blue:hover {
  background: color-mix(in srgb, var(--blue) 35%, transparent);
  border-color: color-mix(in srgb, var(--blue) 65%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--blue) 30%, transparent);
}

.tag--lg {
  font-size: 0.82rem;
  padding: 0.35em 1em;
}

/* --- Skills cloud --------------------------------------- */

.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* --- Footer --------------------------------------------- */

.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding-block: 2.75rem;
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 380px;
}

.footer__logo img {
  height: 28px;
  width: auto;
  opacity: 0.85;
}

.footer__tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 40ch;
}

.footer__meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.footer__meta a { color: var(--text-muted); }
.footer__meta a:hover { color: var(--accent); }

/* --- Animations ----------------------------------------- */

@keyframes float-a {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  40%       { transform: translateY(-20px) rotate(7deg); }
  70%       { transform: translateY(9px) rotate(-5deg); }
}

@keyframes float-b {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50%       { transform: translateY(-24px) rotate(22deg) scale(0.9); }
}

@keyframes float-c {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  40%       { transform: translateX(16px) rotate(10deg); }
  75%       { transform: translateX(-10px) rotate(-7deg); }
}

@keyframes glow-coral {
  0%, 100% { text-shadow: none; }
  50%       { text-shadow: 0 0 32px color-mix(in srgb, var(--coral) 50%, transparent); }
}

@keyframes badge-breathe {
  0%, 100% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--coral) 25%, transparent), 0 20px 50px color-mix(in srgb, var(--coral) 30%, transparent); }
  50%       { box-shadow: 0 0 0 14px color-mix(in srgb, var(--coral) 12%, transparent), 0 28px 60px color-mix(in srgb, var(--coral) 20%, transparent); }
}

/* --- Scroll reveal -------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* --- Utilities ------------------------------------------ */

.text-cyan   { color: var(--cyan); }
.text-blue   { color: var(--blue); }
.text-coral  { color: var(--coral); }
.text-muted  { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }

/* --- Responsive ----------------------------------------- */

@media (max-width: 960px) {
  .hero__badge { display: none; }
}

@media (max-width: 700px) {
  .hero {
    min-height: auto;
    padding-block: 6rem 4rem;
  }

  .hero__line--big {
    font-size: clamp(2.4rem, 10vw, 3.5rem);
  }

  .hero__line--mid {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
  }

  .hero__title em {
    font-size: clamp(1.4rem, 6vw, 2.2rem);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .nav__links { gap: 1rem; }
  .nav__links a { font-size: 0.82rem; }
  .nav__right { gap: 1rem; }

  .footer__inner {
    flex-direction: column;
  }

  .footer__left { max-width: 100%; }
}

@media (max-width: 480px) {
  .nav__links { display: none; }
  .project-grid { grid-template-columns: 1fr; }
}
