:root {
  --primary: #ff6b00;
  --primary-dark: #e55d00;
  --primary-light: #ff8533;
  --primary-glow: rgba(255, 107, 0, 0.6);
  --neon-orange: #ff4500;
  --dark: #050505;
  --dark-gray: #0d0d0d;
  --medium-gray: #1a1a1a;
  --charcoal: #262626;
  --silver: #8a8a8a;
  --platinum: #e8e8e8;
  --off-white: #f8f8f8;
  --white: #ffffff;
  --accent-brown: #943400;
  --accent-gold: #ffd700;
  --accent-cream: #fff5e1;
  --glass-white: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-neon: 0 0 40px var(--primary-glow), 0 0 80px rgba(255, 107, 0, 0.3);
  --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(255, 107, 0, 0.1);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--dark);
}

html::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track {
  background: var(--dark);
}

html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 4px;
}

body {
  font-family: var(--font-primary);
  background: var(--off-white);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--primary);
  color: var(--white);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 250, 245, 0.92) 100%
  );
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 2000;
  transition: all 0.5s var(--transition-smooth);
  border-bottom: 1px solid rgba(255, 107, 0, 0.08);
  animation: navSlideDown 0.8s var(--transition-elastic) forwards;
}

.header-container::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--primary) 20%,
    var(--neon-orange) 50%,
    var(--primary) 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmerLine 4s ease-in-out infinite;
  opacity: 0.7;
}

.header-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
}

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

@keyframes shimmerLine {
  0%, 100% { background-position: -200% 0; }
  50% { background-position: 200% 0; }
}

.header-container:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 250, 245, 0.96) 100%
  );
  box-shadow:
    0 4px 30px rgba(255, 107, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.04),
    inset 0 -1px 0 rgba(255, 107, 0, 0.1);
}

.header-container:hover::before {
  opacity: 1;
  animation: shimmerLine 2s ease-in-out infinite;
}

.logo {
  margin-left: 1rem;
  position: relative;
}

.logo a {
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.logo a::before {
  content: '';
  position: absolute;
  inset: -8px -16px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 107, 0, 0.12) 0%,
    transparent 70%
  );
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.logo a:hover::before {
  opacity: 1;
}

.main-logo {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  letter-spacing: -0.03em;
  background: linear-gradient(
    135deg,
    var(--dark) 0%,
    var(--charcoal) 25%,
    var(--primary) 50%,
    var(--neon-orange) 75%,
    var(--primary-dark) 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: logoGradientFlow 6s ease infinite;
  transition: all 0.4s var(--transition-elastic);
  cursor: pointer;
  position: relative;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.main-logo::after {
  content: '';
  position: absolute;
  top: 0;
  left: -10%;
  width: 20%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: skewX(-20deg);
  animation: logoShine 4s ease-in-out infinite;
}

@keyframes logoShine {
  0%, 100% { left: -20%; opacity: 0; }
  50% { opacity: 1; }
  90% { left: 120%; opacity: 0; }
}

@keyframes logoGradientFlow {
  0%, 100% { background-position: 0% 50%; }
  25% { background-position: 50% 100%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 0%; }
}

.main-logo:hover {
  transform: scale(1.05) translateY(-2px);
  filter: drop-shadow(0 8px 20px rgba(255, 107, 0, 0.3));
  animation: logoGradientFlow 2s ease infinite;
}

.navigation-bar {
  display: flex;
  align-items: center;
}

.hamburgerMenu {
  display: none;
  flex-direction: column;
  align-items: flex-end;
}

.nav-items {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  padding-right: 1rem;
  list-style: none;
}

.list-item {
  list-style: none;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  opacity: 0;
  animation: navItemFadeIn 0.6s var(--transition-smooth) forwards;
}

.list-item:nth-child(1) { animation-delay: 0.1s; }
.list-item:nth-child(2) { animation-delay: 0.2s; }
.list-item:nth-child(3) { animation-delay: 0.3s; }
.list-item:nth-child(4) { animation-delay: 0.4s; }

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

.list-item a {
  text-decoration: none;
  color: var(--charcoal);
  transition: all 0.4s var(--transition-smooth);
  position: relative;
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.02em;
  overflow: hidden;
}

.list-item a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 0, 0.08) 0%,
    rgba(255, 69, 0, 0.12) 100%
  );
  border-radius: 50px;
  transform: scale(0);
  transform-origin: center;
  transition: transform 0.4s var(--transition-elastic);
  z-index: -1;
}

