@import url('https://fonts.googleapis.com/css?family=Roboto:300,900');

:root {
  /* background colors */
  --bg-white: hsla(0, 0%, 100%, 1);
  --bg-light-gray: hsla(240, 1%, 83%, 1);
  --bg-jet: hsla(0, 0%, 18%, 1);
  --bg-eerie-black: hsla(0, 0%, 13%, 1);
  --bg-rich-black-fogra-29: hsla(229, 23%, 9%, 1);
  --bg-smoky-black: hsla(0, 0%, 6%, 1);
  --bg-black: hsla(0, 0%, 0%, 1);

  /* gradient colors */
  --gradient-1: linear-gradient(to top, var(--bg-black) 0%, transparent 40%);
  --gradient-2: radial-gradient(circle at 75% 100%, hsla(79, 100%, 70%, 0.3) 0%, transparent 100%);

  /* text colors */
  --text-white: hsla(0, 0%, 100%, 1);
  --text-light-gray: hsla(240, 1%, 83%, 1);
  --text-rich-black-fogra-29: hsla(216, 42%, 12%, 1);
  --text-smoky-black: hsla(0, 0%, 6%, 1);
  --text-black: hsla(0, 0%, 0%, 1);

  /* border colors */
  --border-white: hsla(0, 0%, 100%, 1);
  --border-light-gray: hsla(240, 1%, 83%, 1);
  --border-gainsboro: hsla(220, 13%, 91%, 1);
  --border-eerie-black: hsla(0, 0%, 13%, 1);
  --border-smoky-black: hsla(0, 0%, 6%, 1);

  /* typography */
  --fontFamily-recoleta: 'Recoleta';
  --fontFamily-roboto: 'Roboto', sans-serif;

  --fontSize-1: 4.6rem;
  --fontSize-2: 4.5rem;
  --fontSize-3: 4rem;
  --fontSize-4: 3rem;
  --fontSize-5: 2.4rem;
  --fontSize-6: 1.8rem;
  --fontSize-7: 2rem;
  --fontSize-8: 1.6rem;
  --fontSize-9: 1.5rem;
  --fontSize-10: 1.4rem;

  --weight-regular: 400;
  --weight-medium: 500;

  --section-spacing: 70px;

  --radius-pill: 500px;
  --radius-circle: 50%;

  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease;
  --transition-3: 1000ms cubic-bezier(0.03, 0.98, 0.52, 0.99) 0s;
  --cubic-in: cubic-bezier(0.51, 0.03, 0.64, 0.28);
  --cubic-out: cubic-bezier(0.05, 0.83, 0.52, 0.97);
}

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

li { list-style: none; }

a,
img,
span,
input,
button,
textarea,
ion-icon { display: block; }

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

img { height: auto; max-width: 100%; }

input,
button,
textarea {
  background: none;
  border: none;
  font: inherit;
}

input,
textarea { width: 100%; }

button { cursor: pointer; }

ion-icon { pointer-events: none; }

address { font-style: normal; }

html {
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-black);
  color: var(--text-light-gray);
  font-family: var(--fontFamily-roboto);
  font-size: var(--fontSize-8);
  line-height: 1.75;
  overflow: hidden;
}

body.loaded { overflow-y: auto; }
body.nav-active { overflow: hidden; }

/* Prevent layout overflow on mobile */
body, html { overflow-x: hidden; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { border-inline-start: 1px solid var(--border-eerie-black); }
::-webkit-scrollbar-thumb { background-color: var(--bg-white); }

/* REUSED STYLE */
.container { padding-inline: 16px; }

.btn\:hover {
  position: relative;
  z-index: 1;
}

.btn\:hover::before,
.btn\:hover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  transition: var(--transition-1);
  will-change: transform;
  pointer-events: none;
}

.btn\:hover::after {
  border: 1px solid var(--bg-white);
  transform: scale(1.2);
  opacity: 0;
}

.btn\:hover:is(:hover, :focus-visible)::before {
  transform: scale(0.5);
  opacity: 0;
}

.btn\:hover:is(:hover, :focus-visible)::after {
  transform: scale(1);
  opacity: 1;
}

.text-center { text-align: center; }

.has-before,
.has-after {
  position: relative;
  z-index: 1;
}

.has-before::before,
.has-after::after {
  content: "";
  position: absolute;
}

