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

:root {
  --primary: #6c5ce7;
  --secondary: #a29bfe;
  --dark: #2d3436;
  --light: #f7f7f7;
  --neon: #00f7ff;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(135deg, var(--dark), #000);
  color: var(--light);
  min-height: 100vh;
  padding: 2rem;
}

header {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

header a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  background: rgba(108, 92, 231, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

header a:hover {
  background: rgba(108, 92, 231, 0.4);
  transform: translateY(-2px);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 4rem;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 3rem;
  background: linear-gradient(to right, var(--secondary), var(--neon));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(102, 51, 255, 0.3);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card:hover {
  transform: translateY(-10px) scale(1.03);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px rgba(102, 51, 255, 0.4);
}

.card h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.card p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* Fullscreen container */
#fullscreen-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 1000;
  display: none;
  overflow: hidden;
}

/* Animation: Particle Burst */
.particle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 15px var(--neon);
  opacity: 0;
}

/* Animation: Morphing Shapes */
.morph-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.morph-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary), var(--neon));
  filter: blur(60px);
  opacity: 0.7;
}

/* Animation: Neon Grid */
.neon-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(rgba(0, 247, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 247, 255, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0;
}

.glitch-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon), 0 0 20px var(--neon);
  opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
}