@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap');

:root {
  --primary-color: #03C988;
  --primary-light: rgba(3, 201, 136, 0.1);
  --primary-dark: #02a56e;
  --background-color: #0a0e11;
  --surface-color: #1a1f24;
  --text-color: #f5f5f5;
  --text-secondary: #b3b3b3;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

html {
  overflow-x: hidden;
  font-size: 62.5%;
  scroll-padding-top: 7rem;
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background-color);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 10%;
  background-color: rgba(10, 14, 17, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: padding var(--transition-speed);
}

.logo {
  font-size: 2.5rem;
  color: var(--primary-color);
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-speed) ease;
  position: relative;
}

.logo:hover {
  transform: scale(1.05);
  text-shadow: 0 0 8px rgba(3, 201, 136, 0.5);
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-speed);
}

.logo:hover::after {
  width: 100%;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-left: 4rem;
  font-weight: 500;
  transition: var(--transition-speed);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-speed);
}

nav a:hover {
  color: var(--primary-color);
}

nav a:hover::after {
  width: 100%;
}

.menu-btn {
  display: none;
  position: relative;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
  z-index: 1001;
}

.menu-btn__burger {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.5s ease-in-out;
}

.menu-btn__burger::before,
.menu-btn__burger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 3px;
  background: var(--text-color);
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.5s ease-in-out;
}

.menu-btn__burger::before {
  transform: translateY(-8px);
}

.menu-btn__burger::after {
  transform: translateY(8px);
}

.menu-btn.active .menu-btn__burger {
  background: transparent;
  box-shadow: none;
}

.menu-btn.active .menu-btn__burger::before {
  transform: rotate(45deg);
  background: var(--primary-color);
}

.menu-btn.active .menu-btn__burger::after {
  transform: rotate(-45deg);
  background: var(--primary-color);
}

section {
  min-height: 100vh;
  padding: 10rem 10% 5rem;
  position: relative;
}

.heading {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 5rem;
  position: relative;
  display: inline-block;
}

.heading::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50%;
  height: 3px;
  background-color: var(--primary-color);
}

span {
  color: var(--primary-color);
}

.home {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 12rem;
}

.home-content-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8rem;
  width: 100%;
}

.home .home-content h1 {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2rem;
}

.home-content h3 {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.home-content p {
  font-size: 1.6rem;
  margin-bottom: 3rem;
  color: var(--text-secondary);
}

.home-img {
  position: relative;
  border-radius: 20%;
  overflow: hidden;
  width: 35rem;
  height: 35rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.home-img::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg, transparent, var(--primary-color), transparent);
  z-index: -1;
  animation: glowing 5s linear infinite;
}

@keyframes glowing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.home-img img {
  width: 100%;
  height: 100%;
  border-radius: 20%;
  object-fit: cover;
  transition: var(--transition-speed);
}

.home-img:hover img {
  transform: scale(1.05);
}

.social-icons {
  margin: 3rem 0;
}

.social-icons h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 4.5rem;
  height: 4.5rem;
  background-color: var(--surface-color);
  border: 0.2rem solid var(--primary-color);
  font-size: 2rem;
  border-radius: 50%;
  transition: var(--transition-speed);
  color: var(--primary-color);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.social-icons a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--primary-color);
  transition: var(--transition-speed);
  z-index: -1;
}

.social-icons a:hover::before {
  width: 100%;
}

.social-icons a:hover {
  color: var(--background-color);
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(3, 201, 136, 0.3);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 3rem;
  background-color: transparent;
  border-radius: 4rem;
  font-size: 1.6rem;
  color: var(--primary-color);
  letter-spacing: 0.2rem;
  font-weight: 600;
  border: 2px solid var(--primary-color);
  transition: var(--transition-speed);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--primary-color);
  transition: var(--transition-speed);
  z-index: -1;
}

.button:hover::before {
  width: 100%;
}

.button:hover {
  color: black;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(3, 201, 136, 0.3);
}

.button:hover .button-text, 
.button:hover i {
  color: black;
}

.button:active {
  transform: translateY(-2px);
}

.button i {
  font-size: 1.6rem;
}

/* Typing animation */
.typing-text {
  font-size: 2.4rem;
  font-weight: 600;
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.typed-text {
  position: relative;
  color: var(--primary-color);
}

.typed-text::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 0;
  height: 100%;
  width: 3px;
  background-color: var(--primary-color);
  animation: cursor 0.8s infinite;
}

@keyframes cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Experiences section */
.experiences {
  background-color: var(--surface-color);
  box-shadow: 0 0 30px rgba(3, 201, 136, 0.2);
  border-radius: 20px;
  margin: 5rem 10%;
  padding: 5rem;
}

