:root {
  --primary: #ff4d6d;
  --secondary: #6c63ff;
  --bg: #0f0f1a;
  --card: rgba(255,255,255,0.08);
  --glass: rgba(255,255,255,0.05);
  --text: #ffffff;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0f0f1a, #1c1c2b);
  color: var(--text);
}

/* HEADER */
header {
  backdrop-filter: blur(10px);
  background: var(--glass);
  padding: 15px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

nav a {
  margin: 0 12px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  position: relative;
}

nav a::after {
  content: "";
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  position: absolute;
  bottom: -5px;
  left: 0;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* GALLERY GRID */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.gallery div,
.accordion-content div {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* KEY LINE */
  border-radius: 16px;
  cursor: pointer;
  transition: 0.4s;
}

.gallery img:hover {
  transform: scale(1.07) rotate(1deg);
  box-shadow: 0 10px 30px rgba(255,77,109,0.4);
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10,10,20,0.95);
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  animation: zoomIn 0.3s ease;
}

.lightbox.active {
  display: flex;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes zoomIn {
  from {transform: scale(0.8);}
  to {transform: scale(1);}
}

/* ACCORDION */
.accordion {
  margin: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  backdrop-filter: blur(8px);
}

.accordion button {
  width: 100%;
  padding: 14px;
  border: none;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.accordion button:hover {
  opacity: 0.9;
}

.accordion-content {
  display: none;
  padding: 10px;
}

.accordion-content.active {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

/* ARCHIVE TITLES */
.section h3 {
  padding-left: 10px;
  font-weight: 600;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  color: transparent;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}
/* CARD WRAPPER */
.img-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
}

/* IMAGE */
.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* OVERLAY */
.img-card .overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  color: white;

  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s;
}

/* HOVER EFFECT */
.img-card:hover img {
  transform: scale(1.1);
}

.img-card:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

/* EXTRA GLOW */
.img-card:hover {
  box-shadow: 0 10px 30px rgba(255, 77, 109, 0.4);
}

/* ABOUT PAGE */

.about-container {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.about-card {
  max-width: 900px;
  display: flex;
  gap: 30px;
  background: rgba(255,255,255,0.08);
  padding: 25px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  flex-wrap: wrap;
}

/* PROFILE IMAGE */
.about-img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.2);
}

/* TEXT */
.about-text {
  flex: 1;
}

.about-text h1 {
  margin-top: 0;
  font-size: 28px;
}

.about-text p {
  line-height: 1.6;
  opacity: 0.9;
}

.highlight {
  margin-top: 15px;
  font-weight: bold;
  color: #ff4d6d;
}