/* ===============================
   1. CSS VARIABLES (DESIGN SYSTEM) 
================================ */
:root {
  --bg-dark: #0b0f1a;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);

  --accent-primary: #6ae3ff;
  --accent-secondary: #c77dff;

  --text-main: #f5f7fa;
  --text-muted: #a1a1aa;

  --blur-strong: blur(14px);
  --transition: all 0.3s ease;
}

/* ===============================
   2. GLOBAL RESET
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===============================
   3. LAYOUT UTILITIES
================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
/* ===============================
   COSMIC BACKGROUND SYSTEM
================================ */
.cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    circle at top,
    #11162a 0%,
    #0b0f1a 40%,
    #070a14 100%
  );
  overflow: hidden;
}

/* ===============================
   ABSTRACT COSMIC BACKGROUND
================================ */
.cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    circle at top left,
    #11162a,
    #0b0f1a 60%,
    #070a14
  );
  overflow: hidden;
}

/* Floating Blobs */
.blob {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  animation: float 28s infinite ease-in-out;
}

/* Individual blobs */
.blob-1 {
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, #6ae3ff, transparent 70%);
}

.blob-2 {
  bottom: -140px;
  right: -100px;
  background: radial-gradient(circle, #c77dff, transparent 70%);
  animation-delay: -10s;
}

.blob-3 {
  top: 40%;
  left: 60%;
  background: radial-gradient(circle, #4f8cff, transparent 70%);
  animation-delay: -18s;
}

/* Animation */
@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(60px, -40px) scale(1.1);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}


/* ===============================
   4. HEADER / NAVBAR
================================ */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
}

.navbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo a {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.logo span {
  color: var(--accent-primary);
}

/* Nav Links */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text-main);
}

/* Contact Button */
.btn-nav {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  color: #0b0f1a; /* DARK TEXT */
  font-weight: 500;
}

/* ===============================
   HERO SECTION
================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px; /* header offset */
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.hero h1 span {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 2rem;
}

/* Buttons */
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  color: #000;
}

.btn-secondary {
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

/* Hover */
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(106, 227, 255, 0.25);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}
/* ===============================
   SERVICES SECTION
================================ */
.services {
  padding: 6rem 0;
}

.section-header {
  max-width: 600px;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* Card */
.service-card {
  padding: 2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

/* Icon */
.service-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* Text */
.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Hover Motion */
.service-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}
/* ===============================
   PORTFOLIO SECTION
================================ */
.portfolio {
  padding: 6rem 0;
}

/* Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Card */
.portfolio-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

/* Media Block */
.portfolio-media {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  position: relative;
}

/* Image Placeholder */
.image-placeholder {
  background:
    linear-gradient(
      135deg,
      rgba(106, 227, 255, 0.15),
      rgba(199, 125, 255, 0.15)
    );
}

/* Video Placeholder */
.video-placeholder {
  background:
    linear-gradient(
      135deg,
      rgba(79, 140, 255, 0.2),
      rgba(199, 125, 255, 0.2)
    );
}

.video-placeholder::after {
  content: "▶";
  position: absolute;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Info */
.portfolio-info {
  padding: 1.5rem;
}

.portfolio-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.portfolio-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

/* Button */
.portfolio-btn {
  font-size: 0.85rem;
  color: var(--accent-primary);
  transition: var(--transition);
}

.portfolio-btn:hover {
  letter-spacing: 0.5px;
}

/* Hover */
.portfolio-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}
/* ===============================
   PHILOSOPHY SECTION
================================ */
.philosophy {
  padding: 7rem 0;
  text-align: center;
}

.philosophy-content {
  max-width: 820px;
}

/* Label */
.philosophy-label {
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Quote */
.philosophy h2 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1.8rem;
}

.philosophy h2 span {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subtext */
.philosophy-subtext {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}


/* ===============================
   CONTACT SECTION
================================ */
.contact {
  padding: 7rem 0;
}

.contact-content {
  max-width: 720px;
}

/* Form */
.contact-form {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* Inputs */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

/* Focus */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.08);
}

/* Button spacing */
.contact-form button {
  align-self: flex-start;
  margin-top: 1rem;
}
/* ===============================
   8. FOOTER SECTION


/* ===============================
   FOOTER
================================ */
.site-footer {
  padding-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

/* Brand */
.footer-brand h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.footer-brand span {
  color: var(--accent-primary);
}

.footer-brand p {
  max-width: 420px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Socials */
.footer-socials {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-socials a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-socials a:hover {
  color: var(--text-main);
}

/* Bottom */
.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Desktop layout */
@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* ===============================
   5. GLASS EFFECT ON SCROLL
================================ */
.site-header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-strong);
  border-bottom: 1px solid var(--glass-border);
}

/* ===============================
   6. HAMBURGER (MOBILE)
================================ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-main);
}

/* ===============================
   7. MOBILE STYLES
================================ */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 72px);
    background: rgba(11, 15, 26, 0.95);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    transition: var(--transition);
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }
}



/* ================= 3D MODEL SHOWCASE ================= */
.model-showcase {
  padding: 120px 0;
}

.model-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.model-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.model-text p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  line-height: 1.6;
}

.model-viewer-wrapper {
  background: rgba(255,255,255,0.03);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(20px);
}

/* Mobile */
@media (max-width: 900px) {
  .model-content {
    grid-template-columns: 1fr;
  }
}
