/* =====================================================================
   Veysi ADIN — Portfolio · Modernized stylesheet
   Breakpoints (em @16px): 75em=1200 · 56.25em=900 · 37.5em=600 · 112.5em=1800
   ===================================================================== */

/* ---------------------------------------------------------------------
   Design tokens
   --------------------------------------------------------------------- */
:root {
  --brand-1: #2563eb;
  --brand-2: #7c3aed;
  --brand-3: #06b6d4;
  --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --gradient-vivid: linear-gradient(120deg, #2563eb 0%, #7c3aed 52%, #06b6d4 100%);
  --hero-bg: linear-gradient(135deg, #0b1024 0%, #141b3a 45%, #0a1b33 100%);

  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef2f9;
  --text: #334155;
  --text-muted: #64748b;
  --heading: #0f172a;
  --border: #e6eaf1;
  --header-bg: rgba(255, 255, 255, 0.72);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 30px -14px rgba(15, 23, 42, 0.22);
  --shadow-lg: 0 34px 60px -22px rgba(15, 23, 42, 0.28);
  --glow: 0 12px 30px -8px rgba(37, 99, 235, 0.45);

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 120rem;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0a0f1e;
  --bg-alt: #0c1324;
  --surface: #111a30;
  --surface-2: #17233f;
  --text: #c6d2e3;
  --text-muted: #8b97ab;
  --heading: #f2f6fc;
  --border: rgba(148, 163, 184, 0.14);
  --header-bg: rgba(10, 15, 30, 0.68);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 30px -14px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 34px 60px -22px rgba(0, 0, 0, 0.7);
  --glow: 0 12px 34px -8px rgba(59, 130, 246, 0.5);

  color-scheme: dark;
}

/* Match the OS preference on first paint until JS applies a saved choice. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f1e;
    --bg-alt: #0c1324;
    --surface: #111a30;
    --surface-2: #17233f;
    --text: #c6d2e3;
    --text-muted: #8b97ab;
    --heading: #f2f6fc;
    --border: rgba(148, 163, 184, 0.14);
    --header-bg: rgba(10, 15, 30, 0.68);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 30px -14px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 34px 60px -22px rgba(0, 0, 0, 0.7);
    --glow: 0 12px 34px -8px rgba(59, 130, 246, 0.5);

    color-scheme: dark;
  }
}

/* ---------------------------------------------------------------------
   Base / reset
   --------------------------------------------------------------------- */
*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
  font-family: inherit;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  scroll-padding-top: 9rem;
  scrollbar-color: var(--brand-1) var(--bg-alt);
  scrollbar-width: thin;
}
@media only screen and (max-width: 75em) {
  html { font-size: 59%; }
}
@media only screen and (max-width: 56.25em) {
  html { font-size: 56%; }
}
@media only screen and (min-width: 112.5em) {
  html { font-size: 65%; }
}

body {
  box-sizing: border-box;
  position: relative;
  line-height: 1.6;
  font-family: 'Source Sans Pro', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
}

a { text-decoration: none; color: inherit; }
li { list-style: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--brand-2); color: #fff; }

input:focus,
button:focus,
a:focus,
textarea:focus { outline: none; }

button {
  border: none;
  cursor: pointer;
  background: none;
  color: inherit;
}

textarea { resize: none; }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--brand-1), var(--brand-2));
  border-radius: 100px;
  border: 3px solid var(--bg-alt);
}

/* ---------------------------------------------------------------------
   Layout helpers
   --------------------------------------------------------------------- */
.main-container {
  max-width: var(--maxw);
  margin: auto;
  width: 92%;
}

.sec-pad { padding: 12rem 0; }
@media only screen and (max-width: 56.25em) {
  .sec-pad { padding: 8rem 0; }
}

.d-none { display: none; }

/* ---------------------------------------------------------------------
   Headings & text
   --------------------------------------------------------------------- */
