@import url('https://fonts.googleapis.com/css2?family=Electrolize&family=Orbitron&family=Poppins&display=swap');
@font-face {
  font-family: 'Electroharmonix';
  src: url('assets/fonts/Electroharmonix.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --bg-primary: #000000;
  --bg-secondary: #0e0e14;
  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --accent: #9b51ff;
  --accent-soft: #c084fc;
  --tablet-bg: #000000;
  --tablet-bezel-border: rgba(255, 255, 255, 0.15);
  --overlay-bg: rgba(0, 0, 0, 0.65);
  --paper-bg:#fdf6e3;
  --flame: #ff6600;
}

/* Light mode palette */
.light-mode {
  --bg-primary: #ffffff;
  --bg-secondary: #f2f2f7;
  --text-primary: #000000;
  --text-secondary: #333333;
  --accent: #7700ff;
  --accent-soft: #d8b4fe;
  --tablet-bg: 		#11131a;
  --tablet-bezel-border: rgba(255, 255, 255, 0.1);
  --overlay-bg: rgba(255, 255, 255, 0.65);
  --flame: #ff6600;
}


/* Reset & base styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
}

/* Section styling */
section {
  padding: 80px 20px;
  min-height: auto;
  display: block;
  text-align: left;
}
section h1, section h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--accent);
}

section p {
  max-width: 600px;
  color: var(--text-secondary);
}

/* Navbar styling */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  background: var(--bg-primary);
  transition: background 0.4s ease;
}

#navbar .logo {
  font-family: 'Electroharmonix', sans-serif;
  font-size: 28px;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.logo a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  font-weight: inherit;
  font-size: inherit;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

#navbar nav {
  display: flex;
  gap: 28px;
}

#navbar nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  position: relative;
  transition: color 0.3s ease;
}

#navbar nav a:hover {
  color: var(--accent);
}

#navbar nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s ease;
}

#navbar nav a.active::after {
  width: 100%;
}

/* Mode toggle button */
#mode-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

#mode-toggle svg {
  width: 38px;
  height: 38px;
  stroke: var(--accent);
  transition: stroke 0.3s ease;
}

/* Hero section styling */

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-color);
  padding: 20px;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-tagline {
  font-family: 'Electrolize', sans-serif;
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}


.hero-title-animation {
  display: flex;
  gap: 1rem;
  font-size: 64px;
  letter-spacing: 2px;  
  font-family: 'Electroharmonix', sans-serif;
  text-transform: uppercase;
  justify-content: center;
  user-select: none;
}

.hero-title-animation .char {
  position: relative;
  width: 64px;
  height: 64px;
  text-align: center;
}

.hero-title-animation .jp, 
.hero-title-animation .en {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  line-height: 64px;
  margin: 0;
  font-size: 64px;
  color: var(--accent);
}

.hero-title-animation .en {
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scroll-button {
  margin-top: 2rem;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeBounce 1s ease-out forwards 4s, bounce 2s infinite 4s;
  transition: color 0.3s ease;
}

.scroll-button:hover {
  color: var(--accent-soft);
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

@keyframes fadeBounce {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mockup styling */

.phone.mockup {
  aspect-ratio: 9 / 19.5;
  height: clamp(400px, 80vh, 650px);
  width: auto;
  border: 4px solid var(--accent);
  border-radius: 1rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 8px 20px rgba(198, 132, 255, 0.2);
  transition: background-image 0.5s ease;
  position: relative;
}

.tablet.mockup {
  flex: 1;
  padding: 30px;
  border: 6px solid var(--accent);
  border-radius: 1.25rem;
  background-color: var(--tablet-bg);
  box-shadow: 0 10px 25px rgba(198, 132, 255, 0.15);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tablet.mockup::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 10px;
  right: 10px;
  border-radius: 1rem;
  border: 1.5px solid var(--tablet-bezel-border);
  pointer-events: none;
  mix-blend-mode: normal;
}

/* Widgets section */

#widgets {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.widget-block {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 120px;
  gap: 40px;
  min-height: 100vh;
  scroll-snap-align: start;
}

.widget-block .content {
  flex: 1;
  max-width: 600px;
  color: var(--text-primary);
  text-align: left;
  font-family: 'Electrolize', sans-serif;
}

.widget-block h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.widget-block .description {
  font-family: 'Electrolize', sans-serif;
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.widget-block .tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.widget-block .tag {
  font-family: 'Poppins', sans-serif;
  background-color: var(--accent);
  color: var(--bg-primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
  user-select: none;
  opacity: 0;
}

.widget-block.layout-left {
  flex-direction: row;
}

.widget-block.layout-right {
  flex-direction: row-reverse;
}

/* Komponents section */

#komponents {
  padding-top: 100px; 
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.komponents-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 20px;
}

.komponents-grid {
  display: grid;
  grid-template-columns: repeat(5, 80px);
  grid-gap: 20px;
  transform-style: preserve-3d;
}


.komponents-grid img {
  width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.komponents-grid img.show {
  opacity: 1;
  transform: scale(1);
}

.komponents-info {
  position: sticky;
  top: 20%;
  flex: 0 0 40%;
  padding-left: 80px;
  color: var(--text-primary);
}

.komponents-info h2 {
  font-size: 3rem;
  font-family: 'Orbitron', sans-serif;
  color: var(--accent);
}

.komponents-prefix {
  font-family: 'Orbitron', sans-serif;
}

.komponents-suffix {
  font-family: 'Electroharmonix', sans-serif;
  transition: opacity 0.4s ease;
}

.komponents-info p {
  font-family: 'Electrolize', sans-serif;
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-top: 12px;
  max-width: 400px;
}

/* Wallpaper Section */

#wallpapers .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 300px 20px;
}

.wall-message {
  font-family: 'Orbitron', sans-serif;
  color: var(--accent);
  font-size: 2.5rem;
  text-align: center;
  user-select: none;
}

.wall-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  justify-items: center;
}

.wall-mockup {
  position: relative;
  aspect-ratio: 9 / 19.5;
  background-color: #000;
  border: 4px solid var(--accent);
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(155, 81, 255, 0.5);
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow, opacity;
}

.wall-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

.wall-mockup.active {
  z-index: 2;
}

.info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: var(--overlay-bg);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  font-family: 'Electrolize', sans-serif;
  font-size: 0.8rem;
  line-height: 1.4;
  z-index: 3;
  border-top: 1px solid var(--accent-soft);
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
}

.info-overlay h3 {
  margin-bottom: 0.5rem;
  font-family: 'Orbitron', sans-serif;
  color: var(--accent);
}

.info-overlay p {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  opacity: 0.8;
}

.info-tags span {
  color: var(--accent);
}

.collapse-btn {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-family: 'Electroharmonix', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: 0.5rem;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
}

.collapse-btn:hover,
.collapse-btn:focus {
  background-color: var(--accent);
  color: var(--bg-primary);
  outline: none;
}


/* Download Section */

.download-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6rem;
  max-width: 1000px;
  width: 100%;
  height: 80vh;
  margin: 0 auto;
  padding: 0 0 30px;
}