.list-item a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--neon-orange));
  border-radius: 10px;
  transition: all 0.4s var(--transition-elastic);
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
}

.list-item a:hover::before {
  transform: scale(1);
}

.list-item a:hover::after {
  transform: translateX(-50%) scaleX(1);
  width: 60%;
}

.list-item a:hover {
  color: var(--primary);
  transform: translateY(-2px);
  text-shadow: 0 2px 10px rgba(255, 107, 0, 0.2);
}

.list-item a:active {
  transform: translateY(0) scale(0.98);
}

.list-item:focus-within {
  outline: none;
}

.list-item a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 50px;
}

.contact-cta {
  margin-left: 0.75rem;
}

.contact-cta a.mail-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  background: linear-gradient(
    135deg,
    #ff5500 0%,
    #ff3d00 25%,
    #ff6b00 50%,
    #ff8c00 75%,
    #ff5500 100%
  );
  background-size: 300% 300%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s var(--transition-elastic);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 20px rgba(255, 61, 0, 0.5),
    0 2px 8px rgba(255, 107, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: ctaPulse 2s ease-in-out infinite, ctaGradient 4s ease infinite;
}

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

@keyframes ctaPulse {
  0%, 100% {
    box-shadow:
      0 4px 20px rgba(255, 61, 0, 0.5),
      0 2px 8px rgba(255, 107, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow:
      0 6px 30px rgba(255, 61, 0, 0.7),
      0 4px 15px rgba(255, 107, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      0 0 20px rgba(255, 107, 0, 0.4);
  }
}

.contact-cta a.mail-logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s ease;
}

.contact-cta a.mail-logo::after {
  display: none;
}

.contact-cta a.mail-logo .mail-icon {
  width: 22px;
  height: 22px;
  color: var(--white);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
  transition: all 0.4s var(--transition-elastic);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.contact-cta a.mail-logo img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
  transition: all 0.4s var(--transition-elastic);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.contact-cta a.mail-logo span {
  color: var(--white);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.contact-cta a.mail-logo:hover {
  transform: translateY(-4px) scale(1.08);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow:
    0 10px 40px rgba(255, 61, 0, 0.6),
    0 6px 20px rgba(255, 107, 0, 0.4),
    0 0 30px rgba(255, 107, 0, 0.5),
    0 0 0 4px rgba(255, 107, 0, 0.2);
  animation: ctaGradient 1.5s ease infinite;
}

.contact-cta a.mail-logo:hover::before {
  left: 100%;
}

.contact-cta a.mail-logo:hover .mail-icon,
.contact-cta a.mail-logo:hover img {
  transform: rotate(-10deg) scale(1.15);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
}

.contact-cta a.mail-logo:active {
  transform: translateY(-2px) scale(1.04);
}

.hamburger-icon {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 0, 0.05) 0%,
    rgba(255, 69, 0, 0.08) 100%
  );
  border: 1px solid rgba(255, 107, 0, 0.12);
  border-radius: 14px;
  cursor: pointer;
  padding: 0.75rem;
  margin-right: 1rem;
  z-index: 9999;
  position: relative;
  width: 52px;
  height: 52px;
  transition: all 0.4s var(--transition-elastic);
  overflow: hidden;
}

.hamburger-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--neon-orange) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 14px;
}

.hamburger-icon .bar {
  display: block;
  width: 24px;
  height: 3px;
  margin: 3px 0;
  background: linear-gradient(90deg, var(--charcoal), var(--dark));
  border-radius: 10px;
  transition: all 0.4s var(--transition-elastic);
  position: relative;
  z-index: 1;
}