.heading-primary {
  font-size: 6rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
  text-align: center;
  color: #fff;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}
@media only screen and (max-width: 37.5em) {
  .heading-primary { font-size: 4.2rem; }
}

.heading-sec__mb-bg { margin-bottom: 11rem; }
@media only screen and (max-width: 56.25em) {
  .heading-sec__mb-bg { margin-bottom: 8rem; }
}

.heading-sec__mb-med { margin-bottom: 9rem; }
@media only screen and (max-width: 56.25em) {
  .heading-sec__mb-med { margin-bottom: 8rem; }
}

.heading-sec__main {
  display: block;
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  background: var(--gradient-vivid);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.heading-sec__main::after {
  content: '';
  position: absolute;
  top: calc(100% + 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  height: 5px;
  width: 5rem;
  background: var(--gradient);
  border-radius: 5px;
}
@media only screen and (max-width: 37.5em) {
  .heading-sec__main::after { top: calc(100% + 1.2rem); }
}
.heading-sec__main--lt {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
}
.heading-sec__main--lt::after { background: rgba(255, 255, 255, 0.85); }

.heading-sec__sub {
  display: block;
  text-align: center;
  color: var(--text-muted);
  font-size: 2rem;
  font-weight: 500;
  max-width: 80rem;
  margin: auto;
  line-height: 1.7;
}
@media only screen and (max-width: 37.5em) {
  .heading-sec__sub { font-size: 1.8rem; }
}
.heading-sec__sub p { margin: 0 auto 1.4rem; }
.heading-sec__sub--lt { color: rgba(255, 255, 255, 0.82); }

.heading-sm {
  font-size: 2.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--heading);
}

.text-primary {
  color: rgba(255, 255, 255, 0.92);
  font-size: 2.1rem;
  text-align: center;
  width: 100%;
  line-height: 1.7;
}
@media only screen and (max-width: 37.5em) {
  .text-primary { font-size: 1.9rem; }
}

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 100px;
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--glow);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.4) 50%, transparent 80%);
  transform: translateX(-130%);
  transition: transform 0.6s ease;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -10px rgba(37, 99, 235, 0.6);
}
.btn:hover::before { transform: translateX(130%); }
.btn:active { transform: translateY(-1px); }

.btn--bg {
  padding: 1.7rem 6.5rem;
  font-size: 1.7rem;
}
@media only screen and (max-width: 37.5em) {
  .btn--bg { padding: 1.5rem 4.5rem; font-size: 1.6rem; }
}

.btn--med {
  padding: 1.4rem 4rem;
  font-size: 1.5rem;
}

.btn--theme {
  background: var(--gradient);
  color: #fff;
}