.img-holder {
  aspect-ratio: var(--width) / var(--height);
  overflow: hidden;
  background-color: var(--bg-jet);
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-cover1 {
  width: 30%;
  height: 30%;
  object-fit: cover;
}

[data-tilt] { transition: var(--transition-3); }

.title {
  color: var(--text-white);
  font-family: var(--fontFamily-recoleta);
  font-weight: var(--weight-regular);
}

.h1 { font-size: var(--fontSize-2); line-height: 1.2; }
.h2, .h3, .h4, .h5 { line-height: 1.3; }
.h2 { font-size: var(--fontSize-3); }
.h3 { font-size: var(--fontSize-4); }
.h4 { font-size: var(--fontSize-5); }
.h5 { font-size: var(--fontSize-7); }
.h6 { font-size: var(--fontSize-6); }

.btn {
  color: var(--text-white);
  font-size: var(--fontSize-9);
  font-weight: var(--weight-medium);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: max-content;
  height: 56px;
  padding-inline: 30px;
}

.btn::before { background-color: var(--bg-smoky-black); }

.btn ion-icon {
  font-size: 1.8rem;
  --ionicon-stroke-width: 50px;
}

.section {
  padding-block: var(--section-spacing);
  overflow-x: hidden;
}

/* PRELOADER */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  box-shadow: inset 55vw 0 0 0 var(--bg-white),
  inset -55vw 0 0 0 var(--bg-white);
  display: grid;
  place-items: center;
  z-index: 10;
}

.preloader.loaded {
  transition: 300ms ease 500ms;
  pointer-events: none;
  box-shadow: inset 0 0 0 0 var(--bg-white),
  inset 0 0 0 0 var(--bg-white);
}

.preloader .line {
  width: 1px;
  height: 100%;
  background-color: var(--bg-black);
  transition: var(--transition-2);
  animation: loading 1000ms linear forwards;
}

@keyframes loading {
  0% { transform: scaleY(0); }
  100% { transform: scaleY(0.3); }
}

.preloader.loaded .line { animation: loaded 500ms ease forwards; }

@keyframes loaded {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); opacity: 0; }
}

/* HEADER */
.header .btn { display: none; }

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-black);
  padding-block: 20px;
  z-index: 4;
}

.header.active {
  position: fixed;
  background-color: var(--bg-jet);
  padding-block: 10px;
  animation: slideIn 500ms ease-out forwards;
}

@keyframes slideIn {
  0% { opacity: 0; transform: translateY(-100%); }
  100% { opacity: 1; transform: translateY(0); }
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-open-btn {
  width: 50px;
  height: 50px;
  display: grid;
  place-content: center;
  gap: 6px;
}

.nav-open-btn .line {
  width: 24px;
  height: 2px;
  background-color: var(--bg-white);
  transition: var(--transition-1);
}

.nav-open-btn:is(:hover, :focus-visible) .line-1 { transform: scaleX(0.7); }
.nav-open-btn::before { background-color: var(--bg-white); }
.nav-open-btn::after { background-color: var(--bg-black); }

.navbar {
  position: fixed;
  background-color: var(--bg-black);
  top: 0;
  left: -300px;
  width: 100%;
  max-width: 300px;
  height: 100vh;
  padding: 25px 20px;
  visibility: hidden;
  transition: 250ms var(--cubic-in);
  z-index: 3;
}

.navbar.active {
  transform: translateX(300px);
  visibility: visible;
  transition: 500ms var(--cubic-out);
}

.navbar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block-end: 20px;
  border-block-end: 1px solid var(--border-smoky-black);
  margin-block-end: 10px;
}

.nav-close-btn {
  width: 30px;
  height: 30px;
  background-color: var(--bg-smoky-black);
  color: var(--text-white);
  font-size: 2rem;
  display: grid;
  place-items: center;
}

.nav-close-btn ion-icon { --ionicon-stroke-width: 50px; }

.navbar-link {
  padding: 8px;
  margin-block-start: 4px;
}

.navbar-link:is(:hover, :focus-visible) { color: var(--text-white); }

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-black);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: var(--transition-1);
}

.overlay.active {
  opacity: 0.5;
  pointer-events: all;
}

/* SERVICE */
.service {
  border-block-start: 1px solid var(--border-eerie-black);
  margin-block-start: var(--section-spacing);
}

.service .container { padding-inline: 0; }
.service-item { border-block-end: 1px solid var(--border-eerie-black); }

.service-card {
  position: relative;
  padding-block: 45px;
}

.service-card .card-icon {
  max-width: max-content;
  margin-inline: auto;
  transition: var(--transition-1);
}

.service-card .card-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  color: var(--text-white);
  font-size: var(--fontSize-5);
  font-weight: var(--weight-regular);
  line-height: 1.3;
  opacity: 0;
  transition: var(--transition-1);
}