.hamburger-icon:hover {
  transform: scale(1.05);
  border-color: var(--primary);
  box-shadow:
    0 8px 25px rgba(255, 107, 0, 0.2),
    0 0 0 3px rgba(255, 107, 0, 0.08);
}

.hamburger-icon:hover::before {
  opacity: 1;
}

.hamburger-icon:hover .bar {
  background: var(--white);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.hamburger-icon:hover .bar:nth-child(1) {
  transform: translateX(3px) rotate(2deg);
  width: 20px;
}

.hamburger-icon:hover .bar:nth-child(2) {
  width: 24px;
}

.hamburger-icon:hover .bar:nth-child(3) {
  transform: translateX(-3px) rotate(-2deg);
  width: 20px;
}

.hamburger-icon:active {
  transform: scale(0.95);
}

.hamburger-icon.hidden {
  display: none !important;
  visibility: hidden !important;
}

/* Mobile menu - hidden by default, controlled via JS and media queries */

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 998;
}

.close-icon {
  display: none;
  cursor: pointer;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  padding: 12px;
  transition: all 0.3s var(--transition-smooth);
  z-index: 10000;
}

.close-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: rotate(90deg);
  box-shadow: 0 0 20px var(--primary-glow);
}

.close-icon img {
  width: 100%;
  height: 100%;
  filter: brightness(0) invert(1);
  transition: filter 0.3s;
}

.main-area {
  background: radial-gradient(ellipse 150% 100% at 50% 0%, var(--charcoal) 0%, var(--dark-gray) 50%, var(--dark) 100%);
  min-height: auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.main-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 800px at 20% 80%, rgba(255, 107, 0, 0.15) 0%, transparent 60%),
    radial-gradient(circle 600px at 80% 20%, rgba(255, 69, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle 400px at 60% 60%, rgba(255, 215, 0, 0.05) 0%, transparent 40%);
  pointer-events: none;
  animation: ambientGlow 8s ease-in-out infinite alternate;
}

@keyframes ambientGlow {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

.main-area::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
  opacity: 0.6;
}

.main-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 6%;
  min-height: auto;
  position: relative;
  z-index: 1;
}

.salute {
  max-width: 1000px;
}

.main-header {
  font-family: var(--font-primary);
  font-weight: 800;
  color: var(--primary);
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1;
  margin-bottom: 0.25rem;
  text-shadow: 0 0 60px rgba(255, 107, 0, 0.4), 0 0 100px rgba(255, 107, 0, 0.2);
  letter-spacing: -0.04em;
}

.subtitle {
  display: block;
}

.color-shift {
  display: inline-block;
  animation: colorWave 4s ease-in-out infinite;
}

.color-shift:nth-child(1) { animation-delay: 0s; }
.color-shift:nth-child(2) { animation-delay: 0.1s; }
.color-shift:nth-child(3) { animation-delay: 0.2s; }
.color-shift:nth-child(4) { animation-delay: 0.3s; }
.color-shift:nth-child(5) { animation-delay: 0.4s; }

@keyframes colorWave {
  0%, 100% { color: inherit; filter: brightness(1); }
  50% { color: var(--white); filter: brightness(1.3); text-shadow: 0 0 30px var(--primary-glow); }
}

.second-header {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 2rem);
  line-height: 1.2;
  color: var(--accent-cream);
  margin-bottom: 1.25rem;
  text-shadow: 0 0 40px rgba(255, 107, 0, 0.3);
  letter-spacing: -0.02em;
}

.main-description {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 550px;
}

.salute .main-header,
.salute .second-header,
.salute .main-description {
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.socialMediaIcons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.iconMedia {
  transition: all 0.4s var(--transition-elastic);
}

.iconMedia:hover {
  transform: translateY(-8px) scale(1.1);
}

.social-media-icons {
  width: 40px;
  height: 40px;
  padding: 9px;
}

.socialMediaIcons img {
  background: var(--dark);
  border-radius: 12px;
  transition: all 0.4s var(--transition-smooth);
  border: 1px solid transparent;
}

.socialMediaIcons img:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--neon-orange) 100%);
  box-shadow: var(--shadow-neon);
  border-color: var(--primary-light);
}

