:root {
  --bg-base: #351f39;
  --bg-dark: #2a182d;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.1);
  --color-primary: #9d75ab;
  --color-secondary: #c9a6d4;
  --text-main: #ffffff;
  --text-muted: #d0b8d6;
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --border-glass: rgba(255, 255, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
}

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

/* Background Patterns */
.bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 2px, transparent 2px);
  background-size: 40px 40px;
  pointer-events: none;
}

.circle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.circle-1 {
  width: 500px;
  height: 500px;
  background-color: #8c639c;
  opacity: 0.8;
  top: -100px;
  left: 20%;
  filter: blur(2px);
}

.circle-2 {
  width: 300px;
  height: 300px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  top: 50px;
  left: 45%;
}

.circle-3 {
  width: 400px;
  height: 400px;
  border: 40px solid #ffffff;
  top: 40%;
  left: -100px;
  opacity: 0.15;
}

.circle-4 {
  width: 600px;
  height: 600px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  bottom: -200px;
  right: -100px;
}

.code-pattern {
  position: fixed; /* Using fixed so they stay on screen like the bg pattern */
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  z-index: -1;
  user-select: none;
}

.code-1 { top: 15%; left: 8%; transform: rotate(-15deg); font-size: 6rem; }
.code-2 { top: 60%; right: 5%; transform: rotate(20deg); font-size: 10rem; }
.code-4 { top: 35%; right: 25%; transform: rotate(-30deg); font-size: 5rem; }
.code-5 { top: 75%; left: 45%; transform: rotate(10deg); font-size: 7rem; }

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(42, 24, 45, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-glass);
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

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

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

/* Sections */
section {
  padding: 100px 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 60px;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  z-index: 10;
}

.hero-text {
  flex: 1;
}

.hero-name {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.hero-title {
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.hero-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.hero-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-contact a i {
  color: var(--color-primary);
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  background: var(--text-main);
  color: var(--bg-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 30px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn:hover {
  background: transparent;
  color: var(--text-main);
  border-color: var(--text-main);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--text-main);
}

.btn-outline:hover {
  background: var(--text-main);
  color: var(--bg-base);
}

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

.hero-image img {
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Hero CTA buttons row */
.hero-cta {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Circular profile wrapper in hero */
.hero-profile-ring {
  position: relative;
  display: inline-block;
  padding: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 30px rgba(157, 117, 171, 0.4);
  animation: float 6s ease-in-out infinite;
}

.hero-profile-ring img {
  width: 380px;
  height: 380px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  display: block;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.about-image img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
}

.about-title {
  font-size: 2rem;
  margin-bottom: 20px;
}

/* Skills Section */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.skill-category h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--color-secondary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.skill-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  border-color: var(--color-primary);
}

.skill-card i {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--text-main);
}

.skill-card span {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  background: var(--bg-card-hover);
  border-color: var(--color-primary);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project-icon {
  font-size: 3rem;
  color: var(--color-secondary);
  margin-bottom: 20px;
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.project-desc {
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.project-tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-link {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.project-link:hover {
  color: var(--color-primary);
}

/* Contact section titles & info */
.contact-section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.contact-info-list {
  margin-top: 30px;
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-info-list a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info-list i {
  color: var(--color-primary);
}

/* Experience Section */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 2px;
  background: var(--border-glass);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  left: 11px;
  top: 5px;
  width: 20px;
  height: 20px;
  background: var(--color-primary);
  border-radius: 50%;
  border: 4px solid var(--bg-base);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 25px;
  border-radius: 15px;
}

.timeline-period {
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 10px;
  display: inline-block;
}

.timeline-title {
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.timeline-company {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.timeline-type {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.timeline-type.formation {
  background: rgba(157, 117, 171, 0.15);
  color: var(--color-secondary);
  border: 1px solid rgba(157, 117, 171, 0.3);
}

.timeline-type.experience {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
}


/* Contact Section */
.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-card);
  padding: 60px;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
}

.contact-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

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

.social-icon:hover {
  background: var(--color-primary);
  transform: translateY(-5px);
}

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  border-top: 1px solid var(--border-glass);
  background: var(--bg-dark);
}

.hero-mobile-desc {
  display: none;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title {
    display: none;
  }

  .hero-mobile-desc {
    display: block;
    font-size: 1.1rem;
    color: var(--color-secondary);
    margin-top: 15px;
    margin-bottom: 25px;
  }

  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 50px;
  }
  
  .hero-name {
    font-size: 3.5rem;
  }
  
  .hero-contact {
    align-items: center;
  }
  
  .hero-profile-ring img {
    width: 250px;
    height: 250px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 20px;
    text-align: center;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  section {
    padding: 80px 20px;
  }
}
