/* ================= GLOBAL ================= */
* {
  box-sizing: border-box;
}

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





body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: black;
  color: white;
  scroll-behavior: smooth;
  padding-top: 60px; /* ✅ FIXED (was 80px) */
}

/* ================= LOADER ================= */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  transition: opacity 0.8s ease;
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-text {
  position: relative;
  color: white;
  font-size: 20px;
  letter-spacing: 3px;
  padding: 15px 40px;
  border: 1px solid gold;
  box-shadow: 0 0 10px rgba(255,215,0,0.4);
  overflow: hidden;
}

.loader-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: gold;
  z-index: -1;
  animation: fillForward 3s forwards;
}

@keyframes fillForward {
  from { width: 0%; }
  to { width: 100%; }
}

@keyframes pulse {
  0% {opacity:0.3;}
  50% {opacity:1;}
  100% {opacity:0.3;}
}

.loader-text {
  animation: pulse 1.5s infinite;
}

/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
}

.logo {
  color: white;
  font-weight: bold;
  font-size: 28px;
  text-decoration: none;
  letter-spacing: 1px;
  transition: 0.3s;
  font-family: 'Raleway', sans-serif;
}

.logo:hover {
  color: gold;
}

.nav-right {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.nav-right a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 20px;
  transition: color 0.3s;
  font-family: 'Raleway', sans-serif;
}

.nav-right a:hover {
  color: gold;
}

/* ================= HERO ================= */
.hero {
  height: 100vh;
  background: url("assets/mountainous-background.png") center/cover no-repeat;
  position: relative;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.overlay h1 {
  font-size: 56px;
  margin: 0;
  animation: slideUp 1s ease;
  font-family: 'Raleway', sans-serif;
}

.overlay p {
  font-size: 18px;
  margin-top: 10px;
  opacity: 0.85;
  animation: slideUp 1.3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px);}
  to { opacity: 1; transform: translateY(0);}
}

/* ================= CTA =================*/
.cta {
  margin-top: 25px;
  display: flex;
  gap: 12px;
}

.cta a {
  padding: 10px 20px;
  border: 1px solid gold;
  text-decoration: none;
  color: white;
  font-size: 14px;
  transition: 0.3s;
}

.cta a:hover {
  background: gold;
  color: black;
}

/* ================= FOOTER ================= */
.footer-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 12px 0;
  z-index: 900;
}

.footer-cta a {
  padding: 10px 20px;
  border: 1px solid gold;
  color: white;
  text-decoration: none;
  font-size: 12px;
  transition: 0.3s;
  font-family: 'Raleway', sans-serif;
}

.footer-cta a:hover {
  background: gold;
  color: black;
}

/* ================= GRID ================= */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 45px;
  padding: 65px;
}

@media (max-width: 750px) {
  .grid {
    grid-template-columns: 1fr;
    padding: 35px 25px;
    gap: 35px;
  }
}

/* ================= THUMB ================= */
.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s;
}

.thumb:hover img {
  transform: scale(1.08);
  filter: brightness(65%);
}

.thumb-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  border: 1px solid gold;
  padding: 8px 14px;
  font-size: 18px;
  background: rgba(0, 0, 0, 0.7);
  color: gold;
  transition: 0.3s;
}

.thumb:hover .thumb-title {
  opacity: 1;
}

/* ================= PAGE ================= */
.page {
  padding: 40px 40px;
  max-width: 1000px;
  margin: 0 auto; /* ✅ FIXED */
}

/* ================= PROJECT ================= */
.project-img,
.project-video {
  width: 100%; /* ✅ FIXED */
  height: auto;
  margin: 20px auto;
  display: block;
}

/* ================= CAROUSEL (FIXED IOS STYLE) ================= */
.carousel-wrapper {
  position: relative;
  overflow: visible;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 75%;
  aspect-ratio: 16 / 9; /* 🔥 key */
  overflow: hidden;
  border-radius: 12px;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  border: none;
  color: gold;
  font-size: 28px;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  z-index: 100;
}

.carousel-btn.left { left: 10px; }
.carousel-btn.right { right: 10px; }

/* ================= DESCRIPTION ================= */
.project-description {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 40px auto;
  border-top: 1px solid #ddd;
}

/*----About me ----*/

h1, h2 {
  margin-bottom: 15px; 
}

.about-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 10px;
}

.about-text {
  flex: 1.3;
  max-width: 500px;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.about-hook {
  font-size: 1.2rem;   /* bigger */
  font-style: italic;  /* italic */
  font-weight: 400;
  margin-bottom: 25px;
  line-height: 1.6;
  color: #e0e0e0;      /* slightly brighter for emphasis */
}


/*-.about-text p {
  margin-bottom: 18px;
  line-height: 1.4;
  color: #bfbfbf;
}-*/

.about-image {
  flex: 0.4;
  display: right;
  justify-content: flex-end;
}

.about-image img {
  width: 110%;
  max-width: 500px;
  border-radius: 10px;
  object-fit: cover;
}

/* hover polish */
.about-image img:hover {
  transform: scale(1.1);
  transition: 0.3s ease;
}

/* Mobile */
@media (max-width: 750px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    justify-content: center;
    margin-top: 30px;
  }
}

/*Form*/

.contact-form {
  max-width: 600px;
  margin: 80px auto;
  padding: 30px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px;
  background: black;
  border: 1px solid gold;
  color: white;
  font-family: 'Poppins', sans-serif;
}

.contact-form button {
  padding: 12px 20px;
  background: gold;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.contact-form button:hover {
  background: #e6c200;
}
/* =========================
   CONTACT FORM SUCCESS ANIMATION
========================= */
.success-message {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  color: gold;
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
}

/* Show animation */
.success-message.show {
  opacity: 1;
  transform: scale(1);
  animation: messagePop 0.8s forwards;
}

/* Checkmark */
.success-message::before {
  content: '✔';
  font-size: 28px;
  color: gold;
  display: inline-block;
  margin-right: 10px;
  transform: scale(0);
  animation: checkBounce 0.8s forwards;
}

/* Sparkles behind checkmark */
.success-message::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, gold 20%, transparent 80%);
  opacity: 0;
  animation: sparkle 0.8s forwards;
  z-index: -1;
}

/* Checkmark bounce/pop */
@keyframes checkBounce {
  0% { transform: scale(0) rotate(-20deg); opacity: 0; }
  50% { transform: scale(1.3) rotate(10deg); opacity: 1; }
  70% { transform: scale(0.9) rotate(-5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* Message pop/bounce */
@keyframes messagePop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  80% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* Sparkle animation */
@keyframes sparkle {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); opacity: 0.8; }
  100% { transform: scale(1); opacity: 0; }
}