.work-section {
  padding: 3rem 4%;
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 50%, var(--platinum) 100%);
  position: relative;
}

.work-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
}

.section-info-container {
  max-width: 1000px;
  margin: 0 auto 2rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid rgba(255, 107, 0, 0.15);
  box-shadow: var(--shadow-card);
  transition: all 0.5s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.section-info-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.05), transparent);
  transition: left 0.8s var(--transition-smooth);
}

.section-info-container:hover::before {
  left: 100%;
}

.section-info-container:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(255, 107, 0, 0.3);
}

.section-title-container {
  text-align: center;
  margin-bottom: 2rem;
}

.second-title {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--dark);
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--dark) 0%, var(--charcoal) 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
}

.line_below_title {
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--neon-orange), var(--accent-gold));
  margin: 0 auto;
  border-radius: 3px;
  border: none;
  animation: lineGlow 2s ease-in-out infinite;
}

@keyframes lineGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 107, 0, 0.3); }
  50% { box-shadow: 0 0 25px rgba(255, 107, 0, 0.6); }
}

.works-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.work-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--medium-gray);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.5s var(--transition-smooth);
  width: 100%;
  max-width: 350px;
  height: 380px;
  box-shadow: var(--shadow-card);
  position: relative;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.work-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 20%, rgba(0, 0, 0, 0.85) 60%, rgba(0, 0, 0, 0.95) 100%);
  z-index: 1;
  transition: all 0.5s var(--transition-smooth);
}

.work-card::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--primary), transparent, var(--neon-orange));
  border-radius: 22px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s var(--transition-smooth);
}

.work-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), var(--shadow-neon);
}

.work-card:hover::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0.9) 100%);
}

.work-card:hover::after {
  opacity: 1;
}

.work-card:nth-child(1) { background: linear-gradient(160deg, rgba(38, 38, 38, 0.98) 0%, rgba(38, 38, 38, 0.98) 100%), url(../images/projects/cardHover/1.webp) center/cover; }
.work-card:nth-child(2) { background: linear-gradient(160deg, rgba(38, 38, 38, 0.98) 0%, rgba(38, 38, 38, 0.98) 100%), url(../images/projects/cardHover/2.webp) center/cover; }
.work-card:nth-child(3) { background: linear-gradient(160deg, rgba(38, 38, 38, 0.98) 0%, rgba(38, 38, 38, 0.98) 100%), url(../images/projects/cardHover/3.webp) center/cover; }
.work-card:nth-child(4) { background: linear-gradient(160deg, rgba(38, 38, 38, 0.98) 0%, rgba(38, 38, 38, 0.98) 100%), url(../images/projects/cardHover/4.webp) center/cover; }
.work-card:nth-child(5) { background: linear-gradient(160deg, rgba(38, 38, 38, 0.98) 0%, rgba(38, 38, 38, 0.98) 100%), url(../images/projects/cardHover/5.webp) center/cover; }
.work-card:nth-child(6) { background: linear-gradient(160deg, rgba(38, 38, 38, 0.98) 0%, rgba(38, 38, 38, 0.98) 100%), url(../images/projects/cardHover/6.webp) center/cover; }

.work-card:nth-child(1):hover { background: url(../images/projects/cardHover/1.webp) center/cover; }
.work-card:nth-child(2):hover { background: url(../images/projects/cardHover/2.webp) center/cover; }
.work-card:nth-child(3):hover { background: url(../images/projects/cardHover/3.webp) center/cover; }
.work-card:nth-child(4):hover { background: url(../images/projects/cardHover/4.webp) center/cover; }
.work-card:nth-child(5):hover { background: url(../images/projects/cardHover/5.webp) center/cover; }
.work-card:nth-child(6):hover { background: url(../images/projects/cardHover/6.webp) center/cover; }

.work-cards-title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--white);
  margin: 0 1.75rem 0.75rem;
  position: relative;
  z-index: 2;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 4px 16px rgba(0, 0, 0, 0.7);
}

