/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', system-ui, Avenir, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Theme variables */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #000000;
  --text-secondary: #666666;
  --border-color: #e5e5e7;
  --accent-color: #007aff;
}

[data-theme="dark"] {
  --bg-primary: #000000;
  --bg-secondary: #1c1c1e;
  --text-primary: #ffffff;
  --text-secondary: #8e8e93;
  --border-color: #38383a;
  --accent-color: #0a84ff;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Utility classes */
.font-medium {
  font-weight: 500;
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 50;
  padding: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(229, 229, 231, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.theme-icon {
  display: block;
  color: var(--text-primary);
}

#sunIcon {
  color: #fbbf24;
}

#moonIcon {
  color: #6b7280;
}

[data-theme="dark"] #sunIcon {
  display: none;
}

[data-theme="dark"] #moonIcon {
  display: block;
}

[data-theme="light"] #sunIcon {
  display: block;
}

[data-theme="light"] #moonIcon {
  display: none;
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out forwards;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.hero-content {
  text-align: center;
  max-width: 64rem;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  padding: 12px 32px;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn:hover {
  transform: scale(1.05);
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Section titles */
.section-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  max-width: 32rem;
  margin: 0 auto;
  color: var(--text-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* About Section */
.about {
  padding: 6rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  font-size: 1.125rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.about-text:last-of-type {
  margin-bottom: 2rem;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.skill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-color);
}

.skill-text {
  font-weight: 500;
  color: var(--text-primary);
}

.about-image {
  display: flex;
  justify-content: center;
}

.image-placeholder {
  aspect-ratio: 1;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
}

.emoji {
  font-size: 6rem;
}

/* Works Section */
.works {
  padding: 6rem 0;
  background-color: var(--bg-secondary);
}

.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.work-card {
  cursor: pointer;
  transition: all 0.5s ease;
}

.work-card:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.work-content {
  border-radius: 1.5rem;
  padding: 2rem;
  height: 20rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
}

.work-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.work-emoji {
  font-size: 4rem;
}

.work-category {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 9999px;
  background-color: var(--accent-color);
  color: white;
  display: inline-block;
  width: fit-content;
}

.work-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.work-description {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--text-secondary);
}

/* Contact Section */
.contact {
  padding: 6rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0 0 1rem 0;
  font-size: 1.125rem;
  font-weight: 300;
  border: 0;
  border-bottom: 2px solid var(--border-color);
  background: transparent;
  outline: none;
  resize: none;
  color: var(--text-primary);
  transition: border-bottom-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  border-bottom-color: var(--accent-color);
}

.form-textarea {
  min-height: 120px;
}

/* Social Links */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  background-color: var(--bg-secondary);
}

.social-link:hover {
  transform: scale(1.05);
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.email-icon {
  background-color: var(--accent-color);
  color: white;
}

.telegram-icon {
  background-color: #0088cc;
  color: white;
}

.behance-icon {
  background-color: #1769ff;
  color: white;
}

.social-info {
  display: flex;
  flex-direction: column;
}

.social-title {
  font-weight: 500;
  color: var(--text-primary);
}

.social-value {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

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

/* Responsive Design */
@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .works-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 32px;
  }
  
  .hero-title {
    font-size: 7rem;
  }
  
  .section-title {
    font-size: 3.5rem;
  }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Smooth transitions for theme changes */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
} 