img {
  max-width: 100%;
  height: auto;
  display: block;
}
:root {
  --bg: #0b0f14;
  --card: #11161d;
  --text: #e5e7eb;

  --accent1: #7c3aed;
  --accent2: #2563eb;

  --border: #1f2937;
}* 
{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
    animation: fadeIn 1s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* NAV */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px 50px;

  background: rgba(17, 22, 29, 0.6);
  backdrop-filter: blur(12px);

  position: sticky;
  top: 0;
  z-index: 100;
}

.logo span {
  background: linear-gradient(45deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

nav a:hover {
  background: linear-gradient(45deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* HERO */
.hero {
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  background: linear-gradient(45deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  padding: 10px 20px;
  border: 1px solid #222;
  color: white;
  text-decoration: none;
  transition: 0.3s;
  background: linear-gradient(45deg, var(--accent1), var(--accent2));
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(124, 58, 237, 0.4);
}

/* SECTIONS */
.section {
  padding: 80px 50px;
  border-bottom: 1px solid var(--border);
}

.section h2 {
  margin-bottom: 20px;
  background: linear-gradient(45deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* PROJECT */
.project-card,
.card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 20px;
  transition: 0.3s;
  border-radius: 10px;
}

.project-card:hover,
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.2);
}
.card,
.project-card {
  transition: all 0.3s ease;
}

.card:hover,
.project-card:hover {
  transform: translateY(-6px) scale(1.01);
}
/* SCROLL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(60px) scale(0.96);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);

  filter: blur(6px);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(124,58,237,0.15), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
}


.project-card {
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(124,58,237,0.15),
    transparent
  );

  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.project-card:hover::after {
  transform: translateX(100%);
}

.links-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
}

/* Primary button */
.btn.primary {
  background: linear-gradient(45deg, var(--accent1), var(--accent2));
  color: white;
  border: none;
}

/* Glass buttons */
.btn.glass {
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  color: var(--text);
}

.btn.glass:hover {
  background: rgba(124,58,237,0.15);
  box-shadow: 0 5px 20px rgba(124,58,237,0.2);
}
/* MOBILE FIRST IMPROVEMENTS */

@media (max-width: 768px) {
     .music-container {
    flex-direction: column;
    text-align: center;
  }
    .edu-card {
    flex-direction: column;
    text-align: center;
  }

  .edu-card {
    flex-direction: column;
    text-align: center;
  }

  nav {
    padding: 15px 20px;
  }

  nav ul {
    display: none; /* later we can add hamburger */
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero {
    padding: 0 20px;
  }

  .section {
    padding: 50px 20px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .links-container {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
  .youtube-section {
    grid-template-columns: 1fr;
  }
} 
.project-card img {
  width: 100%;
  height: 220px;              /* fixed height = consistent cards */
  object-fit: cover;          /* crop nicely */

  border-radius: 10px;
  margin-bottom: 15px;

  transition: transform 0.4s ease;
}
.project-card:hover img {
  transform: scale(1.05);
}
body.light {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #111827;

  --accent1: #6d28d9;
  --accent2: #2563eb;

  --border: #e5e7eb;
}

.nav-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;

  background: var(--card);
  border: 1px solid var(--border);

  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: var(--text) !important; /* force */
  -webkit-text-fill-color: var(--text); /* Safari fix */

  transition: all 0.25s ease;
}

.nav-btn:hover {
  background: rgba(124,58,237,0.15);
  border-color: var(--accent1);

  color: var(--text) !important;
  -webkit-text-fill-color: var(--text);

  box-shadow: 0 0 10px rgba(124,58,237,0.2);
}
/* TABLETS */
@media (max-width: 1024px) {

  .hero h1 {
    font-size: 2.5rem;
  }

  nav {
    padding: 15px 30px;
  }
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;

  background: rgba(17, 22, 29, 0.6);
  backdrop-filter: blur(10px);

  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-left {
  display: flex;
  align-items: center;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* MOBILE */
@media (max-width: 768px) {
     .flstudio-info {
    flex-direction: column;
    text-align: center;
  }
    .music-player {
    flex-direction: column;
    text-align: center;
  }

  .fl-logo {
    margin-bottom: 10px;
  }
    .project-media {
    grid-template-columns: 1fr;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .nav-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

   .nav-btn {
    font-size: 13px;
    padding: 6px 10px;
  }
 .theme-switch {
    margin-top: 10px;
    align-self: flex-end;
  }
  .hero {
    padding: 0 20px;
     margin-top: 40px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 50px 20px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  

  .links-container {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
  .project-card img {
    height: 180px;
  }
  .youtube-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .youtube-image img {
    width: 100%;
  }
  .yt-video {
    max-height: 200px;
  }

}

/* SMALL DEVICES */
@media (max-width: 480px) {

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.9rem;
  }
}
.project-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;

  background: linear-gradient(45deg, var(--accent1), var(--accent2));
  color: white;
  text-decoration: none;

  transition: 0.3s;
}

.project-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124,58,237,0.3);
}
.theme-switch {
  position: relative;
  width: 50px;
  height: 25px;
}

.theme-switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  background: #222;
  border-radius: 25px;
  width: 100%;
  height: 100%;
  transition: 0.4s;
}

.slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 4px;
  top: 3.5px;
  background: white;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked + .slider {
  background: linear-gradient(45deg, var(--accent1), var(--accent2));
}

input:checked + .slider::before {
  transform: translateX(24px);
}
.theme-transition {
  position: fixed;
  inset: 0;
  background: var(--bg);

  transform: translateY(-100%);
  opacity: 0;

  transition:
    transform 0.7s cubic-bezier(0.77, 0, 0.175, 1),
    opacity 0.4s ease;

  z-index: 9999;
  pointer-events: none;
}

body.light .theme-transition {
  opacity: 1;
}
.youtube-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
  margin-top: 20px;
}

/* IMAGE */
.youtube-image img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* TEXT */
.youtube-info h3 {
  margin-bottom: 10px;
}

.yt-desc {
  margin-bottom: 15px;
  opacity: 0.85;
  line-height: 1.6;
}

/* TAGS */
.yt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.yt-tags span {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--border);
}

/* STATS */
.yt-stats {
  margin-top: 15px;
}

.sub-label {
  font-size: 12px;
  opacity: 0.7;
  margin-left: 5px;
}

.sub-note {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 4px;
}
.sub-counter {
  font-size: 14px;
  opacity: 0.85;
  margin-top: 8px;
}
.music-box {
  padding: 20px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.03);
}
.btn:active,
.nav-btn:active,
.project-btn:active {
  transform: scale(0.96);
}
/* BACKGROUND GLOW */
body {
  background: radial-gradient(
    circle at top,
    rgba(124,58,237,0.08),
    transparent 60%
  ),
  var(--bg);
}
.scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(45deg, var(--accent1), var(--accent2));
  width: 0%;
  z-index: 9999;
}
.footer {
  text-align: center;
  padding: 20px;
  opacity: 0.6;
  font-size: 14px;
}
.project-group {
  margin-top: 40px;
  margin-bottom: 10px;
  font-size: 18px;
  opacity: 0.8;
}
.featured {
  border: 1px solid var(--accent1);
  box-shadow: 0 0 20px rgba(124,58,237,0.2);
  text-align: center;
}
.featured .nav-btn {
  margin-top: 10px;
  display: inline-block;
}
.featured h3 {
  background: linear-gradient(45deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.badge {
  display: inline-block;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;

  background: rgba(124,58,237,0.15);
  border: 1px solid var(--accent1);
}   


.project-page {
  max-width: 800px;
  margin: auto;
  padding: 20px;
}

.yt-video {
  width: 100%;
  max-height: 300px;
  object-fit: cover;

  border-radius: 12px;
  border: 1px solid var(--border);
}
.project-media video {
  width: 100%;
  max-height: 350px;
  object-fit: cover;

  border-radius: 12px;
  margin: 20px 0;
}
.project-placeholder {
  font-size: 40px;
  margin-bottom: 15px;
}
.project-image {
  width: 100%;
  height: 220px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
}
.project-image img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  box-shadow: inset 0 0 20px rgba(124,58,237,0.1);
}
.edu-card {
  display: flex;
  align-items: center;
  gap: 20px;

  padding: 20px;
  border-radius: 12px;

  background: var(--card);
  border: 1px solid var(--border);
}

/* LOGO */
.edu-logo img {
  width: 512px;
  height: 128px;
  object-fit: contain;
}

/* TEXT */
.edu-info h3 {
  margin-bottom: 5px;
}
.edu-card:hover {
  transform: translateY(-4px);
  transition: 0.7s ease;
}
.project-media video {
  width: 100%;
  max-height: 350px;
  object-fit: cover;

  border-radius: 12px;
  margin: 20px 0;
}
.project-media img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  margin-bottom: 15px;
}

.project-media video {
  width: 100%;
  max-height: 350px;
  object-fit: cover;

  border-radius: 12px;
}
.project-media video {
  box-shadow: 0 0 30px rgba(124,58,237,0.2);
}
.project-media {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 20px;
  align-items: center;
}

.media-image img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.media-video video {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 12px;
}
.highlights {
  list-style: none;
  padding: 0;
}

.highlights li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.highlights li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent1);
}
.project-media video:hover {
  transform: scale(1.02);
  transition: 0.4s ease;
}
.music-container {
  max-width: 750px;
  margin: auto;
  text-align: center;
}

/* SPOTIFY CARD */
.music-card {
  margin: 20px 0;
  padding: 15px;

  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* FL STUDIO BLOCK */
.flstudio-info {
  display: flex;
  align-items: center;
  gap: 15px;

  margin-top: 20px;
  text-align: left;
}

/* LOGO */
.flstudio-info img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.music-player:hover {
  box-shadow: 0 0 20px rgba(124,58,237,0.15);
  transition: 0.3s ease;
}
.music-player iframe {
  width: 100%;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}
.cta-section {
  text-align: center;
}

.cta-section p {
  margin-bottom: 20px;
}

.cta-action {
  display: flex;
  justify-content: center;
}
.cta-action .btn {
  padding: 12px 20px;
  font-size: 15px;
}