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

:root {
  --bg-color: #050505;
  --bg-color-light: #111116;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --primary-glow: #7000ff;
  --secondary-glow: #00d2ff;
  --primary-color: #8b5cf6;
  --font-body: 'Inter', sans-serif;
  --font-head: 'Outfit', sans-serif;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  
  --header-height: 4rem;
  --font-semi: 600;
  --big-font-size: 3.5rem;
  --h2-font-size: 2.5rem;
  --normal-font-size: 1rem;
  --smaller-font-size: 0.875rem;

  --mb-2: 1rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
  --z-back: -10;
  --z-fixed: 100;
}

@media screen and (max-width: 968px) {
  :root {
    --big-font-size: 2.5rem;
    --h2-font-size: 1.75rem;
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--normal-font-size);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; border-radius: 0.5rem; }

/* ORBS BACKGROUND */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: var(--z-back);
  opacity: 0.4;
  animation: float 10s infinite ease-in-out alternate;
}
.orb-1 {
  width: 400px; height: 400px;
  background: var(--primary-glow);
  top: -10%; left: -10%;
}
.orb-2 {
  width: 500px; height: 500px;
  background: var(--secondary-glow);
  bottom: 0%; right: -10%;
  animation-delay: 5s;
}
@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 50px) scale(1.1); }
  100% { transform: translate(-50px, 100px) scale(0.9); }
}

/* Base Glassmorphism classes */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.gradient-text {
  background: linear-gradient(135deg, var(--secondary-glow), var(--primary-glow));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.dot-accent {
  color: var(--secondary-glow);
}

/* HEADER */
.l-header {
  width: 100%;
  position: fixed;
  top: 0; left: 0;
  z-index: var(--z-fixed);
  transition: 0.3s;
}
.glass-header {
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
}

.nav__logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Nav Menu Desktop */
.nav__list { display: flex; gap: 2.5rem; }
.nav__link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: 0.3s;
  position: relative;
}
.nav__link:hover, .active-link { color: var(--text-primary); }

.nav__link::after {
  content: ''; position: absolute;
  width: 0; height: 2px;
  bottom: -4px; left: 0;
  background: var(--secondary-glow);
  transition: 0.3s;
}
.nav__link:hover::after, .active-link::after { width: 100%; }

.nav__toggle {
  font-size: 1.5rem; color: var(--text-primary);
  cursor: pointer; display: none;
}
.glow-button {
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(112, 0, 255, 0.2), rgba(0, 210, 255, 0.2));
  border: 1px solid rgba(0, 210, 255, 0.4);
  border-radius: 2rem;
  color: #fff;
  font-weight: 600;
  font-family: var(--font-head);
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.1);
}
.glow-button:hover {
  background: linear-gradient(135deg, rgba(112, 0, 255, 0.4), rgba(0, 210, 255, 0.4));
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.3);
  transform: translateY(-2px);
}
.resume-btn { margin-left: 2rem; }
.w-full { width: 100%; border-radius: 0.5rem; padding: 1rem; }

/* SECTIONS */
.section { padding: 8rem 1.5rem 2rem; }
.section-title {
  font-size: var(--h2-font-size);
  text-align: center;
  margin-bottom: var(--mb-6);
  color: var(--text-primary);
}

.bd-grid { max-width: 1100px; margin: 0 auto; width: 100%; }

/* HOME */
.home__container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 85vh;
  text-align: center;
}
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: #00ff88;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(0, 255, 136, 0.4);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}
.home__title { font-size: var(--big-font-size); margin-bottom: 1.5rem; }
.home__description {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}
.home__actions {
  display: flex; align-items: center; justify-content: center; gap: 2rem;
}
.home__social { display: flex; gap: 1rem; }
.social-icon {
  width: 45px; height: 45px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: 0.3s;
}
.social-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--secondary-glow);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

/* ABOUT */
.about__container {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: stretch; /* ensure equal height matching context */
}

/* The parent wrappers and direct elements need a flex logic to center and grow evenly */
.about__data {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about__heading { font-size: 1.5rem; margin-bottom: 1rem; color: var(--secondary-glow); }
.about__text { color: var(--text-secondary); }

.img-card {
  height: 100%;
  padding: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.about__img { width: 100%; max-height: 400px; object-fit: cover; object-position: top; border-radius: 0.5rem; }

.skills-tags { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center; gap: 0.5rem;
  transition: 0.3s;
}
.tag:hover {
  background: rgba(0, 210, 255, 0.1);
  border-color: var(--secondary-glow);
}
.tag.small { padding: 0.3rem 0.75rem; font-size: 0.75rem; }

/* EXPERIENCE TIMELINE */
.timeline {
  position: relative;
  max-width: 800px; margin: 0 auto;
  padding-left: 2rem;
}
.timeline::before {
  content: ''; position: absolute;
  top: 0; left: 0; width: 2px; height: 100%;
  background: linear-gradient(to bottom, var(--secondary-glow), var(--primary-color));
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-dot {
  position: absolute;
  width: 16px; height: 16px;
  background: var(--secondary-glow);
  border-radius: 50%;
  top: 1.5rem; left: -3.5rem;
  box-shadow: 0 0 10px var(--secondary-glow);
}
.flex-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.timeline-date { font-size: 0.9rem; color: var(--primary-glow); font-weight: 600; }
.timeline-company { color: var(--text-secondary); margin-bottom: 1rem; font-size: 0.9rem; }
.feature-list { list-style: none; }
.feature-list li {
  position: relative; padding-left: 1.5rem;
  margin-bottom: 0.5rem; font-size: 0.95rem; color: var(--text-secondary);
}
.feature-list li::before {
  content: "•"; position: absolute; left: 0; color: var(--secondary-glow); font-size: 1.2rem;
}

/* PROJECTS BENTO GRID */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  grid-auto-flow: dense;
}
.bento-item { display: flex; flex-direction: column; justify-content: space-between; }
.bento-item.large { grid-column: span 2; }
@media (max-width: 768px) { .bento-item.large { grid-column: span 1; } }

.project-content h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.project-content p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1.5rem; }
.project-tech { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.project-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; color: var(--secondary-glow);
  transition: 0.3s;
}
.project-link:hover { color: #fff; }

/* CONTACT */
.contact__container { max-width: 600px; margin: 0 auto; }
.contact__form { display: flex; flex-direction: column; gap: 1rem; }
.contact__input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 1rem; border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 1rem; font-family: var(--font-body);
  transition: 0.3s;
}
.contact__input:focus {
  outline: none; border-color: var(--secondary-glow);
  background: rgba(255, 255, 255, 0.05);
}

.footer { padding: 2rem; text-align: center; }
.footer__title { font-size: 1.5rem; font-family: var(--font-head); font-weight: 700; margin-bottom: 0.5rem; }
.footer__copy { color: var(--text-secondary); font-size: 0.85rem; }

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    padding: 3rem;
    transition: 0.4s;
    display: flex; flex-direction: column;
    align-items: center; gap: 2rem;
  }
  .nav__list { flex-direction: column; gap: 2rem; text-align: center; }
  .show { right: 0; }
  .nav__toggle { display: block; }
  .resume-btn { display: none; }
  
  .about__container { grid-template-columns: 1fr; }
  .flex-heading { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  
  .home__actions { flex-direction: column; }
}