.work-cards-description {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--white);
  margin: 0 1.75rem 1.25rem;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9), 0 2px 12px rgba(0, 0, 0, 0.7);
}

.work-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0 1.75rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
}

.work-card li {
  padding: 0.4rem 0.9rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--white);
  transition: all 0.3s var(--transition-smooth);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.work-card li:hover {
  background: rgba(255, 107, 0, 0.4);
  border-color: var(--primary);
  transform: scale(1.05);
}

.button-card {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--white);
  cursor: pointer;
  transition: all 0.4s var(--transition-smooth);
  position: relative;
  z-index: 2;
  text-transform: uppercase;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

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

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

.button-card:hover {
  background: linear-gradient(135deg, var(--neon-orange) 0%, var(--primary) 100%);
  letter-spacing: 0.12em;
  color: var(--white);
}

.card-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.main_card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  max-width: 500px;
  transition: all 0.5s var(--transition-smooth);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.main_card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-elevated);
}

.image_from_main_card {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

.main-card-title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--dark);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.main-card-description {
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--charcoal);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.main_card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-bottom: 1.5rem;
}

.main_card ul li {
  padding: 0.5rem 1rem;
  background: var(--off-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--dark);
  transition: all 0.3s var(--transition-smooth);
}

.main_card ul li:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.button-container {
  display: flex;
  gap: 1rem;
}

.button-from-main-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, var(--accent-brown) 0%, var(--primary-dark) 100%);
  border: none;
  border-radius: 10px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  cursor: pointer;
  transition: all 0.4s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.button-from-main-card a {
  text-decoration: none;
  color: inherit;
}

.button-from-main-card:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--neon-orange) 100%);
  transform: translateY(-3px);
  box-shadow: var(--shadow-neon);
}

.button-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--transition-elastic);
}

.button-from-main-card:hover .button-icon {
  transform: translateX(3px);
}

.about-me-main-container {
  width: 100%;
  background: radial-gradient(ellipse 150% 100% at 50% 100%, var(--charcoal) 0%, var(--dark-gray) 50%, var(--dark) 100%);
  padding: 3.5rem 5%;
  position: relative;
  overflow: hidden;
}

.about-me-main-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 600px at 20% 30%, rgba(255, 107, 0, 0.12) 0%, transparent 50%),
    radial-gradient(circle 500px at 80% 70%, rgba(255, 69, 0, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.about-me-main-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
}

.about-me-title {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--primary);
  text-shadow: 0 0 60px rgba(255, 107, 0, 0.3);
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
  position: relative;
  z-index: 1;
}

.about-me-title-experience {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  margin-bottom: 1.5rem;
  text-align: center;
}

.description-me-section {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.button-me-section {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--accent-brown) 0%, var(--primary-dark) 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  cursor: pointer;
  transition: all 0.4s var(--transition-smooth);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.button-me-section:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-neon);
  background: linear-gradient(135deg, var(--primary) 0%, var(--neon-orange) 100%);
  color: var(--white);
}

.line-from-about-me {
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  border: none;
  margin: 4rem 0;
}

.experience-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.experience-container-image {
  position: relative;
  transition: all 0.5s var(--transition-elastic);
}

.experience-container-image:hover {
  transform: translateY(-10px) scale(1.05);
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding: 0.6rem 1.25rem;
  background: var(--white);
  color: var(--dark);
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--transition-elastic);
  box-shadow: var(--shadow-card);
  z-index: 10;
}

.tooltip::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: var(--white);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--transition-elastic);
}

.tooltip:hover::before,
.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.image-from-about-me-experience {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s var(--transition-smooth);
  object-fit: cover;
}

.image-from-about-me-experience:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-neon);
}

.ul-list-me-section {
  list-style: none;
  padding: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.list-titles-one,
.list-titles-two,
.list-titles-three {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.list-titles-one::before,
.list-titles-two::before,
.list-titles-three::before {
  content: '';
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--primary), var(--neon-orange));
  border-radius: 2px;
  box-shadow: 0 0 12px var(--primary-glow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.column ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.li-list-me-section {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.15) 0%, rgba(255, 69, 0, 0.08) 100%);
  border: 1px solid rgba(255, 107, 0, 0.25);
  border-radius: 25px;
  margin: 0;
  transition: all 0.3s var(--transition-smooth);
  cursor: default;
}

