:root {
  --primary: #4F8DF5;
  --primary-light: rgba(79, 141, 245, 0.1);
  --primary-dark: #3A7DF0;
  --dark: #0f172a;
  --text: #374151;
  --muted: #6b7280;
  --light: #f8fafc;
  --white: #ffffff;
  --card-bg: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --border-radius: 16px;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--dark);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 1.05rem;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: 'Poppins', sans-serif;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(79, 141, 245, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(79, 141, 245, 0.4);
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--dark);
  border-color: white;
  transform: translateY(-3px);
}

/* Sections */
.section {
  padding: 90px 0;
}

.section.alt {
  background: var(--light);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.7;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.brand-highlight {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 6px 0;
  color: var(--muted);
}

/* Improved underline animation */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--dark);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--dark);
  border-radius: 1px;
  transition: var(--transition);
}

/* ========== HERO SECTION ========== */
/* ========== HERO SECTION ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary), #6DB3FA);
  color: white;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* Reduced gap more */
  gap: 15px;
  position: relative;
  z-index: 1;
  /* Push everything up more */
  margin-top: -40px;
}

.profile-wrapper {
  margin-bottom: 5px;
}

.profile-frame {
  position: relative;
  border-radius: 50%;
  padding: 8px;
  background: rgba(255, 255, 255, 0.2);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.profile-img:hover {
  transform: scale(1.05);
}

.hero-text {
  max-width: 700px;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: white;
  line-height: 1.1;
}

.highlight {
  color: #ffe680;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-text h2 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 20px;
  opacity: 0.95;
  color: white;
}

/* Make text 2 lines only */
.hero-text p {
  font-size: 1.15rem;
  margin-bottom: 30px;
  opacity: 0.9;
  color: white;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  /* Ensure text is centered, not justified */
  text-align: center;
  /* Make it fit in 2 lines */
  padding: 0 10px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

/* Social Icons - moved up */
.hero-socials {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 5px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: white;
  font-size: 1.4rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* GitHub - Glass with black hover */
.social-icon:nth-child(1):hover {
  background: #333;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 30px rgba(51, 51, 51, 0.4);
}

/* LinkedIn - Glass with blue hover */
.social-icon:nth-child(2):hover {
  background: #0077b5;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 30px rgba(0, 119, 181, 0.4);
}

/* Email - Glass with red hover */
.social-icon:nth-child(3):hover {
  background: #ea4335;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 30px rgba(234, 67, 53, 0.4);
}

.social-icon:hover i {
  color: white;
  transform: scale(1.2);
}

.social-icon i {
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Better Arrow Design */
.scroll-indicator-container {
  position: absolute;
  bottom: 30px; /* Lower position */
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 2;
}

.scroll-indicator {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.4rem; /* Smaller */
  animation: smooth-bounce 2.5s infinite ease-in-out;
  background: none; /* No background */
  width: auto; /* No fixed width */
  height: auto; /* No fixed height */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0; /* No circle */
  backdrop-filter: none; /* No blur */
  -webkit-backdrop-filter: none;
  border: none; /* No border */
  cursor: pointer;
  box-shadow: none; /* No shadow */
  transition: all 0.3s ease;
  padding: 8px;
}

.scroll-indicator:hover {
  color: white;
  transform: scale(1.2) translateY(5px);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

@keyframes smooth-bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px); /* Smaller bounce */
  }
  60% {
    transform: translateY(-4px);
  }
}

/* For larger screens - push content even higher */
@media (min-width: 1024px) {
  .hero-content {
    gap: 20px;
    margin-top: -50px;
  }
  
  .hero-text p {
    max-width: 550px;
    font-size: 1.2rem;
    line-height: 1.6;
  }
  
  @media (min-width: 1024px) {
  .scroll-indicator-container {
    bottom: 10px; /* Slightly lower on bigger screens */
  }
  
  .scroll-indicator {
    font-size: 2.5rem;
  }
}
}
/* ========== ABOUT SECTION ========== */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-text {
  text-align: center;
  margin-bottom: 50px;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  line-height: 1.7;
  color: var(--text);
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--card-bg);
  padding: 30px 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  min-width: 200px;
  border-top: 4px solid var(--primary);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.stat-value {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 5px;
  line-height: 1;
}

.stat-label {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}

/* ========== SKILLS SECTION ========== */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.skills-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.skill-category {
  background: var(--card-bg);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.skill-category:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(79, 141, 245, 0.2);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.skill-header i {
  font-size: 2rem;
  color: var(--primary);
  background: var(--primary-light);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.skill-header h3 {
  margin: 0;
  font-size: 1.3rem;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-item {
  background: var(--primary-light);
  color: var(--primary);
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid rgba(79, 141, 245, 0.2);
}

.skill-item:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(79, 141, 245, 0.3);
}

/* ========== PROJECTS SECTION ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--card-bg);
  padding: 35px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary);
  background: linear-gradient(90deg, var(--primary), #6DB3FA);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.project-icon {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 25px;
  background: var(--primary-light);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

.project-card h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
  line-height: 1.3;
  flex-grow: 0;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tech span {
  background: var(--light);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(79, 141, 245, 0.2);
}

.project-card p {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* ========== ACHIEVEMENTS SECTION ========== */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.achievement-card {
  background: var(--card-bg);
  padding: 35px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.achievement-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.achievement-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.achievement-icon {
  font-size: 2rem;
  color: var(--primary);
  background: var(--primary-light);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.achievement-card h3 {
  margin: 0;
  font-size: 1.4rem;
}

.achievement-card ul {
  padding-left: 20px;
}

.achievement-card li {
  margin-bottom: 12px;
  line-height: 1.6;
  color: var(--text);
  position: relative;
}

.achievement-card li::marker {
  color: var(--primary);
}

/* ========== EDUCATION SECTION ========== */
.education-timeline {
  max-width: 900px;
  margin: 0 auto;
}

.edu-item {
  display: flex;
  gap: 25px;
  margin-bottom: 30px;
  padding: 30px;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 4px solid var(--primary);
  align-items: flex-start;
}

.edu-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-left-color: #6DB3FA;
}

.edu-icon {
  font-size: 2.2rem;
  color: var(--primary);
  flex-shrink: 0;
  background: var(--primary-light);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.edu-content {
  flex: 1;
}

.edu-content h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.edu-content h4 {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.edu-content p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* ========== CONTACT SECTION ========== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.contact-card {
  background: var(--card-bg);
  padding: 35px 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(79, 141, 245, 0.2);
}

.contact-icon {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 20px;
  background: var(--primary-light);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-left: auto;
  margin-right: auto;
}

.contact-card h4 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.contact-card p {
  margin: 0;
}

.contact-card a {
  color: var(--primary);
  transition: var(--transition);
  font-weight: 500;
}

.contact-card a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Languages Card */
.languages-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.languages-icon {
  font-size: 2.2rem;
  color: var(--primary);
  background: var(--primary-light);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.languages-content h4 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.languages-content p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--dark);
  color: white;
  padding: 30px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer-social-icon:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-3px);
}

/* ========== ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 992px) {
  .skills-row {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    gap: 20px;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .profile-img {
    width: 180px;
    height: 180px;
  }

  .section {
    padding: 70px 0;
  }

  .skills-row,
  .projects-grid,
  .achievements-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .education-timeline {
    padding: 0 10px;
  }

  .edu-item {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    border-left: none;
    border-top: 4px solid var(--primary);
  }

  .edu-icon {
    margin: 0 auto;
  }

  .languages-card {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text h2 {
    font-size: 1.25rem;
  }

  .profile-img {
    width: 160px;
    height: 160px;
  }

  .section {
    padding: 60px 0;
  }

  .stat-card {
    min-width: 100%;
  }

  .project-card,
  .achievement-card,
  .contact-card {
    padding: 25px 20px;
  }
}
