/* Reset and base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Inter', sans-serif;
    background-color: #111;
    color: #ddd;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
  }
  
  /* Navigation box */
  header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: center;
    width: 100%;
    z-index: 1000;
    margin-top: 5px;
    gap: 20px;
    animation: slideDown 0.8s ease-out;
  }
  
  /* Nav and Mac controls container */
  .nav-box {
    margin-top: 0;
    background: rgba(255, 255, 255, 0.034);
    padding: 10px 40px;
    border-radius: 12px;
    display: flex;
    gap: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .nav-box:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 140, 0, 0.2);
  }
  
  .mac-window-controls {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: 0;
  }
  
  .control-btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
  }
  
  .control-btn.close {
    background: #ff5f56;
  }
  
  .control-btn.minimize {
    background: #ffbd2e;
  }
  
  .control-btn.maximize {
    background: #27c93f;
  }
  
  .control-btn:hover {
    box-shadow: 0 0 12px rgba(255, 140, 0, 0.8);
    transform: scale(1.1);
  }
  
  /* Navigation links */
  .nav-box a {
    color: #ccc;
    font-size: 14px;
    text-decoration: none;
    text-transform: capitalize;
    letter-spacing: 0.06em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
  }
  
  .nav-box a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6a00, #ff8c00);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .nav-box a:hover::after,
  .nav-box a:focus::after {
    width: 100%;
  }
  
  .nav-box a:hover,
  .nav-box a:focus {
    color: #ff8c00;
    text-shadow: 0 0 8px #ff8c00;
    transform: translateY(-1px);
  }
  
  /* Remove margins/padding between sections */
  .section {
    margin: 0;
    padding: 0;
    scroll-margin-top: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .section.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  #home {
    min-height: 21vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 30px 40px;
    flex-direction: column;
    animation: fadeInUp 1s ease-out 0.2s both;
  }

  
  .home-intro {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: #eee;
  }
  
  /* Gradient text style for ducklul */
  .gradient-text {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 64px;
    background: linear-gradient(
      135deg,
      #ff6a00 0%,
      #ff8c00 30%,
      #ee0979 60%,
      #ff3c78 90%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0;
    animation: gradientShift 3s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .gradient-text:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
  }
  
  /* Subtitle below name */
  .subtitle {
    margin-top: 16px;
    font-size: 18px;
    color: #aaa;
    font-family: 'Merriweather', serif;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-align: center;
    animation: fadeInUp 1s ease-out 0.4s both;
  }
  
  /* Location text */
  .location {
    margin-top: 8px;
    font-size: 14px;
    color: #aaa;
    text-align: center;
    font-family: 'Merriweather', serif;
    animation: fadeInUp 1s ease-out 0.6s both;
  }
  
  .location a {
    color: #ff8c00;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
  }
  
  .location a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ff8c00;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .location a:hover::after {
    width: 100%;
  }
  
  .location a:hover {
    color: #ffaa33;
    text-shadow: 0 0 8px rgba(255, 140, 0, 0.5);
  }
  
  /* Sections container outline */
  .section-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 30px;
    border-radius: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .section-container:hover {
    border-color: rgba(255, 140, 0, 0.3);
  }
  
  /* Add top border to About, Projects, Experience containers */
  #about .section-container,
  #projects .section-container,
  #experience .section-container {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  
  /* About section - reduced top padding */
  #about {
    margin: 0 auto;
    width: 100%;
    max-width: 900px;
  }
  
  /* Projects section - no extra padding to stay aligned */
  #projects {
    padding: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 900px;
  }
  
  /* Experience section - no extra padding to stay aligned */
  #experience {
    padding: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 900px;
  }
  
  /* Headings */
  .section-container h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 600;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .section-container:hover h1 {
    color: #ff8c00;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
  }
  
  /* Paragraphs and list */
  .section-container p,
  .project-list li {
    font-size: 1rem;
    color: #bbb;
    line-height: 1.7;
    margin-bottom: 0.8rem;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .section-container:hover p {
    color: #ccc;
  }
  
  .project-list {
    list-style: none;
    padding-left: 0;
  }
  
  .project-list li strong {
    color: #eee;
  }
  
  /* Projects grid */
  .projects-grid {
    display: flex;
    gap: 20px;
    margin-top: 1rem;
  }
  
  .project-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }
  
  .project-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.1), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .project-box:hover::before {
    left: 100%;
  }
  
  .project-link {
    font-weight: 700;
    font-size: 1.2rem;
    color: #ff8c00;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
  }
  
  .project-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff8c00;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .project-link:hover::after {
    width: 100%;
  }
  
  .project-link:hover {
    text-decoration: none;
    text-shadow: 0 0 8px #ff8c00;
    transform: translateX(5px);
  }
  
  .project-box:hover {
    box-shadow: 0 0 25px rgba(255, 140, 0, 0.3);
    border-color: rgba(255, 140, 0, 0.4);
    transform: translateY(-5px);
  }
  
