:root {
  --bg: #121212;
  --card: #18181b;
  --muted: #232326;
  --text: #e5e7eb;
  --subtext: #b4b7bd;
  --red: #ff0000;
  --accent: #ff3b3b;
  --ring: rgba(255, 0, 0, 0.35);
  --radius: 14px;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --glow: 0 0 20px rgba(255, 0, 0, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

:root[data-theme="light"] {
  --bg: #f8fafc;
  --card: #ffffff;
  --muted: #eef2f7;
  --text: #0b1324;
  --subtext: #475569;
  --red: #d10000;
  --accent: #e11d48;
  --ring: rgba(209, 0, 0, 0.3);
  --glow: 0 0 20px rgba(209, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(255, 0, 0, 0.08), transparent 40%),
              radial-gradient(1200px 600px at 90% 10%, rgba(255, 0, 0, 0.08), transparent 40%),
              var(--bg);
  overflow-x: hidden;
  position: relative;
}

#cursor-blob {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.15) 0%, rgba(255, 59, 59, 0.08) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
  filter: blur(40px);
  animation: blobPulse 4s ease-in-out infinite;
}

#cursor-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.05) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -2;
  transform: translate(-50%, -50%);
  filter: blur(80px);
  transition: opacity 0.3s ease;
}

@keyframes blobPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

.bg-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -10;
  overflow: hidden;
}

.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.floating-particles::before,
.floating-particles::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 0, 0, 0.3);
  border-radius: 50%;
  animation: float 20s linear infinite;
}

.floating-particles::before {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-particles::after {
  top: 60%;
  right: 15%;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

.gradient-orbs {
  position: absolute;
  width: 100%;
  height: 100%;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: orbFloat 15s ease-in-out infinite;
}

.orb-1 {
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, rgba(255, 0, 0, 0.1), rgba(255, 59, 59, 0.05));
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, rgba(255, 59, 59, 0.08), rgba(255, 0, 0, 0.04));
  top: 60%;
  right: 20%;
  animation-delay: -5s;
}

.orb-3 {
  width: 100px;
  height: 100px;
  background: linear-gradient(225deg, rgba(255, 0, 0, 0.06), transparent);
  bottom: 30%;
  left: 30%;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

#preloader {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--muted);
  border-top-color: var(--red);
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
  box-shadow: var(--glow);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#backToTop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  animation: bounceIn 0.5s ease;
}

#backToTop:hover {
  transform: translateY(-3px);
  color: var(--red);
  box-shadow: var(--shadow), var(--glow);
}

@keyframes bounceIn {
  0% { transform: scale(0.3); }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.site-header {
  position: relative;
  padding-top: 70px;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(24, 24, 27, 0.8);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 1000;
  transition: var(--transition);
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  transition: var(--transition);

}

.brand::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--accent));
  transition: width 0.3s ease;
}

.brand:hover::after {
  width: 100%;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--subtext);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  position: relative;
  transition: var(--transition);
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-link:hover::before {
  opacity: 1;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  border-radius: 10px;
  padding: 8px;
  transition: var(--transition);
}

.icon-btn:hover {
  color: var(--red);
  transform: rotate(180deg);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: var(--card);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
    transform-origin: top right;
    transform: scale(0.98);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(10px);
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
  }
}

.btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--accent));
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 20px -8px var(--ring);
}

.btn-primary:hover {
  box-shadow: 0 10px 28px -10px var(--ring), var(--glow);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
  color: var(--red);
  border-color: var(--red);
  background: rgba(255, 0, 0, 0.06);
  box-shadow: var(--glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
  color: var(--red);
  border-color: rgba(255, 0, 0, 0.2);
  background: rgba(255, 0, 0, 0.05);
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 20px 80px;
  text-align: center;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(32px, 6vw, 64px);
  margin: 0 0 16px;
  background: linear-gradient(135deg, var(--text), var(--red));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  0% { filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.3)); }
  100% { filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.6)); }
}

.subtitle {
  color: var(--subtext);
  margin: 0 0 32px;
  font-size: 18px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.section {
  padding: 80px 0;
  position: relative;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.section-title {
  font-size: clamp(28px, 5vw, 42px);
  margin: 0 0 24px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--accent));
  border-radius: 2px;
  margin-top: 12px;
  animation: lineGrow 0.8s ease;
}

@keyframes lineGrow {
  0% { width: 0; }
  100% { width: 80px; }
}

.about {
  position: relative;
  overflow: hidden;
}

.about-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 0, 0, 0.12), transparent, rgba(255, 0, 0, 0.08));
  filter: blur(60px);
  animation: bgShift 15s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes bgShift {
  0% { transform: translateX(-10%) rotate(-2deg); }
  100% { transform: translateX(10%) rotate(2deg); }
}

.typewriter {
  font-size: 18px;
  color: var(--subtext);
  min-height: 52px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.about-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  padding: 24px;
  border-radius: var(--radius);
  position: relative;
  transition: var(--transition);
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.05), transparent);
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow), var(--glow);
}

.about-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--red), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  margin-bottom: 16px;
  box-shadow: var(--glow);
}

.about-card h3 {
  margin: 0 0 16px;
  color: var(--text);
}

