/* =========================
   RESET & GLOBAL
========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(circle at top, #111, #000);
    color: #fff;
    opacity: 1; /* FIXED: never hide site */
    animation: fadeIn 0.6s ease forwards;
}

/* =========================
   LINKS
========================= */
a {
    color: white;
    text-decoration: none;
}

a:hover {
    color: #d40000;
}

/* =========================
   HEADER
========================= */
.header {
    padding: 40px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
}

.logo .eli {
    color: #d40000;
}

.eli {
    color: #d40000;
}

.logo .highlight,
.logo .tumwine {
    color: #fff;
}

.nav a {
    margin-left: 22px;
    opacity: 0.8;
}

.nav a:hover {
    opacity: 1;
}

/* =========================
   HERO (HOME)
========================= */
.hero {
    min-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    text-align: center;
    padding: 0 8%;
}

.hero h1 {
    font-size: 3rem;
}

.hero p {
    max-width: 600px;
    opacity: 0.8;
}

/* =========================
   CAMERA
========================= */
.camera {
    width: 350px;
    height: 270px;
    background: linear-gradient(145deg, #2b2b2b, #0c0c0c);
    border-radius: 20px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.9);
}

.camera::before {
    content: "";
    width: 110px;
    height: 22px;
    background: #3b3b3b;
    position: absolute;
    top: -14px;
    left: 55px;
    border-radius: 6px;
}

.brand {
    position: absolute;
    top: 18px;
    left: 25px;
    font-weight: bold;
}

.brand span {
    color: #d40000;
}

/* OLD LENS (SAFE) */
.lens {
    width: 120px;
    height: 120px;
    background: #0d0d0d;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lens-ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 5px solid #d40000;
    position: absolute;
}

.lens-glass {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #6fb8ff, #000);
    transition: 0.4s ease;
}

.camera:hover .lens-glass {
    transform: scale(1.15);
}

.flash {
    width: 36px;
    height: 14px;
    background: #ddd;
    position: absolute;
    top: 30px;
    right: 35px;
    border-radius: 4px;
}

/* From Uiverse.io by Nawsome */ 
.svg-frame {
  position: relative;
  width: 250px;
  height: 250px;
  transform-style: preserve-3d;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.svg-frame svg {
  position: absolute;
  transition: .5s;
  z-index: calc(1 - (0.2 * var(--j)));
  transform-origin: center;
  width: 100%;
  height: 100%;
  fill: none;
}

.svg-frame:hover svg {
  transform: rotate(-80deg) skew(30deg) translateX(calc(45px * var(--i))) translateY(calc(-35px * var(--i)));
}

.svg-frame svg #center {
  transition: .5s;
  transform-origin: center;
}

.svg-frame:hover svg #center {
  transform: rotate(-30deg) translateX(45px) translateY(-3px);
}

#out2 {
  animation: rotate16 7s ease-in-out infinite alternate;
  transform-origin: center;
}

#out3 {
  animation: rotate16 3s ease-in-out infinite alternate;
  transform-origin: center;
  stroke: #ff0;
}

#inner3,
#inner1 {
  animation: rotate16 4s ease-in-out infinite alternate;
  transform-origin: center;
}

#center1 {
  fill: #ff0;
  animation: rotate16 2s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes rotate16 {
  to {
    transform: rotate(360deg);
  }
}

/* =========================
   BUTTONS
========================= */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.action-buttons a {
    padding: 14px 18px;
    border-radius: 30px;
    border: 1px solid #333;
    font-weight: bold;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    transition: 0.3s;
}

.action-buttons a:hover {
    background: #d40000;
    transform: translateY(-3px);
}

/* =========================
   PAGE TITLES
========================= */
.page-title {
    padding: 40px 8%;
}

.page-title h1 {
    font-size: 2.8rem;
}

/* =========================
   FILTERS (GRAPHICS SAFE)
========================= */
.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.filters button {
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid #333;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    color: #fff;
    font-weight: bold;
}

.filters button.active,
.filters button:hover {
    background: #d40000;
}

/* =========================
   GRID (DO NOT TOUCH)
========================= */
.grid {
    padding: 0 8% 80px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* =========================
   CARDS
========================= */
.card {
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
    transition: 0.4s;
}

.card:hover {
    transform: translateY(-6px) scale(1.05);
}

.card img,
.card video {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* =========================
   LIGHTBOX
========================= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox.active {
    display: flex;
}

/* =========================
   ANIMATION
========================= */
@keyframes fadeIn {
    to { opacity: 1; }
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 768px) {
    .header {
        padding: 20px 5%;
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        margin-top: 10px;
    }

    .nav a {
        margin-left: 15px;
        margin-right: 15px;
    }

    .hero {
        padding: 0 5%;
        gap: 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .camera {
        width: 280px;
        height: 210px;
    }

    .svg-frame {
        width: 200px;
        height: 200px;
    }

    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .action-buttons a {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .page-title {
        padding: 30px 5%;
    }

    .page-title h1 {
        font-size: 2rem;
    }

    .filters {
        flex-wrap: wrap;
        gap: 10px;
    }

    .filters button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .grid {
        padding: 0 5% 60px;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .card {
        box-shadow: 0 15px 40px rgba(0,0,0,0.7);
    }

    .card:hover {
        transform: translateY(-4px) scale(1.02);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .camera {
        width: 250px;
        height: 190px;
    }

    .svg-frame {
        width: 180px;
        height: 180px;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

/* From Uiverse.io by Cksunandh */
.m2 {
  position: relative;
  width: 200px; /* Fixed size for better fit */
  height: 200px; /* Fixed size for better fit */
  background: linear-gradient(135deg, #1e1e24 10%, #050505 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  animation: gradient-shift 5s ease-in-out infinite; /* Faster animation */
  background-size: 200% 200%; /* Gradient shift */
  cursor: pointer;
  transition: transform 0.5s ease-in-out;
}

.m2 .logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  font-size: 1rem; /* Smaller font for long titles */
  color: white;
  background-image: linear-gradient(to right, #626262, #fff);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  font-weight: bold;
  text-align: center;
  line-height: 1.2;
}

.m2 .logo svg {
  margin-bottom: 0.5rem;
  width: 1.5rem; /* Fixed SVG size */
  height: 1.5rem; /* Fixed SVG size */
}

.m2::before,
.m2::after {
  --size: 5px; /* Reduced glow size */
  content: "";
  position: absolute;
  top: calc(var(--size) / -2);
  left: calc(var(--size) / -2);
  width: calc(100% + var(--size));
  height: calc(100% + var(--size));
  background: radial-gradient(circle at 0 0, hsl(27deg 93% 60%), transparent),
    radial-gradient(circle at 100% 0, #00a6ff, transparent),
    radial-gradient(circle at 0 100%, #ff0056, transparent),
    radial-gradient(circle at 100% 100%, #6500ff, transparent);
}

.m2::after {
  --size: 2px; /* Reduced inner glow size */
  z-index: -1;
}

.m2::before {
  --size: 10px; /* Reduced outer glow size */
  z-index: -2;
  filter: blur(10px); /* Fixed blur */
  animation: blur-animation 3s ease-in-out alternate infinite; /* Faster blur animation */
}

/* Faster blur animation */
@keyframes blur-animation {
  to {
    filter: blur(15px);
    transform: scale(1.05);
  }
}

/* Faster gradient animation */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