.btn--theme-inv {
  background: transparent;
  color: var(--brand-1);
  border: 2px solid var(--brand-1);
  box-shadow: none;
}
.btn--theme-inv:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--glow);
}
[data-theme="dark"] .btn--theme-inv {
  color: #93c5fd;
  border-color: #3b82f6;
}

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.header--scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -14px rgba(15, 23, 42, 0.25);
}
.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 5rem;
}
@media only screen and (max-width: 56.25em) {
  .header__content { padding: 0.8rem 2rem; }
}
.header__logo-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--heading);
  transition: color 0.3s;
}
.header__logo-container:hover { color: var(--brand-1); }
.header__logo-img-cont {
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1.4rem;
  background: var(--gradient);
  box-shadow: var(--glow);
}
@media only screen and (max-width: 56.25em) {
  .header__logo-img-cont {
    width: 4.2rem;
    height: 4.2rem;
    margin-right: 1.2rem;
  }
}
.header__logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.header__logo-sub {
  font-size: 1.7rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
}
.header__main {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.header__links { display: flex; }
@media only screen and (max-width: 37.5em) {
  .header__links { display: none; }
}
.header__link {
  position: relative;
  padding: 1.6rem 1.8rem;
  display: inline-block;
  font-size: 1.45rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  transition: color 0.3s;
}
.header__link::after {
  content: '';
  position: absolute;
  left: 1.8rem;
  right: 1.8rem;
  bottom: 0.9rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.header__link:hover { color: var(--brand-1); }
.header__link:hover::after,
.header__link--active::after { transform: scaleX(1); }
.header__link--active { color: var(--brand-1); }
@media only screen and (max-width: 56.25em) {
  .header__link { padding: 2.2rem 1.4rem; font-size: 1.4rem; }
}

/* Theme toggle */
.theme-toggle {
  width: 4.4rem;
  height: 4.4rem;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.theme-toggle:hover {
  color: var(--brand-1);
  transform: translateY(-2px) rotate(-10deg);
}
.theme-toggle__icon { width: 2.1rem; height: 2.1rem; }
.theme-toggle__icon--sun { display: none; }
[data-theme="dark"] .theme-toggle__icon--sun { display: block; }
[data-theme="dark"] .theme-toggle__icon--moon { display: none; }

/* Hamburger */
.header__main-ham-menu-cont {
  display: none;
  width: 2.8rem;
  cursor: pointer;
  padding: 1.6rem 0;
}
@media only screen and (max-width: 37.5em) {
  .header__main-ham-menu-cont { display: block; }
}
.header__main-ham-menu,
.header__main-ham-menu-close { width: 100%; }
[data-theme="dark"] .header__main-ham-menu,
[data-theme="dark"] .header__main-ham-menu-close {
  filter: invert(1) brightness(2);
}

/* Small (mobile) menu */
.header__sm-menu {
  background: var(--surface);
  position: absolute;
  width: 100%;
  top: 100%;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.3s ease;
  border-top: 1px solid var(--border);
  box-shadow: 0 20px 40px -14px rgba(15, 23, 42, 0.28);
}
.header__sm-menu--active { visibility: hidden; opacity: 0; }
@media only screen and (max-width: 37.5em) {
  .header__sm-menu--active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
}
.header__sm-menu-link a {
  display: block;
  padding: 2.2rem 3rem;
  font-size: 1.5rem;
  color: var(--text);
  text-align: right;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s, background-color 0.3s;
}
.header__sm-menu-link a:hover {
  color: var(--brand-1);
  background: var(--surface-2);
}
.header__sm-menu-link:first-child a { border-top: 1px solid var(--border); }
.header__sm-menu-link-last { border-bottom: 0; }

/* ---------------------------------------------------------------------
   Home hero
   --------------------------------------------------------------------- */
.home-hero {
  position: relative;
  color: #fff;
  height: 100vh;
  min-height: 80rem;
  max-height: 120rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 34px 34px,
    var(--hero-bg);
}
@media only screen and (max-width: 37.5em) {
  .home-hero { height: unset; min-height: unset; max-height: unset; }
}
.home-hero::before,
.home-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  z-index: 1;
  pointer-events: none;
}
.home-hero::before {
  width: 60rem;
  height: 60rem;
  top: -22rem;
  left: -12rem;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.55), transparent 60%);
  animation: floaty 15s ease-in-out infinite;
}
.home-hero::after {
  width: 55rem;
  height: 55rem;
  bottom: -20rem;
  right: -10rem;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.45), transparent 60%);
  animation: floaty 18s ease-in-out infinite reverse;
}
.home-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 92rem;
  width: 92%;
  padding: 12rem 0;
}
@media only screen and (max-width: 37.5em) {
  .home-hero__content { padding: 17rem 0 11rem 0; }
}
.home-hero__info { margin: 3rem auto 0 auto; max-width: 70rem; }
.home-hero__cta {
  margin-top: 4.5rem;
  display: flex;
  gap: 1.6rem;
  justify-content: center;
  flex-wrap: wrap;
}
.home-hero__socials {
  position: absolute;
  top: 50%;
  left: 1.8rem;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.8rem 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 100px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
@media only screen and (max-width: 56.25em) {
  .home-hero__socials { display: none; }
}
.home-hero__social { width: 4.2rem; }
.home-hero__social-icon-link {
  display: grid;
  place-items: center;
  padding: 1rem;
  border-radius: 50%;
  transition: background-color 0.3s, transform 0.3s;
}
.home-hero__social-icon-link:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}
.home-hero__social-icon { width: 2.2rem; }
.home-hero__mouse-scroll-cont {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
@media only screen and (max-width: 37.5em) {
  .home-hero__mouse-scroll-cont { display: none; }
}

/* ---------------------------------------------------------------------
   About
   --------------------------------------------------------------------- */
.about { background: var(--bg-alt); }
.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 8rem;
  align-items: start;
}
@media only screen and (max-width: 56.25em) {
  .about__content { grid-template-columns: 1fr; grid-gap: 6rem; }
}
.about__content-title {
  font-weight: 800;
  font-size: 2.6rem;
  margin-bottom: 2.5rem;
  color: var(--heading);
}
@media only screen and (max-width: 37.5em) {
  .about__content-title { font-size: 2.3rem; }
}
.about__content-details-para {
  font-size: 1.7rem;
  color: var(--text-muted);
  max-width: 60rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.about__content-details-para strong { color: var(--text); font-weight: 700; }
.about__content-details-para--hl { color: var(--brand-1); font-weight: 700; margin: 0 3px; }
.about__content-details-para:last-child { margin-bottom: 3.5rem; }

/* ---------------------------------------------------------------------
   Skills / tag pills
   --------------------------------------------------------------------- */
.skills,
.project-details__tools-used-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.skills__skill,
.project-details__tools-used-item {
  padding: 1rem 2rem;
  font-size: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  cursor: default;
  transition: transform 0.3s ease, color 0.3s ease, background 0.3s ease,
    border-color 0.3s ease, box-shadow 0.3s ease;
}
.skills__skill:hover,
.project-details__tools-used-item:hover {
  color: #fff;
  background: var(--gradient);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

/* ---------------------------------------------------------------------
   Project / team / award cards
   --------------------------------------------------------------------- */
.projects__content {
  display: grid;
  gap: 4rem;
}
.projects__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
}
@media only screen and (max-width: 56.25em) {
  .projects__row { grid-template-columns: 1fr; text-align: center; }
}
.projects__row:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.projects__row-img-cont { overflow: hidden; }
.projects__row-img {
  width: 100%;
  height: 100%;
  min-height: 32rem;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media only screen and (max-width: 56.25em) {
  .projects__row-img { min-height: 26rem; }
}
.projects__row:hover .projects__row-img { transform: scale(1.06); }
.projects__row-content {
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
@media only screen and (max-width: 56.25em) {
  .projects__row-content { align-items: center; padding: 3rem; }
}
.projects__row-content-title {
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1.25;
  margin-bottom: 1.6rem;
  color: var(--heading);
}
@media only screen and (max-width: 37.5em) {
  .projects__row-content-title { font-size: 2.2rem; }
}
.projects__row-content-desc {
  font-size: 1.65rem;
  color: var(--text-muted);
  max-width: 60rem;
  line-height: 1.7;
  margin-bottom: 2.6rem;
}
@media only screen and (max-width: 37.5em) {
  .projects__row-content-desc { font-size: 1.6rem; }
}

/* ---------------------------------------------------------------------
   Contact
   --------------------------------------------------------------------- */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
}
.contact::before {
  content: '';
  position: absolute;
  width: 55rem;
  height: 55rem;
  border-radius: 50%;
  top: -25rem;
  right: -15rem;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.4), transparent 60%);
  filter: blur(30px);
  pointer-events: none;
}
.contact .main-container { position: relative; z-index: 2; }
.contact__form-container {
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 4rem;
  max-width: 80rem;
  text-align: right;
  width: 95%;
  border-radius: var(--radius);
  margin: 5rem auto 0 auto;
  box-shadow: var(--shadow-lg);
}
@media only screen and (max-width: 37.5em) {
  .contact__form-container { padding: 3rem; }
}
.contact__form-field { margin-bottom: 3.5rem; }
@media only screen and (max-width: 37.5em) {
  .contact__form-field { margin-bottom: 3rem; }
}
.contact__form-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.4rem;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
  text-align: left;
}
.contact__form-input {
  color: #fff;
  padding: 1.8rem;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.contact__form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}