.timeline {
  position: relative;
  margin-left: 40px;
  padding-left: 30px;
  border-left: 2px solid rgba(255, 255, 255, 0.15);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 20px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -38px;
    top: 10px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #ff6a00 0%, #ff8c00 100%);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 140, 0, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
.timeline-item:hover::before {
  box-shadow: 0 0 15px rgba(255, 140, 0, 0.9);
  transform: scale(1.2);
}

/* Timeline detail text */
.timeline-detail {
  color: #bbb;
  font-size: 1rem;
  line-height: 1.5;
  font-family: 'Merriweather', serif;
  margin-top: 4px;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover .timeline-detail {
  color: #ccc;
}

/* Bold headline (learned ___) */
.timeline-detail strong {
  color: #eee;
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover .timeline-detail strong {
  color: #ff8c00;
  text-shadow: 0 0 8px rgba(255, 140, 0, 0.3);
}

/* The year, below the strong text */
.timeline-detail .year-text {
  display: block;
  color: #aaa;
  font-size: 0.85rem;
  margin-top: 4px;
  font-style: italic;
}
  
  /* Dropdown for close message */
  .close-dropdown {
    position: fixed;
    top: 15px;
    left: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 30px;
    width: 260px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    color: #eee;
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
  }
  
  .close-dropdown.hidden {
    display: none;
  }
  
  .close-dropdown p {
    margin: 0;
    user-select: none;
  }
  
  .dropdown-close-btn {
    align-self: flex-end;
    padding: 6px 12px;
    background: #ff8c00;
    border: none;
    border-radius: 6px;
    color: #111;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .dropdown-close-btn:hover {
    background: #ffaa33;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
  }
  
  /* Dropdown animations */
  @keyframes slideDown {
    0% {
      opacity: 0;
      transform: translateY(-20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes slideUp {
    0% {
      opacity: 1;
      transform: translateY(0);
    }
    100% {
      opacity: 0;
      transform: translateY(-20px);
    }
  }
  
  .close-dropdown.slide-down {
    animation: slideDown 0.3s ease forwards;
  }
  
  .close-dropdown.slide-up {
    animation: slideUp 0.3s ease forwards;
  }
  
  /* Responsive */
  @media (max-width: 600px) {
    .nav-box {
      padding: 10px 20px;
      gap: 20px;
    }
  
    .section-container {
      padding: 30px 20px;
    }
  
    .section-container h1 {
      font-size: 2rem;
    }
  
    .gradient-text {
      font-size: 48px;
    }
  
    .projects-grid {
      flex-direction: column;
    }
  }
  
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 1.5rem;
  }
  
  .contact-form label {
    font-size: 0.95rem;
    color: #ccc;
    font-family: 'Merriweather', serif;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: #eee;
    font-size: 1rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .contact-form input:focus,
  .contact-form textarea:focus {
    border-color: #ff8c00;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
  }
  
  .contact-form input:hover,
  .contact-form textarea:hover {
    border-color: rgba(255, 140, 0, 0.3);
    background: rgba(255, 255, 255, 0.04);
  }
  
  .contact-form button {
    align-self: flex-start;
    padding: 10px 20px;
    background: #ff8c00;
    color: #111;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }
  
  .contact-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .contact-form button:hover::before {
    left: 100%;
  }
  
  .contact-form button:hover {
    background: #ffaa33;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
  }
  
  #contact .section-container {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  
  #contact .section-container,
  #contact .section-container * {
    font-family: inherit !important;
  }

  .site-footer {
    text-align: center;
    padding: 30px 20px;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    font-family: inherit;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .site-footer:hover {
    color: #888;
  }
  
.social-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
  width: 100%;
  animation: fadeInUp 1s ease-out 0.8s both;
}



.social-btn {
  width: 40px;
  height: 40px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.social-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), rgba(255, 140, 0, 0.05));
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-btn:hover::before {
  opacity: 1;
}

.social-btn:hover {
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.6);
  transform: translateY(-4px) scale(1.1);
  border-color: rgba(255, 140, 0, 0.4);
}

.social-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(1);
  transition: filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-btn:hover img {
  filter: invert(1) brightness(1.2);
}

.location-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 12px;
  gap: 10px;
}

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Media query for mobile devices */
@media (max-width: 768px) { 
    .mac-window-controls {
        display: none;
    }
}
