/* ===== GRID PARA LA PÁGINA PRINCIPAL ===== */
:root {
  --bg: #0d0f17;
  --bg-card: #161926;
  --primary: #00f0ff;
  --secondary: #ff007f;
  --text: #f0f4f8;
  --text-muted: #94a3b8;
  --border: #23293d;
  --border-muted: #1e2436;
  --danger: #ef4444;
  --success: #10b981;
  --shadow: rgba(0, 0, 0, 0.4);
}

body.light-mode {
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --primary: #0284c7;
  --secondary: #d946ef;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-muted: #cbd5e1;
  --danger: #dc2626;
  --success: #059669;
  --shadow: rgba(0, 0, 0, 0.08);
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
}

.container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 0px;
  min-height: 100vh;
}

/* GRID AREAS */
.LOGO { grid-area: 1 / 1 / 2 / 2; }
.ICONS { grid-area: 1 / 2 / 2 / 3; }
.SETTIGNS { grid-area: 1 / 3 / 2 / 4; }
.MAIN { grid-area: 2 / 1 / 3 / 4; padding: 20px 40px; }
.LINKS { grid-area: 3 / 1 / 4 / 2; }
.SUSCRIBE { grid-area: 3 / 2 / 4 / 3; }
.SOCIAL { grid-area: 3 / 3 / 4 / 4; }

/* LOGO */
.LOGO {
  display: flex;
  align-items: center;
  padding: 15px 25px;
  gap: 14px;
}

.LOGO img {
  max-width: 80px;
  height: auto;
  filter: drop-shadow(0 4px 10px var(--primary));
  transition: transform 0.3s ease;
  cursor: pointer;
}

.LOGO img:hover {
  transform: scale(1.08) rotate(2deg);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.portfolio-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.name {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.name::after {
  content: "Zakhar Oleksenko Shapoval";
}

.name:hover::after {
  content: "ZAKERII ⚡";
  color: var(--secondary);
}

/* NAVEGACION */
.ICONS {
  display: flex;
  justify-content: center;
  align-items: center;
}

.NAVEGACION ul {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.NAVEGACION a {
  display: inline-flex;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  color: var(--text);
  transition: all 0.3s ease;
}

.NAVEGACION svg {
  stroke: var(--primary);
  width: 36px;
  height: 36px;
  transition: stroke 0.3s ease, transform 0.3s ease;
}

.NAVEGACION a:hover {
  background: rgba(0, 240, 255, 0.1);
  transform: translateY(-2px);
}

.NAVEGACION a:hover svg {
  stroke: var(--secondary);
  transform: scale(1.15);
}

/* SETTINGS (Theme & Music & Lang) */
.SETTIGNS {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 25px;
  gap: 15px;
}

#lightmode-toggle {
  display: none;
}

.toggle {
  cursor: pointer;
  font-size: 20px;
  padding: 8px 12px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px var(--shadow);
  transition: all 0.3s ease;
  user-select: none;
}

.toggle:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

.toggle::after {
  content: '🌙 Dark';
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

#lightmode-toggle:checked + .toggle::after {
  content: '☀️ Light';
}

/* MAIN CONTENT */
.welcome-message {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro {
  font-size: 20px;
  text-align: center;
  margin-bottom: 25px;
  color: var(--text);
}

.word-animation {
  color: var(--primary);
  font-weight: 700;
}

.ULTIMOS {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-align: center;
  margin: 30px 0 15px;
}

/* ===== VISOR 3D SECTION STYLING ===== */
.visor3d-section {
  max-width: 1100px;
  margin: 40px auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow);
}

.visor3d-container {
  width: 100%;
  height: 520px;
  position: relative;
  background: #090a10;
}

.v3d-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
}

.v3d-topbar, .v3d-toolbar, .v3d-drawer {
  pointer-events: auto;
}

.v3d-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(13, 15, 23, 0.75);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.v3d-badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #00f0ff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.v3d-live-dot {
  width: 8px;
  height: 8px;
  background: #00f0ff;
  border-radius: 50%;
  box-shadow: 0 0 10px #00f0ff;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.v3d-stats {
  display: flex;
  gap: 15px;
  font-size: 11px;
  color: #94a3b8;
}

.v3d-toolbar {
  align-self: center;
  display: flex;
  gap: 8px;
  background: rgba(13, 15, 23, 0.85);
  backdrop-filter: blur(10px);
  padding: 6px 10px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.v3d-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.v3d-btn.active, .v3d-btn:hover {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 12px var(--primary);
}

.v3d-drawer {
  position: absolute;
  top: 60px;
  right: 15px;
  background: rgba(13, 15, 23, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 200px;
}

.v3d-setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #e2e8f0;
}

.v3d-setting-item select, .v3d-setting-item input[type="color"] {
  background: #1e2436;
  border: 1px solid #334155;
  color: #fff;
  border-radius: 6px;
  padding: 2px 6px;
  cursor: pointer;
}

.v3d-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.v3d-action-btn {
  flex: 1;
  background: #1e2436;
  border: 1px solid #334155;
  color: #fff;
  font-size: 10px;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.v3d-action-btn:hover {
  background: var(--primary);
  color: #000;
}

/* ===== CAROUSEL STYLING ===== */
.wrapper {
  max-width: 1100px;
  margin: 20px auto 40px;
  position: relative;
}

.slider {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.slides {
  display: flex;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.slide {
  width: 100%;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Carousel Arrow Controls */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13, 15, 23, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carousel-arrow:hover {
  background: var(--primary);
  color: #000;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 15px var(--primary);
}

.carousel-prev { left: 15px; }
.carousel-next { right: 15px; }

/* Carousel Badge Top Right */
.carousel-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(13, 15, 23, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

.carousel-play-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

/* Dots controller */
.slider-controler {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  background: rgba(13, 15, 23, 0.75);
  backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
  list-style: none;
}

.slider-controler a {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(15px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: -10px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.lightbox-close:hover {
  background: var(--danger);
  transform: scale(1.1);
}

.lightbox-caption {
  margin-top: 15px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

/* LINKS, SUBSCRIBE, SOCIAL */
.LINKS, .SUSCRIBE, .SOCIAL {
  padding: 25px;
  text-align: center;
}

.LINKS h4, .SUSCRIBE h4, .sigueme {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.LINKS ul, .SOCIAL ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.SOCIAL ul {
  flex-direction: row;
  justify-content: center;
  gap: 15px;
}

.LINKS a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.LINKS a:hover {
  color: var(--primary);
}

.SUSCRIBE form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.correo {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  width: 220px;
  font-size: 14px;
  outline: none;
}

.correo:focus {
  border-color: var(--primary);
}

.enviarboton {
  background: var(--primary);
  color: #000;
  font-weight: 700;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.enviarboton:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--primary);
}

.SOCIAL svg {
  stroke: var(--primary);
  width: 28px;
  height: 28px;
  transition: transform 0.3s, stroke 0.3s;
}

.SOCIAL a:hover svg {
  stroke: var(--secondary);
  transform: scale(1.2);
}

/* FOOTER */
.FOOTER {
  grid-column: 1 / -1;
  padding: 20px;
  text-align: center;
  border-top: 1px solid var(--border-muted);
  font-size: 13px;
  color: var(--text-muted);
}

.email a {
  color: var(--primary);
  text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .container {
    display: flex;
    flex-direction: column;
  }
  .MAIN {
    padding: 15px;
  }
  .visor3d-container {
    height: 400px;
  }
  .v3d-drawer {
    display: none; /* Hide side drawer on mobile for clean view */
  }
}
