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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #0a0a0a;
  color: #f0f0f0;
  line-height: 1.6;
}

/* Header */
header {
  background-color: #111;
  padding: 1rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #222;
}

.logo {
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: bold;
  letter-spacing: 2px;
  color: #9f5cff;
}
.logo img{
    height: 180px;
    width: auto;
    position: absolute;
    top: -57px;
    left: 4px;
}
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.5rem;
}

nav a {
  text-decoration: none;
  color: #ccc;
  transition: color 0.3s;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

nav a:hover,
nav a.active {
  color: #9f5cff;
}

/* Regular */
@font-face {
  font-family: 'SpaceMono';
  src: url('fonts/SpaceMono-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

/* Italic */
@font-face {
  font-family: 'SpaceMono';
  src: url('fonts/SpaceMono-Italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
}

/* Bold */
@font-face {
  font-family: 'SpaceMono';
  src: url('fonts/SpaceMono-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

/* Bold Italic */
@font-face {
  font-family: 'SpaceMono';
  src: url('fonts/SpaceMono-BoldItalic.woff') format('woff');
  font-weight: 700;
  font-style: italic;
}

@keyframes textShine {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

#spiral-galaxy {
  position: relative;
  width: 100%;
  height: 100%;
  filter: blur(16px);
  
}

#spiral-galaxy canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400dvw;    /* Stretch canvas visually */
    height: auto;
    overflow: hidden;
    display: block;
}



/* Hero */
.hero {
  text-align: center;
  height: 60vh;
  padding: clamp(3rem, 10vw, 6rem) 2rem;
  display: block;
    overflow: hidden;
  /* background-color: orange; */
font-family: 'SpaceMono', monospace;
}

.socials {
    display: block;
    position: absolute;
    top: 560px;
    left: 50%;
    transform: translateX(-50%);
    /* background-color: purple; */
    font-size: 40px;
}

.socials a {
    text-decoration: none;
}


.title-container {
  position: absolute;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  /* background-color: red; */
  width: 50dvw;
  height: 50dvh;

  /* display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center; */
}

.title-container h1 {
  font-size: 10vw; /* fills container width */
  max-width: 100%;
  white-space: nowrap;
  /* overflow: hidden; */
  text-overflow: ellipsis;
  color: #e6e8e5;
  margin: 0;
  line-height: 1;
}

.title-container h2 {
    font-size: 2.4vw; /* 40% of 10vw ~= 4vw */
    background: #C79FFE;
    background: linear-gradient(90deg, rgba(199, 159, 254, 1) 0%, rgba(197, 156, 255, 1) 29%, rgba(172, 117, 255, 1) 65%, rgba(191, 149, 254, 1) 100%);
    line-height: 1;
    text-align: right;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    background-size: 500% auto;
    animation: textShine 5s ease-in-out infinite alternate;
}

.hero h3 {
    font-size: 2dvh;
  margin-bottom: 1rem;
  position: absolute;
    line-height: 1;
  top: 500px;
  left: 50%;
  transform: translateX(-50%);
}

.hero p {
  color: #aaa;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 700px;
  margin: 0 auto;
}

/* Services */
.services {
  padding: 4rem 2rem;
  background-color: #0e0e0e;
  text-align: center;
}

.services h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  color: #fff;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  justify-content: center;
}

.card {
  background-color: #1a1a1a;
  padding: 2rem;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #222;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 10px rgba(159, 92, 255, 0.2);
}

.card h3 {
  color: #9f5cff;
  margin-bottom: 1rem;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  background-color: #111;
  font-size: 0.9rem;
  color: #777;
  border-top: 1px solid #222;
}

/* Gallery Section */
.gallery-section {
  padding: 4rem 2rem;
  background-color: #0a0a0a;
  text-align: center;
}

.gallery-section h1 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-bottom: 1rem;
  color: #fff;
}

.gallery-section p {
  margin-bottom: 2rem;
  color: #aaa;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem;
}

.gallery-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 2px solid #1a1a1a;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.gallery-image:hover {
  transform: scale(1.03);
  box-shadow: 0 0 12px rgba(159, 92, 255, 0.3);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.95);
  text-align: center;
  backdrop-filter: blur(5px);
}

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  margin-top: 1rem;
  object-fit: contain;
}

.caption {
  margin-top: 1rem;
  color: #ccc;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #aaa;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close:hover {
  color: #fff;
}

/* Media Queries */
@media (max-width: 768px) {
  nav ul {
    justify-content: center;
    width: 100%;
    padding-top: 1rem;
  }

  .hero,
  .services,
  .gallery-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .gallery {
    padding: 0;
  }

  .title-container {
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    width: 100dvw;
    height: 50dvh;
    /* background-color: red; */
  }

  .title-container h1 {
    font-size: 20vw; /* fills container width */
  }

.title-container h2 {
    font-size: 4.8vw; /* 40% of 10vw ~= 4vw */
   }

.hero h3 {
  top: 320px;
}


.socials {
    top: 450px;
}
}

/* Common mobile tweaks */
@media (max-width: 768px) {
  .desktop-only { display: none; }
  #mobile-menu-button { display: block; }

  #mobile-menu {
    position: absolute;
    top: 70px;
    width: 100%;
    background: var(--navbar-bg);
    backdrop-filter: var(--glass-blur);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  #mobile-menu.open { max-height: 300px; }

  .mobile-nav-link {
    display: block;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    color: #f0f0f0;
    text-decoration: none;
  }

  .mobile-nav-link.active {
    color: var(--secondary);
    font-weight: 600;
  }

  #mobile-menu-button {
    display: block;
  }
}


@media (max-width: 480px) {
  .logo {
    font-size: 1.5rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .card {
    padding: 1.5rem;
  }

  .lightbox-content {
    max-width: 95%;
    max-height: 70vh;
  }
}

:root {
  --primary: #a563f1;
  --secondary: #C59CFF;
  --accent: #a855f7;
  --navbar-bg: rgba(24, 24, 24, 0.708);
  --glass-blur: blur(12px);
  --border-glow: rgba(137, 137, 137, 0.3);
}

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--navbar-bg);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 70px;
  z-index: 1000;
  transition: background 0.3s ease;
}

#navbar.scrolled {
  background: rgba(30, 30, 30, 0.906);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo {
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: bold;
  color: var(--accent);
}

.nav-link, .mobile-nav-link {
  position: relative;
  margin: 0 1rem;
  color: #f0f0f0;
  font-size: 1rem;
  text-decoration: none;
  overflow: hidden;
  transition: color 0.3s;
}

.nav-link::after, .mobile-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--secondary), var(--primary));
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 80%;
}

.nav-link:hover {
  color: var(--secondary);
  text-shadow: 0 0 8px var(--secondary);
}

/* Mobile Menu Button */
#mobile-menu-button {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  width: 30px;
  height: 24px;
}

#mobile-menu-button span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #f0f0f0;
  transition: 0.3s ease;
}

#line1 { top: 0; }
#line2 { top: 10px; }
#line3 { top: 20px; }

#mobile-menu-button.active #line1 { transform: rotate(45deg) translate(5px, 5px); }
#mobile-menu-button.active #line2 { opacity: 0; }
#mobile-menu-button.active #line3 { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu hidden by default */
#mobile-menu {
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--navbar-bg);
  backdrop-filter: var(--glass-blur);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

#mobile-menu.open { max-height: 300px; } 

/* Responsive display */
@media (max-width: 768px) {
  .desktop-only { display: none; }
  #mobile-menu-button { display: block; }
}

