/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

/* Body */
body {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
  background-attachment: fixed;
  color: #f8fafc;
  line-height: 1.6;
  min-height: 100vh;
}

/* Header */
header {
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #312e81 0%, #4c1d95 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

header h1 {
  font-size: 2rem;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  background: linear-gradient(45deg, #c4b5fd, #f8fafc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  color: #c4b5fd;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(45deg, #8b5cf6, #f59e0b);
  transition: width 0.3s ease;
}

nav a:hover::after, nav a:focus::after {
  width: 100%;
}

nav a:hover, nav a:focus {
  color: #f8fafc;
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 40%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  background: linear-gradient(45deg, #f8fafc, #c4b5fd, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease-out;
}

.hero p {
  max-width: 700px;
  margin-bottom: 40px;
  font-size: 1.2rem;
  color: #e2e8f0;
  animation: fadeInUp 1s ease-out 0.2s both;
}

/* Button */
.btn {
  padding: 15px 30px;
  background: linear-gradient(45deg, #8b5cf6, #a855f7);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.5s ease;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.8s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover, .btn:focus {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
  background: linear-gradient(45deg, #7c3aed, #9333ea);
}

.button-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover, .btn-secondary:focus {
  background: linear-gradient(45deg, #7c3aed, #9333ea);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* Sections */
section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: auto;
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1s ease-out forwards;
}

section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }

section h2 {
  font-size: 2.5rem;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  text-align: center;
  margin-bottom: 50px;
  background: linear-gradient(45deg, #f8fafc, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Card */
.card {
  background: linear-gradient(135deg, #312e81 0%, #4c1d95 100%);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  transition: all 0.4s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.1), transparent);
  transition: left 0.6s;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-12px) scale(1.03);
  border-color: #f59e0b;
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.4);
}

.card h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  margin-bottom: 15px;
  color: #f8fafc;
}

/* LinkedIn Embed */
#social {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.linkedin-embed {
  width: 100%;
  max-width: 500px;
  text-align: center;
}

.linkedin-placeholder {
  background: linear-gradient(135deg, #312e81 0%, #4c1d95 100%);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.linkedin-placeholder[hidden] {
  display: none;
}

.linkedin-placeholder h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  margin-bottom: 15px;
}

.linkedin-placeholder p {
  color: #e2e8f0;
  margin-bottom: 20px;
}

.linkedin-placeholder a {
  color: #c4b5fd;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.linkedin-placeholder a:hover,
.linkedin-placeholder a:focus {
  color: #f59e0b;
}

/* Contact Box */
#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-box {
  background: linear-gradient(135deg, #312e81 0%, #4c1d95 100%);
  padding: 40px;
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  max-width: 500px;
  width: 100%;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.contact-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.1), transparent);
  transition: left 0.6s;
}

.contact-box:hover::before {
  left: 100%;
}

.contact-box:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #f59e0b;
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.4);
}

.contact-box p {
  margin: 15px 0;
  font-size: 1.1rem;
}

.contact-box a {
  color: #c4b5fd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-box a:hover {
  color: #f59e0b;
}

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

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    padding: 20px;
    flex-direction: column;
    gap: 20px;
  }

  header h1 {
    font-size: 1.8rem;
  }

  nav {
    gap: 20px;
  }

  .hero {
    height: 80vh;
    padding: 20px;
  }

  .hero h2 {
    font-size: 2.5rem;
  }

  section {
    padding: 60px 20px;
  }

  section h2 {
    font-size: 2rem;
  }

  .projects {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .card {
    padding: 25px;
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, #312e81 0%, #4c1d95 50%, #312e81 100%);
  background-size: 400% 400%;
  border-top: 1px solid rgba(139, 92, 246, 0.3);
  backdrop-filter: blur(10px);
  color: #c4b5fd;
  animation: gradientShift 8s ease infinite;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  animation: inherit;
  z-index: -1;
}

footer > * {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
