/* BlueMap Studios - Premium Gaming Studio Website */
/* Inspired by Virtuos Games and modern gaming industry aesthetics */

/* Custom Properties */
:root {
  --primary-900: #0f172a;
  --primary-800: #1e293b;
  --primary-700: #334155;
  --primary-600: #475569;
  --primary-500: #64748b;
  --primary-400: #94a3b8;
  --primary-300: #cbd5e1;
  --primary-200: #e2e8f0;
  --primary-100: #f1f5f9;
  --primary-50: #f8fafc;
  
  --accent-600: #0284c7;
  --accent-500: #0ea5e9;
  --accent-400: #38bdf8;
  --accent-300: #7dd3fc;
  
  --success-500: #10b981;
  --warning-500: #f59e0b;
  --error-500: #ef4444;
  
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--primary-100);
  background: var(--gradient-dark);
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--primary-900);
  overflow-x: hidden;
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Container and layout */
.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.wrap::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 40% 80%, rgba(120, 119, 198, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Header styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0;
  backdrop-filter: blur(20px);
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -1px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.logo:hover::before {
  transform: translateX(100%);
}

.brand > div > div:first-child {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-100), var(--accent-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand .muted {
  font-size: 12px;
  color: var(--primary-400);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Navigation styles */
nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

nav a {
  color: var(--primary-300);
  text-decoration: none;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  font-size: 15px;
  letter-spacing: -0.2px;
  overflow: hidden;
}

nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

nav a:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

nav a:hover::before {
  opacity: 1;
}

nav a.active {
  color: white;
  background: var(--gradient-accent);
  box-shadow: var(--shadow-md);
}

/* Main content */
main {
  flex: 1;
  padding-bottom: 120px;
}

/* Sections */
.section {
  margin-bottom: 100px;
  position: relative;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 120px 0 140px;
  background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.1) 0%, transparent 70%),
              linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%);
  border-radius: 24px;
  margin: 60px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
  opacity: 0.3;
  pointer-events: none;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 32px;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-300) 50%, var(--accent-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
  letter-spacing: -2px;
}

.hero p {
  font-size: 1.375rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--primary-300);
  line-height: 1.6;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--primary-100);
}

h2 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 32px;
  background: linear-gradient(135deg, var(--primary-100) 0%, var(--accent-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

h3 {
  font-size: 1.75rem;
  color: var(--primary-200);
  margin-bottom: 16px;
  font-weight: 700;
}

p {
  margin-bottom: 20px;
  line-height: 1.7;
  color: var(--primary-300);
  font-weight: 400;
}

/* Utility classes */
.muted {
  color: var(--primary-400);
}

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  align-items: start;
}

/* Card styles */
.card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-xl);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: rgba(255, 255, 255, 0.2);
}

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

.card h3 {
  color: var(--primary-100);
  margin-bottom: 12px;
}

.card p {
  color: var(--primary-300);
  line-height: 1.6;
}

/* Product styles */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.prod {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 32px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.prod::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.prod:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(14, 165, 233, 0.3);
}

.prod:hover::before {
  opacity: 1;
}

.thumb {
  width: 72px;
  height: 72px;
  background: var(--gradient-accent);
  color: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.thumb::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.prod:hover .thumb::before {
  transform: translateX(100%);
}

.prod > div:last-child > div:first-child {
  font-weight: 700;
  font-size: 18px;
  color: var(--primary-100);
  margin-bottom: 8px;
}

.prod .muted {
  color: var(--primary-400);
  line-height: 1.6;
}

/* Form styles */
.contact-form {
  background: rgba(30, 41, 59, 0.5);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-xl);
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--primary-200);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: rgba(15, 23, 42, 0.8);
  color: var(--primary-100);
  backdrop-filter: blur(10px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--primary-400);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-400);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
  background: rgba(15, 23, 42, 0.9);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

/* Button styles */
.btn {
  background: var(--gradient-accent);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn:active {
  transform: translateY(0);
}

/* Links */
a {
  color: var(--accent-400);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

a:hover {
  color: var(--accent-300);
}

a:not(.btn):not(nav a)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width 0.3s ease;
}

a:not(.btn):not(nav a):hover::after {
  width: 100%;
}

/* Lists */
ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

li {
  margin-bottom: 12px;
  line-height: 1.7;
  color: var(--primary-300);
}

li strong {
  color: var(--primary-200);
}

/* Policy and meta styles */
.policy {
  max-width: 800px;
}

.policy h3 {
  margin-top: 48px;
  margin-bottom: 20px;
  color: var(--primary-100);
  font-size: 1.5rem;
}

.meta {
  background: rgba(14, 165, 233, 0.1);
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 14px;
  color: var(--accent-300);
  border-left: 4px solid var(--accent-400);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(14, 165, 233, 0.2);
}

/* Footer styles */
footer {
  background: rgba(15, 23, 42, 0.8);
  color: var(--primary-400);
  text-align: center;
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
  font-size: 14px;
  backdrop-filter: blur(20px);
}

/* Responsive design */
@media (max-width: 1024px) {
  .wrap {
    padding: 0 24px;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .wrap {
    padding: 0 20px;
  }
  
  header {
    flex-direction: column;
    gap: 32px;
    text-align: center;
    padding: 32px 0;
  }
  
  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  
  nav a {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .hero {
    padding: 80px 24px 100px;
    margin: 40px 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }
  
  .hero p {
    font-size: 1.25rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .prod {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .contact-form {
    padding: 32px;
  }
  
  .section {
    margin-bottom: 80px;
  }
  
  .logo {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }
  
  .brand {
    flex-direction: column;
    gap: 16px;
  }
  
  .brand > div > div:first-child {
    font-size: 16px;
  }
  
  .brand .muted {
    font-size: 11px;
  }
  
  nav {
    gap: 4px;
  }
  
  nav a {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .hero {
    padding: 60px 20px 80px;
  }
  
  .hero h1 {
    font-size: 2rem;
    letter-spacing: -0.5px;
  }
  
  .hero p {
    font-size: 1.125rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.375rem;
  }
  
  .section {
    margin-bottom: 60px;
  }
  
  .card {
    padding: 24px;
  }
  
  .prod {
    padding: 24px;
  }
  
  .thumb {
    width: 60px;
    height: 60px;
    font-size: 16px;
  }
  
  .contact-form {
    padding: 24px;
  }
  
  .btn {
    padding: 14px 24px;
    font-size: 15px;
  }
  
  .logo {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* Animation utilities */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.6);
  }
}

.hero,
.section {
  animation: fadeInUp 0.8s ease-out;
}

.card,
.prod {
  animation: fadeInUp 0.6s ease-out;
}

.logo:hover {
  animation: glow 2s ease-in-out;
}

/* Scroll animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  
  .section {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
  }
  
  .section:nth-child(1) { animation-delay: 0.1s; }
  .section:nth-child(2) { animation-delay: 0.2s; }
  .section:nth-child(3) { animation-delay: 0.3s; }
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid var(--accent-400);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-900: #000000;
    --primary-100: #ffffff;
    --accent-400: #0099ff;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .wrap {
    max-width: none;
    padding: 0;
  }
  
  header,
  nav,
  footer {
    display: none;
  }
  
  .hero {
    background: white !important;
    border: 1px solid black;
  }
}