.left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.lore {
  font-family: 'Electrolize', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  position: relative;
}

#download-btn {
  align-self: flex-start;
  padding: 0.7rem 1.8rem;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Orbitron', sans-serif;
  color: #FFF;
  background: var(--accent);
  border: none;
  border-radius: 0.6rem;
  box-shadow: 0 0 10px var(--accent);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

#download-btn:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
}

#download-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  position: relative;
}

.seal {
  width: 140px;
  height: 380px;
  background: var(--bg-primary);
  border: 2.5px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 0 20px var(--accent-soft);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  animation: pulseGlow 3s ease-in-out infinite;
}

.seal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 24px, #ffffff08 25px);
  opacity: 0.3;
}

.seal::after {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 20px;
  background: var(--accent);
  border-radius: 4px;
  box-shadow: 0 0 5px var(--accent-soft);
}

.kanji {
  font-size: 70px;
  color: var(--accent);
  writing-mode: vertical-rl;
  text-align: center;
  letter-spacing: 10px;
  line-height: 1.2;
  user-select: none;
}

.seal.vibrate {
  animation: vibrate 0.3s linear infinite, pulseGlow 3s ease-in-out infinite;
}

@keyframes vibrate {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 1px); }
  40% { transform: translate(3px, -2px); }
  60% { transform: translate(-1px, 2px); }
  80% { transform: translate(1px, -1px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px var(--accent-soft); }
  50% { box-shadow: 0 0 30px var(--accent); }
}

.seal.burn {
  animation: burnEdges 1.2s ease forwards;
  background: none;
  border-color: transparent;
  box-shadow: none;
}

.seal.burn::before,
.seal.burn::after,
.seal.burn .kanji {
  opacity: 0;
}

@keyframes burnEdges {
  0% {
    box-shadow: 0 0 20px var(--flame);
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(0.9);
  }
}

/*Responsive Styles*/

/* Hamburger Menu */
#hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

#hamburger span {
  display: block;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: 0.3s ease;
}

/* Mobile Menu */
#mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  padding: 30px 20px;
  background: var(--bg-primary);
  flex-direction: column;
  gap: 20px;
  z-index: 1000;
  transition: transform 0.4s ease;
}

#mobile-menu.active {
  display: flex;
}

#mobile-menu a {
  color: var(--text-primary);
  font-size: 1.2rem;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
}

#mobile-menu button#mobile-mode-toggle {
  background: none;
  border: none;
  color: var(--accent);
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  text-align: left;
  cursor: pointer;
  padding: 8px 0;
  margin-top: 10px;
  border-top: 1px solid var(--tablet-bezel-border);
}

/* Hide on Mobile */
.description-desktop {
  display: block;
}

.description-swipe,
.swipe-hint {
  display: none;
}

.tablet.mockup .home-button {
  display: none;
}

