/* =========================================
   ROMMEL ALONZAGAY — PROFESSIONAL PORTFOLIO
   Warm Ivory · Deep Navy · Charcoal · Rose
========================================= */

:root {
  --ivory: #F7F4EF;
  --white: #FFFFFF;
  --navy: #243447;
  --navy-light: #34495E;
  --charcoal: #303238;
  --muted: #737780;
  --rose: #B9828D;
  --rose-light: #F0E3E4;
  --line: #E6E1DA;
  --shadow: 0 18px 50px rgba(36, 52, 71, 0.08);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--ivory);
  color: var(--charcoal);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 100px 0;
}

h1,
h2,
h3,
h4,
.logo {
  font-family: "Manrope", sans-serif;
}

h1,
h2 {
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -1.8px;
  line-height: 1.15;
}

h1 {
  font-size: clamp(42px, 5.6vw, 72px);
}

h2 {
  font-size: clamp(32px, 4vw, 48px);
}

h3 {
  color: var(--navy);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.45;
}

h4 {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

h1 span,
h2 span {
  color: var(--rose);
}

p {
  color: var(--muted);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--rose);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.5;
  text-transform: uppercase;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.94);
  border-bottom: 1px solid rgba(230, 225, 218, 0.8);
  backdrop-filter: blur(16px);
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  color: var(--navy);
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -2px;
}

.logo span {
  color: var(--rose);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: #555B63;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--rose);
}

.nav-links .nav-contact {
  padding: 11px 18px;
  border: 1px solid var(--navy);
  border-radius: 7px;
  color: var(--navy);
}

.nav-contact span {
  margin-left: 7px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font-size: 27px;
}

/* HERO */

.hero {
  padding-top: 90px;
  padding-bottom: 95px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 80px;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #72977C;
  box-shadow: 0 0 0 4px rgba(114, 151, 124, 0.12);
}

.hero-description {
  max-width: 530px;
  margin-top: 25px;
  font-size: 16px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  background: var(--navy);
  color: var(--white);
}

.button-primary:hover {
  background: var(--navy-light);
}

.button-secondary {
  border-color: #D7D1C9;
  background: transparent;
  color: var(--navy);
}

.button-secondary:hover {
  border-color: var(--rose);
  background: var(--white);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 12px;
}

.note-line {
  width: 28px;
  height: 1px;
  background: var(--rose);
}

.hero-visual {
  position: relative;
  max-width: 440px;
  justify-self: end;
  width: 100%;
  padding: 0 16px 18px 0;
}

