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

/* Custom Properties */
:root {
  /* Colors */
  --color-bg: #050510;
  --color-bg-alt: #090920;
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.7);
  --color-accent: #6366f1;
  --color-accent-alt: #818cf8;
  
  /* Typography */
  --font-primary: 'Space Grotesk', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  --font-size-sm: clamp(0.8rem, 0.17vw + 0.76rem, 0.89rem);
  --font-size-base: clamp(1rem, 0.34vw + 0.91rem, 1.19rem);
  --font-size-md: clamp(1.25rem, 0.61vw + 1.1rem, 1.58rem);
  --font-size-lg: clamp(1.56rem, 1vw + 1.31rem, 2.11rem);
  --font-size-xl: clamp(1.95rem, 1.56vw + 1.56rem, 2.81rem);
  --font-size-xxl: clamp(2.44rem, 2.38vw + 1.85rem, 3.75rem);
  --font-size-xxxl: clamp(3.05rem, 3.54vw + 2.17rem, 5rem);
  
  /* Spacing */
  --space-xs: clamp(0.75rem, 0.68vw + 0.6rem, 1.1rem);
  --space-sm: clamp(1.5rem, 1.36vw + 1.2rem, 2.2rem);
  --space-md: clamp(2.25rem, 2.04vw + 1.8rem, 3.3rem);
  --space-lg: clamp(3rem, 2.72vw + 2.4rem, 4.4rem);
  --space-xl: clamp(4.5rem, 4.08vw + 3.6rem, 6.6rem);
  
  /* Effects */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --z-nav: 100;
  --z-modal: 200;
}

/* Base Styles */
html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--color-text);
  background: linear-gradient(135deg, var(--color-bg), var(--color-bg-alt));
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

h1 { font-size: var(--font-size-xxxl); }
h2 { font-size: var(--font-size-xxl); }
h3 { font-size: var(--font-size-xl); }

p {
  margin-bottom: var(--space-xs);
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

section {
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 5%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  background: rgba(5, 5, 16, 0.8);
  backdrop-filter: blur(10px);
}

.logo {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin: 0;
  letter-spacing: 2px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-sm);
}

.nav-link {
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: var(--transition-normal);
}

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

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding-top: 60px; /* Header height */
}

.hero-content {
  z-index: 1;
  max-width: 800px;
  padding: 0 var(--space-sm);
}

.hero-title {
  font-size: var(--font-size-xxxl);
  margin-bottom: var(--space-sm);
}

.hero-subtitle {
  font-size: var(--font-size-md);
  font-family: var(--font-secondary);
  font-weight: 300;
  opacity: 0.9;
}

.accent {
  color: var(--color-accent);
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1618556450994-a6a5074bd0d3?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  opacity: 0.15;
  z-index: -1;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-text {
  font-size: var(--font-size-sm);
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.scroll-icon {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid var(--color-text-muted);
  border-radius: 1rem;
  position: relative;
}

.scroll-icon::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  left: 50%;
  width: 0.25rem;
  height: 0.5rem;
  background: var(--color-text);
  border-radius: 0.25rem;
  transform: translateX(-50%);
  animation: scrollIndicator 1.5s infinite;
}

@keyframes scrollIndicator {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 1rem);
    opacity: 0;
  }
}

/* Work Section */
.work {
  padding: var(--space-xl) 5%;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--color-accent);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.work-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  transition: var(--transition-normal);
}

.work-item:hover {
  transform: translateY(-10px);
}

.work-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-item:hover .work-image img {
  transform: scale(1.05);
}

.work-title {
  padding: var(--space-xs) var(--space-xs) 0.5rem;
  font-size: var(--font-size-md);
}

.work-description {
  padding: 0 var(--space-xs) var(--space-xs);
  font-family: var(--font-secondary);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* About Section */
.about {
  padding: var(--space-xl) 5%;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 80vh;
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-text {
  margin-bottom: var(--space-sm);
  font-family: var(--font-secondary);
}

.expertise {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: var(--space-md);
}

.expertise-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: var(--font-size-sm);
  font-family: var(--font-secondary);
}

.about-parallax {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1603665330306-dd1a67e0cc4e?auto=format&fit=crop&w=1000&q=80') center/cover no-repeat;
  opacity: 0.1;
  z-index: 0;
}

/* Contact Section */
.contact {
  padding: var(--space-xl) 5%;
  text-align: center;
}

.contact-text {
  max-width: 500px;
  margin: 0 auto var(--space-md);
  font-family: var(--font-secondary);
}

.contact-link {
  display: inline-block;
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: 5px;
}

.contact-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.contact-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
}

.social-link {
  opacity: 0.7;
  transition: var(--transition-fast);
}

.social-link:hover {
  opacity: 1;
}

/* Footer */
.footer {
  padding: var(--space-md) 5%;
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    padding: var(--space-xs) 5%;
  }
  
  .logo {
    margin-bottom: var(--space-xs);
  }
  
  .nav-list {
    gap: var(--space-xs);
  }
  
  .work-grid {
    grid-template-columns: 1fr;
  }
  
  .about {
    flex-direction: column;
  }
  
  .about-parallax {
    width: 100%;
    height: 50%;
  }
  
  .expertise {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--font-size-xxl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-base);
  }
  
  .contact-link {
    font-size: var(--font-size-md);
  }
  
  .social-links {
    flex-direction: column;
    gap: var(--space-xs);
  }
} 