/* RAIN DESIGN #053 - ACN Agency */
/* ========================================= */

:root {
  --dark-slate: #1a1a2e;
  --silver: #c0c0c0;
  --cool-blue: #a0c4ff;
  --white: #ffffff;
  --glass-bg: rgba(26, 26, 46, 0.85);
  --glass-border: rgba(160, 196, 255, 0.2);
}

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Syne:wght@400;500;600;700;800&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark-slate);
  color: var(--silver);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
}

/* RAIN CANVAS */
#rain-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* MIST/FOG OVERLAY */
.mist-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(160, 196, 255, 0.08) 0%, transparent 70%),
              radial-gradient(ellipse at 20% 80%, rgba(160, 196, 255, 0.05) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 60%, rgba(160, 196, 255, 0.05) 0%, transparent 50%);
  animation: mistDrift 20s ease-in-out infinite;
}

@keyframes mistDrift {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.9; }
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(26, 26, 46, 0.95), transparent);
  backdrop-filter: blur(10px);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--cool-blue);
}

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

.nav-links a {
  color: var(--silver);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cool-blue);
  transition: width 0.3s ease;
}

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

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

.nav-links a.active {
  color: var(--cool-blue);
}

/* MOBILE NAV */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}

/* MAIN CONTENT */
.main-content {
  position: relative;
  z-index: 10;
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--cool-blue);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--cool-blue);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--white) 0%, var(--cool-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--silver);
  max-width: 600px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

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

.btn-primary {
  padding: 1rem 2rem;
  background: var(--cool-blue);
  color: var(--dark-slate);
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(160, 196, 255, 0.3);
}

.btn-secondary {
  padding: 1rem 2rem;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--glass-bg);
  border-color: var(--cool-blue);
}

/* SECTIONS */
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--silver);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

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

.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--cool-blue);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--cool-blue), rgba(160, 196, 255, 0.3));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--silver);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* GALLERY GRID */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-item:hover {
  border-color: var(--cool-blue);
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.gallery-item:hover img {
  opacity: 1;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(26, 26, 46, 0.95), transparent);
}

.gallery-overlay h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.gallery-overlay span {
  font-size: 0.85rem;
  color: var(--cool-blue);
}

/* CONTACT FORM */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  color: var(--silver);
}

.contact-item .icon {
  width: 40px;
  height: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cool-blue);
}

.contact-form {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(20px);
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(26, 26, 46, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cool-blue);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* FOOTER */
.footer {
  position: relative;
  z-index: 10;
  padding: 3rem 2rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--silver);
  font-size: 0.9rem;
}

.footer a {
  color: var(--cool-blue);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* STATS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.stat-number {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--cool-blue);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--silver);
  margin-top: 0.5rem;
}

/* DOCS */
.docs-sidebar {
  position: fixed;
  left: 0;
  top: 80px;
  width: 260px;
  height: calc(100vh - 80px);
  padding: 2rem 1.5rem;
  background: var(--glass-bg);
  border-right: 1px solid var(--glass-border);
  overflow-y: auto;
  z-index: 100;
}

.docs-nav {
  list-style: none;
}

.docs-nav li {
  margin-bottom: 0.5rem;
}

.docs-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--silver);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.docs-nav a:hover {
  background: rgba(160, 196, 255, 0.1);
  color: var(--white);
}

.docs-nav a.active {
  background: rgba(160, 196, 255, 0.15);
  color: var(--cool-blue);
}

.docs-content {
  margin-left: 280px;
  padding: 2rem 4rem;
  max-width: 800px;
}

.docs-content h2 {
  font-size: 2rem;
  margin: 2rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

.docs-content h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--cool-blue);
}

.docs-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.docs-content code {
  background: rgba(160, 196, 255, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--cool-blue);
}

.docs-content pre {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.docs-content pre code {
  background: none;
  padding: 0;
}

/* WET REFLECTION EFFECT */
.wet-reflection {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, rgba(26, 26, 46, 0.9), transparent);
  z-index: 5;
  pointer-events: none;
}

/* SCROLL INDICATOR */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--silver);
  font-size: 0.8rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

.scroll-indicator .arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--silver);
  border-bottom: 2px solid var(--silver);
  transform: rotate(45deg);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark-slate);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    display: none;
  }

  .docs-content {
    margin-left: 0;
    padding: 2rem;
  }

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

/* RIPPLE EFFECT */
.ripple {
  position: absolute;
  border: 1px solid rgba(160, 196, 255, 0.4);
  border-radius: 50%;
  animation: rippleAnim 1.5s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleAnim {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 100px;
    height: 100px;
    opacity: 0;
    margin: -50px;
  }
}

/* SPLASH EFFECT */
.splash {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--cool-blue);
  border-radius: 50%;
  animation: splashAnim 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes splashAnim {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(20);
    opacity: 0;
  }
}
