/* Main styles for dubrovin.kz */

/* CSS Custom Properties - Light Theme */
:root {
  --primary-color: #1e40af;
  --primary-hover: #1d4ed8;
  --secondary-color: #6b7280;
  --text-color: #111827;
  --text-light: #6b7280;
  --background: #ffffff;
  --background-light: #f9fafb;
  --background-alt: #f3f4f6;
  --border-color: #e5e7eb;
  --border-radius: 8px;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --transition: all 0.2s ease-in-out;
  --max-width: 1200px;
  --header-height: 80px;
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
}

/* Dark Theme */
[data-theme="dark"] {
  --primary-color: #7dd3fc;
  --primary-hover: #38bdf8;
  --secondary-color: #cbd5e1;
  --text-color: #ffffff;
  --text-light: #f1f5f9;
  --background: #0c1323;
  --background-light: #1e293b;
  --background-alt: #475569;
  --border-color: #64748b;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7);
  --success-color: #4ade80;
  --error-color: #fb7185;
  --warning-color: #fde047;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Account for fixed header */
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--background);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

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

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

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

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

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--background);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  height: var(--header-height);
  transition: var(--transition);
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.25rem;
}

.logo {
  width: 32px;
  height: 32px;
}

.header__nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-hover);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--background-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: scale(1.05);
}

[data-theme="dark"] .theme-toggle {
  border-color: var(--border-color);
}

[data-theme="dark"] .theme-toggle:hover {
  background: var(--background-alt);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.header__menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header__menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-color);
  transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--background);
  border-bottom: 1px solid var(--border-color);
  transform: translateY(-100%);
  transition: var(--transition);
  z-index: 999;
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 1rem;
}

.mobile-nav-link {
  padding: 0.5rem 0;
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
}

/* Hero Section */
.hero {
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  background: var(--background-light);
}

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

.hero__title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero__highlight {
  color: var(--primary-color);
}

.hero__description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__image {
  text-align: center;
}

.hero__avatar {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 25%;
  border: 4px solid var(--background);
  box-shadow: var(--shadow-lg);
}

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

.about {
  background: var(--background-light);
}

.about__content {
  max-width: 800px;
  margin: 0 auto;
}

.about__intro {
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-color);
}

.about__details {
  display: grid;
  gap: 2rem;
}

.about__item h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Services */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Portfolio */
.portfolio {
  background: var(--background-light);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

/* Donation */
.donation__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.donation__info h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.donation__benefits {
  list-style: none;
  margin-top: 1.5rem;
}

.donation__benefits li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.donation__benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Contact */
.contact {
  background: var(--background-light);
}

.contact__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact__methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.contact__link:hover {
  background: var(--background);
}

.contact__icon {
  font-size: 1.25rem;
}

/* Footer */
.footer {
  background: var(--text-color);
  color: var(--background);
  padding: 2rem 0;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer a {
  color: var(--background);
}

.footer a:hover {
  color: #cbd5e1;
}

/* Utility classes */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn--primary {
  background: var(--primary-color);
  color: white;
}

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

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

.btn--secondary:hover {
  background: var(--primary-color);
  color: white;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

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

.btn:focus {
  outline-offset: 4px;
}
