@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&display=swap');

:root {
  --bg: #0f0f10;
  --card: #161b22;
  --text: #e6edf3;
  --primary: #f8f9fa;
  --secondary: #2d8cff;
}

* {
  margin: 0; padding: 0; box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

header {
  padding: 18px 6%;
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
  z-index: 9999;
}

.logo {
  font-size: 26px;
  font-weight: 700;
}
.logo span { color: var(--primary); }

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 18px 60px;
}

.logo .folio {
  color: #2d8cff !important;
}

/* Center nav */
.nav-container {
  flex: 1;
  display: flex;
  justify-content: center;
}

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

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: .3s;
}

.nav-links a:hover {
  color: var(--primary);
  text-shadow: 0 0 8px var(--primary);
}

/* Publication tab */
.publication-tab { position: relative; z-index: 1000; }
.publication-tab > a {
  color: #3b82f6 !important;
  font-weight: 600;
}

.publication-tab .dropdown {
  display: none;
  position: absolute;
  top: 36px;
  right: 0;
  background: #111827;
  border-radius: 6px;
  width: 240px;
  padding: 10px 0;
}

.publication-tab.active .dropdown { display: block; }
.publication-tab:hover .dropdown { display: block; }

.publication-tab .dropdown li a {
  display: block;
  padding: 10px 18px;
  color: #e5e7eb;
  text-decoration: none;
}

.publication-tab .dropdown li a:hover {
  background: #1f2937;
  color: #3b82f6;
}

/* HERO */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 110px 8%;
  gap: 60px;
  text-align: left;
  flex-direction: row;
}

.hero-content { flex: 1; }

.hero-content .social-links {
  margin-top: 25px;
  display: flex;
  gap: 15px;
}

.hero-img img {
  width: 390px;
  height: 390px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #2d8cff;
  box-shadow: 0 0 40px #2d8cff;
  transition: 0.4s ease;
}

.hero-img img:hover {
  transform: scale(1.04);
  box-shadow: 0 0 60px #2d8cff;
}

.hero h1 { font-size: 52px; color: #ffffff; }
.highlight { color: #3b82f6 !important; }
.hero h2 { margin-top: 6px; font-weight: 400; color: #3b82f6; font-size: 40px; }
.hero p { opacity: 0.8; margin-top: 8px; font-size: 25px; }

.cursive {
  font-family: "Dancing Script", cursive;
  font-size: 27px;
  font-style: italic;
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-content { order: 2; }
  .hero-img { order: 1; }
  .hero-img img { width: 270px; height: 270px; }
}

/* ABOUT */
.about-box {
  border: 2px solid #3b82f6;
  padding: 25px;
  border-radius: 10px;
  background: transparent;
}

#aboutText {
  font-size:20px;
  overflow: hidden;
  transition: .4s ease;
}

.highlight-word { color: #3b82f6; }

.section {
  padding: 80px 8%;
  scroll-margin-top: 90px;
}

.section-title {
  text-align: center;
  font-size: 34px;
  margin-bottom: 26px;
  color: #3b82f6;
}

/* SKILLS */
.skills-container { max-width: 650px; margin: auto; }
.skill { margin-bottom: 16px; }
.bar { width: 100%; height: 14px; background: #222831; border-radius: 12px; overflow: hidden; }
.bar span {
  display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 0; transition: 1.6s;
}

/* PROJECTS */
.project-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.project-card {
  padding: 28px; border-radius: 12px;
  background: var(--card); cursor: pointer;
  transition: 0.35s;
}

.project-card:hover {
  transform: translateY(-8px);
  border: 2px solid var(--primary);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
  border: 2px solid #2d8cff;
  transition: 0.35s ease;
}

.project-card:hover img {
  transform: scale(1.03);
  box-shadow: 0 0 12px #2d8cff;
}

/* CONTACT */
.contact-text { text-align: center; margin-bottom: 18px; opacity: .85; }

.social-links {
  display: flex; justify-content: center; gap: 26px;
}

.social-links a {
  color: var(--secondary);
  text-decoration: none;
  font-size: 32px;
  transition: 0.3s;
}

.social-links a:hover {
  color: var(--primary);
  transform: scale(1.2);
}

/* FOOTER */
footer {
  margin-top: 50px; text-align: center;
  padding: 24px; background: var(--card);
}

/* ------------------------------------------------------------------
        ⭐⭐ RESPONSIVE FIXES + HAMBURGER MENU (MOBILE) ⭐⭐
------------------------------------------------------------------*/
.hamburger {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: white;
}

/* MOBILE NAV */
@media (max-width: 850px) {

  nav {
    padding: 18px 20px;
  }

  .hamburger {
    display: block;
    z-index: 9999;
  }

  .nav-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: #0f0f10;
    display: flex;
    justify-content: center;
    transition: 0.4s ease;
  }

  .nav-container.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 25px;
    align-items: center;
    margin-top: 140px;
  }

  .nav-links a {
    font-size: 22px;
  }

  /* Dropdown fix for mobile */
  .publication-tab .dropdown {
    position: static;
    width: 100%;
    background: #1a1f27;
    text-align: center;
  }

  .publication-tab:hover .dropdown {
    display: none;
  }

  .publication-tab.active .dropdown {
    display: block;
  }
}

/* Extra small screens */
@media (max-width: 500px) {
  .hero h1 { font-size: 38px; }
  .hero h2 { font-size: 28px; }
  .hero p { font-size: 18px; }
}