.timeline-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.timeline-container::after {
  content: '';
  position: absolute;
  width: 3px;
  background-color: var(--primary-color);
  top: 10px;
  bottom: 0;
  left: 30px;
  height: calc(100% - 10px);
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  margin-bottom: 50px;
}

.timeline-dot {
  position: absolute;
  left: 30px;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border: 4px solid #131518;
  border-radius: 50%;
  z-index: 1;
  transform: translateX(-50%);
  top: 30px;
}

.timeline-content {
  padding: 30px;
  background-color: rgba(10, 14, 17, 0.8);
  position: relative;
  border-radius: 10px;
  border-left: 3px solid var(--primary-color);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition-speed);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.timeline-content h4 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.timeline-location {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.timeline-date {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--primary-color);
  display: inline-block;
  margin-bottom: 1.5rem;
  background-color: rgba(3, 201, 136, 0.1);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
}

.timeline-description {
  font-size: 1.6rem;
  color: var(--text-color);
}

/* Projects section */
.projects {
  padding-top: 10rem;
}

.project-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3rem;
  width: 100%;
}

.project-item {
  background: linear-gradient(145deg, #12171c, #1a1f24);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition-speed);
  height: 100%;
}

.project-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(3, 201, 136, 0.3);
}

.project-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-speed);
}

.project-item:hover .project-img img {
  transform: scale(1.1);
}

.project-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-content h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.project-content p {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-tech span {
  padding: 0.5rem 1.5rem;
  background-color: rgba(3, 201, 136, 0.1);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 500;
}

/* Footer styling */
.footer {
  background-color: var(--surface-color);
  padding: 3rem 10%;
  margin-top: 5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-social {
  display: flex;
  gap: 2rem;
}

.footer-social a {
  color: var(--text-secondary);
  font-size: 2rem;
  transition: var(--transition-speed);
}

.footer-social a:hover {
  color: var(--primary-color);
  transform: translateY(-5px);
}

/* Scroll to top button */
.scroll-top-btn {
  position: fixed;
  right: 3rem;
  bottom: 3rem;
  width: 5rem;
  height: 5rem;
  background-color: var(--primary-color);
  color: var(--background-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-speed);
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn.show {
  opacity: 1;
  pointer-events: auto;
  animation: bounce 2s infinite;
}

.scroll-top-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

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

/* Media Queries */
@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }
  
  .home-content-wrapper {
    gap: 5rem;
  }

  .home-img {
    width: 30rem;
    height: 30rem;
  }
}

@media (max-width: 991px) {
  header {
    padding: 1.5rem 5%;
  }
  
  section {
    padding: 8rem 5% 5rem;
  }
  
  .experiences {
    margin: 5rem 5%;
    padding: 4rem;
  }

  .typing-text {
    justify-content: center;
    margin: 0 auto;
    text-align: center;
  }
  
  .home-content-wrapper {
    flex-direction: column;
    gap: 4rem;
  }
  
  .home-img {
    order: -1;
  }
  
  .home-content {
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 50%;
  }
  
  .menu-btn {
    display: flex;
  }


  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    background-color: rgba(26, 31, 36, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    padding: 5rem 0;
  }
  
  nav.active {
    right: 0;
  }
  
  nav a {
    margin: 2rem 0;
    font-size: 2.2rem;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    transition-delay: 0.1s;
  }
  
  nav.active a {
    opacity: 1;
    transform: translateY(0);
  }
  
  nav.active a:nth-child(1) {
    transition-delay: 0.2s;
  }
  
  nav.active a:nth-child(2) {
    transition-delay: 0.3s;
  }
  
  nav.active a:nth-child(3) {
    transition-delay: 0.4s;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    background-color: var(--surface-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-speed);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    padding: 5rem 0;
  }
  
  nav.active {
    right: 0;
  }
  
  nav a {
    margin: 2rem 0;
    font-size: 2.2rem;
  }
  
  .heading {
    font-size: 3.5rem;
  }
  
  .experiences {
    padding: 3rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 580px) {
  .home .home-content h1 {
    font-size: 4rem;
  }
  
  .home-content h3 {
    font-size: 2rem;
  }
  
  .home-img {
    width: 25rem;
    height: 25rem;
  }
  
  .experiences {
    padding: 2rem;
  }
  
  .timeline-content {
    padding: 2rem;
  }
  
  .project-items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .home .home-content h1 {
    font-size: 3.5rem;
  }
  
  .home-img {
    width: 22rem;
    height: 22rem;
  }
  
  .social-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}