/* CSS Variables for Fonts */
:root {
  --font-instrument: "Instrument Serif", serif;
  --font-inter: "Inter", sans-serif;
  --font-fira-code: "Fira Code", monospace;
  --font-poppins: "Poppins", sans-serif;
}

@font-face {
  font-family: "CustomFont";
  src: url("Fonts/BrittanySignature.ttf") format("truetype"),
    url("Fonts/Blackboard.ttf") format("truetype"),
    url("Fonts/Poppins-Light.ttf") format("truetype"),
    url("Fonts/Poppins-Medium.ttf") format("truetype"),
    url("Fonts/Poppins-Regular.ttf") format("truetype");

  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Fira Code";
  src: url("Fonts/FiraCode.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* Inter font is now loaded via Google Fonts in HTML */

body {
  margin: 0;
  height: 100vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-color: #020202;
  height: 100%;
  border-left: 0.5px solid rgba(255, 255, 255, 0.118);
  border-right: 0.5px solid rgba(255, 255, 255, 0.118);
  margin: 0px 140px;
}

.Floating-Nav {
  position: fixed;
  top: 24px;
  width: calc(100% - 280px);
  left: 140px;
  padding: 12px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(19, 19, 19, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  animation: fadeInDown 2s ease-out forwards;
  animation-delay: 0.2s;
  box-sizing: border-box;
  z-index: 1000;
}

/* Unified Animation System */
@keyframes fadeInUp {
  from {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
  }
}


.Floating-Nav p {
  letter-spacing: 1px;
  margin: 0;
  font-weight: 400;
  color: #ffffff;
  font-family: var(--font-instrument);
  font-size: 18px;
}

.Floating-Nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.Floating-Nav li {
  font-family: var(--font-inter);
  font-size: 13px;
  color: #979797;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.6s ease-out;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.Floating-Nav li::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.8s ease-out;
}

.Floating-Nav li:hover::before {
  left: 100%;
}

.nav-icon {
  font-size: 16px;
  transition: all 0.6s ease-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.nav-icon svg {
  width: 16px;
  height: 16px;
  transition: all 0.6s ease-out;
  stroke: currentColor;
}

.nav-text {
  transition: all 0.6s ease-out;
}


.logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.logo:hover {
  transform: scale(4.4) translateY(10px);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
  transition: all 0.4s ease-out;
  cursor: pointer;
}



/* Staggered animation for list items */
.Floating-Nav li:nth-child(1) {
  animation: fadeInRight 1.2s ease-out forwards;
  animation-delay: 0.3s;
}

.Floating-Nav li:nth-child(2) {
  animation: fadeInRight 1.2s ease-out forwards;
  animation-delay: 0.5s;
}

.Floating-Nav li:nth-child(3) {
  animation: fadeInRight 1.2s ease-out forwards;
  animation-delay: 0.7s;
}

/* Pulse animation for icons on hover */
@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.Floating-Nav li:hover .nav-icon {
  animation: iconPulse 1.2s ease-out infinite;
}

.Floating-Nav li:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.6s ease-out;
}

.Floating-Nav li:hover .nav-icon {
  transform: scale(1.15) translateY(-1px);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
  transition: all 0.6s ease-out;
}

.Floating-Nav li:hover .nav-icon svg {
  transform: rotate(8deg) scale(1.1);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
  transition: all 0.6s ease-out;
}

.Floating-Nav li:hover .nav-text {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Unified icon pulse animation */
@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}



.Floating-Nav li:hover::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  border-radius: 6px;
  animation: glowPulse 3s ease-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

/* Hamburger Menu Styles */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  transition: all 0.3s ease;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background: #ffffff;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

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

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-spacer {
  display: block;
}

/* Responsive Navigation Styles */

/* Tablet and smaller laptops */
@media (max-width: 1024px) {
  body {
    margin: 0px 60px;
    border-left: 0.5px solid rgba(255, 255, 255, 0.118);
    border-right: 0.5px solid rgba(255, 255, 255, 0.118);
  }

  .Floating-Nav {
    width: calc(100% - 120px);
    left: 60px;
    padding: 12px 24px;
  }

  .Floating-Nav ul {
    gap: 16px;
  }

  .Floating-Nav li {
    padding: 6px 10px;
    font-size: 12px;
  }
}

/* Tablet portrait */
@media (max-width: 768px) {
  body {
    margin: 0px 24px;
  }

  .Floating-Nav {
    width: calc(100% - 48px);
    left: 24px;
    padding: 12px 20px;
    top: 16px;
    border-radius: 8px;
    transition: border-radius 0.3s ease;
  }
  
  .Floating-Nav:has(ul.active) {
    border-radius: 8px 8px 0 0;
  }

  .hamburger-menu {
    display: flex;
  }

  .nav-spacer {
    display: none !important;
  }

  .Floating-Nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: rgba(19, 19, 19, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 0 20px;
    gap: 4px;
    margin: 0;
    box-sizing: border-box;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0 0 8px 8px;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .Floating-Nav ul.active {
    max-height: 400px;
    padding: 16px 20px;
  }

  .Floating-Nav li {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(-10px);
  }

  .Floating-Nav ul.active li {
    animation: slideInFromTop 0.3s ease-out forwards;
  }

  .Floating-Nav ul.active li:nth-child(1) {
    animation-delay: 0.05s;
  }

  .Floating-Nav ul.active li:nth-child(2) {
    animation-delay: 0.1s;
  }

  .Floating-Nav ul.active li:nth-child(3) {
    animation-delay: 0.15s;
  }

  .Floating-Nav li:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-icon {
    width: 24px;
    height: 24px;
  }

  .nav-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .logo:hover {
    transform: scale(1.2) translateY(0px);
  }
}

/* Mobile */
@media (max-width: 480px) {
  body {
    margin: 0px 16px;
  }

  .Floating-Nav {
    width: calc(100% - 32px);
    left: 16px;
    padding: 10px 16px;
    top: 12px;
  }

  .Floating-Nav .nav-brand p {
    font-size: 16px;
  }

  .logo {
    width: 32px;
    height: 32px;
  }
  
  .logo:hover {
    transform: scale(1.1) translateY(0px);
  }

  .Floating-Nav ul {
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0 16px;
  }
  
  .Floating-Nav ul.active {
    padding: 12px 16px;
  }
  
  .Floating-Nav li {
    padding: 12px 14px;
    font-size: 14px;
  }

  .hamburger-menu {
    width: 20px;
    height: 18px;
  }
}

/* Slide in from top animation */
@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MAIN SECTION */

.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  padding: 280px 20px 10px 20px;
  color: #ffffff;
  position: relative;
}

/* Sparkle Animation Styles */
.sparkles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.sparkle {
  position: absolute;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  opacity: 0;
  animation: sparkleAnimation 3s infinite ease-in-out;
}

@keyframes sparkleAnimation {
  0%, 100% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Individual sparkle positioning - scattered from bottom effect */

/* Very dense bottom layer sparkles (85-95% from top) - source area */
.sparkle-1 {
  top: 88%;
  left: 20%;
  animation-delay: 0s;
}

.sparkle-2 {
  top: 90%;
  left: 35%;
  animation-delay: 0.2s;
}

.sparkle-3 {
  top: 92%;
  left: 50%;
  animation-delay: 0.4s;
}

.sparkle-4 {
  top: 89%;
  left: 65%;
  animation-delay: 0.6s;
}

.sparkle-5 {
  top: 93%;
  left: 80%;
  animation-delay: 0.8s;
}

.sparkle-6 {
  top: 87%;
  left: 45%;
  animation-delay: 1.0s;
}

.sparkle-7 {
  top: 91%;
  left: 75%;
  animation-delay: 1.2s;
}

.sparkle-8 {
  top: 94%;
  left: 30%;
  animation-delay: 1.4s;
}

.sparkle-9 {
  top: 86%;
  left: 60%;
  animation-delay: 1.6s;
}

.sparkle-10 {
  top: 95%;
  left: 55%;
  animation-delay: 1.8s;
}

/* Medium density layer (70-85% from top) - immediate spread */
.sparkle-11 {
  top: 75%;
  left: 25%;
  animation-delay: 0.3s;
}

.sparkle-12 {
  top: 78%;
  left: 70%;
  animation-delay: 0.7s;
}

.sparkle-13 {
  top: 72%;
  left: 40%;
  animation-delay: 1.1s;
}

.sparkle-14 {
  top: 80%;
  left: 85%;
  animation-delay: 1.5s;
}

.sparkle-15 {
  top: 76%;
  left: 55%;
  animation-delay: 1.9s;
}

/* Sparse upper layer (50-70% from top) - scattered effect */
.sparkle-16 {
  top: 60%;
  left: 35%;
  animation-delay: 0.5s;
}

.sparkle-17 {
  top: 55%;
  left: 75%;
  animation-delay: 1.3s;
}

.sparkle-18 {
  top: 65%;
  left: 45%;
  animation-delay: 2.0s;
}



.hero-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0px 320px 0px;
  width: 100%;
  height: 100vh;
  flex: 1;
}

.hero-side-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 450px;
  gap: 20px;
}

.side-svg {
  width: 80px;
  height: 80px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
}

.side-svg:hover {
  transform: scale(1.1) translateY(0);
}

/* Staggered animation delays and scattered positioning for each SVG */
.hero-side-container:first-child .side-svg:nth-child(1) {
  animation: fadeInUp 1.5s ease-out forwards, fadeInScale 4s ease-out infinite;
  animation-delay: 2s, 3s;
  transform: translateY(50px) translateX(-20px);
  margin-top: 0px;
}

.hero-side-container:first-child .side-svg:nth-child(2) {
  animation: fadeInUp 1.5s ease-out forwards, fadeInScale 4s ease-out infinite;
  animation-delay: 2.2s, 3.2s;
  transform: translateY(50px) translateX(25px);
  margin-top: 0px;
}

.hero-side-container:last-child .side-svg:nth-child(1) {
  animation: fadeInUp 1.5s ease-out forwards, fadeInScale 4s ease-out infinite;
  animation-delay: 2.4s, 3.4s;
  transform: translateY(50px) translateX(-30px);
  margin-top: 0px;
}

.hero-side-container:last-child .side-svg:nth-child(2) {
  animation: fadeInUp 1.5s ease-out forwards, fadeInScale 4s ease-out infinite;
  animation-delay: 2.6s, 3.6s;
  transform: translateY(50px) translateX(15px);
  margin-top: 0px;
}


.hero-label {
  border: 1px solid #383838;
  width: fit-content;
  padding: 12px 16px;
  margin: 120px 0px 60px 0px;
  border-radius: 8px;
  opacity: 0;
  filter: blur(5px);
  animation: fadeInUp 1.2s ease-out forwards;
  animation-delay: 1.5s;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.02),
    0 0 20px rgba(255, 255, 255, 0.05), 0 0 30px rgba(255, 255, 255, 0.025);
}

.hero-label p {
  font-size: 12px;
  font-weight: 300;
  margin: 0;
  letter-spacing: 1px;
  font-family: "Fira Code", sans-serif;
}

.main-heading {
  font-size: 66px;
  font-weight: 400;
  margin: 0;
  letter-spacing: -2px;
  font-family: var(--font-instrument);
  opacity: 0;
  filter: blur(5px);
  animation: fadeInUp 1.5s forwards;
  animation-delay: 0.6s;
}


/* Responsive Main Heading */
@media (max-width: 1024px) {
  .main-heading {
    font-size: 60px !important;
    line-height: 1.2;
  }
}


@media (max-width: 768px) {
  .main-heading {
    font-size: 54px !important;
    line-height: 1.2;
    letter-spacing: -1px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .body-main-text {
    font-size: 16px !important;
  }
}

@media (max-width: 640px) {
  .main-heading {
    font-size: 48px !important;
    line-height: 1.25;
    letter-spacing: -0.5px;
  }
  .body-main-text {
    font-size: 14px !important;
    margin-top: 10px !important;
  }
}

.sub-heading {
  font-size: 28px;
  color: #ffffff;
  font-weight: 400;
  margin: 0px;
  font-family: var(--font-instrument);
  opacity: 0;
  filter: blur(5px);
  animation: fadeInUp 1.5s forwards;
  animation-delay: 0.8s;
}

.body-main-text {
  font-size: 16px;
  color: #ffffff;
  font-weight: 300;
  margin: 0;
  font-family: var(--font-inter);
  filter: blur(5px);
  animation: fadeInUp 1.5s forwards;
  animation-delay: 0.8s;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 80px;
  opacity: 0;
  filter: blur(5px);
  animation: fadeInUp 1.5s forwards;
  animation-delay: 1s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
  }
}




/* GLOW EFFECT IMAGE */
.glow-effect {
  position: absolute;
  bottom: -360px;
  left: 43%;
  transform: translateX(-50%);
  opacity: 0.75;
  z-index: -1;
  pointer-events: none;
  scale: 0.85;
}

/* Responsive glow effect positioning */
@media (max-width: 1200px) {
  .glow-effect {
    top: 70%;
    left: 50%;
    width: 85%;
  }
  
  .hero {
    padding: 220px 20px 10px 20px;
  }
}

@media (max-width: 768px) {
  .glow-effect {
    top: 65%;
    left: 50%;
    width: 90%;
  }
  
  .hero {
    padding: 180px 16px 10px 16px;
  }
  
  .projects-grid {
    padding: 60px 16px;
  }
  
  .projects-grid h2 {
    font-size: 32px !important;
    margin-bottom: 40px !important;
  }
  
  .about-me {
    padding: 60px 40px !important;
  }
  
  .about {
    padding: 80px 40px !important;
  }
  
  .career-journey {
    flex-direction: column;
    gap: 32px;
    font-size: 18px;
  }
  
  .career-intro p {
    font-size: 32px;
    text-align: center;
  }
  
  .career-timeline {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .glow-effect {
    top: 60%;
    left: 50%;
    width: 95%;
  }
  
  .hero {
    padding: 140px 12px 10px 12px;
  }
  
  .projects-grid {
    padding: 40px 12px;
  }
  
  .projects-grid h2 {
    font-size: 28px !important;
    margin-bottom: 32px !important;
  }
  
  .about-me {
    padding: 40px 24px !important;
  }
  
  .about {
    padding: 60px 24px !important;
  }
  
  .career-journey {
    font-size: 16px;
    gap: 24px;
  }
  
  .career-intro p {
    font-size: 24px;
  }
  
  .timeline-item {
    font-size: 18px;
  }
}

.about-me {
  text-align: center;
  display: flex;
  flex-direction: column;
  padding: 60px 160px 60px 160px;
  background-color: #020202;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 100%;
  gap: 12px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}






/* ABOUT SECTION */
.about {
  text-align: center;
  display: flex;
  flex-direction: column;
  padding: 120px 80px 120px 80px;
  opacity: 100%;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Career Journey Section */
.career-journey {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;

  color: #818181;
  font-family: var(--font-inter);
  font-size: 22px;
  gap: 40px;
  width: 100%;
}

.career-intro {
  margin-bottom: 2px;
  text-align: left;
  width: 100%;
}

.career-intro p {
  margin: 0 0 8px 0;
  font-weight: 300;
  font-size: 40px;
  font-family: var(--font-instrument);
}

.career-timeline {
  border: 1px dashed #818181;
  border-style: dashed;
  border-width: 1px;
  border-color: #81818149;
  border-image: repeating-linear-gradient(to right,
      #81818188 0 8px,
      transparent 8px 12px) 1;
  padding: 12px 32px;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 320px;
  padding: 40px 20px;
}

.timeline-item {
  font-style: italic;
  font-family: var(--font-instrument);
  font-size: 20px;
  font-weight: 300;
  color: #818181;
}

.timeline-arrow {
  color: #ffffff;
  font-size: 16px;
  transform: scale(0.8);
}


.highlight {
  color: #ffffff;
}


/* MY WORK SECTION */
.my-work {
  text-align: center;
  display: flex;
  flex-direction: column;
  padding: 80px 40px 0px 40px;
  background-color: #ffffff;
  opacity: 100%;
}

/* Project Showcase */
.project-showcase {
  max-width: 1200px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 100px;
}


.project-thumbnail-image {
  width: 430px;
  height: 250px;
  border: 1px solid #020202;
  padding: 8px;
}



.project-details {
  background-color: #ffffff;
  padding: 0px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.project-name {
  font-family: var(--font-instrument);
  font-size: 40px;
  font-weight: 500;
  color: #020202;
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.project-description {
  font-family: var(--font-inter);
  font-size: 15px;
  line-height: 1.4;
  color: #333333;
  margin: 0 0 12px 0;
  font-weight: 400;
}

.tech-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.tech-tag {
  background-color: #ffffff;
  color: #303030;
  border: 1px solid #5E5E5E;
  padding: 6px 12px;
  font-size: 12px;
  font-family: var(--font-inter);
  font-weight: 500;
  border-radius: 0;
}

.btn-dive-deeper {
  background-color: #FFF6AE;
  color: #020202;
  border: 1px solid #020202 !important;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-inter);
  border-radius: 0;
  align-self: flex-start;
  transition: all 0.3s ease;
}

.btn-dive-deeper:hover {
  background-color: #ffed4e;
  transform: translateY(-2px);
}