:root {
  --bg-color: #fafafa;
  --glass-border: #ffffff;
  --liquid-color: rgba(255, 235, 59, 0.6);
  --lemon-yellow: #fdd835;
  --ice-cube: rgba(255, 255, 255, 0.7);
  --straw-color: #333333;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --accent-color: #ff5722;
  --accent-soft: #fce4ec;
  --card-bg: #ffffff;
  --main-font: 'DM Sans', sans-serif;
  --display-font: 'Danfo', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  font-family: var(--main-font);
  color: var(--text-primary);
  line-height: 1.6;
}

section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}

.wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 120px;
  max-width: 1200px;
  width: 85%;
  margin: 0 auto;
}

/* Shared Display Font Settings */
.display-text {
  font-family: var(--display-font);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "ELSH" 39;
}

/* Floating Navbar */
.floating-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 15px 30px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.floating-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.floating-nav ul li a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.floating-nav ul li:nth-child(1) a:hover,
.floating-nav ul li:nth-child(1) a.active {
  background-color: #E6E6F8;
}
.floating-nav ul li:nth-child(2) a:hover,
.floating-nav ul li:nth-child(2) a.active {
  background-color: #FBE5E3;
}
.floating-nav ul li:nth-child(3) a:hover,
.floating-nav ul li:nth-child(3) a.active {
  background-color: #F6F6DE;
}
.floating-nav ul li:nth-child(4) a:hover,
.floating-nav ul li:nth-child(4) a.active {
  background-color: #B6D6E4;
}

/* Landing Section */
.hero .welcome-section {
  flex: 1.2;
}

.hero h1 {
  font-family: var(--display-font);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "ELSH" 39;
  font-size: 4rem;
  color: var(--text-primary);
  margin-bottom: 30px;
  line-height: 1.1;
  letter-spacing: -2px;
}

.hero p {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero .secondary-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
  border-left: 3px solid var(--accent-color);
  padding-left: 20px;
}

.scroll-hint {
  margin-top: 40px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-10px);}
  60% {transform: translateY(-5px);}
}

/* Glass Component */
.glass-container {
  flex: 0.8;
  display: flex;
  justify-content: center;
}

.glass {
  position: relative;
  width: 140px;
  height: 240px;
  border-left: 4px solid #fff;
  border-right: 4px solid #fff;
  border-bottom: 6px solid #fff;
  border-radius: 4px 4px 20px 20px;
  box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.3);
}

.glass-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  z-index: 2;
}

.straw-top {
  position: absolute;
  width: 8px;
  height: 119px;
  background: var(--straw-color);
  top: -45px;
  left: 35px;
  transform: rotate(-10deg);
  z-index: 10;
  border-radius: 4px 4px 0 0;
}

.straw-bottom {
  position: absolute;
  width: 8px;
  height: 70%;
  background: var(--straw-color);
  top: 72px;
  left: 36px;
  transform: rotate(-11deg);
  z-index: 1;
  opacity: 0.85;
  border-radius: 0 0 4px 4px;
}

.liquid {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 70%;
  background: var(--liquid-color);
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.bubble {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  bottom: 10px;
  animation: float 4s infinite ease-in;
}

.bubble1 { left: 25%; animation-delay: 0s; }
.bubble2 { left: 55%; animation-delay: 1.5s; }
.bubble3 { left: 75%; animation-delay: 3s; }

@keyframes float {
  0% { transform: translateY(0); opacity: 0.8; }
  100% { transform: translateY(-160px); opacity: 0; }
}

.ice-cube {
  position: absolute;
  width: 45px;
  height: 45px;
  background: var(--ice-cube);
  border-radius: 6px;
  z-index: 3;
}

.cube1 { bottom: 15%; left: 20%; transform: rotate(15deg); }
.cube2 { top: 45%; right: 15%; transform: rotate(-10deg); }

.lemon-slice {
  position: absolute;
  top: 35%;
  left: -25px;
  width: 75px;
  height: 75px;
  background: var(--lemon-yellow);
  border: 4px solid #fff;
  border-radius: 50%;
  z-index: 4;
  overflow: hidden;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.05);
}

.segment {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 32px solid transparent;
  border-right: 32px solid transparent;
  border-top: 38px solid rgba(255, 255, 255, 0.4);
  left: 6px;
  top: 0;
  transform-origin: 50% 100%;
}

.segment:nth-child(1) { transform: rotate(45deg); }
.segment:nth-child(2) { transform: rotate(135deg); }
.segment:nth-child(3) { transform: rotate(225deg); }
.segment:nth-child(4) { transform: rotate(315deg); }

/* Bio Section */
.bio {
  background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('../assets/img/paper.jpg');
  background-size: cover;
  background-position: center;
}

