@font-face {
  font-family: 'SF Pro Display';
  src: url('fonts/SFProDisplay-Thin.woff2') format('woff2'); /* Remove the leading slash */
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

:root {
  --c-glass: #bbbbbc;
  --c-light: #fff;
  --c-dark: #000;
  --c-content: #224;
  --c-action: #0052f5;
  --c-bg: #e8e8e9;
  --c-card-bg: #fff;
  --c-footer-bg: #222;
  --glass-reflex-dark: 1;
  --glass-reflex-light: 1;
  --saturation: 150%;
  --fz: 16px;
  --transition: 400ms cubic-bezier(0.175, 0.885, 0.32, 2.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'SF Pro Display', 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  background: var(--c-bg);
  color: var(--c-content);
  transition: background var(--transition), color var(--transition);
}

/* .nadav_img {
  height: 50px;
  width: 50px;
  align-items: center;
} */

body:has(input[value="dark"]:checked),
body.dark {
  --c-content: #e1e1e1;
  --c-action: #03d5ff;
  --c-bg: #1b1b1d;
  --c-card-bg: #2a2a2c;
  --c-footer-bg: #111;
  --glass-reflex-dark: 2;
  --glass-reflex-light: 0.3;
}

body:has(input[value="dim"]:checked),
body.dim {
  --c-light: #99deff;
  --c-dark: #20001b;
  --c-glass: hsl(335 250% 74% / 1);
  --c-content: #d5dbe2;
  --c-action: #ff48a9;
  --c-bg: #152433;
  --c-card-bg: #1e2a3a;
  --c-footer-bg: #0f1a26;
  --glass-reflex-dark: 2;
  --glass-reflex-light: 0.7;
  --saturation: 200%;
}

/* --------- Navigation --------- */
.main-nav {
  width: 100%;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  /* Liquid Glass Effect */
  background: hsl(0 0% 90% / 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 2rem;
  border: 1px solid hsl(0 0% 100% / 0.2);
  box-shadow: 
    0 0 0 1px hsl(0 0% 100% / 0.1) inset,
    0 2px 4px hsl(0 0% 0% / 0.1),
    0 0 12px 4px hsl(0 0% 100% / 0.05);
  position: relative;
  overflow: hidden;
}

.nav-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    hsl(0 0% 100% / 0.2) 0%,
    transparent 40%,
    transparent 60%,
    hsl(0 0% 100% / 0.1) 100%
  );
  pointer-events: none;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  position: relative;
  z-index: 3;
}

.nav-left,
.nav-center,
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-center {
  min-width: 0;
  overflow: hidden;
  justify-content: center;
  flex: 1;
}

.nav-right {
  margin-left: auto;
}

.nav-logo .logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-content);
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  white-space: nowrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--c-content);
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.nav-links a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Theme switcher without borders */
.nav-theme-switcher {
  display: flex;
  align-items: center;
}

.switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 160px;
  height: 44px;
  padding: 6px 10px 8px;
  border: none;
  border-radius: 99em;
  font-size: var(--fz);
  backdrop-filter: blur(8px);
  box-shadow: 
    inset 0 1px 1px hsl(0 0% 100% / 0.15),
    inset 0 -1px 1px hsl(0 0% 0% / 0.1),
    0 2px 6px hsl(0 0% 0% / 0.1);
}

.switcher__legend {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  overflow: hidden;
}

.switcher__input {
  clip: rect(0 0 0 0);
  clip-path: inset(100%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}

.switcher__icon {
  display: block;
  width: 100%;
  transition: scale 200ms cubic-bezier(0.5, 0, 0, 1);
}

.switcher__option {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
  width: 52px;
  height: 100%;
  border-radius: 99em;
  opacity: 1;
  transition: all 160ms;
  cursor: pointer;
}

.switcher__option:hover .switcher__icon {
  scale: 1.2;
}

.switcher__option:has(input:checked) {
  cursor: auto;
}

.switcher__option:has(input:checked) .switcher__icon {
  scale: 1;
}

.switcher::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 52px;
  height: calc(100% - 6px);
  border-radius: 99em;
  background: hsl(0 0% 100% / 0.25);
  z-index: -1;
  box-shadow: 
    inset 0 1px 1px hsl(0 0% 100% / 0.2),
    inset 0 -1px 1px hsl(0 0% 0% / 0.1);
  transition: transform 0.3s ease;
}

