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

/*===== VARIABLES CSS =====*/
:root {
  --header-height: 4.5rem;

  /* Premium Color Palette - Refined Blues & Gold */
  --primary-hue: 220;
  --primary: hsl(var(--primary-hue), 72%, 50%);
  --primary-dark: hsl(var(--primary-hue), 65%, 38%);
  --primary-light: hsl(var(--primary-hue), 85%, 65%);
  --primary-ultra-light: hsl(var(--primary-hue), 100%, 97%);
  --accent: hsl(42, 100%, 50%);
  --accent-light: hsl(42, 100%, 65%);

  /* Neutral Palette */
  --body-bg: #fafbfc;
  --surface-color: #ffffff;
  --text-color: #4a5568;
  --text-color-light: #718096;
  --title-color: #1a202c;
  --border-color: rgba(0, 0, 0, 0.06);

  --white: #ffffff;
  --black: #0d1117;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-strong: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --glass-shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.12);

  /* Font and Typography */
  --body-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --big-font-size: 3.5rem;
  --h1-font-size: 2.5rem;
  --h2-font-size: 1.75rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1.0625rem;
  --small-font-size: 0.9375rem;
  --smaller-font-size: 0.8125rem;
  --tiny-font-size: 0.75rem;

  /* Letter Spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;

  /* Margins */
  --mb-1: 0.5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;

  /* Z-Index */
  --z-back: -10;
  --z-normal: 1;
  --z-tooltip: 10;
  --z-fixed: 100;

  /* Border Radius */
  --radius-xs: 0.375rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 4.5rem;
    --h1-font-size: 3.25rem;
    --h2-font-size: 2.25rem;
    --h3-font-size: 1.5rem;
    --normal-font-size: 1.125rem;
    --small-font-size: 1rem;
    --smaller-font-size: 0.875rem;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-bg);
  color: var(--text-color);
  line-height: 1.75;
  overflow-x: hidden;
  transition: background-color var(--transition-slow), color var(--transition-slow);
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

h1,
h2,
h3,
h4 {
  color: var(--title-color);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: var(--tracking-tight);
}

h1 {
  font-weight: 800;
}

h2 {
  font-weight: 700;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

button,
input,
textarea,
select {
  font-family: var(--body-font);
  outline: none;
  border: none;
}

/*===== ACCESSIBILITY =====*/
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/*===== SELECTION =====*/
::selection {
  background: var(--primary);
  color: var(--white);
}

/*===== SCROLLBAR =====*/
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--body-bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
  border-radius: var(--radius-full);
  border: 2px solid var(--body-bg);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
}

/*===== LAYOUT =====*/
.bd-grid {
  max-width: 1200px;
  margin-left: var(--mb-3);
  margin-right: var(--mb-3);
  display: grid;
  gap: 2.5rem;
}

@media screen and (min-width: 1024px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
    padding: 0 3rem;
  }
}

.section {
  padding: 7rem 0 4rem;
  position: relative;
}

.section-title {
  position: relative;
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-6);
  text-align: center;
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
}

.section-title::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: var(--radius-full);
}

/*===== HEADER =====*/
.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.l-header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  font-weight: 700;
  color: var(--title-color);
  font-size: 1rem;
  letter-spacing: var(--tracking-tight);
  white-space: nowrap;
  transition: color var(--transition-base), transform var(--transition-base);
}

.nav__logo:hover {
  color: var(--primary);
}

@media screen and (min-width: 768px) {
  .nav__logo {
    font-size: 1.125rem;
  }
}

.nav__menu {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

@media screen and (max-width: 767px) {
  .nav__list {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: min(85%, 320px);
    height: calc(100vh - var(--header-height));
    padding: 2rem 1.5rem;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    transition: right var(--transition-base);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    border-left: 1px solid var(--border-color);
  }

  .nav__item {
    margin-bottom: 0;
  }
}

.nav__item {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1rem;
  color: var(--text-color);
  font-weight: 500;
  font-size: var(--small-font-size);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--primary);
  background: var(--primary-ultra-light);
}

.nav__link.active-link {
  color: var(--primary);
  background: var(--primary-ultra-light);
  font-weight: 600;
}

