/**
 * abcray Base Styles & Global Utilities
 */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(45, 146, 182, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(61, 178, 219, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 65%, rgba(31, 111, 139, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 20% 90%, rgba(45, 146, 182, 0.15) 0%, transparent 50%);
  background-attachment: fixed;
}

body.modal-open,
body.drawer-open {
  overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

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

a {
  color: var(--brand-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

/* Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-cyan);
  background: rgba(45, 146, 182, 0.12);
  border: 1px solid rgba(45, 146, 182, 0.32);
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.section-title {
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Common Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow: 0 4px 18px rgba(45, 146, 182, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-primary-light) 0%, var(--brand-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 146, 182, 0.50);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(12, 30, 42, 0.75);
  color: var(--text-main);
  border: 1px solid rgba(45, 146, 182, 0.35);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(45, 146, 182, 0.16);
  border-color: var(--brand-primary-light);
  transform: translateY(-2px);
  color: #ffffff;
}

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

.btn-outline-cyan:hover {
  background: rgba(45, 146, 182, 0.15);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.05rem 2.25rem;
  font-size: 1.05rem;
}

/* Glass Card Baseline */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(45, 146, 182, 0.45), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.glass-card:hover::before {
  opacity: 1;
}

/* Icons */
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 22px; height: 22px; }
.icon-lg { width: 32px; height: 32px; }
