/* Reset & basics */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background-color: #fff;
  color: #333;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header */
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  background: #2e004f;
  padding: 20px 0;
  transition: 0.3s ease;
}

header.sticky {
  background: #3b0069;
  padding: 15px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

header .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

header .logo span {
  color: #d4b3ff;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: 0.3s;
}

.nav-links li a:hover {
  color: #d4b3ff;
}

/* Hero Section with animated background */
.hero {
  background: linear-gradient(135deg, #4a005f, #5a2a64, #7b2a8d);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: white;
  padding: 100px 0;
  margin-top: 70px;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.hero-text {
  max-width: 500px;
}

.hero .line {
  width: 50px;
  border: 2px solid #d4b3ff;
  margin-bottom: 15px;
}

.hero .tagline {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.hero .buttons {
  display: flex;
  gap: 15px;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 0%;
  left: 0;
  bottom: 0;
  background: rgba(255,255,255,0.3);
  transition: 0.3s;
  border-radius: 25px;
  z-index: 0;
}

.btn:hover::after {
  height: 100%;
}

.btn-primary {
  background: #fff;
  color: #4a005f;
}

.btn-primary:hover {
  color: #4a005f;
  transform: scale(1.05);
}

.btn-secondary {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: #4a005f;
  transform: scale(1.05);
}

.hero-image img {
  width: 280px;
  border-radius: 50%;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* About Section */
.about {
  padding: 80px 0;
  background: #fff;
}

.about-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.about-text {
  max-width: 600px;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #2e004f;
}

.about-text .intro {
  font-weight: bold;
  margin-bottom: 10px;
}

.about-text p {
  margin-bottom: 15px;
}

.about-img img {
  max-width: 350px;
  transition: transform 0.5s ease;
}

/* Skills Section */
.skills-section {
  background: #5a2a64;
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.skills-section .title {
  font-size: 2rem;
  margin-bottom: 15px;
}

.skills-section .subtitle {
  font-size: 1rem;
  margin-bottom: 40px;
}

.cards {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.card {
  background: rgba(255,255,255,0.3);
  padding: 50px;
  border-radius: 12px;
  width: 180px;
  text-align: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.5s ease;
}

.card:hover {
  background: rgba(255,255,255,0.5);
  transform: scale(1.1) translateY(-10px);
  box-shadow: 0 20px 30px rgba(0,0,0,0.3);
}

/* Projects Section */
.projects {
  padding: 80px 20px;
  background: #fff;
  text-align: center;
}

.projects .section-title {
  font-size: 2rem;
  color: #2e004f;
  margin-bottom: 15px;
}

.projects-intro {
  margin-bottom: 30px;
  font-size: 1rem;
}

.project-categories {
  margin-bottom: 40px;
}

.category-btn {
  padding: 10px 20px;
  margin: 5px;
  border: 1px solid #5a2a64;
  border-radius: 20px;
  background: transparent;
  color: #5a2a64;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
  background: #5a2a64;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(90,42,100,0.6);
}

.project-gallery {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  perspective: 1500px;
}

.project-card {
  background: #f5f5f5;
  padding: 10px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.project-card img {
  max-width: 250px;
  border-radius: 10px;
  display: block;
  margin: auto;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Contact Section */
.contact-section {
  background: #5a2a64;
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.contact-info {
  margin-top: 20px;
}

.contact-info p {
  margin: 10px 0;
  font-size: 1rem;
}

.contact-info a {
  color: #d4b3ff;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Hero image floating + 3D interactive */
.hero-image img {
  width: 280px;
  border-radius: 50%;
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

/* Project gallery perspective */
.project-gallery {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  perspective: 1500px;
}


/* Responsive */
@media(max-width: 768px) {
  .hero-content, .about-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-image img {
    margin-top: 20px;
  }

  .cards {
    flex-direction: column;
    gap: 20px;
  }

  .project-gallery {
    flex-direction: column;
    align-items: center;
  }
}