.show {
  right: 0;
}

/* Dropdown */
.dropdown__list {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  z-index: var(--z-tooltip);
  border: 1px solid var(--border-color);
  animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.nav__item:hover .dropdown__list {
  display: block;
}

/* Dropdown Responsive */
@media screen and (max-width: 767px) {
  .dropdown__list {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0.5rem 0 0 1rem;
    animation: none;
    display: block;
  }
}

.dropdown__item {
  margin-bottom: 0.25rem;
}

.dropdown__item:last-child {
  margin-bottom: 0;
}

.dropdown__link {
  padding: 0.625rem 1rem;
  display: block;
  border-radius: var(--radius-md);
  color: var(--text-color);
  font-size: var(--small-font-size);
  font-weight: 500;
  transition: all var(--transition-base);
}

.dropdown__link:hover {
  background: var(--primary-ultra-light);
  color: var(--primary);
}

/* Toggle */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-ultra-light);
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.nav__toggle:hover {
  background: var(--primary);
  color: var(--white);
}

@media screen and (max-width: 767px) {
  .nav__toggle {
    display: flex;
  }
}

/*===== HOME / HERO =====*/
.home {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 0 6rem;
  overflow: hidden;
  background: linear-gradient(165deg,
      rgba(15, 20, 30, 0.75) 0%,
      rgba(20, 25, 35, 0.65) 50%,
      rgba(15, 20, 30, 0.75) 100%),
    url('../img/hero-bg.jpg') center/cover no-repeat fixed;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

/* Animated gradient overlay */
.home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 120%, rgba(99, 102, 241, 0.25), transparent),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(251, 191, 36, 0.15), transparent);
  pointer-events: none;
  animation: heroGradient 15s ease infinite;
}

@keyframes heroGradient {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* Subtle floating particles effect */
.home::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px, 200px 200px;
  animation: floatParticles 20s linear infinite;
  pointer-events: none;
}

@keyframes floatParticles {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-100px);
  }
}

.home .bd-grid {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
}

@media screen and (min-width: 768px) {
  .home .bd-grid {
    padding: 0 4rem;
  }
}

.home__data {
  max-width: 800px;
  text-align: center;
}

.home__title {
  font-size: var(--big-font-size);
  margin-bottom: var(--mb-4);
  line-height: 1.1;
  color: var(--white);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
  animation: heroTitle 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(40px);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
}

