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

/* Theme variables */
:root {
  --primary-color: #64ffda;
  --text-color: #94a3b8;
  --heading-color: #e2e8f0;
  --bg-color: #0a192f;
}

/* Body */
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  overflow: hidden; /* page body hidden; right-section scrolls */
  height: 100vh;
}

/* Loading screen */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.split-loader {
  width: 20px;               /* initial width */
  height: 80vh;              /* final height */
  background: #64ffda;
  transform-origin: center;  /* grow from center */
  transform: scaleY(0) scaleX(0.3); /* start very small */
  opacity: 0.7;
  animation: growLine 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes growLine {
  0% {
    transform: scaleY(0) scaleX(0.3);
    opacity: 0.5;
  }
  50% {
    transform: scaleY(0.5) scaleX(0.2);
    opacity: 0.8;
  }
  100% {
    transform: scaleY(1) scaleX(0.05);  /* final tall and thin */
    opacity: 1;
  }
}



/* Spotlight */
.spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(600px at 0 0, rgba(29,78,216,0.15), transparent 80%);
  opacity: 0;
  transition: opacity .3s;
  z-index: 998;
}
.spotlight.active { opacity: 1; }

/* Main layout */
.main-container {
  display: flex;
  width: 100%;
  height: 100vh;           /* container fits viewport */
  padding-top: 40px;       /* space for loader/header if needed */
  /* margin-top: 10px; */
  opacity: 0;
  transition: opacity .25s;
}
.main-container.loaded { opacity: 1; }

/* Left column (sticky) */
.left-section {
  width: 40%;
  height: 100vh;
  position: sticky;
  top: 0;
  padding: 40px;
  margin-left: 100px;
  background: var(--bg-color);
  overflow: visible;       /* do not capture scroll inside */
}

.name {
  font-size: 40px;
  font-weight: 700;
  color: #e2e8f0;
      letter-spacing: -0.5px;

}
.tagline { font-size: 20px; 
    color: #e2e8f0; 
        margin-left: 7px;

        font-weight: 500;

    margin-top: 8px;
 }
.tagline1 { font-size: 14px; 
    color: #94a3b8;
        margin-left: 9px;
font-size: 15px;
     margin-top: 10px;
      line-height: 1.6; }

/* Nav menu  ------------------------------*/


.menu {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 50px;
      margin-left: 10px;
}

.menu a {
  position: relative;
  display: inline-block;
  padding-left: 50px;
font-size: 12px; 
font-weight: 600; 
font-family: 'Inter', sans-serif; 
letter-spacing: 0.9px;
  color: #94a3b8;
  text-decoration: none;
  transition: 
    color 0.3s cubic-bezier(.4, 0, .2, 1),
    padding-left 0.4s cubic-bezier(.4, 0, .2, 1);
}

.menu a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 1px;
  width: 35px;
  background-color: rgb(71 85 105);
  transition: 
    width 0.4s cubic-bezier(.4, 0, .2, 1),
    background-color 0.4s cubic-bezier(.4, 0, .2, 1);
}

/* Hover or active state */
.menu a:hover,
.menu a.active {
  color: #e2e8f0;
  padding-left: 80px; /* smoothly slides right */
}

.menu a:hover::before,
.menu a.active::before {
  width: 65px; /* grows in sync with text slide */
  background-color: #e2e8f0;
}








/* ------------------- Right column (scrollable) ------------------------*/

.right-section {
  width: 60%;
  height: 100vh;
  overflow-y: auto;   
  margin-right: 100px;         /* THIS scrolls */
  -ms-overflow-style: none;    /* IE */
  scrollbar-width: none;       /* Firefox */
  scroll-behavior: smooth;
}
.right-section::-webkit-scrollbar { display: none; }

/* Each full-screen section inside right column */
.section {
  min-height: 100vh;
  padding: 50px;
      margin-left: 90px;

  scroll-snap-align: start;    /* optional if using snap */
}

/* Section typography */
.section h2 {
  color: var(--heading-color);
  margin-bottom: 20px;
  font-size: 28px;
}
.section p {
  color: #94a3b8;
  line-height: 1.8;
  font-size: 16px;
      letter-spacing: 0.3px;

}

/* Make sure left column controls are interactive */
.left-section, .left-section * { pointer-events: auto; }



/* button  ----------- */

/* Resume link styling */
.resume-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
  font-weight: 600;
  margin-top: 16px;
  font-size: 15px;
      padding-bottom: 6px;

  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 0.3s cubic-bezier(.4, 0, .2, 1);
}

/* Continuous underline animation */
.resume-link::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #e2e8f0, transparent, #64ffda);
  background-size: 200% 100%;
  animation: moveUnderline 5s linear infinite;
  border-radius: 2px;
}

