/* style.css — Dark Theme Portfolio with Animations & Transitions */

/* ===== RESET & GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  background-color: #0a0c10;
  color: #eef2ff;
  line-height: 1.5;
  overflow-x: hidden;
}

/* custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1e1f2c;
}
::-webkit-scrollbar-thumb {
  background: #7c3aed;
  border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a78bfa;
}

/* ===== TYPOGRAPHY & LINKS ===== */
a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.2);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #c084fc, #7c3aed);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-item {
  font-weight: 500;
  font-size: 1rem;
  transition: 0.2s ease;
  position: relative;
  color: #cbd5e6;
}

.nav-item:hover {
  color: #a78bfa;
  transform: translateY(-2px);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #a855f7, #7c3aed);
  transition: width 0.3s ease;
}

.nav-item:hover::after {
  width: 100%;
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 2rem 2rem;
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  width: 100%;
}

.hero-text {
  flex: 1.2;
}

.hero-badge {
  display: inline-block;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 60px;
  padding: 0.4rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #c4b5fd;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(120deg, #e9d5ff, #a78bfa, #7c3aed);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: subtleGlow 3s infinite alternate;
}

@keyframes subtleGlow {
  0% { filter: drop-shadow(0 0 0px rgba(124,58,237,0)); }
  100% { filter: drop-shadow(0 0 5px rgba(124,58,237,0.3)); }
}

.hero-subtitle {
  font-size: 1.6rem;
  font-weight: 500;
  color: #b9c3da;
  margin-bottom: 1.2rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: #9ca3af;
  max-width: 550px;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  padding: 0.8rem 1.8rem;
  border-radius: 40px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  display: inline-block;
  font-size: 1rem;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(95deg, #7c3aed, #a855f7);
  color: white;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(124, 58, 237, 0.5);
  background: linear-gradient(95deg, #8b5cf6, #c084fc);
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid #7c3aed;
  color: #d8b4fe;
}
.btn-secondary:hover {
  background: rgba(124, 58, 237, 0.1);
  transform: translateY(-3px);
  border-color: #c084fc;
  color: white;
}

.hero-abstract {
  flex: 0.8;
  position: relative;
  display: flex;
  justify-content: center;
}

.glow-orb {
  width: 290px;
  height: 290px;
  background: radial-gradient(circle, rgba(124,58,237,0.4), rgba(0,0,0,0));
  border-radius: 40%;
  filter: blur(60px);
  animation: floatOrb 6s infinite alternate;
}
 .floating-shape {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(168,85,247,0.5);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: morphShape 10s infinite ease;
} 

@keyframes floatOrb {
  0% { transform: translateY(0px) scale(1); opacity: 0.5;}
  100% { transform: translateY(-30px) scale(1.05); opacity: 0.9;}
}
@keyframes morphShape {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: translate(-50%, -50%) rotate(0deg);}
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: translate(-50%, -50%) rotate(10deg);}
}

/* ===== SECTION HEADERS ===== */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 500;
  color: #a78bfa;
  background: rgba(124, 58, 237, 0.2);
  padding: 0.3rem 1rem;
  border-radius: 40px;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #f0f3ff, #cbd5ff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.title-underline {
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, #a78bfa, #7c3aed);
  margin: 0.8rem auto 0;
  border-radius: 4px;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background: #0f1117;
  border-radius: 50px 50px 0 0;
}

.about-grid {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.about-card {
  flex: 1.5;
  background: rgba(22, 24, 32, 0.7);
  backdrop-filter: blur(5px);
  padding: 2rem;
  border-radius: 2rem;
  border: 1px solid rgba(124, 58, 237, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}
.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -12px rgba(0,0,0,0.5);
  border-color: rgba(124, 58, 237, 0.5);
}

.about-text {
  margin-bottom: 1rem;
  color: #cfd9f2;
  font-size: 1rem;
}

.about-highlight {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.about-highlight span {
  background: #1a1c26;
  padding: 0.4rem 1rem;
  border-radius: 40px;
  font-size: 0.85rem;
  border-left: 3px solid #a855f7;
}

.about-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
}

.stat-item {
  background: #11131c;
  border-radius: 1.5rem;
  padding: 1.2rem;
  text-align: center;
  transition: all 0.2s;
  border: 1px solid rgba(168,85,247,0.3);
}
.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #e0d4ff, #b77eff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.stat-label {
  font-weight: 500;
  color: #a0a9c2;
}