@keyframes heroTitle {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home__title-color {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 50%, var(--accent) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s ease infinite;
  display: inline;
}

@keyframes shimmer {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Page-specific accent colors */
.home--weg .home__title-color {
  background: linear-gradient(135deg, #10b981, #34d399, #10b981);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 3s ease infinite;
}

.home--miet .home__title-color {
  background: linear-gradient(135deg, #06b6d4, #22d3ee, #06b6d4);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 3s ease infinite;
}

.home--makler .home__title-color {
  background: linear-gradient(135deg, #a855f7, #c084fc, #a855f7);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 3s ease infinite;
}

.home--impressum .home__title-color {
  background: linear-gradient(135deg, #64748b, #94a3b8, #64748b);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 3s ease infinite;
}

.home__subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--mb-5);
  font-weight: 400;
  line-height: 1.6;
  animation: heroSubtitle 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
  opacity: 0;
  transform: translateY(30px);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@keyframes heroSubtitle {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*===== BUTTON =====*/
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1.125rem 2.5rem;
  background: linear-gradient(135deg, var(--accent) 0%, hsl(45, 100%, 55%) 100%);
  color: var(--black);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: var(--tracking-wide);
  border-radius: var(--radius-full);
  box-shadow:
    0 4px 15px rgba(251, 191, 36, 0.4),
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all var(--transition-base);
  cursor: pointer;
  animation: heroButton 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  overflow: hidden;
  border: none;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left var(--transition-slow);
}

.button:hover::before {
  left: 100%;
}

@keyframes heroButton {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 8px 30px rgba(251, 191, 36, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.button:active {
  transform: translateY(-1px) scale(0.98);
}

/* Hide old SVG blob */
.home__img,
.home__blob,
.home__blob-img {
  display: none;
}

/*===== ABOUT =====*/
.about__container {
  display: grid;
  gap: 4rem;
}

.about__container_text {
  display: grid;
  gap: 2rem;
}

.about__subtitle {
  margin-bottom: var(--mb-2);
  font-size: var(--h3-font-size);
  font-weight: 700;
  color: var(--title-color);
  letter-spacing: var(--tracking-tight);
}

.about__text {
  margin-bottom: var(--mb-3);
  font-size: var(--normal-font-size);
  color: var(--text-color);
  line-height: 1.9;
}

.about__img {
  position: relative;
}

.about__img img {
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow-lg);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.about__img:hover img {
  transform: scale(1.02);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

/*===== SERVICES (SKILLS) =====*/
.skills__container {
  display: grid;
  gap: 3rem;
}

.skills__subtitle {
  font-size: var(--h3-font-size);
  font-weight: 700;
  color: var(--title-color);
  margin-bottom: var(--mb-2);
  letter-spacing: var(--tracking-tight);
}

.skills__text {
  color: var(--text-color-light);
  margin-bottom: var(--mb-4);
  font-size: var(--normal-font-size);
  line-height: 1.8;
}

.skills__data {
  background: var(--white);
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--mb-3);
  transition: all var(--transition-base);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.skills__data::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.skills__data:hover::before {
  opacity: 1;
}

.skills__data:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.skills__names {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.skills__icon {
  font-size: 1.75rem;
  color: var(--primary);
}

.skills__name a {
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--title-color);
  transition: color var(--transition-base);
}

.skills__name a:hover {
  color: var(--primary);
}

.skills__percentage {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #059669;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--smaller-font-size);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
}

.skills__img {
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow-lg);
  transition: transform var(--transition-slow);
}

.skills__img:hover {
  transform: scale(1.02);
}

/*===== CONTACT =====*/
.contact__container {
  row-gap: 4rem;
}

.contact__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.contact__info {
  text-align: center;
}

.contact__form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-2xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  transition: box-shadow var(--transition-slow);
}

.contact__form:hover {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1);
}

.contact__form label {
  display: block;
  font-weight: 600;
  color: var(--title-color);
  margin-bottom: 0.5rem;
  font-size: var(--small-font-size);
}

.contact__input {
  width: 100%;
  background: var(--body-bg);
  color: var(--title-color);
  font-size: var(--normal-font-size);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  outline: none;
  margin-bottom: var(--mb-3);
  transition: all var(--transition-base);
}

.contact__input:focus {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.contact__input::placeholder {
  color: var(--text-color-light);
}

textarea.contact__input {
  min-height: 160px;
  resize: vertical;
}

.contact__button {
  width: 100%;
  font-size: 1rem;
  margin-top: var(--mb-2);
}

/*===== FOOTER =====*/
.footer {
  position: relative;
  background: linear-gradient(165deg, #1a1f2e 0%, #0f141f 100%);
  color: var(--white);
  text-align: center;
  padding: 5rem 0 2.5rem;
  margin-top: var(--mb-6);
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 50% -30%, rgba(99, 102, 241, 0.12), transparent 60%),
    radial-gradient(circle at 80% 100%, rgba(251, 191, 36, 0.08), transparent 40%);
  pointer-events: none;
}

.footer__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  z-index: 1;
  position: relative;
}

.footer__title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--white);
}

.footer__description {
  color: #94a3b8;
  font-size: var(--small-font-size);
  max-width: 400px;
}

.footer__links-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__separator {
  color: rgba(255, 255, 255, 0.2);
}

.footer__link {
  color: #a1a1aa;
  transition: color var(--transition-base);
  font-size: var(--small-font-size);
  position: relative;
  padding: 0.25rem 0;
}

.footer__link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.footer__link:hover {
  color: var(--white);
}

.footer__link:hover::after {
  width: 100%;
  left: 0;
}

.footer__copy {
  color: #64748b;
  font-size: var(--smaller-font-size);
  margin-top: 1.5rem;
}

/*===== DARK MODE TOGGLE =====*/
.dark-mode-toggle {
  background: var(--primary-ultra-light);
  border: 1px solid var(--border-color);
  color: var(--title-color);
  font-size: 1.125rem;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all var(--transition-base);
}

.dark-mode-toggle:hover {
  background: var(--primary);
  color: var(--white);
  border-color: transparent;
  transform: rotate(15deg);
}

/*===== DARK MODE =====*/
body.dark-mode {
  --body-bg: #0d1117;
  --surface-color: #161b22;
  --text-color: #c9d1d9;
  --title-color: #f0f6fc;
  --text-color-light: #8b949e;
  --white: #21262d;
  --border-color: rgba(255, 255, 255, 0.08);
  --primary-ultra-light: rgba(99, 102, 241, 0.15);
  --glass-bg: rgba(22, 27, 34, 0.85);
  --glass-bg-strong: rgba(22, 27, 34, 0.95);
  --glass-border: rgba(255, 255, 255, 0.1);
}

body.dark-mode .l-header {
  background: var(--glass-bg-strong);
  border-bottom-color: var(--border-color);
}

body.dark-mode .nav__menu {
  background: var(--glass-bg-strong);
}

body.dark-mode .footer {
  background: linear-gradient(165deg, #0d1117 0%, #010409 100%);
}

body.dark-mode .contact__input {
  background: var(--white);
  color: var(--title-color);
  border-color: var(--border-color);
}

body.dark-mode .contact__input:focus {
  border-color: var(--primary);
  background: var(--surface-color);
}

body.dark-mode .skills__data {
  background: var(--white);
  border-color: var(--border-color);
}

body.dark-mode .contact__form {
  background: var(--white);
  border-color: var(--border-color);
}

body.dark-mode .dark-mode-toggle {
  background: var(--primary-ultra-light);
  border-color: var(--border-color);
  color: #fbbf24;
}

body.dark-mode .dark-mode-toggle:hover {
  background: #fbbf24;
  color: var(--black);
}

body.dark-mode ::-webkit-scrollbar-track {
  background: var(--body-bg);
}

body.dark-mode ::-webkit-scrollbar-thumb {
  border-color: var(--body-bg);
}

/*===== REVEAL ANIMATION =====*/
.reveal {
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/*===== RESPONSIVE =====*/
@media screen and (min-width: 768px) {
  .nav__item {
    margin-left: 0;
  }

  .home {
    min-height: 90vh;
  }

  .home__data {
    max-width: 700px;
  }

  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .skills__container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .contact__container {
    gap: 5rem;
  }
}

@media screen and (min-width: 1024px) {
  .home__title {
    font-size: 4.25rem;
  }

  .home__data {
    max-width: 900px;
  }

  .home__subtitle {
    font-size: 1.375rem;
  }
}

@media screen and (min-width: 1400px) {
  .home .bd-grid {
    max-width: 1600px;
    padding: 0 6rem;
  }

  .home__data {
    max-width: 1000px;
  }

  .home__title {
    font-size: 5rem;
  }

  .home__subtitle {
    font-size: 1.5rem;
  }
}

/*===== RESPONSIVE VISIBILITY UTILITIES =====*/
.desktop-title,
.desktop-button {
  display: none;
}

.mobile-title,
.mobile-button {
  display: inline;
}

@media screen and (min-width: 968px) {

  .desktop-title,
  .desktop-button {
    display: inline;
  }

  .mobile-title,
  .mobile-button {
    display: none;
  }
}

/*===== ANIMATIONS =====*/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered animation delays */
.fade-in-up:nth-child(1) {
  animation-delay: 0s;
}

.fade-in-up:nth-child(2) {
  animation-delay: 0.1s;
}

.fade-in-up:nth-child(3) {
  animation-delay: 0.2s;
}

.fade-in-up:nth-child(4) {
  animation-delay: 0.3s;
}

.fade-in-up:nth-child(5) {
  animation-delay: 0.4s;
}

/* Radio Button Styling */
.radio-container {
  display: flex;
  gap: 2rem;
  margin: 1rem 0;
}

.radio-container div {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.radio-container input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}