/* ========================================
   BubbleGuess Company Website - Styles
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
  --bg: #1A1A2E;
  --surface: #16213E;
  --primary: #00B894;
  --secondary: #6C5CE7;
  --text: #E8E8E8;
  --text-muted: #A0A0A0;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --max-width: 1100px;
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn--primary {
  background: var(--primary);
  color: var(--bg);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 184, 148, 0.3);
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* --- Section Titles --- */
.section__title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  text-align: center;
  margin-bottom: 12px;
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 48px;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav__logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__logo-bubble {
  color: var(--primary);
  font-size: 1.2em;
}

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--primary);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   Hero
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero__content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero__title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}

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

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* Floating Bubbles */
.hero__bubbles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  animation: float linear infinite;
}

.hero__bubble--1 {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: 10%;
  left: -5%;
  animation-duration: 18s;
}

.hero__bubble--2 {
  width: 200px;
  height: 200px;
  background: var(--secondary);
  top: 60%;
  right: -3%;
  animation-duration: 22s;
  animation-delay: -5s;
}

.hero__bubble--3 {
  width: 120px;
  height: 120px;
  background: var(--primary);
  bottom: 15%;
  left: 20%;
  animation-duration: 15s;
  animation-delay: -3s;
}

.hero__bubble--4 {
  width: 180px;
  height: 180px;
  background: var(--secondary);
  top: 20%;
  right: 15%;
  animation-duration: 20s;
  animation-delay: -8s;
}

.hero__bubble--5 {
  width: 80px;
  height: 80px;
  background: var(--primary);
  top: 45%;
  left: 10%;
  animation-duration: 12s;
  animation-delay: -2s;
}

.hero__bubble--6 {
  width: 140px;
  height: 140px;
  background: var(--secondary);
  bottom: 25%;
  right: 25%;
  animation-duration: 16s;
  animation-delay: -6s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  25% {
    transform: translateY(-30px) scale(1.05);
  }
  50% {
    transform: translateY(10px) scale(0.95);
  }
  75% {
    transform: translateY(-20px) scale(1.02);
  }
}

/* ========================================
   Projects
   ======================================== */
.projects {
  padding: 100px 0;
  background: var(--surface);
}

.projects__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.project-card {
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.project-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.project-card__icon--game {
  background: rgba(0, 184, 148, 0.1);
}

.project-card__icon--yt {
  background: rgba(108, 92, 231, 0.1);
}

.project-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.project-card__description {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.project-card__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
}

.feature__icon {
  color: var(--primary);
  font-size: 0.7rem;
  margin-top: 4px;
  flex-shrink: 0;
}

.project-card__socials {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: var(--bg);
}

.social-link--lg {
  width: 44px;
  height: 44px;
}

/* ========================================
   About
   ======================================== */
.about {
  padding: 100px 0;
}

.about__content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about__content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about__content p:last-child {
  margin-bottom: 0;
}

.about__content strong {
  color: var(--primary);
}

/* ========================================
   Contact
   ======================================== */
.contact {
  padding: 100px 0;
  background: var(--surface);
}

.contact__content {
  text-align: center;
}

.contact__email {
  font-size: 1.2rem;
  margin-bottom: 32px;
}

.contact__email a {
  color: var(--primary);
  transition: opacity var(--transition);
}

.contact__email a:hover {
  opacity: 0.8;
}

.contact__info {
  margin-top: 0;
}

.contact__info p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.contact__socials {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__brand {
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* ========================================
   Fade-in Animation
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */

/* Tablet */
@media (max-width: 768px) {
  .hero__title {
    font-size: 2.5rem;
  }

  .hero__subtitle {
    font-size: 1.1rem;
  }

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

  .section__title {
    font-size: 1.8rem;
  }

  /* Mobile nav */
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 24px;
    transition: right var(--transition);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
  }

  .nav__links.open {
    right: 0;
  }

  .nav__link {
    font-size: 1.1rem;
  }

  .nav__hamburger {
    display: flex;
  }

  .footer__inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .project-card {
    padding: 28px 20px;
  }

  .container {
    padding: 0 16px;
  }

  .projects,
  .about,
  .contact {
    padding: 64px 0;
  }
}

/* Large screens */
@media (min-width: 1200px) {
  .hero__title {
    font-size: 4rem;
  }
}
