:root {
  --bg-color: #050505;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.05);
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent-color: #007bff;
  --accent-gradient: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
  --neon-glow: 0 0 20px rgba(0, 114, 255, 0.4);
  --glass-blur: blur(12px);
  --font-family: "Outfit", sans-serif;
  --transition-speed: 0.4s cubic-bezier(.25, .8, .25, 1);
  --content-width: 1100px;
  --section-space: 6rem;
  --section-space-sm: 4.5rem;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(var(--content-width), 100%);
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 5rem 0 4rem;
}

#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: radial-gradient(circle at center, #0a0a0a, #000);
}

.hero-content {
  position: relative;
  z-index: 2;
  pointer-events: none;
  width: min(760px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-content * {
  pointer-events: auto;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff, #00f0ff, #06f);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.4));
}

.hero-role {
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  color: #cdeaff;
  letter-spacing: 0.5px;
  margin: 0;
  font-weight: 600;
}

.hero .subtitle {
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  color: #e0e0e0;
  font-weight: 400;
  letter-spacing: 0.5px;
  max-width: 640px;
  margin: 0 auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  line-height: 1.6;
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  z-index: 10;
}

.scroll-indicator svg {
  width: 28px;
  height: 40px;
  color: #00f0ff;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
}

.section {
  padding: var(--section-space) 0;
  position: relative;
  z-index: 1;
}

.slim-section {
  padding: 2rem 0;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  color: var(--text-secondary);
}

.quick-links a {
  color: #e8f4ff;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 114, 255, 0.3);
  background: rgba(0, 114, 255, 0.08);
  transition: transform var(--transition-speed), background var(--transition-speed), color var(--transition-speed);
}

.quick-links a:hover {
  transform: translateY(-1px);
  background: rgba(0, 114, 255, 0.18);
  color: #fff;
}

.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.4rem);
  margin-bottom: 2.75rem;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.card {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 1.75rem 2rem 2.4rem;
  border-radius: 24px;
  border: 1px solid var(--card-border);
  transition: all var(--transition-speed);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ffffff0d, #fff0);
  opacity: 0;
  transition: opacity var(--transition-speed);
}

.card:hover {
  transform: translateY(-10px);
  border-color: #0072ff4d;
  box-shadow: 0 20px 40px #0006;
}

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

.card-icon {
  margin-bottom: 0.3rem;
  color: var(--accent-color);
  transition: transform var(--transition-speed);
  align-self: center;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.25)) drop-shadow(0 0 45px rgba(255, 255, 255, 0.15));
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  color: #00c6ff;
  filter: drop-shadow(0 0 10px rgba(0, 198, 255, 0.5));
}

.card h3 {
  font-size: clamp(1.35rem, 2.8vw, 1.7rem);
  margin: 0;
  color: #fff;
  font-weight: 600;
}

.card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.section-lead {
  text-align: center;
  color: var(--text-secondary);
  max-width: 820px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.section-note {
  margin-top: 2rem;
  text-align: center;
  color: var(--text-secondary);
}

.section-note a {
  color: #00c6ff;
  font-weight: 700;
}

.project-logo {
  width: min(200px, 80vw);
  height: auto;
  max-height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.25)) drop-shadow(0 0 45px rgba(255, 255, 255, 0.15));
  cursor: pointer;
  transition: transform var(--transition-speed);
}

.project-logo:hover {
  transform: scale(1.05);
}

.contact-section {
  text-align: center;
}

.email-link {
  font-size: clamp(1rem, 3.8vw, 1.65rem);
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  transition: all var(--transition-speed);
  display: inline-block;
  margin-top: 1rem;
  white-space: nowrap;
}

.email-link:hover {
  transform: scale(1.05);
  text-shadow: 0 0 30px rgba(0, 114, 255, 0.3);
}

.social-links {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links a {
  color: #e8f4ff;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 12px;
  background: rgba(0, 114, 255, 0.12);
  border: 1px solid rgba(0, 114, 255, 0.35);
  transition: transform var(--transition-speed), background var(--transition-speed), color var(--transition-speed);
}

.social-links a:hover {
  transform: translateY(-2px);
  background: rgba(0, 114, 255, 0.22);
  color: #fff;
}

footer {
  padding: 3rem 0;
  text-align: center;
  color: var(--text-secondary);
  border-top: 1px solid var(--card-border);
  background: #00000080;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

.animate-slide-up {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 1s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

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

@media (max-width: 1024px) {
  .hero {
    padding: 4.5rem 0 3.5rem;
  }

  .section {
    padding: var(--section-space-sm) 0;
  }
}

@media (max-width: 768px) {
  .grid {
    gap: 1.25rem;
  }

  .card {
    padding: 1.5rem 1.5rem 2rem;
  }

  .scroll-indicator {
    bottom: 2.25rem;
  }

  #skills .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 4rem 0 3rem;
  }

  .hero-content {
    gap: 1.25rem;
  }

  .card h3 {
    font-size: 1.35rem;
  }
}

@media (min-width: 900px) {
  #skills .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
