/* ===========================
   DESIGN SYSTEM
=========================== */
:root {
  --bg: #060D1A;
  --card: rgba(10, 22, 44, 0.75);
  --card-hover: rgba(15, 30, 60, 0.9);
  --gold: #F0B429;
  --gold-bright: #FFD700;
  --gold-dim: rgba(240, 180, 41, 0.12);
  --gold-border: rgba(240, 180, 41, 0.18);
  --gold-border-hover: rgba(240, 180, 41, 0.45);
  --text: #DCE7F5;
  --text-muted: #7D8FA3;
  --radius: 14px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===========================
   PARTICLES
=========================== */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  background: var(--bg);
  z-index: -1;
}

/* ===========================
   SCROLL ANIMATIONS
=========================== */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   NAVIGATION
=========================== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(6, 13, 26, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--gold-border);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

nav.scrolled {
  background: rgba(6, 13, 26, 0.92);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--gold) 0%, #FFE566 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 11px;
  border-radius: 6px;
  transition: color 0.25s, background 0.25s;
}

.nav-links a:hover {
  color: var(--gold);
  background: var(--gold-dim);
}

/* ===========================
   CONTAINER
=========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===========================
   SECTION HEADINGS
=========================== */
section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--text);
  margin-bottom: 56px;
  position: relative;
}

section h2::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
  margin: 14px auto 0;
}

/* ===========================
   HOME SECTION
=========================== */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.home-layout {
  display: flex;
  align-items: center;
  gap: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.profile-section {
  flex-shrink: 0;
}

.profile-photo {
  width: 290px;
  height: 290px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow:
    0 0 0 10px rgba(240, 180, 41, 0.07),
    0 0 70px rgba(240, 180, 41, 0.22),
    0 24px 64px rgba(0, 0, 0, 0.55);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.profile-photo:hover {
  transform: translateY(-5px);
  box-shadow:
    0 0 0 10px rgba(240, 180, 41, 0.1),
    0 0 90px rgba(240, 180, 41, 0.32),
    0 28px 72px rgba(0, 0, 0, 0.55);
}

.intro-section {
  flex: 1;
}

.intro-greeting {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.intro-section h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #d8e4f0 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.intro-section p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 540px;
  margin-bottom: 40px;
}

.btn_container {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn_container a {
  text-decoration: none;
}

.btn_color {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold-border-hover);
  transition: all 0.25s var(--ease);
}

.btn_color:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(240, 180, 41, 0.35);
}

/* Primary button style for first btn */
.btn_container a:first-child .btn_color {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

.btn_container a:first-child .btn_color:hover {
  background: #FFE566;
  border-color: #FFE566;
  box-shadow: 0 8px 28px rgba(240, 180, 41, 0.4);
}

/* ===========================
   ABOUT SECTION
=========================== */
#about {
  padding: 120px 0;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.about-item {
  display: flex;
  gap: 56px;
  align-items: center;
}

.about-item.reverse {
  flex-direction: row-reverse;
}

.about-item .text {
  flex: 1;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.9;
}

.about-item .image {
  flex-shrink: 0;
}

.about-item img {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 0 50px rgba(240, 180, 41, 0.18), 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.about-item img:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 70px rgba(240, 180, 41, 0.28), 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* ===========================
   TIMELINE (Experience / Education)
=========================== */
#experience,
#education {
  padding: 120px 0;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent 0%, var(--gold) 15%, var(--gold) 85%, transparent 100%);
  transform: translateX(-50%);
  opacity: 0.5;
}

.timeline-item {
  width: 50%;
  padding: 0 56px 36px 0;
  position: relative;
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
  padding: 0 0 36px 56px;
}

.timeline-item::after {
  content: '';
  position: absolute;
  right: -7px;
  top: 22px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg);
  box-shadow: 0 0 12px rgba(240, 180, 41, 0.7);
  z-index: 1;
}

.timeline-item:nth-child(even)::after {
  right: auto;
  left: -7px;
}

.timeline-item .date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.timeline-item .content {
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.timeline-item .content:hover {
  border-color: var(--gold-border-hover);
  box-shadow: 0 8px 44px rgba(240, 180, 41, 0.1);
  transform: translateY(-2px);
}

.company-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.company-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border: 1px solid var(--gold-border);
  flex-shrink: 0;
}

.text-container h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.text-container h4 {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 500;
}