/* Media Query (Mobile: ≤ 750px)*/
@media (max-width: 750px) {
  /* Navbar */
  #navbar nav,
  #mode-toggle {
    display: none;
  }

  #hamburger {
    display: flex;
    margin-left: auto;
  }

  .nav-actions {
    gap: 16px;
  }

  /* Hero Section */
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px;
  }

  .hero-title-animation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
  }

  .hero-title-animation .char {
    display: inline-block;
    min-width: 40px;
    text-align: center;
  }

  .hero-tagline {
    font-size: 1rem;
    margin-top: 20px;
  }

  .scroll-button {
    margin-top: 20px;
    font-size: 1.5rem;
  }

  /* Widget Blocks */
  .description-desktop {
    display: none;
  }

  .description-swipe,
  .swipe-hint {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-weight: 600;
    color: #555;
  }

  .swipe-hint {
    font-size: 1.5rem;
  }

  .widget-block {
    flex-direction: column !important;
    gap: 20px;
    padding: 40px 0;
    min-height: unset;
  }

  .phone.mockup {
    margin-top: 100px;
    flex: 0 0 auto;
    width: 80vw;
    height: 80vh;
    aspect-ratio: 9 / 19.5;
    scale: 0.9;
  }

  .widget-block .content {
    text-align: center;
    max-width: 90%;
  }

  .widget-block h2 {
    font-size: 1.4rem;
  }

  .widget-block .description {
    font-size: 0.8rem;
  }

  .widget-block .tags {
    justify-content: center;
    scale: 0.9;
  }

  .widget-block .tag {
    flex: 0 0 calc(50% - 12px);
    text-align: center;
    font-size: 1rem;
  }

  .widget-block[data-index="3"] .tags {
    display: none;
  }

  .widget-block .swipe-hint {
    display: none;
  }

  .widget-block[data-index="3"] .swipe-hint {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 1rem;
  }

  .widget-block[data-index="3"] .swipe-hint .arrow {
    font-size: 1.5rem;
    color: #555;
    animation: swipeMove 1.2s infinite alternate ease-in-out;
  }

  .widget-block[data-index="3"] .swipe-hint .arrow:first-child {
    animation-delay: 0s;
  }

  .widget-block[data-index="3"] .swipe-hint .arrow:last-child {
    animation-delay: 0.6s;
  }

  /* Komponents Section */
  .komponents-container {
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    gap: 40px;
  }

  .tablet.mockup {
    width: 85vw;
    max-width: 400px;
    aspect-ratio: 3 / 4;
  }

  .komponents-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    padding: 20px;
  }

  .komponents-grid img {
    width: 100%;
    height: auto;
    min-width: 2.8rem;
  }

  .komponents-info {
    position: static;
    padding-left: 0;
    text-align: center;
    color: var(--text-primary);
  }

  .komponents-info h2 {
    font-size: 2rem;
  }

  .komponents-info p {
    font-size: 1rem;
    margin-top: 8px;
    max-width: 90%;
    margin-inline: auto;
  }

  /* Download Section */
  .download-container {
    flex-direction: column-reverse;
  }

  .left,
  .right {
    width: 100%;
    text-align: center;
  }

  .lore {
    font-size: 0.95rem;
  }

  #download-btn {
    align-self: center;
  }
}

/* Extra Small Devices (≤ 390px)  */
@media (max-width: 390px) {
  .hero-title-animation {
    font-size: 1.6rem;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: center;
  }

  .hero-title-animation .char {
    min-width: 32px;
  }

  .phone.mockup {
    width: 90vw;
    height: 90vh;
    aspect-ratio: 9 / 19.5;
    scale: 0.8;
    min-height: 700px;
  }

  .komponents-container {
    padding: 0 10px 20px;
    scale: 0.9;
  }
}

/* Tablet Only (751px – 1024px) */
@media (max-width: 1024px) and (min-width: 751px) {
  .komponents-container {
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    gap: 50px;
  }

  .tablet.mockup {
    width: 80vw;
    max-width: 500px;
    aspect-ratio: 3 / 4;
  }

  .komponents-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 24px;
  }

  .komponents-grid img {
    width: 100%;
    height: auto;
  }

  .komponents-info {
    position: static;
    padding-left: 0;
    text-align: center;
  }

  .komponents-info h2 {
    font-size: 2.4rem;
  }

  .komponents-info p {
    font-size: 1.05rem;
    margin-top: 10px;
    max-width: 90%;
    margin-inline: auto;
  }
}

/* Tablet & Mobile (≤ 1024px) */
@media (max-width: 1024px) {
  .tablet.mockup {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: var(--tablet-bg);
  }

  .tablet.mockup .home-button {
    display: block;
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    background: var(--tablet-bezel-border);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  }

  .wall-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Narrower Wall Grid (≤ 600px)*/
@media (max-width: 600px) {
  .wall-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-overlay {
    font-size: 0.6rem;
    padding: 0.5rem;
  }

  .info-tags {
    font-size: 0.6rem;
  }

  .collapse-btn {
    font-size: 0.5rem;
    padding: 0.2rem 0.5rem;
  }
}

/* Desktop Only (≥ 1024px) */
@media (min-width: 1024px) {
  .tablet.mockup {
    min-height: 552px;
  }
}

/* Animations */
@keyframes swipeMove {
  0% {
    opacity: 0.5;
    transform: translateX(0);
  }
  100% {
    opacity: 1;
    transform: translateX(10px);
  }
}