.switcher:has(input[c-option="1"]:checked)::after {
  transform: translateX(0);
}

.switcher:has(input[c-option="2"]:checked)::after {
  transform: translateX(48px);
}

.switcher:has(input[c-option="3"]:checked)::after {
  transform: translateX(96px);
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--c-content);
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Liquid Glass Buttons */
.hero-contact-btn,
.education-details-btn {
  background: hsl(0 0% 100% / 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1.5rem;
  border: 1px solid hsl(0 0% 100% / 0.35);
  box-shadow: 
    0 0 0 1px hsl(0 0% 100% / 0.1) inset,
    0 4px 12px hsl(0 0% 0% / 0.15);
  position: relative;
  display: inline-block;
  padding: 1rem 2rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--c-dark);
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: hidden;
}

.hero-contact-btn::before,
.education-details-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    hsl(0 0% 100% / 0.2) 0%,
    transparent 40%,
    transparent 60%,
    hsl(0 0% 100% / 0.1) 100%
  );
  pointer-events: none;
}

.hero-contact-btn:hover,
.education-details-btn:hover {
  background: hsl(0 0% 100% / 0.24);
  border: 1px solid hsl(0 0% 100% / 0.5);
  transform: translateY(-2px);
  box-shadow: 
    0 0 0 1px hsl(0 0% 100% / 0.15) inset,
    0 6px 16px hsl(0 0% 0% / 0.2);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--c-bg);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1);
  transform: translateX(-100%);
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.mobile-nav-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-content);
}

.mobile-nav-close {
  background: none;
  border: none;
  width: 30px;
  height: 30px;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.close-line {
  position: absolute;
  width: 30px;
  height: 2px;
  background: var(--c-content);
  transition: all 0.3s ease;
}

.close-line:nth-child(1) { transform: rotate(45deg); }
.close-line:nth-child(2) { transform: rotate(-45deg); }

.mobile-nav-close:hover .close-line {
  background: var(--c-action);
}

.mobile-nav-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.mobile-nav-link {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--c-content);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.mobile-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--c-action);
  transition: width 0.3s ease;
}

.mobile-nav-link:hover {
  color: var(--c-action);
}

.mobile-nav-link:hover::after {
  width: 100%;
}

.mobile-nav-footer {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.mobile-social-links a {
  font-size: 1.5rem;
  color: var(--c-content);
  transition: color 0.3s ease;
}

.mobile-social-links a:hover {
  color: var(--c-action);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--c-bg);
  position: relative;
  padding: 2rem;
  overflow: hidden;
}

.floating-icons {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.floating-icon {
  position: absolute;
  opacity: .2;                  /* More visible */
  animation: float 8s ease-in-out infinite;
  animation-delay: var(--delay);
  left: var(--x);
  top: var(--y);
  filter: blur(0.5px);
  transition: all .4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px !important;       /* MUCH larger - from 40px */
  height: 80px !important;      /* MUCH larger - from 40px */
  z-index: 2;
}

.floating-icon i {
  font-size: 6rem !important;   /* MUCH larger - from 2.5rem */
  color: var(--c-action);
  transition: all 0.4s ease;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.floating-icon:hover i {
  color: var(--c-content);
  transform: scale(1.4) !important;        /* Larger hover effect */
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.8));
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
}