.timeline-item p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 8px;
  padding-left: 14px;
  border-left: 2px solid var(--gold-dim);
  position: relative;
}

.timeline-item p::before {
  display: none;
}

/* ===========================
   SKILLS SECTION
=========================== */
#skills {
  padding: 120px 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.skill-category {
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.skill-category:hover {
  border-color: var(--gold-border-hover);
  box-shadow: 0 8px 36px rgba(240, 180, 41, 0.09);
  transform: translateY(-2px);
}

.skill-category h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-tag {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(240, 180, 41, 0.07);
  border: 1px solid rgba(240, 180, 41, 0.18);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.skill-tag:hover {
  background: rgba(240, 180, 41, 0.18);
  border-color: var(--gold);
  color: var(--gold);
}

.skills-wordcloud {
  text-align: center;
  margin-top: 16px;
}

.skills-wordcloud img {
  max-width: 700px;
  width: 100%;
  border-radius: var(--radius);
  opacity: 0.85;
}

/* ===========================
   BLOGS / PROJECTS GRID
=========================== */
#blogs,
#projects {
  padding: 120px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.projects-grid a {
  text-decoration: none;
}

.project-card {
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--text-muted);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.project-card:hover {
  border-color: var(--gold-border-hover);
  box-shadow: 0 12px 56px rgba(240, 180, 41, 0.12);
  transform: translateY(-4px);
}

.project-card img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  border-bottom: 1px solid var(--gold-border);
  filter: brightness(0.78);
  transition: filter 0.3s var(--ease);
}

.project-card:hover img {
  filter: brightness(0.9);
}

.project-card-body {
  padding: 20px 22px 8px;
  flex: 1;
}

.project-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.45;
}

.project-card p {
  font-size: 0.84rem;
  line-height: 1.78;
  margin-bottom: 12px;
}

.project-links {
  display: flex;
  gap: 18px;
  padding: 12px 22px 20px;
}

.project-links a {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.2s;
}

.project-links a:hover {
  color: #FFE566;
  text-decoration: underline;
}

/* Read more */
.dots-readmore {
  color: var(--text-muted);
}

.more-text {
  display: none;
}

.read-more {
  color: var(--gold);
  cursor: pointer;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  margin-left: 4px;
}

.read-more:hover {
  text-decoration: underline;
}

/* ===========================
   PUBLICATIONS SECTION
=========================== */
#publication {
  padding: 120px 0;
}

.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.pub-card {
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.pub-card:hover {
  border-color: var(--gold-border-hover);
  box-shadow: 0 8px 36px rgba(240, 180, 41, 0.09);
  transform: translateY(-2px);
}

.pub-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.9rem;
  margin-top: 2px;
}

.pub-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ===========================
   CONTACT SECTION
=========================== */
#contact {
  padding: 120px 0;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-text {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 0.97rem;
  line-height: 1.85;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gold-border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.25s;
}

.contact-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
  transform: translateY(-2px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  padding: 13px 16px;
  border-radius: 8px;
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gold-border);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form button {
  padding: 13px 28px;
  background: var(--gold);
  border: none;
  color: var(--bg);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.25s var(--ease);
}

.contact-form button:hover {
  background: #FFE566;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(240, 180, 41, 0.4);
}

/* ===========================
   MOBILE NAV (hamburger)
=========================== */
.menu-icon {
  display: none;
  color: var(--gold);
  font-size: 1.4rem;
  cursor: pointer;
}

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

@media (max-width: 768px) {
  .home-layout {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 0 20px;
  }

  .profile-photo {
    width: 220px;
    height: 220px;
  }

  .intro-section p {
    margin-left: auto;
    margin-right: auto;
  }

  .btn_container {
    justify-content: center;
  }

  .about-item,
  .about-item.reverse {
    flex-direction: column;
    text-align: center;
  }

  .timeline::before {
    left: 20px;
    transform: none;
  }

  .timeline-item {
    width: 100%;
    padding: 0 0 30px 52px;
  }

  .timeline-item:nth-child(even) {
    margin-left: 0;
    padding: 0 0 30px 52px;
  }

  .timeline-item::after,
  .timeline-item:nth-child(even)::after {
    left: 14px;
    right: auto;
  }

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

  nav {
    display: none;
  }

  .container {
    padding: 0 20px;
  }

  section h2 {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .contact-links {
    flex-direction: column;
    align-items: center;
  }
}