/* Arrow styling */
.resume-link .arrow {
  display: inline-block;
  transform: translate(0, -1px);
  font-weight: normal;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover effects */
.resume-link:hover {
  color: #64ffda;
}

.resume-link:hover .arrow {
  transform: translate(6px, -6px);
  color: #64ffda;
}

/* Keyframes for moving underline */
@keyframes moveUnderline {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}



/* ----------------- SKILLS--------------------------- */

/* Animated underline for Skills heading */
.section h2 {
  position: relative;
  display: inline-block;
  font-size: 22px;
  font-weight: 600;
  color: var(--heading-color);
  letter-spacing: 0.8px;
  margin-bottom: 26px;
}

.section h2::after {
  content: "";
  position: absolute;
  left: 0;
    width: 60%; /* starting width */

  bottom: -6px;
  height: 2px;
  background-color: #e2e8f0;
  width: 0;
  animation: underlineLoop 8s ease-in-out infinite;
}


/* underline animation */
@keyframes underlineLoop {
  0%, 100% { width: 0; }
  50% { width: 120%; }
}


/*  */
.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

#skills p{
      color: #94a3b8;
font-size: 14px;
   
      line-height: 1.6; 
  /* margin-bottom: 20px; */
}


.skill-tag {
  background: #112240;
  color: #64ffda;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 25px;
  cursor: default;
  transition: transform 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 8px;
}

.skill-tag:hover {
    transform: translateY(-3px) rotate(-1deg) scale(1);
    color: #fff;
    border: 1px solid #404449;
    box-shadow: 0 1px 9px rgba(100, 255, 218, 0.5);
}

 /* -------------------------- */ 

 /* ----------------------  */

.section2 {
  min-height: 70vh;
  padding: 50px;
      margin-left: 90px;

  scroll-snap-align: start;    /* optional if using snap */
}


/* Project section ---------------- */



.project-card {
  /* background: var(--bg-light, #112240); maybe a slightly lighter dark background */
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 10px;
}

.project-card:hover {
 background: var(--bg-light, #112240);
 /* padding: 20px 40px 20px; */
 transition: background ease-in-out 0.4s;
  
}
.project-card h3 {
    margin-bottom: 6px;
    font-size: 15px;
    color: #e2e8f0;
    font-weight: 500;
    letter-spacing: 0.4px;
}
.project-card:hover h3 {
  color:#64ffda
;
}

.project-card .arrow{
  display: inline-block;
  transform: translate(0, -1px);
  font-weight: normal; /* ensures arrow is not bold */
  transition: transform 0.3s cubic-bezier(.4, 0, .2, 1), color 0.3s cubic-bezier(.4, 0, .2, 1);
}

.project-card:hover .arrow {
  transform: translate(4px, -4px); /* smooth upward + right motion */
  color: #64ffda;
}


.project-card p {
    color: #94a3b8;
font-size: 14px;
   
      line-height: 1.6; 
  margin-bottom: 20px;
}


.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  /* margin-bottom: 20px; */
}

.tech-tags .tag {
   background: var(--bg-light, #112240);
  color: #5eead4;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: 500;
}

.project-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}
.project-link:hover {
  text-decoration: underline;
}

.section h2 {
    color: var(--heading-color);
    margin-bottom: 20px;
    font-size: 20px;
}


/* .project-card:hover .tech-tags .tag{
  border: 1px solid #94a3b8 ;
} */


/* .card4{
  margin-bottom: 60px;
} */

/* project end -------------------- */


/* Contact Section --------------- */
/* CONTACT SECTION ------------------- */
.contact-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
  font-weight: 500;
  font-size: 14px;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.1);
}

/* Top border */
.contact-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, #e2e8f0, transparent, #64ffda);
  background-size: 200% 100%;
  animation: moveBorderHorizontal 4s linear infinite;
  border-radius: 2px 2px 0 0;
}

/* Bottom border */
.contact-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, #e2e8f0, transparent, #64ffda);
  background-size: 200% 100%;
  animation: moveBorderHorizontal 4s linear infinite;
  border-radius: 12px;
}

/* Left and right borders */
.contact-item .border-left,
.contact-item .border-right {
  position: absolute;
  background: linear-gradient(0deg, #e2e8f0, transparent, #64ffda);
  background-size: 100% 200%;
  animation: moveBorderVertical 4s linear infinite;
  width: 1.5px;
}

.contact-item .border-left {
  top: 0;
  left: 0;
  bottom: 0;
}

.contact-item .border-right {
  top: 0;
  right: 0;
  bottom: 0;
}

/* Icon styling */
.contact-item .icon {
  font-size: 16px;
  transition: transform 0.3s ease;
}

/* Hover effects */
.contact-item:hover {
  color: #64ffda;
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-2px);
}

.contact-item:hover .icon {
  transform: scale(1.1);
}