.bulleted {
  padding-left: 18px;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.skill {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  height: 110px;
  display: grid;
  place-items: center;
  font-size: 36px;
  position: relative;
  color: var(--subtext);
  cursor: default;
  transition: var(--transition);
  overflow: hidden;
}

.skill::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 0, 0, 0.1), transparent);
  animation: skillRotate 3s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill:hover::before {
  opacity: 1;
}

@keyframes skillRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.skill::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--text);
  opacity: 0.9;
  font-weight: 500;
}

.skill:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow), var(--glow);
}

.skill[data-skill="c"]:hover { color: #A8B9CC; border-color: #A8B9CC; }
.skill[data-skill="cpp"]:hover { color: #00599C; border-color: #00599C; }
.skill[data-skill="python"]:hover { color: #3776AB; border-color: #3776AB; }
.skill[data-skill="javascript"]:hover { color: #F7DF1E; border-color: #F7DF1E; }
.skill[data-skill="html5"]:hover { color: #E34F26; border-color: #E34F26; }
.skill[data-skill="css3"]:hover { color: #1572B6; border-color: #1572B6; }
.skill[data-skill="react"]:hover { color: #61DAFB; border-color: #61DAFB; }
.skill[data-skill="bootstrap"]:hover { color: #7952B3; border-color: #7952B3; }
.skill[data-skill="tailwind"]:hover { color: #38BDF8; border-color: #38BDF8; }
.skill[data-skill="mysql"]:hover { color: #00758F; border-color: #00758F; }
.skill[data-skill="aws"]:hover { color: #FF9900; border-color: #FF9900; }
.skill[data-skill="linux"]:hover { color: #FCC624; border-color: #FCC624; }
.skill[data-skill="git"]:hover { color: #F05032; border-color: #F05032; }
.skill[data-skill="github"]:hover { color: #24292F; border-color: #24292F; }
.skill[data-skill="vscode"]:hover { color: #007ACC; border-color: #007ACC; }

.carousel {
  position: relative;
  background: transparent;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.slide {
  min-width: 100%;
  position: relative;
  overflow: hidden;
}

.slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  filter: contrast(1.02) saturate(1.05);
  transition: transform 0.3s ease;
}

.slide:hover img {
  transform: scale(1.05);
}

.slide-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
  color: #ffffff;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
}

.slide h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.slide p {
  margin: 0;
  opacity: 0.9;
  line-height: 1.5;
}

.slide-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 0, 0, 0.5);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.prev { left: 20px; }
.next { right: 20px; }

.carousel-dots {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.carousel-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dots button.active {
  background: var(--red);
  box-shadow: var(--glow);
  transform: scale(1.2);
}

.carousel-dots button:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

.pub-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .pub-grid {
    grid-template-columns: 1fr;
  }
}

.pub-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.pub-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow), var(--glow);
}

.pub-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.pub-card:hover img {
  transform: scale(1.05);
}

.pub-content {
  padding: 24px;
}

.pub-content h3 {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--text);
}

.pub-content p {
  color: var(--subtext);
  line-height: 1.6;
  margin: 0 0 16px;
}

.pub-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.placeholder {
  display: grid;
  place-items: center;
  padding: 40px 24px;
  text-align: center;
}

.upcoming-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--red), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  margin: 0 auto 20px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  transition: var(--transition);
}

.contact-item:hover {
  background: rgba(255, 0, 0, 0.05);
  transform: translateX(4px);
}

.contact-item i {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--red), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-item div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-item span:first-child {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.contact-item a,
.contact-item span:last-child {
  color: var(--subtext);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item a:hover {
  color: var(--red);
}

.contact-note {
  color: var(--subtext);
  font-style: italic;
  margin-top: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border-left: 3px solid var(--red);
}

.contact-form {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 32px;
  display: grid;
  gap: 20px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--subtext);
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--muted);
  color: var(--text);
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--ring);
  background: rgba(255, 255, 255, 0.02);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-note {
  font-size: 12px;
  color: var(--subtext);
  text-align: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px 0;
  margin-top: 40px;
  background: linear-gradient(180deg, transparent, rgba(255, 0, 0, 0.05));
  backdrop-filter: blur(10px);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  color: var(--subtext);
}

.socials {
  display: flex;
  gap: 16px;
}

.socials a {
  width: 44px;
  height: 44px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--subtext);
  font-size: 18px;
  transition: var(--transition);
  text-decoration: none;
}

.socials a:hover {
  color: white;
  background: linear-gradient(135deg, var(--red), var(--accent));
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 20px 50px;
  }

  .section {
    padding: 60px 0;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .prev { left: 10px; }
  .next { right: 10px; }

  .contact-form {
    padding: 24px;
  }

  .contact-info {
    padding: 24px;
  }

  .about-card {
    padding: 20px;
  }
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

.success {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1) !important;
}

.error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #cursor-blob,
  #cursor-blur {
    display: none;
  }
}

@media (prefers-contrast: high) {
  :root {
    --ring: rgba(255, 0, 0, 0.8);
    --glow: 0 0 10px rgba(255, 0, 0, 0.8);
  }
}

@media print {
  #cursor-blob,
  #cursor-blur,
  .bg-effects,
  #preloader,
  #backToTop,
  .nav {
    display: none !important;
  }

  * {
    color: black !important;
    background: white !important;
    box-shadow: none !important;
  }
}