.li-list-me-section:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.3);
  background: linear-gradient(135deg, var(--primary) 0%, var(--neon-orange) 100%);
  color: var(--white);
}

.about-me-section {
  margin: 2rem 0;
}

.my-icons-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  list-style: none;
  padding: 2.5rem 0;
}

.my-icons-list li {
  transition: all 0.4s var(--transition-elastic);
}

.my-icons-list li:hover {
  transform: scale(1.15) rotate(5deg);
}

.icon-item1-5 {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  transition: all 0.4s var(--transition-smooth);
}

.icon-item1-5:hover {
  box-shadow: var(--shadow-neon);
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.column {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-radius: 20px;
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 107, 0, 0.15);
  transition: all 0.4s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.column::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--neon-orange), var(--accent-gold));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.column::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.column:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 107, 0, 0.15);
}

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

.column:hover::after {
  opacity: 1;
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3.5rem 5%;
  background: linear-gradient(180deg, var(--platinum) 0%, var(--white) 50%, var(--off-white) 100%);
  position: relative;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
}

.contact-form__heading {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(135deg, var(--dark) 0%, var(--charcoal) 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
}

.contact-form__form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 650px;
  gap: 1.75rem;
}

.contact-form__group {
  display: flex;
  flex-direction: column;
}

.contact-form__input,
.contact-form__textarea {
  padding: 1.25rem 1.5rem;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  font-family: var(--font-primary);
  font-size: 1rem;
  background: var(--white);
  transition: all 0.4s var(--transition-smooth);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.contact-form__input:hover,
.contact-form__textarea:hover {
  border-color: rgba(255, 107, 0, 0.3);
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.1);
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.15), 0 4px 20px rgba(255, 107, 0, 0.15);
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: var(--silver);
}

.contact-form__textarea {
  min-height: 180px;
  resize: vertical;
}

.hide_input {
  display: none;
}

.contact-form__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2.5rem;
  background: linear-gradient(135deg, var(--accent-brown) 0%, var(--primary-dark) 100%);
  border: none;
  border-radius: 14px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  cursor: pointer;
  transition: all 0.4s var(--transition-smooth);
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.contact-form__button:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-neon);
  background: linear-gradient(135deg, var(--primary) 0%, var(--neon-orange) 100%);
  color: var(--white);
}

.contact-form__button:active {
  transform: translateY(-2px);
}

.contact-form__button:disabled {
  background: var(--silver);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.contact-form__button span {
  position: relative;
  z-index: 1;
}

footer {
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(248, 248, 248, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  backdrop-filter: blur(10px);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer_top_line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
  border: none;
  margin-bottom: 1rem;
}

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

.logo-container img {
  background: var(--dark);
  border-radius: 10px;
  padding: 10px;
  transition: all 0.4s var(--transition-elastic);
}

.logo-container img:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--neon-orange) 100%);
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-neon);
}

.footer_bottom_line {
  width: 80px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--neon-orange), var(--accent-gold));
  border-radius: 3px;
  margin-top: 1.5rem;
  animation: lineGlow 2s ease-in-out infinite;
}

body.popup-open::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  z-index: 3004;
}

#popup-container {
  position: fixed;
  inset: 0;
  z-index: 3005;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup {
  position: relative;
  background: var(--white);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), var(--shadow-neon);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  animation: popupReveal 0.5s var(--transition-elastic) forwards;
  border: 1px solid rgba(255, 107, 0, 0.2);
}

@keyframes popupReveal {
  0% { opacity: 0; transform: scale(0.8) translateY(40px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

button.popup-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  border: none;
  background: var(--off-white);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--transition-elastic);
  z-index: 10;
}

button.popup-close:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--neon-orange) 100%);
  transform: rotate(180deg) scale(1.1);
  box-shadow: var(--shadow-neon);
}