.service-card:is(:hover, :focus-visible) .card-title {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.service-card:is(:hover, :focus-visible) .card-icon { opacity: 0; }

/* ABOUT */
.tab-container { border: 1px solid var(--border-eerie-black); }

.tab-btn {
  width: 100%;
  padding-block: 16px;
  border-block-end: 1px solid var(--border-eerie-black);
  transition: var(--transition-1);
}

.tab-btn:is(:hover, :focus-visible, .active) { background: var(--bg-eerie-black); }

.tab-content {
  display: none;
  padding: 30px;
}

.tab-content.active {
  display: block;
  animation: fade 500ms linear forwards;
}

@keyframes fade { 0% { opacity: 0; } 100% { opacity: 1; } }

.tab-content .grid-list {
  display: grid;
  gap: 30px;
}

.tab-content .section-title { margin-block-end: 30px; }

.skill-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block: 30px 12px;
}

.skill-wrapper .span {
  font-family: var(--fontFamily-recoleta);
  font-weight: var(--weight-medium);
}

.progress-bar {
  background-color: var(--bg-smoky-black);
  height: 4px;
}

.progress-fill {
  background-color: var(--bg-white);
  height: 100%;
}

/* CTA */
.cta { border-block: 1px solid var(--border-eerie-black); }

.cta .section-title::before {
  content: "";
  display: block;
  background-color: var(--bg-white);
  width: 60px;
  height: 30px;
  border-radius: 30px 30px 0 0;
  margin-inline: auto;
  margin-block-end: 15px;
}

/* PROJECT */
.project-card .card-banner::before {
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: var(--bg-rich-black-fogra-29);
  background-image: var(--gradient-2);
  opacity: 0;
  transition: var(--transition-1);
}

.project-card .card-banner:is(:hover, :focus-within)::before { opacity: 0.9; }

.project-card .btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  min-width: max-content;
  opacity: 0;
  transition: var(--transition-2);
}

.project-card .card-banner:is(:hover, :focus-within) .btn {
  transform: translate(-50%, -50%);
  opacity: 1;
}

.project-card .card-content { padding: 24px 30px 0; }

.project-card .card-subtitle {
  font-size: var(--fontSize-10);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-block-end: 10px;
}

.project-card .card-title {
  display: inline;
  background-image: linear-gradient(var(--bg-white), var(--bg-white));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0 1px;
  transition: var(--transition-1);
}

.project-card .card-title:is(:hover, :focus-visible) { background-size: 100% 1px; }

.slider-list {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  overflow: auto;
  scroll-snap-type: inline mandatory;
  padding-block-end: 5px;
}

.slider-list::-webkit-scrollbar { display: none; }

.slider-item {
  min-width: 100%;
  scroll-snap-align: start;
}

/* TESTIMONIALS */
.testi { border-block: 1px solid var(--border-eerie-black); }
.testi-content { padding-inline-start: 15px; }

.testi .section-text {
  text-indent: -15px;
  line-height: 1.5;
  margin-block-end: 20px;
  font-size: 3rem;
}

