@import url("header.css");
@import url("footer.css");

/* Base Styles and Variables */
:root {
  --bg: #181a1b;
  --accent: #4f8cff;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-blur: blur(16px);
  --radius: 16px;
  --transition: 0.3s cubic-bezier(0.77, 0, 0.18, 1);
  --text-main: #eaeaea;
  --text-secondary: #b0b0b0;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.18);
  --header-height: 64px;
  --content-max-width: 1100px;
  --content-side-margin: 4vw;
}

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

html,
body {
  height: 100%;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

a {
  color: var(--accent);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.glass-card {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* Animations */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.77, 0, 0.18, 1),
    transform 0.6s cubic-bezier(0.77, 0, 0.18, 1);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .glass-card {
    padding: 1.5rem;
  }
}

.animated-bg-gradient {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(120deg, #00e0d3 0%, #23232a 100%);
  animation: bgMove 12s ease-in-out infinite alternate;
  opacity: 0.7;
}
@keyframes bgMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}
.noise-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.08;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><filter id="n" x="0" y="0"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100" height="100" filter="url(%23n)" opacity="0.5"/></svg>');
  background-size: 200px 200px;
}

/* Hero immersive */
.hero-immersive {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  text-align: center;
  scroll-snap-align: start;
  padding-top: 5vh;
}
.hero-logo-float {
  margin-bottom: 2.5rem;
  animation: floatLogo 3.5s ease-in-out infinite alternate;
}
@keyframes floatLogo {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-18px) scale(1.04);
  }
}
.liquid-logo {
  width: 96px;
  height: 110px;
  filter: drop-shadow(0 8px 32px rgba(0, 224, 211, 0.18));
}
.hero-headline {
  font-size: 3.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 1.2rem;
  animation: kineticText 1.2s cubic-bezier(0.77, 0, 0.18, 1) both;
}
@keyframes kineticText {
  0% {
    opacity: 0;
    letter-spacing: 0.2em;
    transform: translateY(30px) scale(0.98);
  }
  100% {
    opacity: 1;
    letter-spacing: 0.04em;
    transform: translateY(0) scale(1);
  }
}
.hero-tagline {
  font-size: 1.5rem;
  color: #b6f3ee;
  margin-bottom: 2.5rem;
  font-weight: 400;
}
.tagline-accent {
  color: var(--accent);
  font-weight: 700;
}
.hero-blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(32px);
  opacity: 0.18;
  animation: blobFloat 10s ease-in-out infinite alternate;
}
.blob-1 {
  width: 340px;
  height: 220px;
  left: 8vw;
  top: 12vh;
  background: linear-gradient(120deg, #00e0d3 60%, #fff 100%);
}
.blob-2 {
  width: 220px;
  height: 160px;
  right: 10vw;
  bottom: 10vh;
  background: linear-gradient(120deg, #fff 0%, #00e0d3 100%);
  animation-delay: 2s;
}
@keyframes blobFloat {
  0% {
    transform: scale(1) translateY(0);
  }
  100% {
    transform: scale(1.08) translateY(24px);
  }
}
.scroll-cue {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 40px;
}
.scroll-cue span {
  display: block;
  width: 28px;
  height: 28px;
  border-bottom: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
  transform: rotate(45deg);
  animation: scrollCueAnim 1.2s infinite alternate;
}
@keyframes scrollCueAnim {
  0% {
    opacity: 0.2;
    transform: translateY(0) rotate(45deg);
  }
  100% {
    opacity: 1;
    transform: translateY(10px) rotate(45deg);
  }
}

/* Loading Overlay */
#loading-overlay {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: #18181b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.77, 0, 0.18, 1);
  opacity: 1;
  pointer-events: all;
}
#loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}
.loader-logo {
  position: relative;
  width: 96px;
  height: 110px;
  transform: translateY(0);
  animation: logoLoad 1.2s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}
.loader-logo img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 32px rgba(0, 224, 211, 0.18));
}
@keyframes logoLoad {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  50% {
    transform: translateY(-18px) scale(1.04);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
/* Always show navbar */
.navbar.glassy-navbar {
  opacity: 1 !important;
  pointer-events: auto;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--glass);
  box-shadow: 0 4px 32px 0 rgba(0, 224, 211, 0.1);
  backdrop-filter: var(--glass-blur);
  padding: 0.8rem 3vw;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: none;
}

/* Glassy navbar (scroll-triggered) */
.glassy-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--glass);
  box-shadow: 0 4px 32px 0 rgba(0, 224, 211, 0.1);
  backdrop-filter: var(--glass-blur);
  padding: 0.8rem 3vw;
  border-radius: 0 0 var(--radius) var(--radius);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.77, 0, 0.18, 1);
}
.glassy-navbar.visible {
  opacity: 1;
  pointer-events: auto;
}
.glassy-navbar .logo-img {
  height: 44px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--accent);
  color: var(--bg);
}

