@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Outfit:wght@400;700;900&display=swap');

:root {
  --bg-color: #0b0c10;
  --surface-color: rgba(30, 30, 35, 0.4);
  --surface-border: rgba(255, 255, 255, 0.08);
  --primary-color: #8b5cf6;
  --secondary-color: #c4b5fd;
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  /* Dark starry or gradient background for depth */
  background-image: radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.15), transparent 25%),
                    radial-gradient(circle at 85% 30%, rgba(196, 181, 253, 0.1), transparent 25%);
  background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  margin-bottom: 1rem;
}

h1 {
  font-size: 5rem;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--text-light) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 3.5rem;
  color: var(--text-light);
  letter-spacing: 1px;
}

h2 span {
  color: var(--primary-color);
}

p {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: var(--text-light);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-color);
}

/* Navbar */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(11, 12, 16, 0.0);
  transition: var(--transition);
}

header.scrolled {
  padding: 1rem 5%;
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
}




.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-light);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
  transition: var(--transition);
}

.nav-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.8);
}

@media (max-width: 768px) {
  .nav-avatar {
    width: 32px;
    height: 32px;
  }
}

.logo span {
  color: var(--primary-color);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

nav ul li a {
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
  cursor: pointer;
}
.lang-dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dropdown-menu {
  position: absolute;
  top: 150%;
  right: 0;
  background: var(--surface-color);
  backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  box-shadow: var(--glass-shadow);
}
.lang-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li {
  padding: 0.5rem 1rem;
}

/* Layout Padding - Massive gaps for parallax */
section {
  padding: 15vh 5%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* Hero */
.hero {
  height: 100vh;
  padding-top: 20vh;
  justify-content: flex-start;
}

.hero-content {
  max-width: 900px;
  z-index: 2;
}

.subtitle {
  color: var(--primary-color);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  background: transparent;
  color: #fff;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 0%; height: 100%;
  background: var(--primary-color);
  z-index: -1;
  transition: width 0.4s ease;
}

.btn:hover::before {
  width: 100%;
}
.btn:hover {
  color: #fff;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}

/* About & Photo */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* GitHub Widget (Slider Section) */
.github-section {
  padding-top: 5vh;
}

.github-widget {
  background: transparent;
  border: none;
  box-shadow: none;
  display: block;
}

.github-widget-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.github-widget-header i {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.github-swiper {
  width: 100%;
  padding: 1rem 0 3rem 0;
}

.swiper-slide {
  height: auto;
}

.github-repo {
  background: var(--surface-color);
  backdrop-filter: blur(10px);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.github-repo:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.2);
}

.github-repo h4 {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.github-repo p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.4;
  flex-grow: 1;
}

.github-repo-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: auto;
}

.github-repo-stats span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.github-repo-stats i {
  color: var(--primary-color);
}

.about-text p {
  font-size: 1.3rem;
}

/* Skills */
.skills-container {
  margin-top: 3rem;
}

.skill-bar {
  margin-bottom: 2.5rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.progress-wrap {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), #d8b4fe);
  border-radius: 5px;
  width: 0; /* animated */
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.8);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.project-card {
  background: var(--surface-color);
  backdrop-filter: blur(20px);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--glass-shadow);
  transform: translateY(50px);
  opacity: 0; /* For GSAP */
}

.project-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.25);
}

.project-img-wrapper {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:hover .project-img {
  transform: scale(1.08);
}

.project-content {
  padding: 2.5rem;
}

.project-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.project-content span.category {
  color: var(--primary-color);
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 1rem;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.contact-item {
  background: var(--surface-color);
  backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 4rem 2rem;
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateY(-10px);
  background: rgba(30, 30, 35, 0.6);
  border-color: var(--primary-color);
}

.contact-item i {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

footer {
  text-align: center;
  padding: 3rem;
  border-top: 1px solid var(--surface-border);
  background: #000;
  color: var(--text-muted);
}

/* Utility for GSAP */
.gsap-reveal {
  opacity: 0;
  transform: translateY(40px);
}
.gsap-scale {
  opacity: 0;
  transform: scale(0.8);
}
.gsap-fade {
  opacity: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; }
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
}
@media (max-width: 768px) {
  nav ul { display: none; }
  h1 { font-size: 2.5rem; }
  section { padding: 10vh 5%; }
}
