@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

:root {
  --primary-color: #FFD700;
  --text-color: #d1d5db;
  --heading-color: #ffffff;
  --bg-color: #0a0a0a;
  --secondary-bg-color: transparent;
  --accent-color: #FFD700;
  --accent-hover: #e6c200;
  --font-family: 'Nunito', sans-serif;
  --max-width: 1280px;
  --section-padding: 6rem 2rem;
  --border-radius: 20px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.8), 0 4px 6px -4px rgba(0, 0, 0, 0.8);
  --glass-bg: rgba(20, 20, 20, 0.8);
  --glass-border: rgba(255, 215, 0, 0.15);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  /* Replaced heavy fixed radial gradient with a lightweight static background */
  background-image: linear-gradient(to bottom right, #0a0a0a, #1a1a1a);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
  /* Hide default cursor for custom cursor */
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 215, 0, 0.5);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
  will-change: transform;
}

/* Hover state for cursor */
.cursor-outline.hovering {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.2);
}

@media (max-width: 768px) {
  body {
    cursor: auto;
    /* Reset on mobile */
  }

  .cursor-dot,
  .cursor-outline {
    display: none;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  line-height: 1.2;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Glassmorphic Navbar */
header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1100px;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 2rem;
  position: relative;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1001;
}

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

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-color);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

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

.btn {
  display: inline-block;
  padding: 0.6rem 1.75rem;
  background-color: var(--primary-color);
  color: #000;
  border-radius: 40px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-color);
  z-index: 1001;
  padding: 0.5rem;
}

.mobile-menu-btn svg {
  transition: var(--transition);
}

.mobile-menu-btn.active svg {
  transform: rotate(90deg);
}

.mobile-nav-btn {
  display: none;
}

/* Glass Box Utility */
.glass-box {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 3.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  /* Lighter shadow for performance */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  will-change: transform, opacity;
}

.glass-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(31, 38, 135, 0.08);
  /* Optimized hover shadow */
}

.glass-box-dark {
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 4rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  /* Lighter shadow */
  color: white;
  transition: transform 0.3s ease;
  will-change: transform, opacity;
}

.glass-box-dark:hover {
  transform: translateY(-5px);
}

.glass-box-dark h1,
.glass-box-dark h2,
.glass-box-dark h3,
.glass-box-dark h4,
.glass-box-dark h5,
.glass-box-dark h6 {
  color: white;
}

.glass-box-dark p,
.page-header .glass-box-dark p {
  color: #e2e8f0;
}

.logo-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 180px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.logo-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: var(--accent-color);
}

.logo-card svg {
  width: 100%;
  height: 100%;
  max-width: 100px;
  max-height: 50px;
  object-fit: contain;
}

/* Sections */
section {
  padding: var(--section-padding);
}

section.container {
  padding: var(--section-padding);
}

.section-title {
  font-size: 2.75rem;
  text-align: center;
  margin-bottom: 3.5rem;
  letter-spacing: -0.01em;
}

.section-subtitle {
  text-align: center;
  color: var(--accent-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
  display: block;
  font-size: 0.85rem;
}

/* Hero Section */
.hero {
  padding: 14rem 2rem 8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.page-header {
  padding: 14rem 2rem 6rem;
  text-align: center;
}

.hero h1,
.page-header h1 {
  font-size: 5rem;
  max-width: 1000px;
  margin: 0 auto 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero p,
.page-header p {
  font-size: 1.35rem;
  max-width: 750px;
  margin: 0 auto 3rem;
  color: var(--text-color);
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.hero-img-container {
  margin-top: 5rem;
  border-radius: var(--border-radius);
  padding: 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  max-width: 1100px;
  width: 100%;
}

.hero-img-container img {
  border-radius: calc(var(--border-radius) - 0.5rem);
  width: 100%;
}

/* Image Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

/* Generic Layouts */
.split-layout {
  display: flex;
  align-items: stretch;
  gap: 4rem;
}

.split-layout>div {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-layout.reverse {
  flex-direction: row-reverse;
}

.image-wrapper {
  padding: 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  /* Optimized */
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
}

.image-wrapper img {
  border-radius: calc(var(--border-radius) - 0.5rem);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  background: rgba(30, 30, 30, 0.8);
  color: white;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(40, 40, 40, 0.95);
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.15);
}

/* Footer */
footer {
  background-color: var(--bg-color);
  color: white;
  padding: 6rem 2rem 3rem;
  margin-top: 5rem;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  border-top: 1px solid var(--glass-border);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-col p {
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 1rem;
}

.footer-col ul a {
  color: #94a3b8;
}

.footer-col ul a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  color: #64748b;
  font-size: 0.875rem;
}

/* --- ANIMATIONS --- */
.animate-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.animate-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {

  .hero h1,
  .page-header h1 {
    font-size: 3.5rem;
  }

  .hero p,
  .page-header p {
    font-size: 1.15rem;
  }

  .split-layout,
  .split-layout.reverse {
    flex-direction: column;
    gap: 3rem;
  }

  .glass-box,
  .glass-box-dark {
    padding: 2.5rem;
  }

  section,
  section.container {
    padding: 4rem 1.5rem;
  }

  .hero {
    padding: 10rem 1.5rem 4rem;
  }
}

@media (max-width: 768px) {

  h2.section-title,
  .split-layout h2 {
    font-size: 2rem;
  }

  header {
    width: 90%;
    top: 1rem;
    border-radius: 30px;
  }

  .nav-container {
    height: 60px;
    padding: 0 1.5rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-links.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .nav-container>.btn {
    display: none;
  }

  .mobile-nav-btn {
    display: inline-block;
    width: 100%;
  }

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

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .hero-buttons .btn {
    width: 100%;
  }
}