:root {
  --bg: #0a0a0a;
  --bg-secondary: #141414;
  --accent: #ff0000;
  --accent-hover: #cc0000;
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --nav-bg: rgba(10, 10, 10, 0.8);
  --glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

a,
button,
.project-card,
.skill-card {
  cursor: none;
}

#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

/* Custom Cursor */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease-out;
}

.cursor-circle {
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent);
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.2s ease-out;
}

.cursor-circle.hover {
  width: 60px;
  height: 60px;
  background: rgba(255, 0, 0, 0.1);
  border-color: transparent;
}

/* Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  z-index: 2000;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.accent-text {
  color: var(--accent);
}

.dot {
  color: var(--accent);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--glass);
  border-color: var(--text);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a:not(.btn-primary) {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover {
  color: var(--accent);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-content h2 {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  line-height: 1;
  position: relative;
  display: inline-block;
}

.hero-content h1:hover {
  animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }

  20% {
    transform: translate(-3px, 3px);
  }

  40% {
    transform: translate(-3px, -3px);
  }

  60% {
    transform: translate(3px, 3px);
  }

  80% {
    transform: translate(3px, -3px);
  }

  100% {
    transform: translate(0);
  }
}

.magnetic-wrap {
  display: inline-block;
  transition: transform 0.3s ease-out;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
}

.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: -1;
}

.glow-sphere {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.15) 0%, rgba(10, 10, 10, 0) 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: pulse 8s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

/* Sections General */
section {
  padding: 8rem 0;
}

.section-header {
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header .line {
  width: 60px;
  height: 4px;
  background: var(--accent);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}

.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-10px);
}

.skill-card .icon {
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

.project-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
}

.btn-instagram:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(220, 39, 67, 0.5);
  filter: brightness(1.1);
}

.project-img {
  height: 250px;
  background: #111;
  position: relative;
  overflow: hidden;
}

/* Placeholders for images */
.placeholder-1 {
  background: linear-gradient(45deg, #1a1a1a, #2a0000);
}

.placeholder-2 {
  background: linear-gradient(-45deg, #1a1a1a, #3a0000);
}

.placeholder-3 {
  background: linear-gradient(135deg, #1a1a1a, #222);
}

.project-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.8) 100%);
}

.project-info {
  padding: 2rem;
}

.project-info h3 {
  margin-bottom: 0.8rem;
}

.project-info p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.view-btn {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.view-btn:hover {
  padding-left: 10px;
}

/* Contact */
.contact-card {
  background: linear-gradient(145deg, #111, #050505);
  padding: 4rem;
  border-radius: 16px;
  text-align: center;
  border: 1px solid var(--border);
}

.contact-card h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.contact-card p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.contact-btns {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 900;
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.5);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 968px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }

  .hero-visual {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transition: var(--transition);
    border-left: 1px solid var(--border);
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-toggle {
    display: block;
    z-index: 1001;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .contact-card {
    padding: 2rem;
  }

  .contact-btns {
    flex-direction: column;
  }
}