.floating-icon:hover {
  opacity: 1;                  /* Much more visible on hover */
  filter: blur(0px);
  transform: scale(1.2);
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); opacity: .2; }
  25% { transform: translateY(-50px) rotate(10deg) scale(1.1); opacity: .3; }
  50% { transform: translateY(-35px) rotate(-8deg) scale(0.95); opacity: .4; }
  75% { transform: translateY(-50px) rotate(6deg) scale(1.05); opacity: .3; }
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  color: var(--c-content);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.title-line {
  background: linear-gradient(135deg, var(--c-action), color-mix(in srgb, var(--c-action), var(--c-content) 30%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--c-content);
  margin-bottom: 2.2rem;
  font-weight: 400;
  opacity: .85;
  max-width: 640px;
}

.scroll-indicator .mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--c-light);
  border-radius: 12px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.scroll-indicator .mouse::after {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--c-light);
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% { top: 8px; opacity: 0; }
  50% { top: 16px; opacity: 1; }
  100% { top: 8px; opacity: 0; }
}

/* Sections */
.section {
  padding: 5rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.4rem;
  color: var(--c-content);
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--c-action);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.about-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--c-content);
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.skill-category {
  background: var(--c-card-bg);
  padding: 1.5rem;
  border-radius: 1rem;
  width: 220px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: background var(--transition);
}

.skill-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1rem;
}

.skill-header h3 {
  font-size: 1.2rem;
  color: var(--c-content);
}

.skill-items {
  list-style: none;
}

.skill-name {
  display: block;
  margin: .3rem 0;
  color: var(--c-content);
}

.education-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.education-card {
  background: var(--c-card-bg);
  padding: 1.5rem;
  border-radius: 1rem;
  width: 260px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: background var(--transition);
}

.education-card h3 {
  margin: 1rem 0;
  color: var(--c-content);
}

.contact-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1rem;
  color: var(--c-content);
}

.contact-item a {
  color: var(--c-content);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--c-action);
}

.social-links {
  text-align: center;
  margin-top: 2rem;
}

.social-links a {
  margin: 0 1rem;
  font-size: 1.5rem;
  color: var(--c-content);
  transition: color .2s ease;
}

.social-links a:hover {
  color: var(--c-action);
}

.footer {
  background: var(--c-footer-bg);
  color: var(--c-content);
  padding: 2rem;
  text-align: center;
  transition: background var(--transition);
}

.footer-links a {
  margin: 0 1rem;
  color: var(--c-content);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--c-action);
}

.footer-copyright {
  margin-top: 1rem;
  color: var(--c-content);
  opacity: 0.8;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .nav-bar {
    max-width: 95%;
    padding: 0.8rem 1rem;
  }
  .nav-links {
    gap: 0.7rem;
  }
  .hero-title {
    font-size: 3.3rem;
  }
  .switcher {
    width: 140px;
    height: 40px;
  }
  .switcher::after {
    width: 53px;
  }
  .switcher:has(input[c-option="2"]:checked)::after {
    transform: translateX(40px);
  }
  .switcher:has(input[c-option="3"]:checked)::after {
    transform: translateX(80px);
  }
}

@media (max-width: 900px) {
  .hamburger {
    display: flex !important;
  }
  .nav-links,
  .nav-theme-switcher,
  .nav-center {
    display: none !important;
  }
  .nav-right {
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    padding: 0.8rem 1rem;
  }
  .nav-bar {
    padding: 0.7rem 1rem;
  }
  .nav-logo .logo-text {
    font-size: 1.3rem;
  }
  .hamburger {
    padding: 6px;
  }
  .hamburger span {
    width: 20px;
    height: 2px;
  }
  .hero {
    padding: 1.5rem;
    min-height: 90vh;
  }
  .hero-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  .mobile-nav-link {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    gap: 0.5rem;
  }
  .nav-logo .logo-text {
    font-size: 1.2rem;
  }
  .hero {
    padding: 1rem;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .mobile-nav-link {
    font-size: 1.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}