/* Base Styles */
:root {
  --neon-purple: #b742ff;
  --neon-blue: #4287f5;
  --neon-pink: #ff41c7;
  --dark-bg: #0a0a12;
  --card-bg: #13131f;
  --card-hover: #1d1d2d;
}

body {
  background-color: var(--dark-bg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}

/* Hero Section Styles */
.content-section {
  width: 100%;
}
.hero-section {
  position: relative;
  background-color: var(--dark-bg);
  isolation: isolate;
}

.hero-glow-circle {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(183, 66, 255, 0.15) 0%, rgba(183, 66, 255, 0) 70%);
  border-radius: 50%;
  top: 20%;
  left: 15%;
  filter: blur(70px);
  z-index: 0;
  animation: moveGlow 20s infinite alternate ease-in-out;
}

.hero-glow-circle-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(66, 135, 245, 0.1) 0%, rgba(66, 135, 245, 0) 70%);
  top: 40%;
  left: 60%;
  animation: moveGlow 25s infinite alternate-reverse ease-in-out;
}

.profile-picture-container {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  padding: 6px;
}

.profile-picture-border {
  border-radius: 50%;
  filter: blur(8px);
  transform: scale(1.05);
}

.profile-picture {
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-picture:hover {
  transform: scale(1.05);
}

.social-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.social-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--neon-purple), var(--neon-blue));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.social-icon:hover::after {
  opacity: 0.3;
}

.typing-text {
  border-right: 2px solid var(--neon-purple);
  white-space: nowrap;
  overflow: hidden;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
  display: inline-block;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--neon-purple) }
}

/* Projects Section Styles */
.projects-container {
  perspective: 2000px; /* Deeper perspective for a more dramatic 3D effect */
  position: relative;
  transition: transform 0.5s ease-out; /* Smooth transition for the container itself */
}

/* Project Card Base Styles */
.project-card {
  position: absolute;
  width: 320px;
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Smoother and faster transitions */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  cursor: pointer;
}

.project-card.visible {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  background-color: var(--card-hover);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 
              0 0 15px rgba(183, 66, 255, 0.4);
  z-index: 10;
}

/* Card Active State */
.project-card.active {
  z-index: 20;
}

/* Card Inner Content */
.card-content {
  padding: 1.5rem;
}

.card-header {
  position: relative;
  overflow: hidden;
  height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, #fff, #b3b3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: all 0.3s ease;
}

.project-card:hover .project-title {
  background: linear-gradient(45deg, #fff, var(--neon-purple));
  -webkit-background-clip: text;
  background-clip: text;
}

.project-description {
  font-size: 0.9rem;
  color: #a0a0c0;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Tags */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  background-color: rgba(183, 66, 255, 0.15);
  color: #d8c5ff;
  transition: all 0.3s ease;
}

.tag:nth-child(2n) {
  background-color: rgba(66, 135, 245, 0.15);
  color: #c5dfff;
}

.tag:nth-child(3n) {
  background-color: rgba(255, 65, 199, 0.15);
  color: #ffc5f2;
}

.project-card:hover .tag {
  background-color: rgba(183, 66, 255, 0.25);
}

.project-card:hover .tag:nth-child(2n) {
  background-color: rgba(66, 135, 245, 0.25);
}

.project-card:hover .tag:nth-child(3n) {
  background-color: rgba(255, 65, 199, 0.25);
}

/* Card background patterns */
.card-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 20px 20px;
  opacity: 0.05;
  background-image: 
    repeating-linear-gradient(0deg, var(--neon-purple), var(--neon-purple) 1px, transparent 1px, transparent 20px),
    repeating-linear-gradient(90deg, var(--neon-blue), var(--neon-blue) 1px, transparent 1px, transparent 20px);
  transition: opacity 0.3s ease;
}

.project-card:hover .card-bg-pattern {
  opacity: 0.1;
}

/* Glow effects */
.glow-circle {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(183, 66, 255, 0.2) 0%, rgba(183, 66, 255, 0) 70%);
  border-radius: 50%;
  top: 30%;
  left: 30%;
  filter: blur(50px);
  z-index: -1;
  animation: moveGlow 15s infinite alternate ease-in-out;
}

.glow-circle-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(66, 135, 245, 0.15) 0%, rgba(66, 135, 245, 0) 70%);
  top: 50%;
  left: 60%;
  animation: moveGlow 20s infinite alternate-reverse ease-in-out;
}

@keyframes moveGlow {
  0% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(-15%, 10%);
  }
  66% {
    transform: translate(15%, -5%);
  }
  100% {
    transform: translate(5%, 15%);
  }
}

/* Header icon */
.header-icon {
  position: absolute;
  font-size: 8rem;
  opacity: 0.07;
  right: -1rem;
  bottom: -1rem;
  color: var(--neon-purple);
  transition: all 0.3s ease;
}

.project-card:hover .header-icon {
  opacity: 0.12;
  transform: rotate(-5deg) scale(1.1);
}

/* Custom animation for cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Mouse glow */
.mouse-glow {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .projects-container {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  
  .project-card {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
    opacity: 1;
  }
  
  .typing-text {
    animation: none;
    border-right: none;
    white-space: normal;
  }
}
