body {
    margin: 0;
    padding: 0;
    font-family: 'Trebuchet MS', sans-serif;
    background-image: url('images/pexels-cottonbro-9665187 copy.jpg'); 
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #333;
}


.main {
    background-image: url('images/pexels-cottonbro-9665187 copy.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    width: 100%;
    position: relative;
    font-family: 'Trebuchet MS', sans-serif;
}

.header {
    background-color: #333;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.typewriter {
  overflow: hidden;
  border-right: 0.15em solid orange;
  white-space: nowrap; 
  animation: typing 4s steps(40, end), blink-caret 0.75s step-end infinite;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  font-size: 1.2rem; 
}

@keyframes typing {
  0% {
    width: 0;
  }
  50% {
    width: 100%;
  }
  70% {
    width: 100%;
  }
  100% {
    width: 0;
  }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: orange; }
}

.profile-pic {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-right: 1rem;
  vertical-align: middle;
  transition: transform 0.3s, box-shadow 0.3s;
}

.profile-pic:hover {
  transform: scale(1.09) rotate(-3deg);
  box-shadow: 0 6px 32px rgba(244,156,62,0.6);
  border-color: orange;
}

.overlay-nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;   
  width: 240px;  
  background-color: rgba(51, 51, 51, 0.95);
  padding: 2rem 1.5rem;  
  z-index: 9999;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start; 
  gap: 1.8rem;      
}

.overlay-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: 100%;    
  gap: 1.2rem;
}

.overlay-nav ul li a {
  display: block;
  color: white;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.15rem;
  padding: 0.4rem 0;
  width: 100%;
  transition: color 0.3s, background-color 0.2s;
  border-radius: 0.4rem;
}

.overlay-nav ul li a:hover,
.overlay-nav ul li a:focus {
  color: #ddd;
  text-decoration: underline;
  background-color: rgba(244, 156, 62, 0.15); 
}
.overlay-nav::before {
  content: "Navigation";
  color: #f49c3e;
  font-weight: 700;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.6rem;
  margin-bottom: 2rem;
  display: block;
  width: 100%;
  text-align: center;
}

body, .main {
    padding-top: 0;
}

.section {
    max-width: 800px;
    background-color: white;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.project {
    background-color: #f9f9f9;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #333;
}

.project h3 {
    margin-top: 0;
}

.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
    position: flex;
    width: 100%;
    bottom: 0;
}

.nav-toggle {
  display: none;
}

.overlay-nav {
  position: fixed;
  top: 0;
  right: -240px;
  width: 240px;
  height: 100vh;
  background: rgba(51,51,51,0.95);
  padding: 2rem 1.5rem 1rem 1.5rem;
  box-shadow: -2px 0 8px rgba(0,0,0,0.4);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: right 0.35s cubic-bezier(0.23,1,0.32,1);
}

.nav-toggle:checked + .overlay-nav {
  right: 0;
}

.nav-toggle-btn {
  display: flex;           
  align-items: center;
  justify-content: center;
  position: absolute;
  left: -2.2rem;          
  top: 1.5rem;
  width: 2.2rem;
  height: 2.2rem;
  background: #f49c3e;     
  color: white;             
  font-size: 1.65rem;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 10001;
}

.nav-toggle-btn .hamburger {
  display: inline;
}
.nav-toggle-btn:hover {
  background: #ea880b;
}

.overlay-nav .close { display: none; }
.overlay-nav .hamburger { display: inline; }
.nav-toggle:checked + .overlay-nav .close { display: inline; }
.nav-toggle:checked + .overlay-nav .hamburger { display: none; }

.overlay-nav ul {
  list-style: none;
  margin: 3.5rem 0 0 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.overlay-nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  font-size: 1.18rem;
  padding: 0.4rem 0;
  border-radius: 0.4rem;
  transition: color 0.3s;
}

.overlay-nav ul li a::after {
  content: '';
  display: block;
  height: 3px;
  width: 0;
  background: #f49c3e;
  transition: width 0.3s;
  position: absolute;
  left: 0;
  bottom: -5px;
  border-radius: 2px;
}