.contact-item:hover::before,
.contact-item:hover::after {
  animation-duration: 3s;
  background: linear-gradient(90deg, #64ffda, transparent, #64ffda);
}

.contact-item:hover .border-left,
.contact-item:hover .border-right {
  animation-duration: 3s;
  background: linear-gradient(0deg, #64ffda, transparent, #64ffda);
}

/* Keyframes for horizontal borders */
@keyframes moveBorderHorizontal {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Keyframes for vertical borders */
@keyframes moveBorderVertical {
  0% {
    background-position: 0 200%;
  }
  100% {
    background-position: 0 -200%;
  }
}

/* Contact grid layout */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.contact-item span.border-left,
.contact-item span.border-right {
  pointer-events: none;
}


/* ICONS -------------- */

.social-bar {
    position: fixed;
    top: 70%;
    left: 10%;
    transform: translateY(-50%);
    display: flex;
    gap: 20px;
    z-index: 1000;
}

.social-bar a {
    color: #bfd0e6b4;
    font-size: 24px;
    transition: transform 0.3s, color 0.3s;
}

.fa-phone:before {
    content: "\f095";
    font-size: 20px;
    /* padding-bottom: 10px; */
    margin-bottom: 34px;
}
.social-bar a:hover {
    transform: scale(1);
    color: #00aced; /* change hover color */
}

/*  TYPING TEXT ON LEFT SIDE ----------------- */



.border-left {
    width: 1px;
    height: 24px;
    background-color: #e2e8f0;
    flex-shrink: 0;
}

.typing-text{ 
  font-size: 17px; 
    color: #e2e8f0; 
        /* margin-left: 9px; */

        font-weight: 400;

    /* margin-top: 8px; */
 }

 .main-tagline {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
    margin: 18px 0px 20px 10px;
}


/* glowing animation for vanashri */
.name {
  font-size: 40px;
  font-weight: 700;
  background: linear-gradient(90deg, #ffffff, #64ffda, #ffffff);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: white; /* fallback white */
  opacity: 0;
  animation: gradientFade 12s ease-in-out infinite;
}

@keyframes gradientFade {
  0%, 8% {
    /* Fade in white */
    opacity: 1;
    -webkit-text-fill-color: white;
    background-position: 0% 50%;
  }
  10%, 45% {
    /* Gradient moves forward */
    -webkit-text-fill-color: transparent;
    background-position: 100% 50%;
    opacity: 1;
  }
  50%, 85% {
    /* Gradient moves backward */
    -webkit-text-fill-color: transparent;
    background-position: 0% 50%;
    opacity: 1;
  }
  90%, 100% {
    /* Fade back to solid white */
    -webkit-text-fill-color: white;
    background-position: 0% 50%;
    opacity: 1;
  }
}






section {
  scroll-margin-top: 140px;
}


/*  */


/* Animated underline for Skills heading */
.section h2 {
  position: relative;
  display: inline-block;
  font-size: 22px;
  font-weight: 600;
  color: var(--heading-color);
  letter-spacing: 0.8px;
  margin-bottom: 26px;
}

.section h2::after {
  content: "";
  position: absolute;
  left: 0;
    width: 60%; /* starting width */

  bottom: -6px;
  height: 2px;
  background-color: #e2e8f0;
  width: 0;
  animation: underlineLoop 8s ease-in-out infinite;
}


/* underline animation */
@keyframes underlineLoop {
  0%, 100% { width: 0; }
  50% { width: 120%; }
}


/* skils */



/*  */


.skill-tag {
  position: relative;
  padding: 10px 18px;
  border-radius: 22px;
  background: rgba(17, 34, 64, 0.45); /* glassy navy */
  color: #64ffda;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(100,255,218,0.15);
  cursor: default;
  backdrop-filter: blur(6px); 
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}


/* Soft subtle moving light */
.skill-tag::after {
  content: "";
  position: absolute;
  inset: 0;
  left: -160%;
  width: 260%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.07) 45%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.07) 55%,
    transparent 100%
  );
  animation: softSweep 8s linear infinite;
  pointer-events: none;
}

@keyframes softSweep {
  0%   { transform: translateX(0); }
  100% { transform: translateX(60%); }
}

/* Hover = smooth glass lift */
.skill-tag:hover {
  background: rgba(255, 255, 255, 0.10);
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(100,255,218,0.18);
}


/* section fade effect  */

/* section fade-in from left/right */
.left-section {
  opacity: 0;
  transform: translateX(-30px); /* slide from left */
  transition: opacity 0.9s ease-in, transform 0.9s ease-in;
  transition-delay: 0.25s; /* left appears first */
}

.right-section {
  opacity: 0;
  transform: translateX(-30px); /* slide from right */
  transition: opacity 0.9s ease-in, transform 0.9s ease-in;
  transition-delay: 0.15s; /* right appears slightly after */
}

/* trigger fade-in when page loaded */
.page-loaded .left-section,
.page-loaded .right-section {
  opacity: 1;
  transform: translateX(0);
}


