:root {
  --navbar-offset: 100px;
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --accent: #4ac78d;
  --accent-dim: rgba(0, 255, 136, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --card-bg: #1a1a1a;
  --max-width: 1400px;

  /* Profile image size — change this value to make the avatar bigger/smaller */
  --profile-size: 300px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-offset);
}
body {
  font-family: "Inter", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1.5rem 5%;
  transition: all 0.3s ease;
}
nav.scrolled {
  padding: 1rem 5%;
  box-shadow: 0 4px 30px rgba(0, 255, 136, 0.06);
}
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #00ccff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
  position: relative;
  padding-top: 120px;
  overflow: hidden;
}
.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}
.hero-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 255, 136, 0.12);
}
h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent), #00ccff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.cta-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.btn {
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.15);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--accent);
}
.btn-secondary:hover {
  background: var(--accent-dim);
}
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
}
.social-links a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.social-links a:hover {
  background: var(--accent);
  color: var(--bg-primary);
  transform: translateY(-3px);
}

/* Hero image
   REPLACED: switched to variable-based sizing so you can change avatar size with --profile-size
*/
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.image-wrapper {
  position: relative;
  width: var(--profile-size);
  height: var(--profile-size);
  margin: 0 auto;
}
.image-wrapper::before {
  content: "";
  position: absolute;
  top: calc(var(--profile-size) * -0.05);
  left: calc(var(--profile-size) * -0.05);
  right: calc(var(--profile-size) * -0.05);
  bottom: calc(var(--profile-size) * -0.05);
  background: linear-gradient(135deg, var(--accent), #00ccff);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.28;
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.28;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.5;
  }
}
.image-wrapper img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Sections */
section {
  padding: 6rem 5%;
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 1rem;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}
.about-text p {
  margin-bottom: 1.5rem;
}

/* skills */
.skills-grid {
  display: grid;
  gap: 1.5rem;
}
.skill-category {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}
.skill-category:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}
.skill-category h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--accent);
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.skill-tag {
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 3rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
}
.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}
.timeline-item:hover {
  border-color: var(--accent);
  transform: translateX(10px);
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -3.6rem;
  top: 2rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-primary);
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.timeline-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}
.timeline-company {
  color: var(--accent);
  font-weight: 600;
  margin-top: 0.3rem;
}
.timeline-date {
  padding: 0.4rem 1rem;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}
.timeline-description {
  color: var(--text-secondary);
  line-height: 1.7;
}
.timeline-description ul {
  list-style: none;
  margin-top: 1rem;
}
.timeline-description li {
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
  position: relative;
}
.timeline-description li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.project-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 255, 136, 0.06);
}
.project-header {
  padding: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.project-icon {
  width: 60px;
  height: 46px;
  background: var(--accent-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.4rem;
}
.project-links {
  display: flex;
  gap: 0.7rem;
}
.project-link {
  width: 35px;
  height: 35px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}
.project-link:hover {
  background: var(--accent);
  color: var(--bg-primary);
}
.project-content {
  padding: 0 1.6rem 1.6rem;
}
.project-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.project-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tech-tag {
  padding: 0.3rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--accent);
  border: 1px solid rgba(0, 255, 136, 0.12);
}

/* Achievements */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.achievement-card {
  background: var(--card-bg);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  transition: all 0.3s ease;
}
.achievement-card:hover {
  border-color: var(--accent);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 255, 136, 0.06);
}
.achievement-icon {
  width: 80px;
  height: 80px;
  background: var(--accent-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--accent);
}
.achievement-content h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.achievement-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}
.achievement-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Certifications */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.certification-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}
.certification-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}
.cert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.cert-logo {
  width: 60px;
  height: 60px;
  background: var(--accent-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent);
}
.cert-badge {
  font-size: 1.5rem;
  color: var(--accent);
}
.cert-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.cert-provider {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.cert-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Contact */
.contact-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.contact-item {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}
.contact-item:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}
.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  color: var(--accent);
}
.contact-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.contact-item p {
  color: var(--text-secondary);
}
.contact-item a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

/* Footer */
footer {
  background: var(--bg-secondary);
  padding: 2rem 5%;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
footer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Animations on scroll default state */
.project-card,
.timeline-item,
.skill-category,
.contact-item,
.achievement-card,
.certification-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Responsive */
@media (max-width: 968px) {
  :root {
    --navbar-offset: 120px;
    --profile-size: 260px;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 5rem 2rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
  }
  .nav-links.active {
    right: 0;
  }
  .menu-toggle {
    display: flex;
    z-index: 1001;
  }
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-image {
    order: -1;
  }
  h1 {
    font-size: 2.5rem;
  }
  .cta-buttons {
    justify-content: center;
  }
  .social-links {
    justify-content: center;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .timeline {
    padding-left: 2rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --profile-size: 200px;
  }
  h1 {
    font-size: 2rem;
  }
  .section-title {
    font-size: 2rem;
  }
  section {
    padding: 4rem 5%;
  }
}

/* Education Section */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.education-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  transition: all 0.3s ease;
}

.education-card:hover {
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 255, 136, 0.1);
}

.education-icon {
  width: 70px;
  height: 70px;
  background: var(--accent-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.8rem;
  color: var(--accent);
}

.education-degree {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.education-college {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.education-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.education-score span {
  color: var(--accent);
  font-weight: 700;
}
