
/* body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0f172a;
  color: white;
} */

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300; /* this gives you the "light" look */
  background: #0f172a;
  color: white;
}
.rotate-container {
  font-size: 2rem;
  font-weight: bold;
  color: white; /* change to your theme */
}

#changing-word {
  transition: opacity 0.5s ease-in-out;
}


/* ---------------- LOADING SCREEN ---------------- */
#loading-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom, #312e81, #6d28d9, #be185d);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1000;
}

.hidden {
  display: none;
}

.mountains .layer path {
  fill-opacity: 0.3;
}

.layer1 path { fill: rgba(99,102,241,.3); animation: float-slow 4s infinite; }
.layer2 path { fill: rgba(139,92,246,.4); animation: float-med 3s infinite; }
.layer3 path { fill: rgba(168,85,247,.6); animation: float-fast 2s infinite; }

@keyframes float-slow { 50% { transform: translateY(-20px); } }
@keyframes float-med { 50% { transform: translateY(-15px); } }
@keyframes float-fast { 50% { transform: translateY(-10px); } }

.loader-content {
  text-align: center;
  z-index: 10;
}

.loader-content .icon {
  width: 90px;
  height: 90px;
  margin-bottom: 15px;
  animation: bounce 2s infinite;
}

@keyframes bounce { 50% { transform: translateY(-15px); } }

.dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  animation: bounce 1s infinite;
}

/* ---------------- HERO SECTION ---------------- */
.hero {
  height: 100vh; /* full screen */
  position: relative;
  overflow: hidden;
}

.hero-parallax {
  position: absolute;
  inset: 0;
  background-image: url('/newmontenegro.jpg'); /* replace with your photo */
  background-size: cover;      /* cover entire area */
  background-position: center; /* center image */
  background-repeat: no-repeat;
  z-index: 1;
  transform: translateY(0);    /* will move with JS scroll */
  transition: transform 0.1s;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  top: 40%; /* was 50% — move everything higher */
  transform: translateY(-50%);
  color: white;
}


.hero-parallax::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.402); /* darkens image a bit */
  z-index: 2;
}


.hero-icon {
  width: 80px;
  height: 80px;
  color: #f4f3f6;
  animation: pulse 2s infinite;
}

@keyframes pulse { 50% { opacity: .5; } }

.location {
  display: flex;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
}

.socials a {
  margin: 30px 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.277);
  border-radius: 50%;
  display: inline-block;
  transition: .3s;
}


.socials a:hover {
  transform: scale(1.2);
  background: rgba(255,255,255,0.2);
}

/* Scroll Indicator */
.mouse {
  width: 25px;
  height: 45px;
  border: 2px solid white;
  border-radius: 25px;
  margin: 40px auto 0 auto;
  display: flex;
  justify-content: center;
}

.wheel {
  width: 4px;
  height: 10px;
  background: white;
  margin-top: 5px;
  border-radius: 10px;
  animation: scroll 1.5s infinite;
}

@keyframes scroll { 100% { transform: translateY(10px); } }

/* ---------------- ABOUT ---------------- */
.about {
  max-width: 900px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300; /* this gives you the "light" look */
  margin: 50px auto;
  padding: 40px;
  background: rgba(124,58,237,.15);
  border: 1px solid rgba(139,92,246,.3);
  border-radius: 20px;
}

.about-container {
  display: flex;
  align-items: center;   /* vertically align text and image */
  justify-content: space-between; /* push them apart */
  gap: 2rem;             /* space between text and image */
}

.about-text {
  flex: 1;               /* text takes available space */
}

.about-image img {
  max-width: 250px;      /* control image size */
  border-radius: 10px;   /* optional: rounded corners */
}


/* ---------------- PROJECTS ---------------- */



.project-desc {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  color: white;
  padding: 30px;
  opacity: 0;
  pointer-events: none;
  border-radius: 20px;
  transition: opacity 0.3s;

  display: flex;
  flex-direction: column;
  justify-content: center;   /* center block */
  align-items: center;       /* center horizontally */
  text-align: center;
}

.project:hover .project-desc {
  opacity: 1;
  pointer-events: auto;
}

.project-desc a {
  color: #dc79ab;
  text-decoration: underline;
}

.project-desc a:hover {
  color: #d8b4fe;
}

.projects {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px;
}

.projects h2 {
  text-align: center;
  font-size: 40px;
  margin-bottom: 40px;
  background: linear-gradient(to right,#d8b4fe,#f9a8d4);
  -webkit-background-clip: text;
  color: transparent;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
  gap: 20px;
}

.project {
  background: rgba(124,58,237,.2);
  border: 1px solid rgba(139,92,246,.3);
  border-radius: 20px;
  overflow: hidden;
  transition: .3s;
}

.project:hover {
  transform: scale(1.05);
  border-color: rgba(168,85,247,.6);
  box-shadow: 0 0 25px rgba(168,85,247,.3);
}

.project img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project .content {
  padding: 20px;
}

.project.show-desc .project-desc {
  opacity: 1;
  pointer-events: auto;
}


/* ---------------- HOBBIES ---------------- */
.hobbies {
  max-width: 1200px;
  margin: 10px auto;
  padding: 20px 20px;
}


.hobbies h2 {
  margin-top: 0;
  text-align: center;
  font-size: 36px;
  background: linear-gradient(to right,#d8b4fe,#f9a8d4);
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem; /* keep a little breathing room */
}

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
  gap: 20px;
}

.hobby {
  background: rgba(124,58,237,.2);
  border: 1px solid rgba(139,92,246,.3);
  border-radius: 20px;
  overflow: hidden;
  padding: 20px;
  text-align: center;
  transition: .3s;
}

.hobby:hover {
  transform: scale(1.05);
  border-color: rgba(168,85,247,.6);
  box-shadow: 0 0 25px rgba(168,85,247,.3);
}

.hobby img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 15px;
}

