/* GOOGLE FONTS */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800;900&family=Unbounded:wght@400;600;800&display=swap");

:root {
  --header-height: 3.5rem;
  --first-color: hsl(255, 60%, 64%);
  --text-color: hsl(0, 0%, 85%);
  --text-color-dim: hsl(0, 0%, 70%);
  --body-color: #0f1117;
  --container-color: #12141d;
  --title-color: #fff;
  --biggest-font-size: 3rem;
  --bigger-font-size: 2rem;
  --h1-font-size: 2.25rem;
  --h2-font-size: 1.5rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: .875rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", "Noto Sans", sans-serif;
  background: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1120px; margin-inline: auto; padding-inline: 1rem; }
.section { padding: 5rem 0 3rem; }
.section__title {
  color: var(--title-color);
  font-family: Unbounded, Montserrat, system-ui;
  font-size: var(--h1-font-size);
  line-height: 1.2;
}
.section__title span { color: var(--first-color); }

.button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.2rem;
  border-radius: 1rem;
  background: var(--first-color);
  color: #0b0b0f;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}
.button__ghost {
  background: transparent;
  color: var(--first-color);
  border: 2px solid var(--first-color);
}

/* HEADER */
.header {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(18, 20, 29, .7);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  color: var(--title-color);
  font-weight: 800;
  font-family: Unbounded;
  font-size: 1.1rem;
}
.nav__list {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav__link { color: var(--text-color-dim); font-weight: 600; }
.nav__link:hover { color: #fff; }
.nav__actions { display: flex; align-items: center; gap: 1rem; }
.nav__toggle { display: none; color: #fff; font-size: 1.5rem; }

/* HOME */
.home__container {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: center;
}
.home__greeting { color: var(--text-color-dim); }
.home__name {
  color: var(--title-color);
  font-size: var(--biggest-font-size);
  font-weight: 900;
  letter-spacing: .5px;
  line-height: 1;
  margin: .25rem 0 1rem;
  font-family: Unbounded;
  word-break: break-word;
}
.home__split { color: var(--text-color-dim); margin-bottom: .25rem; }
.home__profession {
  font-size: var(--h2-font-size);
  font-weight: 800;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.home__social { display: flex; gap: .75rem; margin: 1rem 0; }
.home__social-link { font-size: 1.4rem; color: var(--text-color-dim); }
.home__social-link:hover { color: #fff; }
.home__buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.home__image {
  justify-self: end;
  max-width: 420px;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

/* ABOUT */
.about__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.about__description { margin: 1rem 0 1.5rem; }
.about__list { display: grid; gap: .5rem; margin-top: 1rem; }
.about__list li { color: var(--text-color); }

/* PROJECTS */
.projects .swiper { padding: 1rem; }
.projects__card {
  background: var(--container-color);
  padding: 1.25rem;
  border-radius: 1.25rem;
  height: 100%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .25);
}
.projects__number { color: var(--first-color); font-weight: 800; }
.projects__title {
  color: #fff;
  font-weight: 800;
  font-size: var(--h3-font-size);
  margin: .25rem 0;
}
.projects__subtitle { color: var(--text-color-dim); font-weight: 700; margin-bottom: .25rem; }
.projects__stack { margin-top: .75rem; color: var(--text-color-dim); font-size: .95rem; }

/* WORK */
.work .work__tabs { display: flex; gap: 1rem; margin: 1rem 0 1.5rem; }
.work .work__button {
  padding: .6rem 1rem;
  border-radius: 1rem;
  border: 2px solid rgba(255, 255, 255, .08);
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.work .button--active { border-color: var(--first-color); color: var(--first-color); font-weight: 800; }
.work__panel { display: grid; gap: 1rem; }
.work__item { background: var(--container-color); padding: 1rem; border-radius: 1rem; }

/* SERVICES */
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.services__card { background: var(--container-color); padding: 1.25rem; border-radius: 1.25rem; }
.services__title { color: #fff; margin-bottom: .5rem; }

/* TESTIMONIALS */
.testimonials .swiper { padding: 1rem; }
.testimonials__card { background: var(--container-color); padding: 1.25rem; border-radius: 1.25rem; }

/* CONTACT */
/* === One-line contact actions === */
.contact__buttons{
  display:flex;
  align-items:center;
  justify-content:center;     /* centered under the heading */
  gap:1rem;
  flex-wrap:nowrap;           /* FORCE one line */
  width:100%;
}

/* Make all four buttons share the row evenly and shrink gracefully */
.contact__buttons .button,
.contact__buttons .button__ghost{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  border-radius:1rem;
  white-space:nowrap;
  /* Equal columns that can shrink without wrapping */
  flex:1 1 0;                 /* grow, shrink, base 0 */
  min-width:0;                /* allow shrinking below content width */
  /* Fluid sizing so the row stays one line on narrower widths */
  font-size:clamp(.9rem, 1.1vw, 1rem);
  padding:clamp(.6rem, 1vw, .9rem) clamp(.8rem, 1.4vw, 1.2rem);
}

/* Keep your existing button colors */
.button{
  background: hsl(255,60%,64%);
  color:#0b0b0f;
  border:0;
  cursor:pointer;
  font-weight:700;
}
.button__ghost{
  background:transparent;
  color:hsl(255,60%,64%);
  border:2px solid hsl(255,60%,64%);
}

/* Optional: hover polish */
.button:hover{ background:hsl(255,60%,72%); }
.button__ghost:hover{ background:hsl(255,60%,64%); color:#0b0b0f; }

/* Icon size inside buttons */
.contact__buttons i{ font-size:1.1rem; line-height:1; }

/* Remove any old CTA spacing if you had a separate .contact__cta */
.contact__cta{ display:none !important; }


/* Icons adjustment */
.contact__buttons i {
  font-size: 1.2rem;
}

/* Responsive: stack neatly when very narrow */
@media (max-width: 720px) {
  .contact__buttons {
    flex-wrap: wrap; /* allow wrapping on small screens */
    gap: 0.8rem;
  }

  .contact__buttons .button,
  .contact__buttons .button__ghost {
    min-width: 150px;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
  }
}


/* FOOTER */
/* Centered footer */
.footer,
.footer.grid {                 /* override any global .grid display */
  display: flex !important;    /* force flex in case .grid sets display:grid */
  flex-direction: column;      /* stack lines */
  align-items: center;         /* horizontal center */
  justify-content: center;     /* vertical center inside footer area */
  text-align: center;          /* center text */
  gap: .4rem;                  /* space between lines */
  padding: 2rem 1rem;          /* keep your existing padding */
  border-top: 1px solid rgba(255,255,255,.06);
  width: 100%;
}

.footer__copy { color: var(--text-color-dim); }
.footer__copy span { color: #fff; }
.footer__year { color: var(--text-color-dim); }


/* CERTIFICATIONS */
.certs__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.cert__card {
  background: var(--container-color);
  padding: 1rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.cert__title { color: #fff; font-weight: 800; }

/* ROTATING HEADLINE (Typewriter) */
.typewriter {
  display: inline-block;
  border-right: 2px solid rgba(255,255,255,.6);
  white-space: nowrap;
  overflow: hidden;
  min-height: 1.6em;
}
.home__roles { margin-top: .5rem; color: var(--text-color-dim); font-weight: 700; }

/* RESPONSIVENESS */
@media (max-width:1024px){
  .home__container { grid-template-columns: 1fr; gap: 2rem; }
  .home__image { justify-self: center; }
  .about__container { grid-template-columns: 1fr; }
}

@media (max-width:768px){
  .nav__toggle{display:block}
  .nav__menu{
    position:fixed;
    inset:var(--header-height) 0 auto 0;
    background:linear-gradient(180deg, rgba(18,20,29,.98) 0%, rgba(18,20,29,.92) 60%, rgba(18,20,29,.88) 100%);
    transform:translateY(-120%);
    transition:.3s;
    padding:1rem 1.25rem;
    border-bottom:1px solid rgba(255,255,255,.08);
    box-shadow:0 10px 30px rgba(0,0,0,.35);
    z-index:1200;
  }
  .nav__menu.show-menu{transform:translateY(0)}
  .nav__list{
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .nav__link{
    color:#fff;
    font-weight: 700;
    font-size: 1rem;
  }
  .nav__actions{
    display:none;
  }
  .nav{height:auto; padding:0.75rem 0;}
}