.overlay-nav ul li a:hover,
.overlay-nav ul li a:focus {
  color: #f49c3e;
}

.overlay-nav ul li a:hover::after,
.overlay-nav ul li a:focus::after {
  width: 100%;
}

.overlay-nav ul li a:focus-visible {
  outline: 2px solid #f49c3e;
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .overlay-nav {
    top: -100vh;
    right: 0;
    width: 100vw;
    height: 225px;
    border-radius: 0 0 1.2em 1.2em;
    transition: top 0.36s cubic-bezier(0.23,1,0.32,1);
    flex-direction: row;
    align-items: flex-start;
    padding: 1.2rem 0.6rem 0.6rem 1rem;
  }
  .nav-toggle:checked + .overlay-nav {
    top: 0;
    right: 0;
  }
  .nav-toggle-btn {
    left: unset;
    right: 1.3rem;
    top: 0.8rem;
  }
  .overlay-nav ul {
    margin: 1.7rem 0 0 1.3rem;
    flex-direction: row;
    gap: 1.0rem;
    width: calc(100vw - 3.5rem);
  }
}

.main-content {
  transition: margin-right 0.35s cubic-bezier(0.23,1,0.32,1);
  margin-right: 0;
}

.nav-toggle:checked ~ .main-content {
  margin-right: 240px;
}

@media (max-width: 700px) {
  .nav-toggle:checked ~ .main-content {
    margin-right: 0; 
  }
}

html { scroll-behavior: smooth; }

.emoji-mascot {
  position: fixed;
  bottom: 32px;
  right: 32px;
  font-size: 3rem;
  z-index: 10000;
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.13));
  animation: mascot-wave 2s 1;
}

.emoji-mascot:hover {
  transform: scale(1.25) rotate(-12deg);
  animation: mascot-wave 1s;
}

@keyframes mascot-wave {
  0%   { transform: rotate(0deg);}
  10%  { transform: rotate(-20deg);}
  20%  { transform: rotate(15deg);}
  30%  { transform: rotate(-18deg);}
  40%  { transform: rotate(12deg);}
  50%  { transform: rotate(-8deg);}
  60%  { transform: rotate(8deg);}
  70%  { transform: rotate(-6deg);}
  80%  { transform: rotate(5deg);}
  90%  { transform: rotate(-3deg);}
  100% { transform: rotate(0deg);}
}
.mascot-bubble {
  display: none;
  position: absolute;
  bottom: 3.5rem;
  right: 0;
  background: white;
  color: #333;
  border-radius: 1rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  box-shadow: 0 4px 18px rgba(0,0,0,0.14);
}
.emoji-mascot:hover .mascot-bubble {
  display: block;
}

.button-group {
  display: flex;
  justify-content: center; 
  align-items: center; 
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}


.my-btn {
  background: orange;
  color: white;
  border: none;
  padding: 0.8rem 2.2rem;
  font-size: 1.1rem;
  border-radius: 2.2rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(244,156,62,0.17);
  transition: background 0.22s, color 0.22s, transform 0.15s;
  text-decoration: none;
  outline: none;
  display: inline-block;
  position: relative;
}

.my-btn span { 
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.my-btn.download-btn:hover {
  background: #ffad33;
  color: #222;
  transform: translateY(-2px) scale(1.08) rotate(-2deg);
}

.my-btn.contact-btn:hover {
  background: #23d160;
  color: #fff;
  transform: translateY(-2px) scale(1.08) rotate(2deg);
}

.my-btn:active {
  animation: btn-press 0.17s;
}
@keyframes btn-press {
  0%   { transform: scale(1.09) rotate(-1deg);}
  100% { transform: scale(0.96);}
}

#my-timeline {
  max-width: 650px;
  margin: 3rem auto;
  padding: 2rem 2.4rem;
  background: #fff9ed;
  border-radius: 1.2rem;
  box-shadow: 0 2px 18px rgba(244,156,62,0.11);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#my-timeline h2 {
  color: #f49c3e;
  text-align: center;
  font-family: 'Courier New', Courier, monospace;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  letter-spacing: 0.03em;
  position: relative;
}

