
html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}
body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 auto;
  overflow-x: hidden;
  position: relative;
}


#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  display: block;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background-color: rgba(15, 23, 42, 0.9);
  position: sticky;
  top: 0px;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.logo img {
  height: 40px;
  width: auto;
}

nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  position: relative;
  transition: all 0.3s;
  padding: 0.5rem 0;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: var(--accent);
  left: 0;
  bottom: 0;
  transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: var(--accent);
}

section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  padding-top: 4rem;    /* Added general top padding for inter-section gap */
  padding-bottom: 3rem; /* Added general bottom padding for inter-section gap */
}

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

section:not(.visible) {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
}

nav a.active {
  color: var(--accent) !important;
}

nav a.active::after {
  width: 100% !important;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4rem;
  padding-top: 0; 
  margin-top: -3rem;
  min-height: 100vh;
  flex-direction: row;
}

.hero-content {
  flex: 1;
  min-width: 300px;
}

.hero-img {
  position: relative;
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-container {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin: 0 auto;
}

.profile-container::before {
  content: "";
  position: absolute;
  width: 150%;
  height: 150%;
  background: linear-gradient(45deg,
      var(--gradient-start),
      var(--gradient-end),
      var(--accent));
  animation: rotate 6s linear infinite;
}

.profile-container::after {
  content: "";
  position: absolute;
  width: 95%;
  height: 95%;
  background: var(--card);
  border-radius: 50%;
}

.profile-img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  z-index: 1;
  position: relative;
  border: 3px solid var(--card);
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 600px) {
  .profile-container {
    width: 220px;
    height: 220px;
  }

  .profile-img {
    width: 180px;  /* reduced from 200px */
    height: 180px;
  }

  .profile-container::after {
    width: 90%;    /* reduced from 95% */
    height: 90%;
  }
}


.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero h1 .highlight {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.typing-text {
  font-size: 1.8rem;
  margin-bottom: 2.5rem;
  color: var(--secondary);
  font-weight: 600;
  min-height: 2.5rem;
}

.button-group {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.5);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  transition: width 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  color: white;
}

.btn i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.scroll-down span {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--secondary);
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-20px);
  }

  60% {
    transform: translateY(-10px);
  }
}

.scroll-down a {
  color: var(--primary);
  font-size: 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.languages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 10px;
}

.lang-card {
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--bg);
  text-align: center;
}

.lang-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.2);
  border-color: var(--primary);
}

.lang-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform 0.4s;
}

.lang-card:hover img {
  transform: scale(1.15);
}

.lang-card span {
  font-weight: 600;
  font-size: 1.1rem;
}

.education-section{
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 10px;
}

.see{
  padding: 20px;
  flex:1;
  border: 1px solid var(--bg);
  border-radius: 10px;
}

.grade12{
  padding: 20px;
  flex: 1;
  border: 1px solid var(--bg);
  border-radius: 10px;
}

.bachelor{
  flex: 1;
  padding: 20px;
  border: 1px solid var(--bg);
  border-radius: 10px;
}

.education_header{
  font-size: 20px;
  color: var(--primary);
}
.education_detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.edu{
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.edu:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.2);
  border-color: var(--primary);
}

.secondary-detail{
  color: #C0C0C0;
  font-size: small;
  padding-top: 10px;
}
.education_header i {
  font-size: 20px;
  color: var(--primary);
}

.gpa-score {
  font-weight: bold;
  font-size: 25px;
  color: var(--primary);
}

.status.ongoing {
  color: limegreen;
  font-weight: bold;
}

.progress-bar {
  margin-top: 10px;
  height: 8px;
  border-radius: 10px;
  background: #e0e0e0;
  position: relative;
  overflow: hidden;
}

.progress-bar::before {
  content: '';
  position: absolute;
  height: 100%;
  left: 0;
  top: 0;
  width: calc(var(--value) / 4 * 100%);
  background: currentColor;
  transition: width 0.4s ease-in-out;
}

.progress-bar.blue { color: #3b82f6; }     /* SEE */
.progress-bar.purple { color: #c084fc; }   /* Grade 12 */
.progress-bar.green { color: #22c55e; }    /* Bachelor progress */


.projects-list {
  display: grid;
  grid-template-columns: repeat(2, 3fr);
  gap: 3rem;
  margin-top: 2rem;
}

.project-card {
  padding: 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.25);
}

.project-card h3 {
  font-size: 1.8rem;
  color: var(--primary);
}

.project-card p {
  color: var(--text);
  opacity: 0.9;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.tech-stack span {
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.85rem;
}
/* Hobbies Section */
#hobbies {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hobbies-container {
  display: flex;
  flex-direction: column; /* Add this line */
  gap: 2rem;
  margin-top: 2rem;
}

.hobby-section {
  flex: 1;
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hobby-title {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(4, 2fr);
  gap: 1.5rem;
}

.hobby-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
  border-radius: 0.8rem;
  overflow: hidden;
  border: 1px solid var(--bg);
}

.hobby-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.2);
  border-color: var(--primary);
}

.hobby-card img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  transition: transform 0.4s;
  border: 1px solid var(--border);
}

.hobby-card span {
  margin-top: 0.8rem;
  text-align: center;
  font-weight: 500;
  color: var(--text);
  transition: color 0.3s ease;
}

.hobby-card:hover span {
  color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hobbies-container {
    flex-direction: column;
  }
  
  .hobby-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

@media (max-width: 600px) {
  .hobby-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
  
  .hobby-card img {
    height: 150px;
  }
}

/* Contact section adjustments - form on left, info on right */
#contact {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  flex-wrap: wrap;
  flex-direction: row;
}

.form-container {
  flex: 1 1 55%;
  min-width: 300px;
  padding: 3rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 500px;
}

.form-container h2 {
  margin-bottom: 2rem;
  color: var(--primary);
}

.form-group {
  margin-bottom: 1.8rem;
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.2rem;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-group label {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  color: var(--text);
  opacity: 0.7;
  transition: all 0.3s;
  pointer-events: none;
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
  top: -0.8rem;
  left: 0.8rem;
  font-size: 0.85rem;
  background: var(--card);
  padding: 0 0.5rem;
  opacity: 1;
  color: var(--primary);
}

.info-container {
  flex: 1 1 40%;
  min-width: 300px;
  padding: 3rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  max-width: 500px;
  align-items: flex-start;
}

.info-container h2 {
  color: var(--primary);
  margin-bottom: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  width: 100%;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.contact-text {
  display: flex;
  flex-direction: column;
}

.contact-text strong {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(30, 41, 59, 0.7);
  border-radius: 50%;
  text-decoration: none;
  color: var(--primary);
  font-size: 1.5rem;
  transition: all 0.4s;
  border: 1px solid var(--border);
}

.social-icons a:hover {
  transform: translateY(-5px);
  background: var(--primary);
  color: white;
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

/* Footer */
footer {
  width: 100%;
  margin-top: 2rem;
}

.footer-line {
  margin: 3rem 0 1.5rem;
  border: 0;
  border-top: 1px solid var(--border);
}

.copyright {
  font-size: 0.95rem;
  text-align: center;
  color: var(--secondary);
  padding-bottom: 20px;
  border-top: 2px solid var(--primary);
  padding-top: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #contact {
    flex-direction: column;
    gap: 2rem;
  }
  
  .contact-form-container,
  .info-container {
    width: 100%;
  }
}
