/* CSS Variables - Dark Theme */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #b4b4b4;
  --text-muted: #666666;
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-tertiary: #06b6d4;
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
  --border-color: #2a2a2a;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.4);
  --shadow-glow: 0 0 20px rgb(99 102 241 / 0.3);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Main Container */
.main-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
}

/* Background Elements */
.bg-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 200px;
  height: 200px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
  background: var(--gradient-accent);
}

.shape-3 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 70%;
  animation-delay: 4s;
}

.shape-4 {
  width: 300px;
  height: 300px;
  top: 10%;
  right: 20%;
  animation-delay: 1s;
  opacity: 0.05;
}

/* Content */
.content {
  max-width: 800px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 10;
  animation: fadeInUp 1s ease-out;
}

/* Brand Section */
.brand {
  margin-bottom: 3rem;
}

.brand-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.brand-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.brand-studio {
  color: var(--text-primary);
  font-weight: 300;
  display: inline-block;
  margin-left: 0.5rem;
}

.brand-tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Description */
.description {
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.desc-main {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 400;
  line-height: 1.6;
}

.desc-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-weight: 300;
  font-style: italic;
}

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-item:hover::before {
  transform: scaleX(1);
}

.service-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 0.75rem;
  color: white;
  font-size: 1.5rem;
}

.service-item span {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}

/* Contact */
.contact {
  margin-bottom: 3rem;
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.125rem;
  transition: color 0.3s ease;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  background: var(--bg-secondary);
}

.contact-link:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.contact-link i {
  font-size: 1.25rem;
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  font-size: 1.25rem;
}

.social-link:hover {
  color: var(--text-primary);
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* Footer */
.footer {
  margin-top: 2rem;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 300;
}

/* Decorative Elements */
.decorative-elements {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 5;
  opacity: 0.6;
}

.code-snippet {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.8rem;
  max-width: 250px;
  box-shadow: var(--shadow-md);
}

.code-line {
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.code-comment {
  color: #6a9955;
}

.code-keyword {
  color: #569cd6;
}

.code-variable {
  color: #9cdcfe;
}

.code-operator {
  color: #d4d4d4;
}

.code-function {
  color: #dcdcaa;
}

.code-bracket {
  color: #ffd700;
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(5deg);
  }
  66% {
    transform: translateY(10px) rotate(-3deg);
  }
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-container {
    padding: 1rem;
  }

  .content {
    max-width: 100%;
  }

  .brand-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .brand-tagline {
    font-size: 1rem;
  }

  .desc-main {
    font-size: 1.25rem;
  }

  .desc-sub {
    font-size: 1rem;
  }

  .services {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .service-item {
    padding: 1rem;
  }

  .decorative-elements {
    display: none;
  }

  .shape-1,
  .shape-4 {
    display: none;
  }
}

@media (max-width: 480px) {
  .services {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .social-links {
    flex-wrap: wrap;
  }

  .contact-link {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  .brand-studio {
    display: block;
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

/* Hover Effects for Desktop */
@media (hover: hover) {
  .floating-shape:hover {
    opacity: 0.2;
    transform: scale(1.1);
  }

  .content:hover .floating-shape {
    animation-play-state: paused;
  }
}

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

  .floating-shape {
    animation: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --border-color: #444444;
    --accent-primary: #7c3aed;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }

  .bg-elements,
  .decorative-elements,
  .floating-shape {
    display: none;
  }

  .main-container {
    min-height: auto;
    padding: 1rem;
  }
} 