.popup-close img {
  width: 20px;
  height: 20px;
  transition: filter 0.3s;
}

button.popup-close:hover img {
  filter: brightness(0) invert(1);
}

.popup-header {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--dark);
  text-align: center;
  order: 1;
  letter-spacing: -0.02em;
}

.popup-image {
  max-width: 320px;
  width: 100%;
  border-radius: 16px;
  order: 2;
  box-shadow: var(--shadow-card);
}

.popup-description {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--charcoal);
  text-align: center;
  order: 3;
}

.popup-technologies {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  order: 4;
}

.popup-technologies li {
  padding: 0.5rem 1.1rem;
  background: var(--off-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  transition: all 0.3s var(--transition-smooth);
}

.popup-technologies li:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: scale(1.05);
}

.popup-buttons {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.25rem;
  order: 5;
}

.popup-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--neon-orange) 100%);
  border: none;
  border-radius: 12px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
}

.popup-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
  background: linear-gradient(135deg, var(--dark) 0%, var(--charcoal) 100%);
  color: var(--white);
}

.popup-link-logo {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

button {
  cursor: pointer;
  transition: all 0.4s var(--transition-smooth);
}

button:focus {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media only screen and (max-width: 768px) {
  .header-container {
    padding: 0.75rem 1rem;
  }

  .logo {
    margin-left: 0.5rem;
  }

  .nav-items {
    display: none !important;
  }

  .hamburger-icon {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .hamburger-icon.hidden {
    display: none !important;
    visibility: hidden !important;
  }

  .mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(
      160deg,
      var(--dark) 0%,
      var(--dark-gray) 40%,
      var(--charcoal) 100%
    );
    z-index: 9998;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--transition-smooth);
    overflow: hidden;
  }

  .mobile-menu::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(
      circle,
      rgba(255, 107, 0, 0.15) 0%,
      rgba(255, 69, 0, 0.08) 30%,
      transparent 70%
    );
    pointer-events: none;
    animation: pulseGlow 4s ease-in-out infinite;
  }

  @keyframes pulseGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  }

  .mobile-menu::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      var(--primary) 20%,
      var(--neon-orange) 50%,
      var(--primary) 80%,
      transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmerLine 3s ease-in-out infinite;
  }

  .mobile-menu.active {
    display: flex;
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu .nav-items {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0;
    width: 100%;
    max-width: 320px;
  }

  .mobile-menu .list-item {
    width: 100%;
    text-align: center;
    padding: 0;
    border: none;
    transform: translateY(30px) scale(0.9);
    opacity: 0;
    transition: all 0.5s var(--transition-elastic);
  }

  .mobile-menu .list-item:first-child {
    border: none;
  }

  .mobile-menu.active .list-item {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  .mobile-menu.active .list-item:nth-child(1) { transition-delay: 0.1s; }
  .mobile-menu.active .list-item:nth-child(2) { transition-delay: 0.18s; }
  .mobile-menu.active .list-item:nth-child(3) { transition-delay: 0.26s; }
  .mobile-menu.active .list-item:nth-child(4) { transition-delay: 0.34s; }

  .mobile-menu .list-item a {
    color: var(--platinum);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.4s var(--transition-elastic);
    display: block;
    padding: 1.25rem 2rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
  }

  .mobile-menu .list-item a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      135deg,
      rgba(255, 107, 0, 0.1) 0%,
      rgba(255, 69, 0, 0.15) 100%
    );
    border-radius: 16px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--transition-elastic);
    z-index: -1;
  }

  .mobile-menu .list-item a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%) scaleX(0);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--neon-orange));
    border-radius: 10px;
    transition: all 0.4s var(--transition-elastic);
    box-shadow: 0 0 15px var(--primary-glow);
  }

  .mobile-menu .list-item a:hover::before,
  .mobile-menu .list-item a:active::before {
    transform: scaleX(1);
  }

  .mobile-menu .list-item a:hover::after,
  .mobile-menu .list-item a:active::after {
    transform: translateX(-50%) scaleX(1);
    width: 60%;
  }

  .mobile-menu .list-item a:hover,
  .mobile-menu .list-item a:active {
    color: var(--white);
    text-shadow: 0 0 30px var(--primary-glow);
    transform: scale(1.05);
  }

  .mobile-menu .mail-logo {
    display: none;
  }

  .mobile-menu.active .close-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    transition: all 0.4s var(--transition-elastic);
  }

  .mobile-menu.active .close-icon:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--neon-orange) 100%);
    border-color: var(--primary);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.3);
  }

  .mobile-menu.active .close-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: all 0.4s ease;
  }

  .main-section {
    padding: 2rem 4%;
    min-height: auto;
  }

  .main-header {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .second-header {
    font-size: clamp(1rem, 4vw, 1.5rem);
  }

  .main-description {
    font-size: 0.9rem;
  }

  .socialMediaIcons {
    justify-content: center;
  }

  .works-container {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 2rem;
  }

  .work-card {
    max-width: 100%;
    height: 320px;
  }

  .work-cards-title {
    font-size: 1.2rem;
  }

  .about-me-main-container {
    padding: 2.5rem 4%;
  }

  .about-me-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .button-me-section {
    width: 100%;
    max-width: 300px;
    padding: 1rem 1.5rem;
  }

  .experience-container {
    gap: 1rem;
  }

  .image-from-about-me-experience {
    width: 70px;
    height: 70px;
  }

  .list-titles-one,
  .list-titles-two,
  .list-titles-three {
    font-size: 1.1rem;
  }

  .li-list-me-section {
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
  }

  .skills-container {
    gap: 1rem;
    padding: 1rem;
  }

  .column {
    padding: 1.25rem;
  }

  .contact-form {
    padding: 2.5rem 4%;
  }

  .contact-form__heading {
    font-size: 1.1rem;
  }

  .contact-form__input,
  .contact-form__textarea {
    padding: 1rem 1.25rem;
  }

  .contact-form__button {
    width: 100%;
    padding: 1.1rem;
  }

  footer {
    padding: 2rem 1rem;
  }

  .popup {
    width: 95%;
    max-height: 85vh;
    padding: 1.75rem;
    border-radius: 20px;
  }

  button.popup-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }

  .popup-header {
    font-size: 1.35rem;
    padding-right: 2.5rem;
  }

  .popup-image {
    max-width: 220px;
  }

  .popup-buttons {
    flex-direction: column;
    width: 100%;
  }

  .popup-button {
    width: 100%;
    justify-content: center;
  }
}