/* ===== SKILLS SECTION ===== */
.skills-section {
  background: #0a0c10;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.skill-card {
  background: rgba(30, 32, 44, 0.8);
  backdrop-filter: blur(4px);
  padding: 1rem 0.8rem;
  text-align: center;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.25s ease-in-out;
  border: 1px solid #2d2f3e;
  cursor: default;
  color: #e2e8ff;
}

.skill-card:hover {
  transform: translateY(-6px) scale(1.02);
  background: linear-gradient(145deg, #2a2d3e, #1e2130);
  border-color: #a855f7;
  box-shadow: 0 12px 18px -8px rgba(124, 58, 237, 0.3);
  color: white;
}

.extra-skills-note {
  text-align: center;
  margin-top: 2rem;
  padding: 0.8rem;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 2rem;
  font-size: 0.9rem;
  color: #c4b5fd;
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
  background: #0f1117;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 2rem;
}

.project-card {
  background: #12141e;
  border-radius: 1.8rem;
  padding: 1.8rem;
  transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  border: 1px solid rgba(124, 58, 237, 0.1);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-12px);
  border-color: #7c3aed;
  box-shadow: 0 25px 30px -12px rgba(0, 0, 0, 0.6);
  background: #171b26;
}

.project-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  display: inline-block;
  transition: transform 0.2s;
}

.project-card:hover .project-icon {
  transform: scale(1.05);
}

.project-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.project-card p {
  color: #b9c3da;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.project-tech {
  font-size: 0.75rem;
  background: #1e202b;
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  color: #c4b5fd;
  margin-bottom: 1rem;
}

.project-links {
  font-weight: 500;
  font-size: 0.9rem;
  color: #a78bfa;
  transition: 0.2s;
}
.project-links span {
  cursor: default;
  border-bottom: 1px dashed #a78bfa;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: #0a0c10;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  background: rgba(18, 20, 28, 0.7);
  border-radius: 2.5rem;
  padding: 2.5rem;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.contact-info {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: #151a24;
  padding: 1.4rem;
  border-radius: 1.6rem;
  text-align: center;
  transition: 0.2s;
}
.info-card:hover {
  background: #1f2533;
  transform: scale(1.02);
}
.info-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.info-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}
.info-card p {
  color: #b9c2dc;
  font-size: 0.85rem;
  word-break: break-word;
}

.contact-form {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group input, .form-group textarea {
  width: 100%;
  background: #1e212c;
  border: 1px solid #2e3243;
  padding: 1rem 1.2rem;
  border-radius: 1.2rem;
  font-size: 1rem;
  color: #f0f3ff;
  transition: 0.2s;
  font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.3);
}

.submit-btn {
  background: linear-gradient(100deg, #7c3aed, #a855f7);
  border: none;
  padding: 1rem;
  border-radius: 2rem;
  font-weight: bold;
  font-size: 1rem;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
}
.submit-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow: 0 10px 20px -5px #7c3aed;
}

/* ===== FOOTER ===== */
.footer {
  background: #06080c;
  border-top: 1px solid #20222e;
  padding: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #8a94b0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-links {
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .contact-wrapper {
    flex-direction: column;
  }
  .about-grid {
    flex-direction: column;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-title {
    font-size: 2rem;
  }
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  .project-card {
    padding: 1.2rem;
  }
  .skill-card {
    font-size: 0.9rem;
  }
}