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

:root {
  --navy:       #1a2340;
  --blue:       #2d54b8;
  --blue-light: #3f6de1;
  --accent:     #f5a623;
  --bg:         #f4f5f7;
  --white:      #ffffff;
  --gray:       #6b7280;
  --border:     #e2e5ec;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--navy);
  line-height: 1.6;
}

/* ─── PAGE WRAPPER ─── */
.page-wrap {
  max-width: 860px;
  margin: 32px auto;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 60px rgba(0,0,0,.10);
  overflow: hidden;
}

/* ─── NAV ─── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2.5px solid var(--navy);
  padding-bottom: 2px;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--navy);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--blue); }

.nav-socials {
  display: flex;
  gap: 8px;
  align-items: center;
}

.social-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
  text-decoration: none;
}
.social-icon:hover { opacity: .85; transform: translateY(-2px); }
.si-fb1 { background: #1877f2; color: #fff; }
.si-fb2 { background: #1877f2; color: #fff; }
.si-ig  { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.si-li  { background: #0a66c2; color: #fff; }

/* ─── HERO ─── */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 64px 48px 72px;
  gap: 32px;
}

.hero-text { flex: 1; }

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 20px;
  animation: fadeUp .7s ease both;
}

.hero p {
  font-size: .97rem;
  color: var(--gray);
  max-width: 300px;
  margin-bottom: 32px;
  animation: fadeUp .7s .15s ease both;
}

.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 13px 30px;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  animation: fadeUp .7s .25s ease both;
  box-shadow: 0 4px 18px rgba(45,84,184,.28);
}
.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,84,184,.38);
}

.hero-illustration {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp .7s .1s ease both;
}

.hero-illustration svg {
  width: 100%;
  max-width: 340px;
}

/* ─── SECTIONS ─── */
section {
  padding: 56px 48px;
}
section + section {
  border-top: 1px solid var(--border);
}

.section-tag {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.section-sub {
  font-size: .97rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

.section-desc {
  font-size: .91rem;
  color: var(--gray);
  max-width: 540px;
  margin-bottom: 40px;
}

/* ─── ABOUT CARDS ─── */
.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 12px;
  background: var(--bg);
  transition: transform .2s, box-shadow .2s;
}
.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.card-body h3 {
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.card-body p {
  font-size: .8rem;
  color: var(--gray);
  line-height: 1.5;
}

/* ─── PORTFOLIO + CONTACT LAYOUT ─── */
.portfolio-contact {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  padding: 56px 48px;
  border-top: 1px solid var(--border);
}

.portfolio-section .section-title { margin-bottom: 6px; }
.portfolio-section .section-desc  { margin-bottom: 24px; }

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.portfolio-item {
  border-radius: 10px;
  overflow: hidden;
  background: #dce4f0;
  aspect-ratio: 4/3;
  position: relative;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.portfolio-item:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.portfolio-item svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ─── CONTACT FORM ─── */
.contact-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.contact-section p {
  font-size: .8rem;
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  color: var(--navy);
  background: var(--white);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #adb5c7; }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(45,84,184,.12);
}
.contact-form textarea {
  height: 90px;
  resize: none;
}

.btn-send {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .2s;
  margin-top: 4px;
  box-shadow: 0 4px 18px rgba(45,84,184,.25);
}
.btn-send:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
}

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--navy);
  color: #fff;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
  transform: translateY(80px);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
  z-index: 999;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ─── FOOTER ─── */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
footer p {
  font-size: .8rem;
  color: var(--gray);
}
.footer-socials { display: flex; gap: 8px; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 720px) {
  .page-wrap { margin: 0; border-radius: 0; }
  nav { padding: 18px 24px; }
  .nav-links { gap: 18px; }
  .hero { flex-direction: column; padding: 40px 24px; }
  .hero-illustration { display: none; }
  section { padding: 40px 24px; }
  .about-cards { grid-template-columns: 1fr; }
  .portfolio-contact { grid-template-columns: 1fr; padding: 40px 24px; }
  footer { flex-direction: column; gap: 14px; padding: 22px 24px; text-align: center; }
}
