:root {
  --bg-color: #F6F8FC;
  --primary-color: #000000;
  --accent-color: #6C63FF;
  --text-color: #1A1A1A;
  --card-bg: #FFFFFF;
  --soft-shadow: rgba(0, 0, 0, 0.08);
  --glow-color: rgba(108, 99, 255, 0.12);
  --font-main: 'Inter', 'Helvetica Neue', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Three.js Canvas */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Section Containers */
section {
  position: relative;
  min-height: 100vh;
  padding: 100px 5%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  line-height: 1.2;
  font-weight: 700;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--accent-color);
}

/* Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-color);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

.loader-text {
  font-family: var(--font-serif);
  font-size: 2rem;
  letter-spacing: 2px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

/* Utilities */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid var(--primary-color);
  text-transform: none;
  font-size: 1rem;
}

.btn:hover {
  background: transparent;
  color: var(--primary-color);
  box-shadow: 0 4px 15px var(--soft-shadow);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-accent {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

.btn-accent:hover {
  background: transparent;
  color: var(--accent-color);
  box-shadow: 0 4px 15px var(--glow-color);
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Form Styles */
input,
textarea,
select {
  font-family: var(--font-main);
  color: var(--text-color);
}

input::placeholder,
textarea::placeholder {
  color: #999;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(50px);
}

.reveal.reveal-up {
  opacity: 0;
  transform: translateY(50px);
}

.reveal.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* Spacing Utilities */
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.mt-60 { margin-top: 60px; }
.mb-60 { margin-bottom: 60px; }

.pt-20 { padding-top: 20px; }
.pb-20 { padding-bottom: 20px; }
.pt-40 { padding-top: 40px; }
.pb-40 { padding-bottom: 40px; }

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Display Utils */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  section {
    padding: 60px 5%;
    min-height: auto;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .section-title::after {
    bottom: -8px;
    width: 40px;
  }
  
  .hero-title {
    font-size: 2rem !important;
  }
  
  .container {
    width: 100%;
    padding: 0 5%;
  }

  .btn {
    padding: 10px 24px;
    font-size: 0.95rem;
  }

  h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
  }
}

@media (max-width: 768px) {
  section {
    padding: 80px 5%;
  }

  .section-title {
    font-size: 2.5rem;
  }
}