/* ═══════════════════════════════════════════
   IBAD SHALMANY — PORTFOLIO STYLESHEET
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── TOKENS ── */
:root {
  --navy:        #201658;
  --royal:       #1D24CA;
  --periwinkle:  #98ABEE;
  --cream:       #F9E8C9;
  --white:       #ffffff;
  --text-main:   #201658;
  --text-soft:   #4a5080;
  --text-muted:  #8a90b0;
  --border:      rgba(32,22,88,0.09);
  --radius-sm:   10px;
  --radius-md:   18px;
  --radius-lg:   28px;
  --radius-full: 100px;
  --shadow-sm:   0 4px 14px rgba(32,22,88,0.08);
  --shadow-md:   0 8px 32px rgba(32,22,88,0.12);
  --shadow-lg:   0 20px 60px rgba(32,22,88,0.18);
  --transition:  0.28s cubic-bezier(0.4,0,0.2,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a  { color: inherit; }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
.font-display { font-family: 'Syne', sans-serif; }

h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--navy);
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 5%;
  background: rgba(249,232,201,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
nav.scrolled { box-shadow: var(--shadow-md); }

.nav-logo {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 1.25rem; letter-spacing: -0.02em;
  color: var(--navy); text-decoration: none;
}
.nav-logo span { color: var(--royal); }

.nav-links {
  display: flex; align-items: center; gap: 2rem;
}
.nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: var(--navy); text-decoration: none;
  position: relative; padding-bottom: 2px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--royal);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--royal); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--navy) !important; color: var(--cream) !important;
  padding: 0.5rem 1.25rem !important; border-radius: var(--radius-full) !important;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--royal) !important; }
.nav-cta::after { display: none !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; z-index: 210;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); background: var(--cream); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); background: var(--cream); }

/* ── SECTION BASE ── */
section { padding: 6rem 5%; }

.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--royal); font-weight: 600; margin-bottom: 0.85rem;
}
.section-label::before {
  content: ''; width: 20px; height: 2px; background: var(--royal); border-radius: 2px;
}

h2.section-title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  color: var(--navy); margin-bottom: 1rem;
}

.section-sub {
  color: var(--text-soft); font-size: 1.05rem; line-height: 1.75;
  max-width: 560px; margin-bottom: 3rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem; border-radius: var(--radius-full);
  font-family: 'DM Sans', sans-serif; font-size: 0.92rem; font-weight: 500;
  text-decoration: none; cursor: pointer; border: none;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--navy); color: var(--cream);
  box-shadow: 0 4px 20px rgba(32,22,88,0.25);
}
.btn-primary:hover {
  background: var(--royal); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(29,36,202,0.35);
}
.btn-outline {
  background: transparent; color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy); color: var(--cream); transform: translateY(-2px);
}
.btn-cream {
  background: var(--cream); color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.btn-cream:hover {
  background: var(--periwinkle); transform: translateY(-2px);
}

/* ── CARDS ── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

/* ── TAGS ── */
.tag {
  display: inline-block;
  padding: 0.3rem 0.85rem; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em;
  background: rgba(152,171,238,0.2); color: var(--royal);
}

/* ── FOOTER ── */
footer {
  background: var(--navy); color: rgba(249,232,201,0.5);
  padding: 2.5rem 5%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.82rem;
  border-top: 1px solid rgba(152,171,238,0.1);
}
footer .foot-logo {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1rem;
  color: var(--cream); text-decoration: none;
}
footer .foot-logo span { color: var(--periwinkle); }
footer .foot-links {
  display: flex; gap: 1.5rem;
}
footer .foot-links a {
  color: rgba(249,232,201,0.5); text-decoration: none;
  transition: color var(--transition); font-size: 0.82rem;
}
footer .foot-links a:hover { color: var(--periwinkle); }
footer p span { color: var(--periwinkle); }

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left  { opacity: 0; transform: translateX(-30px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-left.visible  { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── HERO BG DECORATIONS ── */
.hero-bg-dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, var(--periwinkle) 1px, transparent 1px);
  background-size: 36px 36px; opacity: 0.15;
}
.hero-bg-blob {
  position: absolute; pointer-events: none;
  background: radial-gradient(circle at 40% 40%, var(--periwinkle), var(--royal), var(--navy));
  border-radius: 38% 62% 55% 45% / 45% 40% 60% 55%;
  opacity: 0.15;
  animation: morphBlob 14s ease-in-out infinite alternate;
}
@keyframes morphBlob {
  0%  { border-radius: 38% 62% 55% 45% / 45% 40% 60% 55%; }
  50% { border-radius: 62% 38% 45% 55% / 55% 60% 40% 45%; }
  100%{ border-radius: 50% 50% 60% 40% / 40% 60% 50% 50%; }
}

/* ── MOBILE NAV OVERLAY ── */
@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed; inset: 0;
    background: var(--navy); flex-direction: column;
    justify-content: center; align-items: center;
    gap: 2rem; z-index: 205;
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--cream); font-size: 1.4rem; }
  .nav-links a::after { background: var(--periwinkle); }
  .nav-cta { background: var(--periwinkle) !important; color: var(--navy) !important; }
  .hamburger { display: flex; }
  section { padding: 4.5rem 5%; }
}
@media (max-width: 480px) {
  section { padding: 3.5rem 5%; }
}
