/* AI NextStep Portfolio - Enhanced Dala-inspired Design */

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

:root {
  --black: #000000;
  --white: #ffffff;
  --gray-secondary: #a0a0a0;
  --gray-border: #2a2a2a;
  --violet: #8052ff;
  --violet-hover: #9468ff;
  --amber: #ffb829;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(3rem, 10vw, 6.5rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 500;
}

p {
  font-size: 1.125rem;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--violet);
}

a:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin: 4rem 0;
}

@media (max-width: 768px) {
  .two-column {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Header & Navigation */
header {
  border-bottom: 1px solid var(--gray-border);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--violet), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  font-size: 0.9375rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--violet);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--gray-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.lang-btn:hover {
  color: var(--white);
}

.lang-btn.active {
  color: var(--violet);
  text-shadow: 0 0 20px rgba(128, 82, 255, 0.6);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
}

.lang-divider {
  color: var(--gray-border);
  user-select: none;
}

.mobile-menu-toggle:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    padding: 5rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    border-left: 1px solid var(--gray-border);
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 8rem 0 6rem;
  background: linear-gradient(180deg, #000000 0%, #0a0014 50%, #000000 100%);
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin-bottom: 2rem;
  text-shadow: 0 4px 30px rgba(128, 82, 255, 0.3);
}

.hero p {
  color: var(--gray-secondary);
  margin-bottom: 3rem;
  max-width: 650px;
  font-size: 1.25rem;
}

.constellation-graphic {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 450px;
  height: 350px;
  opacity: 0.5;
  pointer-events: none;
  filter: drop-shadow(0 0 40px rgba(128, 82, 255, 0.4));
}

@media (max-width: 1024px) {
  .constellation-graphic {
    opacity: 0.3;
    width: 350px;
    height: 260px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 75vh;
    padding: 6rem 0 4rem;
  }

  .constellation-graphic {
    width: 250px;
    height: 180px;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  border-radius: 2.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--violet);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(128, 82, 255, 0.4);
}

.btn-primary:hover {
  background-color: var(--violet-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(128, 82, 255, 0.6);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--gray-border);
}

.btn-secondary:hover {
  border-color: var(--violet);
  color: var(--violet);
  box-shadow: 0 4px 20px rgba(128, 82, 255, 0.3);
}

/* Sections */
section {
  padding: 6rem 0;
}

.section-title {
  margin-bottom: 4rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--violet), var(--amber));
  border-radius: 2px;
}

.section-subtitle {
  color: var(--gray-secondary);
  font-size: 1.125rem;
  margin-top: 1rem;
}

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin: 4rem 0;
}

.service-card {
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(128, 82, 255, 0.05), rgba(255, 184, 41, 0.02));
  border: 1px solid rgba(128, 82, 255, 0.2);
  border-radius: 20px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(128, 82, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  background: linear-gradient(135deg, rgba(128, 82, 255, 0.12), rgba(255, 184, 41, 0.05));
  border-color: rgba(128, 82, 255, 0.5);
  box-shadow: 0 12px 48px rgba(128, 82, 255, 0.3);
}

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

.service-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(128, 82, 255, 0.4));
}

.service-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.service-card p {
  color: var(--gray-secondary);
  font-size: 1rem;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.portfolio-item {
  border: 1px solid rgba(128, 82, 255, 0.2);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  background: rgba(128, 82, 255, 0.03);
}

.portfolio-item:hover {
  border-color: var(--violet);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(128, 82, 255, 0.3);
}

.portfolio-content {
  padding: 2rem;
}

.portfolio-category {
  font-size: 0.875rem;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.portfolio-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.portfolio-item p {
  color: var(--gray-secondary);
  font-size: 1rem;
}

/* Process Steps */
.process-steps {
  margin-top: 3rem;
}

.process-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--gray-border);
}

.process-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.step-number {
  font-size: 4rem;
  font-weight: 300;
  color: var(--violet);
  line-height: 1;
  min-width: 100px;
  text-shadow: 0 4px 20px rgba(128, 82, 255, 0.4);
}

.step-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.step-content p {
  color: var(--gray-secondary);
}

@media (max-width: 768px) {
  .process-step {
    flex-direction: column;
    gap: 1rem;
  }

  .step-number {
    font-size: 2.5rem;
  }
}

/* Contact Section */
.contact-methods {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.contact-method {
  flex: 1;
  min-width: 250px;
  padding: 2.5rem;
  border: 1px solid rgba(128, 82, 255, 0.2);
  border-radius: 16px;
  text-align: center;
  transition: all 0.4s ease;
  background: rgba(128, 82, 255, 0.03);
}

.contact-method:hover {
  border-color: var(--violet);
  background: rgba(128, 82, 255, 0.08);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(128, 82, 255, 0.3);
}

.contact-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--violet);
  filter: drop-shadow(0 4px 12px rgba(128, 82, 255, 0.4));
}

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

.contact-method a {
  color: var(--white);
  font-size: 1.125rem;
  transition: color 0.3s ease;
}

.contact-method a:hover {
  color: var(--violet);
}

/* Footer */
footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--gray-border);
  margin-top: 6rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-text {
  color: var(--gray-secondary);
  font-size: 0.9375rem;
}

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

.footer-links a {
  color: var(--gray-secondary);
  font-size: 0.9375rem;
  transition: color 0.3s ease;
}

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

/* Utility Classes */
.text-violet {
  color: var(--violet);
}

.text-amber {
  color: var(--amber);
}

.text-secondary {
  color: var(--gray-secondary);
}

.mb-2 {
  margin-bottom: 2rem;
}

.mt-4 {
  margin-top: 4rem;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--violet);
  color: var(--white);
  padding: 0.5rem 1rem;
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}