@media only screen and (min-width: 600px) and (max-width: 768px) {
  .works-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .work-card {
    height: 340px;
  }

  .experience-container {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media only screen and (min-width: 769px) {
  .hamburger-icon {
    display: none !important;
    visibility: hidden !important;
  }

  .close-icon {
    display: none !important;
  }

  .mobile-menu {
    display: flex !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    opacity: 1 !important;
    transform: none !important;
    z-index: auto !important;
  }

  .mobile-menu::before {
    display: none;
  }

  .mobile-menu .nav-items {
    display: flex !important;
    flex-direction: row;
    padding-right: 1rem;
  }

  .mobile-menu .list-item {
    border: none;
    opacity: 1 !important;
    transform: none !important;
  }

  .mobile-menu .list-item a {
    color: var(--dark);
    font-size: 0.95rem;
  }

  .mobile-menu .mail-logo {
    display: block;
  }

  .work-card {
    height: 380px;
  }

  .popup {
    max-width: 650px;
    padding: 3rem;
  }

  .popup-image {
    max-width: 380px;
  }

  .popup-buttons {
    flex-direction: row;
  }
}

@media only screen and (min-width: 1200px) {
  .main-section {
    padding: 4rem 10%;
  }

  .works-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .work-card {
    height: 380px;
  }

  .about-me-main-container {
    padding: 4rem 10%;
  }

  .contact-form {
    padding: 4rem 10%;
  }

  .contact-form__form {
    max-width: 650px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