.hobby .hobby-title {
  font-size: 20px;
  font: helvetica;
  font-weight: bold;
  color: #e9d5ff;
}
/* ------------------- HOBBIES ------------------- */
.hobbies {
  max-width: 1200px;
  margin: 80px auto;
  padding: 60px 20px;
}

.hobbies h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  background: linear-gradient(to right,#d8b4fe,#f9a8d4);
  -webkit-background-clip: text;
  color: transparent;
}

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 20px;
}

.hobby {
  position: relative;  /* make this the parent for the overlay */
  background: rgba(124,58,237,.2);
  border: 1px solid rgba(139,92,246,.3);
  border-radius: 20px;
  overflow: hidden;
  padding: 20px;
  text-align: center;
  transition: .3s;
}
.hobby:hover .hobby-desc {
  opacity: 1;
  pointer-events: auto;
}

.hobby:hover {
  transform: scale(1.05);
  border-color: rgba(168,85,247,.6);
  box-shadow: 0 0 25px rgba(168,85,247,.3);
}

.hobby img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 10px;
}

.hobby-title {
  font-size: 20px;
  font-weight: bold;
  color: #e9d5ff;
  margin-bottom: 10px;
}

/* Description overlay */
.hobby-desc {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  color: white;
  padding: 30px;
  opacity: 0;
  pointer-events: none;
  border-radius: 20px;
  transition: opacity 0.3s;
  box-sizing: border-box;
  justify-items: center;

  /* FIX: remove centering that breaks text flow */
  display: block;
  text-align: left;
}


.hobby.show-desc .hobby-desc {
  opacity: 1;
  pointer-events: all;
}


.hobby-desc a {
  display: inline; /* or inline-block */
  color: #dc79ab;  /* optional: make the link stand out */
  text-decoration: underline; /* optional */
}


.hobby-desc a:hover {
  color: #d8b4fe;
}
.scroll-indicator {
  display: none;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 40px;
  color: #d8b4fe;
}

.typing-container {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500; /* this gives you the "light" look */
  font-size: 5rem;
  color: #ffffff;
  margin-top: -20px;
  height: 30px;
}

#typing {
  border-right: 2px solid #ffffff;
  padding-right: 5px;
  animation: blink 0.9s infinite;
}

@keyframes blink {
  0% { border-color: transparent; }
  50% { border-color: #d8b4fe; }
  100% { border-color: transparent; }
}

.hobbies {
  margin-bottom: 0;   /* remove extra space below hobbies */
  padding-bottom: 0;  /* optional, if padding is causing space */
}


.hobbies h2,
.projects h2 {
  margin-top: 0;
}


.resume a {
  display: inline-block;       /* makes it behave like a button */
  padding: 0.75rem 1.5rem;     /* space inside */
  background-color: #d0b3db;   /* button color (blue here) */
  color: rgb(78, 29, 122);                /* text color */
  text-decoration: none;       /* remove underline */
  border-radius: 6px;          /* rounded corners */
  font-weight: 500;            /* slightly bold text */
  transition: background-color 0.3s ease;
}

.resume a:hover {
  background-color: #e0a2c2;   /* darker on hover */
}

/* ----------- Responsive Adjustments ----------- */

/* Tablets and smaller laptops */
@media (max-width: 1024px) {
  .about-container {
    flex-direction: column;   /* stack text and image */
    text-align: center;
  }

  .about-image img {
    max-width: 200px;
    margin-top: 20px;
  }

  .typing-container {
    font-size: 3rem; /* shrink big text */
  }
}

/* Phones */
@media (max-width: 768px) {
  .hero {
    height: auto; /* let hero shrink naturally */
    padding: 60px 20px;
  }

  .hero-content {
    top: auto;
    transform: none;
    padding: 40px 20px;
  }

  .typing-container {
    font-size: 2rem;
    line-height: 1.2;
    height: auto;
  }

  .projects {
    padding: 30px 15px;
  }

  .projects h2,
  .hobbies h2 {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .project-grid,
  .hobby-grid {
    grid-template-columns: 1fr; /* one per row */
  }

  .project img,
  .hobby img {
    height: auto; /* let images scale naturally */
  }

  .resume a {
    width: 100%; /* button fills screen width */
    text-align: center;
  }
}

/* Very small phones */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  h2 {
    font-size: 22px;
  }

  .typing-container {
    font-size: 1.5rem;
  }

  footer {
    padding: 20px;
    font-size: 14px;
  }
}