#my-timeline details {
  background: #fff3dc;
  border-radius: 1rem;
  margin-bottom: 1.4rem;
  padding: 1.3rem 1.8rem;
  box-shadow: 0 1px 6px rgba(244,156,62,0.1);
  cursor: pointer;
  transition: background 0.2s ease;
}

#my-timeline details[open] {
  background: #f4a43e20;
  box-shadow: 0 3px 14px rgba(244,156,62,0.2);
}

#my-timeline summary {
  font-weight: 700;
  font-size: 1.17rem;
  color: #ea880b;
  outline: none;
  list-style: none;
  user-select: none;
  cursor: pointer;
  -webkit-user-select: none;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

#my-timeline summary::-webkit-details-marker {
  display: none;
}

#my-timeline summary::before {
  content: "▶";
  display: inline-block;
  margin-right: 0.75rem;
  font-size: 0.85rem;
  transition: transform 0.3s ease;
  color: #f49c3e;
  transform-origin: center;
}

#my-timeline details[open] summary::before {
  transform: rotate(90deg);
}

#my-timeline details p {
  margin-top: 0.9rem;
  line-height: 1.45;
  font-size: 1.07rem;
  color: #333;
  padding-left: 1.5rem;
}

@media (max-width: 600px) {
  #my-timeline {
    padding: 1.5rem 1rem;
  }
  #my-timeline h2 {
    font-size: 2rem;
  }
  #my-timeline details {
    padding: 1rem 1.25rem;
  }
  #my-timeline details p {
    font-size: 1rem;
    padding-left: 1.2rem;
  }
}

#fun-facts {
  max-width: 520px;
  margin: 3rem auto 2rem auto;
  text-align: center;
}

#fun-facts h3 {
  color: #f49c3e;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.33rem;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.fun-facts-box {
  background: #fff3dc;
  border-left: 5px solid orange;
  border-radius: 1.1rem;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 2px 12px rgba(244,156,62,0.13);
  text-align: left;
}

.fun-facts-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fun-facts-box li {
  margin-bottom: 0.72em;
  font-size: 1.08rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8em;
  line-height: 1.4;
}

.fun-facts-box li:last-child {
  margin-bottom: 0;
}

.fun-facts-box li .icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

h2 {
  font-size: 2.5rem;    
  color: #130a01;  
  font-weight: 700; 
  text-transform: SentenceCase;  
  letter-spacing: 0.08em;   
  text-align: left;      
  margin-bottom: 1.5rem;
  font-family: 'Courier New', Courier, monospace; 
}

#about-me {
  max-width: 650px;
  margin: 3.5rem auto 2.5rem auto;
  padding: 2rem 2.2rem 1.5rem 2.2rem;
  background: #fff9ed;
  border-radius: 1.3rem;
  box-shadow: 0 2px 18px rgba(244, 156, 62, 0.11);
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, 'Liberation Sans', sans-serif;
}

#about-me h2 {
  text-align: center;
  color: #f49c3e;
  font-size: 2.4rem;
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  position: relative;
}

#about-me h2::after {
  content: '';
  display: block;
  width: 65px;
  height: 4px;
  background: #f49c3e;
  border-radius: 2.5px;
  margin: 0.7em auto 0 auto;
  box-shadow: 0 2px 8px rgba(244, 156, 62, 0.18);
}

#about-me p {
  color: #333;
  font-size: 1.08rem;
  line-height: 1.6;
  margin-bottom: 1.15em;
}

#about-me ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.1em;
}

#about-me ul li {
  margin-bottom: 0.69em;
  padding-left: 1.6em;
  position: relative;
  font-size: 1.08rem;
  line-height: 1.5;
}

#about-me ul li::before {
  content: '';
  position: absolute;
  left: 0.14em;
  top: 0.35em;
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  background: #ffe7bc;
  box-shadow: 0 0 0 2px #f49c3e;
  display: inline-block;
  vertical-align: middle;
}