.bio-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.bio-image img {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 30px 30px 60px rgba(0,0,0,0.05);
  border: 10px solid var(--bg-color);
}

.bio-content {
  flex: 1.2;
}

.bio h2 {
  font-family: var(--display-font);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "ELSH" 39;
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--text-primary);
}

.bio ul {
  list-style: none;
  margin-bottom: 30px;
}

.bio li {
  margin-bottom: 25px;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.bio li strong {
  color: var(--text-primary);
  display: block;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.github-link {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--text-primary);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.github-link:hover {
  background-color: #F6F6DE;
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Projects Section */
.projects {
  background-color: var(--bg-color);
  overflow-x: hidden;
  align-items: flex-start;
  padding-left: 7.5%;
  padding-right: 7.5%;
}

.projects-header {
  margin-bottom: 60px;
  max-width: 600px;
}

.projects-header h2 {
  font-family: var(--display-font);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "ELSH" 39;
  font-size: 3rem;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.projects-header p {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.projects-showcase {
  display: flex;
  gap: 40px;
  padding-bottom: 40px;
  overflow-x: auto;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) transparent;
}

.projects-showcase::-webkit-scrollbar {
  height: 6px;
}

.projects-showcase::-webkit-scrollbar-thumb {
  background-color: var(--accent-color);
  border-radius: 10px;
}

.project-card {
  min-width: 400px;
  height: 500px;
  background-color: var(--card-bg);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 20px 20px 50px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.02);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
}

.project-card:nth-child(1) { background-color: #E6E6F8; }
.project-card:nth-child(2) { background-color: #FBE5E3; }
.project-card:nth-child(3) { background-color: #F6F6DE; }
.project-card:nth-child(4) { background-color: #B6D6E4; }
.project-card:nth-child(5) { background-color: #F9DBBD; }

.project-card:hover {
  transform: translateY(-15px);
  box-shadow: 30px 30px 70px rgba(0,0,0,0.08);
}

.project-info h3 {
  font-family: var(--display-font);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "ELSH" 39;
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.project-info p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 25px;
  line-height: 1.5;
}

.tag {
  display: inline-block;
  padding: 6px 15px;
  background-color: var(--bg-color);
  color: var(--text-secondary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Contact/Social Section */
.contact {
  background-color: #fff;
  text-align: center;
  padding-bottom: 100px;
}

.contact-header {
  margin-bottom: 60px;
  max-width: 700px;
  width: 90%;
}

.contact-header h2 {
  font-family: var(--display-font);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "ELSH" 39;
  font-size: 3.5rem;
  color: var(--text-primary);
  margin-bottom: 30px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 100px;
  flex-wrap: wrap;
}

.social-item {
  font-family: var(--main-font);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-primary);
  padding: 15px 40px;
  border: 2px solid var(--text-primary);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.social-item:hover {
  transform: scale(1.05);
}

.social-item:nth-child(1):hover {
  background-color: #E6E6F8;
  border-color: #E6E6F8;
  color: var(--text-primary);
}

.social-item:nth-child(2):hover {
  background-color: #FBE5E3;
  border-color: #FBE5E3;
  color: var(--text-primary);
}

.social-item:nth-child(3):hover {
  background-color: #F6F6DE;
  border-color: #F6F6DE;
  color: var(--text-primary);
}

.social-item:nth-child(4):hover {
  background-color: #B6D6E4;
  border-color: #B6D6E4;
  color: var(--text-primary);
}

.footer {
  margin-top: auto;
}

.back-to-top {
  display: inline-block;
  margin-bottom: 40px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  animation: bounce-up 2s infinite;
}

@keyframes bounce-up {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(10px);}
  60% {transform: translateY(5px);}
}

.footer p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 992px) {
  .floating-nav {
    width: 90%;
    max-width: 400px;
    padding: 12px 15px;
  }
  .floating-nav ul {
    gap: 5px;
    justify-content: space-around;
  }
  .floating-nav ul li a {
    font-size: 0.9rem;
    padding: 6px 10px;
  }

  .wrapper {
    flex-direction: column-reverse;
    gap: 60px;
    text-align: center;
    padding: 40px 0;
  }
  .bio .wrapper {
    flex-direction: column;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .hero .secondary-text {
    border-left: none;
    border-top: 3px solid var(--accent-color);
    padding: 20px 0 0 0;
  }
  .bio-image img {
    width: 280px;
    height: 280px;
  }
  .projects-header h2 {
    font-size: 2.5rem;
  }
  .project-card {
    min-width: 300px;
    height: 400px;
  }
  .contact-header h2 {
    font-size: 2.5rem;
  }
  .social-item {
    padding: 10px 25px;
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .floating-nav {
    top: auto;
    bottom: 20px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
  }
}
