@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
  --bg-color: #050510;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --accent-primary: #7b2cbf;
  --accent-secondary: #3a0ca3;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --card-hover: rgba(255, 255, 255, 0.1);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(123, 44, 191, 0.15) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(67, 97, 238, 0.15) 0%, transparent 20%);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Typography */
h1,
h2,
h3 {
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url('images/hero-bg.png');
  /* Fallback / Base */
  background-size: cover;
  background-position: center;
}

#particles-canvas {
  width: 100%;
  height: 100%;
}

/* Header */
header {
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(15px);
  background: rgba(5, 5, 16, 0.7);
  border-bottom: 1px solid var(--glass-border);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(to right, #fff, var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-primary);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  position: relative;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 50px;
}

.hero-text {
  flex: 1;
  text-align: left;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.floating-avatar {
  width: 350px;
  height: auto;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(123, 44, 191, 0.4));
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

.hero-text h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-text .highlight {
  color: #c77dff;
  text-shadow: 0 0 20px rgba(199, 125, 255, 0.5);
}

.hero-text p.subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  padding: 14px 35px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: linear-gradient(45deg, var(--accent-secondary), var(--accent-primary));
  color: white;
  box-shadow: 0 4px 15px rgba(123, 44, 191, 0.5);
  position: relative;
  overflow: hidden;
}

.btn-primary:active {
  transform: scale(0.98);
}

/* Sections */
section {
  padding: 100px 0;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 80px;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Cards (About, Projects) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  perspective: 1000px;
}

.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.1s ease-out;
}

.glass-card {
  padding: 40px 30px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.project-card .card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .card-image img {
  transform: scale(1.1);
}

.project-card .card-content {
  padding: 25px;
}

.card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: #fff;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.gradient-icon {
  background: linear-gradient(135deg, var(--accent-primary), #4895ef);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

/* Contact */
.contact {
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 16, 0.9));
  padding-bottom: 120px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.social-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.5rem;
  color: #fff;
}

.social-icon:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 20px rgba(123, 44, 191, 0.6);
}

/* Footer */
footer {
  padding: 40px 0;
  text-align: center;
  background: #020205;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .floating-avatar {
    width: 250px;
    margin-bottom: 40px;
  }
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .nav-links {
    display: none;
    /* Simple mobile hide for now, could add burger later */
  }
}