:root {
    --bg: #000;
    --text: #f8f8ff;
    --gray: #b3b3b3;
    --accent: #0088cc;
    --accent-gradient: linear-gradient(135deg, #64ffda, #0045e5);
    --font: "Poppins", sans-serif;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* BACKGROUND SHAPES */
.bg-shape {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    filter: blur(60px);
    opacity: 0.25;
}

.shape1 {
    width: 420px;
    height: 420px;
    top: -100px;
    left: 220px;
    background:
        radial-gradient(circle at 30% 30%, #64ffda 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, #0045e5 0%, transparent 60%);
    animation: float 10s ease-in-out infinite;
}

.shape2 {
    width: 520px;
    height: 520px;
    right: -140px;
    bottom: -120px;
    background:
        radial-gradient(circle at 20% 80%, #0045e5 0%, transparent 55%),
        radial-gradient(circle at 80% 20%, #64ffda 0%, transparent 55%);
    animation: float 14s ease-in-out infinite reverse;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(30px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 1.5rem;
    z-index: 1;
}

.logo {
    position: relative;
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: 3px;
    margin-bottom: 4rem;
    display: inline-block;
}

.logo::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 70px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.nav a {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding-left: 0.3rem;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav a:hover {
    color: var(--accent);
    border-left: 2px solid var(--accent);
}
.nav a.active {
  color: var(--accent);
  border-left: 2px solid var(--accent);
  font-weight: 600;
  letter-spacing: 1.2px;
}


.connect {
    font-size: 0.9rem;
    color: var(--gray);
}

.connect p {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.7rem;
}

.connect a {
    display: block;
    color: var(--gray);
    text-decoration: none;
    margin: 0.2rem 0;
    transition: color 0.3s;
}

.connect a:hover {
    color: var(--accent);
}

/* MOBILE HEADER */
.mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    padding: 1rem 1.5rem;
    color: var(--text);
    position: fixed;
    width: 100%;
    z-index: 50;
}

.mobile-logo {
    font-weight: 700;
    letter-spacing: 2px;
}

.burger {
    font-size: 1.8rem;
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    background: #111;
    position: absolute;
    top: 64px;
    width: 100%;
    left: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-in-out;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav.show {
    max-height: 400px;
}

.mobile-nav a {
    color: var(--text);
    padding: 1rem 1.5rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
}

/* MAIN CONTENT */
.content {
    text-align: left;
    flex: 1;
    margin-left: 260px;
    padding: 0 5rem;
    position: relative;
    z-index: 2;
}

/* SECTION NUMBERS */
.section-number {
    position: relative;
    overflow: visible;
}

.section-number::before {
    content: attr(data-num);
    position: absolute;
    top: 5rem;
    left: -8rem;
    font-size: clamp(8rem, 22vw, 14rem);
    font-weight: 800;
    color: rgba(100, 255, 218, 0.05);
    z-index: 0;
    pointer-events: none;
    line-height: 1;
    transform: translateY(1rem);
}

.section-number * {
    position: relative;
    z-index: 2;
}

/* HERO */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.2rem;
}

.hero-title {
    font-size: clamp(4rem, 12vw, 12rem);
    font-weight: bold;
    line-height: 0.9;
}

.hero-subtitle {
    font-size: 1.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text);
}

.hero-subtitle .accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* ABOUT + WORK (gemeinsames Layout) */
.about,
.work {
    position: relative;
    text-align: left;
    max-width: 1200px;
    margin-left: 0;
    padding: 8rem 5rem 8rem 0;
    z-index: 1;
}

.about-title,
.work-title {
    color: #fff;
    font-size: clamp(2.8rem, 7vw, 6.5rem);
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.about-title::after,
.work-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50%;
    height: 4px;
    background: var(--accent-gradient);
    z-index: -1;
}

.quote {
    position: relative;
    font-size: 1.4rem;
    font-style: italic;
    color: #cfcfcf;
    margin: 2rem 0;
    padding-left: 2.5rem;
    max-width: 600px;
    line-height: 1.6;
}

.quote::before {
    content: "“";
    position: absolute;
    left: -2rem;
    top: -1.5rem;
    font-size: 8rem;
    color: rgba(100, 255, 218, 0.45);
    pointer-events: none;
    line-height: 0.7;
}

.about p {
    color: #ccc;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 650px;
}

/* ===== WORK SECTION ===== */
.intro {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    max-width: 600px;
}
.note {
  font-size: 0.85rem;
  color: #888;
  max-width: 600px;
  margin-bottom: 4rem;
}
.note a {
  color: #888;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

.note a:hover {
  color: var(--accent);
}
/* ===== GALLERY GRID ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

/* ===== PROJECT ITEM ===== */
.project {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 4 / 3; /* Einheitliche Höhe – kann angepasst werden */
}

.project:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 68, 229, 0.25);
}

/* ===== PROJECT IMAGE ===== */
.project img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Bild füllt gesamte Fläche aus */
  display: block;
  transition: transform 0.5s ease;
}

.project:hover img {
  transform: scale(1.05);
}

/* ===== OVERLAY ===== */
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.8));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.project:hover .overlay {
  opacity: 1;
}

.overlay h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
}

