:root {
    --primary-color: #ff1924;
    --secondary-color: #1a1a1a;
    --background-color: #ffffff;
    --card-color: #ffffff;
    --text-color: #1a1a1a;
    --text-muted: #1a1a1a;
}

body {
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Segoe UI', sans-serif;
    transition: background-color 0.5s ease;
}

header {
    color: var(--primary-color);
    padding: 1rem 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.2rem;
    padding: 0;
    margin: 0;
}

nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ff6e6e;
}

h2 {
    color: #000000;
    text-align: center;
    margin-bottom: 1rem;
}

#hero {
    padding: 2rem;
    text-align: center;
}

#hero h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

#hero p {
    font-size: 1rem;
    color: var(--secondary-color);
    text-align: center;
    margin-top: 0;
}

#contact a {
    color: #ff523b;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

#contact a:hover {
    color: #ff6f65;
    text-shadow: 0 0 8px rgba(255, 172, 172, 0.8);
}

section {
    padding: 2rem;
    max-width: 800px;
    margin: auto;
}

.project {
    background: var(--card-color);
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: var(--secondary-color);
    transition: none;
}

.project:hover {
    transform: none;
    background: var(--card-color);
    color: var(--secondary-color);
}

footer {
    color: var(--text-muted);
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

#background-wrapper {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  background-color: var(--background-color);
}

.waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  pointer-events: none;
}

#bg-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

#glassmorphism-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 40, 60, 0.12);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 10;
}

.project-button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    background-color: rgb(12, 12, 12);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.project-button:hover {
    background-color: var(--primary-color);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.gallery figure {
    max-width: 320px;
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    background: var(--card-color);
    color: #000000;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-align: center;
}

.gallery figure:hover {
    transform: translateY(-6px);
}

.gallery figure img {
    width: 100%;
    display: block;
    border-bottom: 1px solid #ddd;
}

.gallery figure figcaption {
    padding: 0.6rem 1rem;
    font-size: 1rem;
}

.gallery-item {
    text-align: center;
}

.gallery-vertical {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 700px;
    margin: auto;
}

.gallery-item img {
    width: 100%;
    max-width: 700px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.caption {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #222;
    font-weight: 500;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    cursor: zoom-out;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(255,255,255,0.2);
    cursor: zoom-out;
}

.video-wrapper {
    max-width: 700px;
    margin: 1rem auto 3rem auto;
    box-shadow: 0 4px 25px rgba(0,0,0,0.3);
    border-radius: 12px;
    overflow: hidden;
}

video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}