.hero-image-frame {
  position: relative;
  z-index: 1;
  height: 500px;
  overflow: hidden;
  border-radius: 190px 190px 18px 18px;
  background: #E9E2D9;
  box-shadow: var(--shadow);
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.floating-card {
  position: absolute;
  right: -25px;
  bottom: 48px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid rgba(230, 225, 218, 0.8);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.floating-icon {
  display: grid;
  width: 39px;
  height: 39px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 10px;
  background: var(--rose-light);
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
}

.floating-card strong,
.floating-card small {
  display: block;
}

.floating-card strong {
  color: var(--navy);
  font-size: 12px;
}

.floating-card small {
  color: var(--muted);
  font-size: 11px;
}

.visual-decoration {
  position: absolute;
  z-index: 0;
  border: 1px solid var(--rose);
  border-radius: 50%;
  opacity: 0.45;
}

.decoration-one {
  top: -22px;
  right: 3px;
  width: 95px;
  height: 95px;
}

.decoration-two {
  bottom: -12px;
  left: -25px;
  width: 65px;
  height: 65px;
}

/* INTRO STRIP */

.intro-strip {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.intro-grid > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
}

.intro-grid span {
  color: var(--rose);
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.intro-grid p {
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

/* ABOUT */

.about-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 90px;
}

.about-visual {
  position: relative;
  max-width: 430px;
}

.about-visual > img {
  height: 480px;
  border-radius: var(--radius);
  background: #E9E2D9;
  object-fit: cover;
}

.image-caption {
  position: absolute;
  right: -20px;
  bottom: 25px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 20px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.image-caption > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: var(--rose-light);
  font-size: 20px;
}

.image-caption strong,
.image-caption small {
  display: block;
}

.image-caption strong {
  color: var(--navy);
  font-size: 12px;
}

.image-caption small {
  color: var(--muted);
  font-size: 11px;
}

.about-content h2 {
  max-width: 560px;
  margin-bottom: 25px;
}

.about-content > p:not(.eyebrow) {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.9;
}

.about-facts {
  display: flex;
  gap: 45px;
  margin: 30px 0;
  padding: 23px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-facts div {
  display: flex;
  flex-direction: column;
}

.about-facts strong {
  color: var(--navy);
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.about-facts span {
  color: var(--muted);
  font-size: 11px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.text-link span {
  color: var(--rose);
  font-size: 18px;
  transition: transform 0.2s ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

/* SERVICES */

.services-section {
  background: #F0EDE7;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 45px;
  margin-bottom: 48px;
}

.section-heading h2 {
  max-width: 620px;
}

.section-heading > p {
  max-width: 340px;
  font-size: 13px;
  line-height: 1.9;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  display: flex;
  min-height: 320px;
  flex-direction: column;
  align-items: flex-start;
  padding: 27px 23px 23px;
  overflow: hidden;
  border: 1px solid #E5DFD7;
  border-radius: 13px;
  background: var(--white);
  box-shadow: 0 4px 18px rgba(36, 52, 71, 0.025);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card::after {
  position: absolute;
  right: -32px;
  bottom: -32px;
  width: 95px;
  height: 95px;
  border: 1px solid rgba(185, 130, 141, 0.2);
  border-radius: 50%;
  content: "";
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(185, 130, 141, 0.65);
  box-shadow: 0 20px 40px rgba(36, 52, 71, 0.09);
}

.service-card:hover::after {
  transform: scale(1.25);
}

.service-icon {
  display: grid;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  place-items: center;
  margin-bottom: 21px;
  border: 1px solid #E9D6D9;
  border-radius: 14px;
  background: var(--rose-light);
  color: var(--navy);
  font-family: "DM Sans", sans-serif;
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-icon {
  transform: translateY(-3px);
  background: var(--navy);
  color: var(--white);
}

.service-number {
  position: absolute;
  top: 28px;
  right: 22px;
  color: #B8B5B0;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.service-card h3 {
  margin-bottom: 11px;
  font-size: 16px;
}

.service-card p {
  margin-bottom: 20px;
  font-size: 12px;
  line-height: 1.85;
}

.service-tag {
  margin-top: auto;
  padding: 5px 9px;
  border-radius: 5px;
  background: #F7F4EF;
  color: #777078;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.expertise-note {
  margin-top: 30px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* EXPERIENCE */

.experience-section {
  background: var(--ivory);
}

.experience-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
  gap: 75px;
}

.timeline {
  position: relative;
  padding-left: 26px;
  border-left: 1px solid #D8C9C8;
}

.timeline-item {
  position: relative;
  padding: 0 0 40px 10px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  top: 6px;
  left: -32px;
  width: 11px;
  height: 11px;
  border: 3px solid var(--ivory);
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 1px var(--rose);
}

.timeline-date {
  margin-bottom: 8px;
  color: var(--rose);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.timeline-item h3 {
  margin-bottom: 5px;
  font-size: 18px;
}

.timeline-item h4 {
  margin-bottom: 12px;
}

.timeline-item > p:not(.timeline-date) {
  max-width: 500px;
  font-size: 13px;
  line-height: 1.85;
}

.experience-label {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 10px;
  border-radius: 5px;
  background: var(--rose-light);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
}

.training-card {
  padding: 35px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.training-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.training-card > p:not(.eyebrow) {
  margin-bottom: 25px;
  font-size: 13px;
}

.training-list {
  display: grid;
  gap: 14px;
  list-style: none;
}

.training-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 600;
}

.training-list li span {
  display: grid;
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 50%;
  background: var(--rose-light);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
}

.training-footer {
  margin-top: 27px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--rose);
  font-size: 12px;
  font-weight: 700;
}

/* SKILLS */

.skills-section {
  background: #F0EDE7;
}

.skills-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 85px;
}

.skills-layout h2 {
  margin-bottom: 22px;
}

.skills-intro {
  max-width: 430px;
  margin-bottom: 28px;
  font-size: 14px;
  line-height: 1.9;
}

.casual-photo {
  width: 100%;
  max-width: 390px;
  height: 255px;
  border-radius: 13px;
  background: #E9E2D9;
  object-fit: cover;
}

.skills-panel {
  padding: 35px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.skills-panel h3 {
  margin-bottom: 19px;
  font-size: 17px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.skill-pill {
  padding: 8px 12px;
  border: 1px solid #E6E1DA;
  border-radius: 7px;
  background: #FAF9F6;
  color: #4E5660;
  font-size: 11px;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.skill-pill:hover {
  border-color: var(--rose);
  background: var(--rose-light);
}

.skills-divider {
  height: 1px;
  margin: 30px 0;
  background: var(--line);
}

.values-list {
  display: grid;
  gap: 20px;
  list-style: none;
}

.values-list li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.values-list > li > span {
  display: grid;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 8px;
  background: var(--rose-light);
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.values-list strong {
  color: var(--navy);
  font-size: 13px;
}

.values-list p {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.7;
}

/* PERSONAL APPROACH */

.personal-section {
  padding: 90px 0;
  background: var(--navy);
  text-align: center;
}

.personal-inner {
  max-width: 800px;
}

.personal-mark {
  margin-bottom: 5px;
  color: var(--rose);
  font-family: Georgia, serif;
  font-size: 75px;
  line-height: 1;
}

.personal-section .eyebrow {
  justify-content: center;
}

.personal-section h2 {
  margin-bottom: 24px;
  color: var(--white);
}

.personal-section h2 span {
  color: #D7A8B0;
}

.personal-section .personal-inner > p:last-child {
  max-width: 680px;
  margin-inline: auto;
  color: #D0D7DE;
  font-size: 14px;
  line-height: 1.95;
}

/* CONTACT */

.contact-section {
  background: var(--rose-light);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 80px;
}

.contact-inner h2 {
  margin-bottom: 22px;
}

.contact-inner > div:first-child > p:not(.eyebrow) {
  max-width: 480px;
  margin-bottom: 27px;
  font-size: 14px;
  line-height: 1.9;
}

.button-light {
  background: var(--navy);
  color: var(--white);
}

.button-light:hover {
  background: var(--navy-light);
}

.contact-details {
  display: grid;
  gap: 14px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 19px;
  border: 1px solid rgba(185, 130, 141, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.contact-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 11px;
  background: var(--rose-light);
  color: var(--navy);
  font-size: 20px;
}

.contact-detail small {
  display: block;
  margin-bottom: 3px;
  color: var(--rose);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.contact-detail a,
.contact-detail p {
  overflow-wrap: anywhere;
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
}

/* FOOTER */

.site-footer {
  padding: 25px 0;
  background: #202F40;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer .logo {
  color: var(--white);
  font-size: 25px;
}

.footer-inner p,
.back-to-top {
  color: #C4CBD3;
  font-size: 11px;
}

.back-to-top {
  transition: color 0.2s ease;
}

.back-to-top:hover {
  color: var(--white);
}

/* RESPONSIVE TABLET */

@media (max-width: 1000px) {
  .hero-layout {
    gap: 45px;
  }

  .hero-image-frame {
    height: 430px;
  }

  .about-layout {
    gap: 55px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    min-height: 285px;
  }

  .experience-layout,
  .skills-layout,
  .contact-inner {
    gap: 45px;
  }
}

/* RESPONSIVE MOBILE */

@media (max-width: 700px) {
  .container {
    width: min(100% - 34px, 560px);
  }

  .section {
    padding: 70px 0;
  }

  .navbar {
    min-height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 12px 22px 22px;
    border-bottom: 1px solid var(--line);
    background: var(--ivory);
    box-shadow: 0 16px 24px rgba(36, 52, 71, 0.07);
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
  }

  .nav-links a {
    padding: 12px 5px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links .nav-contact {
    margin-top: 12px;
    padding: 11px 15px;
    border: 1px solid var(--navy);
    text-align: center;
  }

  .hero {
    padding-top: 60px;
    padding-bottom: 70px;
  }

  .hero-layout,
  .about-layout,
  .experience-layout,
  .skills-layout,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  h1 {
    font-size: clamp(40px, 11vw, 58px);
  }

  h2 {
    font-size: clamp(31px, 8vw, 42px);
    letter-spacing: -1.2px;
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-actions {
    gap: 10px;
  }

  .button {
    min-height: 47px;
    padding: 12px 15px;
    font-size: 12px;
  }

  .hero-visual {
    width: min(100% - 15px, 390px);
    justify-self: center;
    margin-top: 5px;
  }

  .hero-image-frame {
    height: 410px;
  }

  .floating-card {
    right: -8px;
    bottom: 35px;
    padding: 12px 14px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .intro-grid > div {
    justify-content: flex-start;
  }

  .about-visual {
    width: calc(100% - 12px);
    max-width: 430px;
  }

  .about-visual > img {
    height: 390px;
  }

  .image-caption {
    right: -10px;
  }

  .about-facts {
    gap: 30px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 32px;
  }

  .section-heading > p {
    max-width: 500px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-card {
    min-height: auto;
    padding: 24px;
  }

  .service-card p {
    font-size: 13px;
  }

  .training-card,
  .skills-panel {
    padding: 25px 21px;
  }

  .timeline {
    margin-left: 5px;
  }

  .skills-layout {
    gap: 35px;
  }

  .casual-photo {
    max-width: 100%;
    height: 250px;
  }

  .personal-section {
    padding: 70px 0;
  }

  .personal-section h2 {
    font-size: 32px;
  }

  .contact-inner {
    gap: 35px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .footer-inner p {
    order: 3;
    width: 100%;
  }
}

@media (max-width: 380px) {
  .container {
    width: calc(100% - 28px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-image-frame {
    height: 350px;
  }

  .service-card {
    padding: 21px;
  }

  .contact-detail {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