.overlay p {
  font-size: 0.95rem;
  color: var(--gray);
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox.show {
    display: flex;
}

.lightbox-img {
    max-width: 80%;
    max-height: 80%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 25px rgba(0, 68, 229, 0.25);
    transition: opacity 0.3s ease;
}

.close {
    position: absolute;
    top: 40px;
    right: 60px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--accent);
}

.controls {
    position: absolute;
    width: 100%;
    top: 50%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 60px;
    user-select: none;
}

.controls span {
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.controls span:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 1024px) {
    .work {
        margin-left: 0;
        padding: 6rem 2rem;
    }

    .lightbox-img {
        max-width: 90%;
        max-height: 70%;
    }
}
.contact {
  text-align: center;.nav a.active {
  color: var(--accent);
  border-left: 2px solid var(--accent);
  font-weight: 600;
  letter-spacing: 1.2px;
}
  padding: 8rem 0;
}

.contact-title {
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.contact-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
  z-index: -1  ;
}

.contact-text {
  color: #ccc;
  font-size: 1.2rem;
  max-width: 650px;
  margin: 2rem auto;
  line-height: 1.6;
}

.contact-mail {
  display: inline-block;
  margin: 1.5rem 0 3rem;
  font-size: 1.25rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-mail:hover {
  color: #64ffda;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-links a {
  color: var(--gray);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-links a:hover {
  color: var(--accent);
}

.footer-note {
  color: #777;
  font-size: 0.9rem;
  margin: 0.2rem 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .contact {
    margin-left: 0;
    padding: 6rem 1.5rem;
  }
}


@media (max-width: 1024px) {
  .contact {
    margin-left: 0;
    padding: 6rem 2rem;
  }
}


/* BUTTONS */
button,
button.btn-primary,
a.btn-primary {
  background: var(--accent-gradient);
  color: #000;
  font-weight: 600;
  padding: 0.85rem 2.2rem;
  border: none;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.05em;
  text-decoration: none; /* verhindert Unterstreichung beim <a> */
  transition: all 0.3s ease;
}

.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.15;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 68, 229, 0.25);
}

.btn-outline {
    border: 2px solid #0088cc;
    border-radius: 0;
    background: transparent;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.9rem 2.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.15);
    filter: brightness(1.1);
}

/* FADE-IN */
.fade-in,
.fade-in-left,
.fade-in-right,
.fade-scale {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.fade-in {
    transform: translateY(40px);
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    transform: translateX(-40px);
}

.fade-in-left.show {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    transform: translateX(40px);
}

.fade-in-right.show {
    opacity: 1;
    transform: translateX(0);
}

.fade-scale {
    transform: scale(0.9);
}

.fade-scale.show {
    opacity: 1;
    transform: scale(1);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }

    .mobile-header {
        display: flex;
    }

    .content {
        margin-left: 0;
        padding: 6rem 2rem;
    }

    .hero {
        height: auto;
        padding-top: 6rem;
    }

    .hero-title {
        font-size: 3rem;
    }
}
@media (max-width: 600px) {
  .project {
    aspect-ratio: 1 / 1;
  }
}
