/* ========== ROOT COLOR VARIABLES ========== */
:root {
  --color-primary: #7F5AF0;
  --color-primary-variant: #5A31F4;
  --color-bg-1: #0F172A;
  --color-bg-2: #1E293B;
  --color-bg-3: #334155;
  --color-bg-4: #475569;
  --color-light: #CBD5E1;
  --color-white: #F8FAFC;
  --transition: all 400ms ease;
}

/* ========== GLOBAL STYLES ========== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--color-bg-1);
  color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========== NAVBAR ========== */
header.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(15, 23, 42, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

header.navbar.visible {
  transform: translateY(0);
  opacity: 1;
}

.nav-logo img {
  width: 150px;
  height: auto;
  margin-bottom: 0;
  max-width: 100%;
}

header.navbar nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  max-width: 100%;
  overflow-x: auto;
}

header.navbar nav a {
  color: var(--color-white);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
}

header.navbar nav a:hover {
  color: var(--color-primary);
}

/* ========== HERO SECTION ========== */
.hero {
  background: url('images/hero.jpg') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 5rem;
}



.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3); /* Adjust darkness */
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.typewriter-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(2rem, 6vw, 4rem); /* 🔥 responsive scale */
  font-weight: bold;
  color: var(--color-white);
  margin-bottom: 1rem;
  text-align: center;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
  font-size: clamp(0.95rem, 2.5vw, 1.2rem); /* 🔄 responsive font */
  text-align: center;
}


.hero-links a {
  color: var(--color-light);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s ease;
}

.hero-links a:hover {
  color: var(--color-primary);
}



.hero .logo {
  width: clamp(160px, 30vw, 280px);
  height: auto;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInLogo 2s ease forwards;
  animation-delay: 0.5s;
}



.hero-text h1,
.hero-text p {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-text h1 {
  font-size: 3rem;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--color-light);
}

/* ========== TYPEWRITER CURSOR ========== */
.cursor {
  display: inline-block;
  color: var(--color-primary);
  animation: blink 0.7s infinite;
  font-weight: bold;
}

/* ========== SECTIONS ========== */
section {
  padding: 4rem 2rem;
  background: var(--color-bg-2);
}

section:nth-of-type(even) {
  background: var(--color-bg-3);
}

h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.project {
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--color-bg-4);
  border-left: 4px solid var(--color-primary);
  border-radius: 8px;
}

/* ========== FOOTER ========== */
footer {
  text-align: center;
  padding: 2rem;
  background: var(--color-bg-2);
  font-size: 0.9rem;
}

/* ========== KEYFRAMES ========== */
@keyframes fadeInLogo {
  to {
    opacity: 1;
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.25rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-logo img {
    width: 120px;
  }

  header.navbar nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  header.navbar nav a {
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
  }
}
.polaroid-frame {
  display: inline-block;
  background: #fff;
  padding: 10px 10px 30px 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  margin: 1rem;
  border-radius: 6px;
  width: 240px;
  text-align: center;
  position: relative;
  font-family: 'Courier New', Courier, monospace;
}

.polaroid-frame img {
  max-width: 100%;
  border-radius: 4px;
}

/* Outer wrapper already exists */
#floating-polaroid {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  height: auto;
  width: auto;
  max-height: 90vh;
  max-width: 90vw;
  display: none;
  z-index: 9999;
  animation: polaroid-drop 1.6s ease-in forwards;
  animation-delay: 1s;
}

.polaroid-inner {
  position: relative;
  width: 100%;
  height: auto;
}

.polaroid-frame-img {
  display: block;
  width: 100%;
  height: auto;
}

.polaroid-photo {
  position: absolute;
  top: 8.8%;
  left: 25.9%;
  width: 47.6%;
  height: 59%;
  object-fit: cover;
  border-radius: 2px;

  filter: 
  brightness(1.08)    /* make it feel slightly sun-faded */
  contrast(0.85)      /* softer black levels */
  saturate(0.85)      /* faded colors */
  sepia(0.25)         /* warm vintage tone */
  hue-rotate(-10deg)  /* slight greenish-yellow warmth */
  blur(0.2px);        /* mild softness */

}


@keyframes polaroid-drop {
  0% {
    top: -100%;
    transform: translateX(-50%) scale(0.9) rotate(-2deg);
  }
  50% {
    top: 40%;
    transform: translateX(-50%) scale(1.05) rotate(0deg);
  }
  100% {
    top: 0;
    transform: translateX(-50%) scale(1);
  }
}

@media (max-width: 600px) {
  .polaroid-photo {
    top: 10.1%;
    left: 26.2%;
    width: 47.6%;
    height: 66%;
  }

  .gallery-preview img {
    width: 100%;
    max-width: 90vw;
    height: auto;
  }
}

.polaroid-drop-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.close-polaroid {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  background: #000000c0;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.share-polaroid {
  margin-top: 1.5rem;
  padding: 0.7rem 1.4rem;
  font-size: 1rem;
  background-color: var(--color-primary);
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

@media (max-width: 600px) {

  #floating-polaroid {
    max-width: 90vw;
    max-height: 95vh;
  }

  .polaroid-inner {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 3 / 4;
  }

  .polaroid-photo {
    top: 5%;
    left: 25%;
    width: 49%;
    height: 40%;
    object-fit: cover;

  }

  .close-polaroid {
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    font-size: 0.85rem;
  }


}
.gallery-page {
  padding-top: 6rem; /* adjust if your header height changes */
}

header.navbar.static-header {
  transform: translateY(0);
  opacity: 1;
  transition: none; /* Optional: remove animation flicker */
}

#sample-gallery {
  background: var(--color-bg-2);
  padding: 4rem 2rem;
  text-align: center;
}

#sample-gallery h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

.gallery-preview {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.gallery-preview img {
  width: 280px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.gallery-preview img:hover {
  transform: scale(1.05);
}

.gallery-button {
  margin-top: 2rem;
}

.gallery-button a {
  background-color: var(--color-primary);
  color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.gallery-button a:hover {
  background-color: var(--color-primary-variant);
}


.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 1rem 2rem;
}

.gallery-item {
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
}
gallery-item img
.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin-bottom: 0.5rem;
}


.gallery-item {
  background-color: #1e293b;
  border-radius: 8px;
  padding: 1rem;
  color: white;
}

.gallery-item img {
  max-width: 100%;
  border-radius: 4px;
}

.gallery-item .meta {
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.filter-controls {
  max-width: 800px;
  margin: 1rem auto;
  text-align: center;
}

.filter-controls input {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid #444;
  width: 80%;
}
