/* --- CSS VARIABLES & RESET --- */
:root {
  --primary-color: #00adb5;
  /* Teal */
  --secondary-color: #eeeeee;
  /* Light Gray */
  --bg-dark: #222831;
  /* Dark Grey */
  --bg-light: #393e46;
  /* Lighter Grey */
  --text-color: #eeeeee;
  --text-muted: #b0b0b0;
  --transition: all 0.3s ease-in-out;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
/* --- PRELOADER ANIMATION --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  z-index: 99999;
  /* Highest priority */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease-out;
}
.loader {
  width: 50px;
  height: 50px;
  border: 5px solid var(--bg-light);
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Hide Scrollbar while loading */
body.loading {
  overflow: hidden;
}
/* --- SCROLL PROGRESS BAR --- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--primary-color);
  z-index: 9999;
  box-shadow: 0 0 10px var(--primary-color);
  transition: width 0.1s;
}
/* --- NAVIGATION --- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(34, 40, 49, 0.95);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  height: 70px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  z-index: 1001;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover {
  color: var(--primary-color);
}
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s;
}
.nav-links a:hover::after {
  width: 100%;
}
.menu-icon {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1001;
}
/* --- HERO SECTION --- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5%;
  position: relative;
  background:
    linear-gradient(rgba(34, 40, 49, 0.85), rgba(34, 40, 49, 0.9)),
    url("../multimedia/profile_img.JPG");
  background-position: 50% 45%;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  overflow: hidden;
}
.hero-content {
  max-width: 800px;
  z-index: 2;
  padding-top: 60px;
}
.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.hero span {
  color: var(--primary-color);
}
.typing-text {
  color: var(--primary-color);
  font-weight: 700;
  border-right: 3px solid var(--text-color);
  padding-right: 5px;
  animation: blink 0.75s step-end infinite;
}
@keyframes blink {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--text-color);
  }
}
.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--primary-color);
  color: #fff;
  border-radius: 5px;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--primary-color);
  margin: 0.5rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: #fff;
  z-index: -1;
  transition: 0.3s;
}
.btn:hover::before {
  width: 100%;
}
.btn:hover {
  color: var(--primary-color);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}
.btn-outline:hover {
  background: var(--primary-color);
  color: #fff;
}
.btn-outline:hover::before {
  background: var(--primary-color);
}
/* --- SCROLL REVEAL ANIMATION --- */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
/* --- SECTIONS GENERAL --- */
section {
  padding: 5rem 10%;
  position: relative;
  z-index: 2;
}
.section-title {
  text-align: center;
  margin-bottom: 4rem;
}
.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.section-title .underline {
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 0 auto;
  border-radius: 2px;
}
/* --- ABOUT --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}
.about-img img {
  border-radius: 10px;
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 20px rgba(0, 173, 181, 0.3);
  width: 100%;
  transition: transform 0.3s ease;
}
.about-img img:hover {
  transform: scale(1.02);
}
.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}
.about-text p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}
/* --- SKILLS --- */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.skill-tag {
  background: var(--bg-light);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: default;
}
.skill-tag:hover {
  border: 1px solid var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 173, 181, 0.2);
}
.skill-tag i {
  color: var(--primary-color);
}
/* --- EXPERIENCE --- */
.timeline {
  max-width: 800px;
  margin: 0 auto;
}
.timeline-item {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
}
.timeline-item:hover {
  transform: translateX(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 10px;
}
.company-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.company-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.timeline-date {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
}
/* --- PROJECTS --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.project-card {
  background: var(--bg-light);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
}
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.project-img {
  height: 200px;
  background-color: #333;
  overflow: hidden;
}
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-img img {
  transform: scale(1.05);
}
.project-info {
  padding: 1.5rem;
}
.tech-stack {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.tech-stack span {
  font-size: 0.75rem;
  background: var(--bg-dark);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  color: var(--primary-color);
}
.project-links {
  display: flex;
  gap: 1rem;
}
.project-links a {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.project-links a:hover {
  color: var(--primary-color);
}
/* --- FOOTER --- */
footer {
  background: #111;
  text-align: center;
  padding: 3rem 5%;
  margin-top: 2rem;
  position: relative;
  z-index: 2;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.social-links a {
  font-size: 1.5rem;
  transition: var(--transition);
}
.social-links a:hover {
  color: var(--primary-color);
  transform: translateY(-5px);
}
/* --- SNOWFLAKES --- */
.snow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.snowflake {
  position: absolute;
  top: -10px;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  animation: fall linear infinite;
}
@keyframes fall {
  0% {
    transform: translateY(-10vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(110vh) translateX(20px);
    opacity: 0.3;
  }
}
/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  section {
    padding: 4rem 5%;
  }
  .hero h1 {
    font-size: 3rem;
  }
}
@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 70%;
    height: calc(100vh - 70px);
    background: var(--bg-light);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 2rem;
    gap: 2rem;
    transition: 0.3s ease-in-out;
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.3);
  }
  .nav-links.active {
    right: 0;
  }
  .nav-links a {
    font-size: 1.2rem;
    display: block;
    text-align: center;
    width: 100%;
    padding: 10px 0;
  }
  .hero {
    background-attachment: scroll;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-img {
    max-width: 300px;
    margin: 0 auto;
  }
  section {
    padding: 3rem 5%;
  }
  .section-title h2 {
    font-size: 2rem;
  }
  .timeline-item {
    padding: 1.5rem;
  }
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .btn {
    width: 100%;
    margin: 0.5rem 0;
    display: block;
  }
  .project-img {
    height: 180px;
  }
  .logo {
    font-size: 1.2rem;
  }
}
