/* =========================
   General body styles
   ========================= */
html {
  overflow-x: hidden;
}

body {
   font-family: Arial, sans-serif;
    max-width: 800px;
    margin: auto;           /* centers the page */
    padding: 20px;          /* spacing around content */
    background-color: #0b0f1a;
    color: #ffffff;
}

.hero-wrapper {
    width: 100%;         /* full viewport width */
    position: relative;    /* positioning context if needed */
    margin-left: calc(-50vw + 50%); /* override body centering */
    padding: 0;
    margin-top: -20px; /* cancel body padding */
    min-height:100vh;
    scroll-snap-align: start;   /* align top of hero when snapping */
    scroll-snap-stop: always;   /* ensures snap happens even if scrolling fast */
}

.hero {
    height: 100vh;        /* full viewport height */
    width: 100vw;          /* fill wrapper */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(#ffffff,#050a14);
    color: black;
    position: relative;
    overflow: hidden;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 6rem);
}


.hero-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px); /* start slightly down */
  animation: fadeUp 0.6s forwards;
}

/* Stagger each letter */
.hero-title span:nth-child(1) { animation-delay: 0s; }
.hero-title span:nth-child(2) { animation-delay: 0.1s; }
.hero-title span:nth-child(3) { animation-delay: 0.19s; }
.hero-title span:nth-child(4) { animation-delay: 0.27s; }
.hero-title span:nth-child(5) { animation-delay: 0.34s; }
.hero-title span:nth-child(6) { animation-delay: 0.4s; }
.hero-title span:nth-child(7) { animation-delay: 0.45s; }
.hero-title span:nth-child(8) { animation-delay: 0.49s; } 

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
}
.sub {
  font-size: clamp(0.5rem, 2vw, 1.3rem);
  opacity: 0;
  animation: fadeIn 8.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

html, body {
  scroll-snap-type: y proximity;  /* only affects elements that have scroll-snap-align */
}
/* Content section */
.content {
  position: relative;        /* for profile positioning */
}


.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  opacity: 0.8;
  color: rgb(255, 255, 255); /* make sure it’s visible on white background */
}

.scroll-indicator span {
  font-size: 1rem;
  margin-bottom: 5px;
}

.arrow {
  width: 20px;
  height: 20px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(-45deg);
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0) rotate(-45deg);
  }
  50% {
    transform: translateY(8px) rotate(-45deg);
  }
}


/* =========================
   Header
   ========================= */
header {
    text-align: center;
    margin-bottom: 40px;
}

/* Main page heading */
h1 {
    color: #ffffff; /* white */
    text-align: center;
}
.hero h1 {
  color: black;
}

/* =========================
   About Me Section
   ========================= */
#about {
    margin-bottom: 30px;
    text-align: center;
}

#about h2 {
    color: #ffffff; /* white heading */
    margin-bottom: 10px;
}

#about p {
    color: #ffffff; /* white paragraph text */
    line-height: 1.6;
}

.highlight {
  color: #5eead4;
  font-weight: 500;
  text-shadow: 0 0 6px rgba(94, 234, 212, 0.35);
}
/* =========================
   Projects Section
   ========================= */
#projects {
    background-color: #ffffff; /* light background for contrast */
    color: #000000;            /* default black text */
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

/* Projects heading */
#projects h2 {
    color: #000000; /* black heading */
    margin-bottom: 20px;
}

/* Individual project cards */
.project {
    background-color: #ffffff; /* white card */
    color: #000000;            /* black text inside card */
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    text-align: left;
}

/* Project links */
.project a {
    color: #1a73e8; /* blue links */
    text-decoration: none;
}

.project a:hover {
    text-decoration: underline;
}
.profile-pic-wrapper {
    position: absolute;   /* positioned relative to nearest positioned parent, here body */
    right: 10%
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}
.profile-pic:hover {
  transform: scale(1.1);
}
@media (max-width: 768px) {
    .profile-pic {
        width: 100px;
        height: 100px;
        top: 50px;
        right: 20px;
    }
}


/*Technologies*/
.tech-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.tech {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 8px 14px;
  background-color: #add8e6;
  border-radius: 20px;

  font-size: 0.95rem;
}

.tech img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Subtle hover effect */
.tech:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}
.resume-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #add8e6;  /* bright blue, change to match theme */
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  border: 3px solid #ffffff;
  transition: background-color 0.3s, transform 0.2s;
}

.resume-btn:hover {
  background-color: #badfed;  /* slightly darker blue */
  transform: translateY(-2px);
   border-color: #00bfff;
}

#resume {
  text-align: center; 
  margin-top: 20px;
}
.social-buttons {
  display: flex;
  justify-content: center; /* centers the buttons */
  gap: 20px;               /* space between buttons */
  margin-top: 20px;
}

.social-btn img {
  width: 45px;
  height: 45px;
  padding: 0px;                     /* space between logo and border */
  border: 3px solid #ffffff;        /* border color */
  border-radius: 50%;                /* makes it circular */
  transition: transform 0.2s, filter 0.2s, border-color 0.2s;
}

.social-btn:hover img {
  transform: scale(1.1);
  filter: brightness(1.2);
  border-color: #00bfff;             /* change color on hover */
}


/* =========================
   General Section spacing
   ========================= */
section {
    margin-bottom: 30px;
}