/* Glassy cards and sections */
.glass-card-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 60vh;
  padding: 6vh 0 4vh 0;
  position: relative;
  z-index: 2;
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
  margin-top: calc(var(--header-height) + 2vw);
  margin-bottom: 2vw;
  padding-left: var(--content-side-margin);
  padding-right: var(--content-side-margin);
}
.glass-card {
  background: var(--glass);
  border-radius: var(--radius);
  box-shadow: 0 8px 48px 0 rgba(0, 224, 211, 0.1);
  backdrop-filter: var(--glass-blur);
  padding: 3.5rem 3rem;
  min-width: 340px;
  max-width: 600px;
  margin: 0 2vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
}
.card-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}
.card-desc {
  font-size: 1.2rem;
  color: #e0e0e0;
  font-weight: 400;
}

/* Accent color for each card */
.accent-sound {
  border-left: 6px solid #00e0d3;
}
.accent-photo {
  border-left: 6px solid #ffb300;
}
.accent-code {
  border-left: 6px solid #00b3ff;
}
.accent-music {
  border-left: 6px solid #e040fb;
}
.accent-contact {
  border-left: 6px solid #00e676;
}

/* Full-viewport Sound Project Sections */
.sound-projects {
  width: 100vw;
  margin: 0;
  padding: 0;
}
.project-full {
  max-width: var(--content-max-width);
  margin: 2vw auto;
  padding: calc(var(--header-height) + 2vw) var(--content-side-margin) 2vw
    var(--content-side-margin);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--accent, #00e0d3) 0%, #23232a 100%);
  transition: background 0.6s cubic-bezier(0.77, 0, 0.18, 1);
}
.project-content {
  background: rgba(24, 24, 27, 0.55);
  backdrop-filter: blur(18px);
  border-radius: 18px;
  box-shadow: 0 4px 32px 0 rgba(0, 0, 0, 0.12);
  max-width: 900px;
  width: 100%;
  margin: 0;
  padding: 2.5rem 2rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.project-content img {
  width: 100%;
  max-width: 700px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 16px rgba(0, 224, 211, 0.1);
  background: #222;
}
.project-text {
  text-align: center;
}
.project-text h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.7rem;
  letter-spacing: 0.01em;
}
.project-text h2 span {
  color: var(--accent, #00e0d3);
  font-size: 1.3rem;
  font-weight: 500;
  margin-left: 0.7rem;
}
.project-text p {
  font-size: 1.4rem;
  color: #e0e0e0;
  margin: 0;
}

/* Contact Section Full */
.contact-section-full {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  background: linear-gradient(120deg, #18181b 60%, #00e0d3 100%);
  padding: 0;
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
  margin-top: calc(var(--header-height) + 2vw);
  margin-bottom: 2vw;
  padding-left: var(--content-side-margin);
  padding-right: var(--content-side-margin);
}
.contact-content {
  background: var(--glass);
  border-radius: var(--radius);
  box-shadow: 0 8px 48px 0 rgba(0, 224, 211, 0.1);
  padding: 4rem 2.5rem;
  text-align: center;
  max-width: 540px;
  width: 100%;
}
.contact-content h2 {
  font-size: 2.5rem;
  color: var(--accent, #00e0d3);
  margin-bottom: 1.2rem;
}
.contact-content p {
  font-size: 1.3rem;
  color: #fff;
}
.contact-link {
  color: var(--accent, #00e0d3);
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .hero-headline {
    font-size: 2.2rem;
  }
  .glass-card {
    padding: 2rem 1.2rem;
    min-width: 220px;
  }
  .project-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 0.7rem;
    gap: 1.2rem;
  }
  .project-card img {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
  }
  .project-info {
    padding-left: 0;
  }
  .project-content {
    padding: 2vw 0.5vw;
  }
  .project-content img {
    max-width: 98vw;
  }
  .project-text h2 {
    font-size: 2rem;
  }
}
@media (max-width: 600px) {
  .hero-immersive {
    padding-top: 2vh;
  }
  .liquid-logo {
    width: 64px;
    height: 74px;
  }
  .glass-card-section {
    padding: 2vh 0 2vh 0;
  }
  .glass-card {
    padding: 1.2rem 0.7rem;
  }
  .footer-minimal {
    padding: 1rem 0 0.5rem 0;
  }
  .project-content {
    padding: 1.2rem 0.7rem;
  }
  .project-content img {
    max-width: 100vw;
    border-radius: 18px;
  }
  .project-text h2 {
    font-size: 1.3rem;
  }
  .contact-content {
    padding: 2rem 0.7rem;
  }
  :root {
    --header-height: 48px;
    --content-side-margin: 3vw;
  }
  .main-content,
  .project-full,
  .glass-card-section,
  .contact-section-full {
    margin-top: calc(var(--header-height) + 2vw);
    margin-bottom: 3vw;
    padding-left: var(--content-side-margin);
    padding-right: var(--content-side-margin);
  }
  .project-full {
    padding: calc(var(--header-height) + 3vw) 3vw 3vw 3vw;
    margin: 3vw auto;
  }
}

.music-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.music-list li {
  font-size: 1.4rem;
  color: var(--accent, #e040fb);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 18px;
  padding: 0.7rem 2.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  letter-spacing: 0.01em;
}

/* Contact Form Styles */
.contact-form {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px 0 rgba(0, 224, 211, 0.12);
  padding: 2.5rem 2rem 2rem 2rem;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contact-form label {
  color: #b6f3ee;
  font-size: 1rem;
  margin-bottom: 0.2rem;
  font-weight: 500;
}
.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(0, 224, 211, 0.18);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border 0.2s;
  margin-bottom: 0.5rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border: 1.5px solid var(--accent);
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-form button {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 224, 211, 0.1);
  transition: background 0.2s, color 0.2s;
  margin-top: 0.5rem;
}
.contact-form button:hover {
  background: #fff;
  color: var(--accent);
}

/* Responsive Contact Form */
@media (max-width: 600px) {
  .contact-form {
    padding: 1.2rem 0.7rem 1rem 0.7rem;
    max-width: 98vw;
  }
}

.contact-section-full:last-of-type,
.project-full:last-of-type {
  margin-bottom: 80px;
  position: relative;
}

.contact-section-full:last-of-type::after,
.project-full:last-of-type::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(to bottom, transparent, #18181b 90%);
  pointer-events: none;
}

.glass-bg {
  background: rgba(24, 24, 27, 0.55);
  backdrop-filter: blur(18px);
  border-radius: 18px;
  box-shadow: 0 4px 32px 0 rgba(0, 0, 0, 0.12);
}

.navbar,
.nav-links,
.hero-headline,
.project-text h2,
.glass-card,
.project-content,
.contact-content {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.glass-card,
.project-content,
.contact-content {
  line-height: 1.7;
  padding: 2.5rem 2rem;
}

@media (max-width: 600px) {
  .glass-card,
  .project-content,
  .contact-content {
    padding: 1.2rem 0.7rem;
  }
}
