/* === ADVANCED PORTFOLIO CSS === */
:root {
  --accent-1: #4a00e0;
  --accent-2: #8e2de2;
  --text-main: #d9d3f0;
  --text-muted: #b8b0d8;
  --bg-main: #101014;
  --bg-card: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.1);
  --accent-gradient: linear-gradient(45deg, var(--accent-1), var(--accent-2));
  --shadow-glow: 0 0 40px rgba(142, 45, 226, 0.3);
  --radius: 24px;
  --radius-card: 16px;
  --transition: 0.3s cubic-bezier(.4, 0, .2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;

  /* Typography feel */
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.3px;

  /* Text color (soft lavender-grey) */
  color: #d9d3f0;

  /* Background (deep violet / black lavender) */
  background: radial-gradient(
    ellipse at top left,
    #1a0f2e 0%,
    #12081f 45%,
    #0b0614 100%
  );

  margin: 0;
  padding: 0;
  overflow-x: hidden;
  padding-top: 80px;
}


body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 15% 25%, rgba(74, 0, 224, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(142, 45, 226, 0.3) 0%, transparent 40%);
  animation: aurora 15s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes aurora {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* --- Custom Cursor --- */
.cursor,
.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  border-radius: 50%;
}

body.interactive-hover .cursor {
  width: 0;
  height: 0;
}

/* --- General Elements & Typography --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


.section-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
  color: #fff;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

main {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  padding: 4rem 1rem;
  margin-bottom: 4rem;
}

/* --- Header & Navbar --- */
header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 1rem;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  background: rgba(16, 16, 20, 0.7);
  backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-brand a {
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s;
  text-decoration: none;
}

.nav-links li a.active,
.nav-links li a:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
}

/* --- Hero Section --- */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  min-height: 80vh;
  padding: 2rem;
  flex-wrap: wrap;
}

.hero-image-container {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  padding: 8px;
  background: var(--accent-gradient);
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
  transition: transform 0.4s;
}

.hero-image-container:hover {
  transform: scale(1.05);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--bg-main);
}

.hero-text-content {
  text-align: left;
  max-width: 550px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-intro {
  margin: 0 0 2rem 0;
  color: var(--text-muted);
}

.hero-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-btn {
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  border: 2px solid transparent;
  transition: all var(--transition);
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(142, 45, 226, 0.2);
  text-decoration: none;
  min-width: 160px;
  text-align: center;
  display: inline-block;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(142, 45, 226, 0.4);
}

.cta-btn.secondary-btn {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-color);
  box-shadow: none;
}

.cta-btn.secondary-btn:hover {
  background: var(--bg-card);
  color: #fff;
  border-color: var(--accent-2);
}

/* --- Resume Dropdown --- */
.resume-dropdown-container {
  position: relative;
  display: inline-block;
}

.resume-toggle {
  cursor: pointer;
  position: relative;
}

.resume-toggle::after {
  content: '▼';
  font-size: 0.7rem;
  margin-left: 0.5rem;
  transition: transform 0.3s;
}

.resume-dropdown-container.active .resume-toggle::after {
  transform: rotate(180deg);
}

.resume-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 220px;
  background: rgba(16, 16, 20, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.resume-dropdown-container.active .resume-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.resume-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-main);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.2s;
  font-weight: 500;
  font-size: 0.95rem;
}

.resume-option:hover {
  background: var(--bg-card);
  color: #fff;
  transform: translateX(4px);
}

.resume-option svg {
  flex-shrink: 0;
  color: var(--accent-2);
}

/* --- About Section --- */
.about-container {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
}

.about-animative {
  flex: 2;
  position: relative;
  color: var(--text-muted);
}

.about-animative strong {
  color: var(--text-main);
  font-weight: 600;
}

.about-image-container {
  flex: 1;
  max-width: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s;
}

.about-image-container:hover {
  transform: scale(1.05);
}

.about-image {
  width: 100%;
  display: block;
}