/* CONTACT (cleaned + responsive) */
.contact { margin-top: 0; padding-top: 0; }

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-split {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact-form-card {
  flex: 1;
  min-width: 280px;
  padding: 40px;
  border-radius: 10px;
}

.contact-form .input-field {
  padding: 20px;
  margin-bottom: 30px;
  font-size: 1.6rem;
  border: 2px solid #6b6a6a;
  border-radius: 5px;
  background-color: transparent;
  color: #fff;
  outline: none;
}

/*.contact-form .input-field::placeholder { color: var(--text-light-gray); }*/

/* Grey + transparent placeholder text */
.contact-form .input-field::placeholder {
  color: rgba(200, 200, 200, 0.6);
}

.contact-form textarea.input-field {
  height: 180px;
  resize: vertical;
  min-height: 165px;
  color: #627e79;
  border-color: #4d4b4b;
}

.contact-submit {
  width: 100%;
  justify-content: center;
  padding: 20px;
  font-size: 1.8rem;
  cursor: pointer;
  background-color: #9d804a;
  border-radius: 5px;
}

.contact-submit ion-icon { font-size: 1.8rem; }

.contact-details {
  flex: 1;
  min-width: 240px;
  max-width: 420px;
  width: 100%;
  text-align: left;
  margin-top: 40px;
}

.stylish-icons {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.item-icon ion-icon {
  font-size: 2.5rem;
  color: #ddad6d;
}

.contact-item { gap: 15px; }

/* FOOTER */
.footer { border-block-start: 1px solid var(--border-eerie-black); }

.footer-accent {
  background-color: #9d804a;
  color: #ecf0f1;
  padding: 15px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.copyright {
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.back-top-btn .span { display: none; }

.back-top-btn {
  color: var(--text-white);
  display: inline-flex;
  align-items: center;
  background-color: #4c3b12;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-family: var(--fontFamily-recoleta);
  font-size: 1.4rem;
  transition: background-color 0.3s;
}

.back-top-btn:hover { background-color: #3b2e0e; }

/* CUSTOM CURSOR */
.cursor-dot,
.cursor-outline { display: none; }

/* PROFILE */
#profile {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 8vw, 20rem);
  min-height: 80vh;
  padding-top: 90px; /* prevents header overlap */
  padding-inline: 16px;
}

.section__pic-container {
  margin-top: clamp(2rem, 8vw, 20rem);
  display: flex;
  height: clamp(220px, 40vw, 400px);
  width: clamp(220px, 40vw, 400px);
}

.section__text { align-self: center; text-align: center; }

.section__text__p1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-family: 'Chiller', serif;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.03em;
  line-height: 1.4;
  background: linear-gradient(90deg, #0077B5, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section__text__p2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 1rem;
  font-family: "Consolas", monospace;
  display: flex;
  justify-content: center;
  color: #ddad6d;
  font-weight: bold;
}

span1 {
  position: relative;
  display: inline-block;
  width: min(400px, 90vw);
  height: 70px;
  overflow: hidden;
  text-align: center;
}

span1::before {
  content: "Computer Engineer";
  font-size: 100%;
  animation-name: animate;
  animation-duration: 6s;
  animation-iteration-count: infinite;
}

@keyframes animate {
  0% { font-size:100%; opacity:1; content: "IT Support Specialist"; }
  100% { font-size:100%; opacity:1; content: "Computer Engineer"; }
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 2.4rem;
  gap: 2rem;
}

.icon {
  cursor: pointer;
  height: 3rem;
  width: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap; /* mobile */
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem 2rem;
  width: auto;
  border-radius: 2rem;
  white-space: nowrap;
  text-align: center;
}

.btn-color-1,
.btn-color-2 { border: rgb(221, 173, 109) 0.1rem solid; }

.btn-color-1:hover,
.btn-color-2:hover { cursor: pointer; }

.btn-color-1,
.btn-color-2:hover {
  background: #9d804a;
  color: white;
}

.btn-color-1:hover { background: rgb(0, 0, 0); }
.btn-color-2 { background: none; }
.btn-color-2:hover { border: rgb(255, 255, 255) 0.1rem solid; }

.title1 {
  margin-top: clamp(2rem, 8vw, 20rem);
  font-size: clamp(3rem, 7vw, 7rem);
  text-align: center;
  font-weight: bold;
  line-height: 1.1;
  letter-spacing: 0.05em;
  color: #333;
  background: linear-gradient(90deg, #42736d, #ddad6d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem;
}

.icons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.img-holder1 {
  width: 80px;
  height: 80px;
  margin: 5px;
}

.img-holder1 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.degree {
  font-size: 2.3rem;
  color: #ddad6d;
  margin-bottom: 5px;
  font-family: Consolas, sans-serif;
}

.institution {
  font-size: 2.5rem;
  color: #f3f2f2;
  margin-bottom: 10px;
  font-family: var(--fontFamily-recoleta);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* mobile wrap */
  gap: 12px;
}

.courses h2 {
  font-size: 2.2rem;
  color: #bdbdb4;
  margin-bottom: 5px;
  font-family: var(--fontFamily-recoleta);
  margin-top: 20px;
  display: block;
  padding-left: 0;
}

.courses ul {
  padding-left: 20px;
  list-style-type: disc;
  column-count: 2;
  column-gap: 24px;
  font-size: 2rem;
  font-family: "Consolas", serif;
  color: #bbe0dc;
  margin-left: 20px;
}

.role {
  font-size: 2.3rem;
  color: #ddad6d;
  margin-bottom: 5px;
  font-family: Consolas, sans-serif;
  margin-top: 16px;
}

.job-desc {
  font-family: var(--fontFamily-recoleta);
  color: #f3f2f2;
  font-size: 1.8rem;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  flex-grow: 1;
  gap: 12px;
  flex-wrap: wrap;
}

.job-desc:hover { transform: translateY(-5px); }

.quiz-link { color: inherit; text-decoration: none; }
.quiz-link:hover { color: #ddad6d; text-decoration: underline; }

.syne-header {
  font-family: "Syne", sans-serif;
  font-optical-sizing: auto;
  font-weight: 680;
  font-style: normal;
}

.syne-body {
  font-family: "Syne", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 18px;
}

/* Sliding text responsive */
.sliding-text-container {
  width: 100%;
  text-transform: uppercase;
  position: relative;
  font-family: 'Roboto', sans-serif;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.big-text {
  display: inline-block;
  font-size: clamp(56px, 12vw, 190px);
  color: #dfeedf;
  z-index: 0;
  font-weight: 900;
  animation: marquee 50s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.small-text {
  font-size: clamp(18px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: clamp(4px, 2vw, 15px);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ddad6d;
}

/* RESPONSIVE BREAKPOINTS */
@media (min-width: 575px) {
  :root { --fontSize-1: 5.6rem; --fontSize-5: 3.2rem; }

  .container { max-width: 540px; width: 100%; margin-inline: auto; }

  .service .container { max-width: unset; }

  .service-list { display: flex; flex-wrap: wrap; }
  .service-item { width: 50%; }

  .service-item:nth-child(2n) { border-inline-start: 1px solid var(--border-eerie-black); }
  .service-card .card-title { --fontSize-5: 2.4rem; }

  .tab-btn-list { display: flex; flex-wrap: wrap; }
  .tab-btn-item { width: 50%; flex-grow: 1; }
  .tab-btn-item:nth-child(2n) { border-inline-start: 1px solid var(--border-eerie-black); }
  .tab-content { padding: 40px; }
}

@media (min-width: 768px) {
  :root { --fontSize-1: 6.6rem; --section-spacing: 100px; }

  .slider-item { min-width: calc(50% - 15px); }

  /* Custom cursor on desktop only */
  .cursor-dot,
  .cursor-outline {
    display: block;
    position: fixed;
    top: -60px;
    left: -60px;
    transform: translate(-50%, -50%);
    border-radius: var(--radius-circle);
    z-index: 10;
    transition-property: opacity, transform;
    transition-duration: 300ms;
    transition-timing-function: ease-in-out;
    pointer-events: none;
  }

  .cursor-dot {
    width: 60px;
    height: 60px;
    background-color: var(--bg-white);
    transform: translate(-50%, -50%) scale(0.1);
  }

  .cursor-dot.hovered {
    transform: translate(-50%, -50%) scale(1);
    mix-blend-mode: exclusion;
  }

  .cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid var(--border-white);
    opacity: 0.5;
    transition-duration: 100ms;
  }

  .cursor-outline.hovered { opacity: 0; }
}

@media (min-width: 992px) {
  :root { --fontSize-2: 7rem; }
  .container { max-width: 960px; }

  .header .container { margin-inline: 0; min-width: 100%; }
  .nav-open-btn, .navbar-top { display: none; }

  .navbar { all: unset; display: block; }

  .navbar-list { display: flex; gap: 16px; font-sizei-size: large; }

  .service { border-block-end: 1px solid var(--border-eerie-black); }

  .service-list { gap: 158px; flex-wrap: nowrap; }
  .service .service-item { border-inline: 1px solid var(--border-eerie-black); border-block-end: none; }

  .tab-content .grid-list { grid-template-columns: 1fr 1fr; }

  :is([data-tab-content="experience"], [data-tab-content="awards"]) .grid-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .slider-item { min-width: calc(33.33% - 20px); }

  .back-top-btn .span { display: block; }
}

@media (min-width: 1200px) {
  :root { --fontSize-2: 9rem; --fontSize-4: 4rem; --fontSize-5: 4rem; --fontSize-6: 2rem; }

  .container,
  .service .container { max-width: 1200px; }

  .header { padding-block: 40px; }
  .header .container { padding-inline: 60px; }
  .navbar-list { gap: 50px; }

  .tab-content { padding: 60px; }
  .tab-content .grid-list { gap: 50px; }
}

@media (max-width: 768px) {
  /* Stack hero/profile for phones */
  #profile {
    flex-direction: column;
    align-items: center;
    min-height: auto;
    padding-top: 110px;
    gap: 2rem;
  }

  .section__pic-container { margin-top: 0; }
  .title1 { margin-top: 0; }

  /* Courses: 1 column on small screens */
  .courses ul { column-count: 1; margin-left: 0; }

  /* Contact: stack */
  .contact-split { flex-direction: column; }
  .contact-form-card { padding: 24px; }
  .contact-details { margin-top: 0; max-width: none; }

  /* Footer stack */
  .footer-inner { justify-content: center; }
  .copyright { margin-bottom: 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .big-text { animation: none; }
  [data-tilt] { transition: none; }
}