.contact__form-input:focus {
  border-color: var(--brand-3);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.16);
}
.contact__btn {
  min-width: 22rem;
  padding: 1.7rem 4rem;
  font-size: 1.6rem;
}
@media only screen and (max-width: 37.5em) {
  .contact__btn { width: 100%; }
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.main-footer {
  background: #070b16;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.main-footer .heading-sm { color: #fff; }
.main-footer__upper {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  padding: 8rem 0;
}
@media only screen and (max-width: 56.25em) {
  .main-footer__upper { padding: 6rem 0; }
}
@media only screen and (max-width: 37.5em) {
  .main-footer__upper { display: block; }
}
.main-footer__row-1 { order: 2; }
@media only screen and (max-width: 56.25em) {
  .main-footer__row-1 { margin-bottom: 5rem; }
}
.main-footer__row-2 { width: 40%; order: 1; max-width: 50rem; }
@media only screen and (max-width: 56.25em) {
  .main-footer__row-2 { width: 100%; }
}
.main-footer__short-desc {
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.5rem;
  line-height: 1.8;
}
.main-footer__social-cont {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.main-footer__icon {
  width: 2.4rem;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.main-footer__icon:hover { transform: translateY(-3px) scale(1.12); }
.main-footer__icon--mr-none { margin-right: 0; }
.main-footer__lower {
  padding: 3.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.3rem;
  text-align: center;
}
.main-footer__lower a {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
  margin-left: 2px;
}

/* ---------------------------------------------------------------------
   Project case-study hero
   --------------------------------------------------------------------- */
.project-cs-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 34px 34px,
    var(--hero-bg);
}
.project-cs-hero::before {
  content: '';
  position: absolute;
  width: 55rem;
  height: 55rem;
  border-radius: 50%;
  top: -20rem;
  right: -12rem;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.45), transparent 60%);
  filter: blur(30px);
  pointer-events: none;
}
.project-cs-hero__content {
  position: relative;
  z-index: 2;
  padding: 22rem 0 14rem 0;
  max-width: 90rem;
  width: 92%;
  margin: auto;
  text-align: center;
}
@media only screen and (max-width: 37.5em) {
  .project-cs-hero__content { padding: 16rem 0 10rem 0; }
}
.project-cs-hero__info { margin: 3rem auto 0 auto; max-width: 80rem; }
.project-cs-hero__cta {
  margin-top: 2rem;
  display: flex;
  gap: 1.4rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------------
   Project details
   --------------------------------------------------------------------- */
.project-details { background: var(--bg); }
.project-details__content {
  padding: 8rem 0;
  max-width: 90rem;
  margin: auto;
}
.project-details__content-title {
  position: relative;
  font-weight: 800;
  font-size: 2.6rem;
  margin-bottom: 2.5rem;
  padding-left: 1.8rem;
  color: var(--heading);
}
.project-details__content-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 5px;
  border-radius: 5px;
  background: var(--gradient);
}
@media only screen and (max-width: 37.5em) {
  .project-details__content-title { font-size: 2.3rem; }
}
.project-details__showcase-img-cont {
  width: 100%;
  margin-bottom: 4rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.project-details__showcase-img { width: 100%; display: block; }
.project-details__content-main {
  width: 100%;
  max-width: 72rem;
  margin: auto;
}
.project-details__desc { margin: 0 0 5rem 0; }
.project-details__desc-para {
  font-size: 1.7rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.project-details__desc-para strong { color: var(--text); }
.project-details__desc-para li {
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.project-details__tools-used { margin: 0 0 5rem 0; }
.project-details__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
@media only screen and (max-width: 37.5em) {
  .project-details__links { flex-direction: column; }
  .project-details__links-btn { width: 100%; }
}

/* ---------------------------------------------------------------------
   Mouse scroll indicator
   --------------------------------------------------------------------- */
.mouse {
  width: 25px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 60px;
  position: relative;
  overflow: hidden;
}
.mouse::before {
  content: '';
  width: 5px;
  height: 5px;
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  border-radius: 50%;
  opacity: 1;
  animation: wheel 1.3s infinite;
  -webkit-animation: wheel 1.3s infinite;
}

/* ---------------------------------------------------------------------
   Scroll-reveal + back-to-top
   --------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

.back-to-top {
  position: fixed;
  right: 2.4rem;
  bottom: 2.4rem;
  z-index: 900;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--gradient);
  box-shadow: var(--glow);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.3s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -10px rgba(37, 99, 235, 0.6); }
.back-to-top svg { width: 2.2rem; height: 2.2rem; }
@media only screen and (max-width: 37.5em) {
  .back-to-top { right: 1.6rem; bottom: 1.6rem; width: 4.6rem; height: 4.6rem; }
}

/* ---------------------------------------------------------------------
   Keyframes & motion preferences
   --------------------------------------------------------------------- */
@keyframes floaty {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(2rem, -2rem) scale(1.08); }
}

@keyframes wheel {
  to { opacity: 0; top: 27px; }
}
@-webkit-keyframes wheel {
  to { opacity: 0; top: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