/* --- Skills Section - Floating Icon Grid --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 3rem 2rem;
  justify-items: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-8px);
}

.skill-icon {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 4px 20px rgba(142, 45, 226, 0.4));
  transition: all 0.3s ease;
}

.skill-item:hover .skill-icon {
  filter: drop-shadow(0 8px 30px rgba(142, 45, 226, 0.7));
  transform: scale(1.15);
}

.skill-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  text-align: center;
  white-space: nowrap;
}

.skill-category-title {
  grid-column: 1 / -1;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-2);
  text-align: center;
  margin: 1rem 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1rem;
    padding: 1rem 0.5rem;
  }
  
  .skill-icon {
    width: 48px;
    height: 48px;
  }
  
  .skill-label {
    font-size: 0.75rem;
    white-space: normal;
    word-break: break-word;
  }
  
  .skill-category-title {
    font-size: 0.85rem;
    margin: 0.5rem 0 0.25rem 0;
  }
}

/* --- Bento Grid & Cards (Projects Only) --- */
.bento-grid {
  display: grid;
  gap: 1rem;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: transform 0.3s, background 0.3s;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* --- Soft Skills Section --- */
.soft-skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 3rem 2rem;
  justify-items: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.soft-skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.soft-skill-item:hover {
  transform: translateY(-8px);
}

.soft-skill-item .skill-icon {
  filter: drop-shadow(0 4px 20px rgba(142, 45, 226, 0.4));
}

.soft-skill-item:hover .skill-icon {
  filter: drop-shadow(0 8px 30px rgba(142, 45, 226, 0.7));
  transform: scale(1.15);
}

/* --- Projects Section - Grid Without Containers --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch; /* IMPORTANT */
}

.project-item {
  display: flex;
  flex-direction: column;
}

.project-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  transition: all 0.3s;
  margin-bottom: 1.2rem;
}

.project-img:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(142, 45, 226, 0.3);
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.project-content h3 {
  font-size: 1.3rem;
  color: #fff;
  font-weight: 700;
  margin: 0;
}

.project-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.project-target {
  font-size: 0.9rem;
  color: var(--text-main);
  padding: 0.6rem;
  background: rgba(142, 45, 226, 0.1);
  border-radius: 6px;
  border-left: 3px solid var(--accent-2);
}

.project-target strong {
  color: var(--accent-2);
  font-weight: 600;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tech-badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  background: var(--accent-gradient);
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
}

.project-link {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  background: var(--accent-gradient);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s;
  text-align: center;
  box-shadow: 0 3px 10px rgba(142, 45, 226, 0.3);
}

.project-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(142, 45, 226, 0.5);
}

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .project-img {
    height: 180px;
  }
}

/* --- Education Section --- */
.education-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.education-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s;
}

.education-card:hover {
  transform: translateY(-5px);
}

.edu-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 20px rgba(142, 45, 226, 0.4));
  transition: all 0.3s ease;
}

.education-card:hover .edu-icon {
  filter: drop-shadow(0 8px 30px rgba(142, 45, 226, 0.7));
  transform: scale(1.1);
}

.education-card h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.edu-school {
  color: var(--accent-2);
  font-weight: 600;
}

.edu-years {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Contact Section & Footer --- */
.contact-section {
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: 2rem auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  background: rgba(255, 255, 255, 0.08);
}

.form-status {
  text-align: center;
  margin-top: 0.5rem;
  font-weight: 500;
}

.form-status.success { color: #4ade80; }
.form-status.error { color: #f87171; }

.contact-social {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-social a svg {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  transition: all 0.3s;
}

.contact-social a:hover svg {
  color: #fff;
  transform: scale(1.2) translateY(-3px);
}

footer {
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
  body {
    cursor: auto;
  }

  .cursor,
  .cursor-follower {
    display: none;
  }

  a,
  button {
    cursor: pointer;
  }

  .nav-toggle {
    display: block;
    background: none;
    border: none;
    z-index: 1001;
    width: 24px;
    height: 24px;
    position: relative;
  }

  .nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s;
    position: absolute;
    left: 0;
  }

  .nav-toggle-bar:nth-child(1) {
    top: 4px;
  }

  .nav-toggle-bar:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-toggle-bar:nth-child(3) {
    bottom: 4px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100vh;
    background: rgba(16, 16, 20, 0.9);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .about-container {
    flex-direction: column-reverse;
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
  }

  .hero-image-container {
    width: 240px;
    height: 240px;
  }

  .hero-text-content,
  .hero-title {
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  section {
    padding: 2.5rem 1rem;
    margin-bottom: 2rem;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  .soft-skills-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
    padding: 1rem 0.5rem;
  }

  .soft-skill-item .skill-icon {
    width: 48px;
    height: 48px;
  }

  .soft-skill-item .skill-label {
    font-size: 0.75rem;
  }

  .bento-card.card-featured,
  .bento-card.card-wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .projects-grid {
    flex-direction: column;
  }

  .project-card {
    max-width: 100%;
  }
}