:root {
  --primary: #1F2A37;
  --secondary: #F8FAFC;
  --accent: #6B7F5A;
  --accent-light: #8BA373;
  --neutral: #9CA3AF;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(31, 42, 55, 0.05);
  --shadow-md: 0 4px 12px rgba(31, 42, 55, 0.08);
  --shadow-lg: 0 8px 24px rgba(31, 42, 55, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--primary);
  background-color: var(--secondary);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31, 42, 55, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s;
}

.header:hover {
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.02em;
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 24px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.7;
  transition: all 0.2s;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav a:hover {
  opacity: 1;
  color: var(--accent);
}

.nav a:hover::after {
  width: 100%;
}

.btn-refresh-all {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(107, 127, 90, 0.3);
}

.btn-refresh-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(107, 127, 90, 0.4);
}

.btn-refresh-all svg {
  transition: transform 0.4s;
}

.btn-refresh-all:hover svg {
  transform: rotate(180deg);
}

.hero {
  background: linear-gradient(180deg, var(--white) 0%, var(--secondary) 100%);
  padding: 140px 0 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(107, 127, 90, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(31, 42, 55, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  color: var(--primary);
  line-height: 1.1;
  animation: fadeInUp 0.8s ease-out;
}

.hero p {
  font-size: 1.25rem;
  color: var(--neutral);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

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

.section {
  padding: 100px 0;
  position: relative;
}

.section-alt {
  background: var(--white);
}

.section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary);
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: 2px;
}

.section p {
  color: var(--primary);
  opacity: 0.8;
  margin-bottom: 32px;
  margin-top: 24px;
  max-width: 600px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.section ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.section li {
  padding: 20px 24px;
  padding-left: 56px;
  position: relative;
  color: var(--primary);
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  font-size: 1.05rem;
}

.section-alt li {
  background: var(--secondary);
}

.section li:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.section li::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(107, 127, 90, 0.3);
}

.featured-project {
  margin-top: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, #2d3a4a 100%);
  border-radius: 16px;
  padding: 32px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.featured-project::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(107, 127, 90, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.featured-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.featured-project h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--white);
}

.featured-project p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 500px;
}

.featured-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  transition: all 0.3s;
}

.featured-link:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(4px);
}

.featured-link svg {
  transition: transform 0.3s;
}

.featured-link:hover svg {
  transform: translateX(4px);
}

#contact {
  text-align: center;
}

#contact .container {
  max-width: 600px;
}

#contact h2::after {
  left: 50%;
  transform: translateX(-50%);
}

#contact p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.contact-button:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(31, 42, 55, 0.15);
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 600;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: 12px;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(107, 127, 90, 0.3);
}

.email-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(107, 127, 90, 0.4);
}

.footer {
  background: linear-gradient(180deg, var(--primary) 0%, #151d26 100%);
  color: var(--secondary);
  padding: 60px 0;
  text-align: center;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer p {
  font-size: 0.875rem;
  opacity: 0.6;
}

.btn-regenerate {
  position: absolute;
  right: 24px;
  top: 24px;
  background: var(--white);
  border: 1px solid rgba(31, 42, 55, 0.1);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.container:hover .btn-regenerate {
  opacity: 0.5;
}

.btn-regenerate:hover {
  opacity: 1 !important;
  background: var(--white);
  border-color: var(--accent);
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.btn-regenerate svg {
  color: var(--neutral);
}

.btn-regenerate:hover svg {
  color: var(--accent);
}

.btn-regenerate.loading svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(248, 250, 252, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.loading-overlay.hidden {
  display: none;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--secondary);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}

.loading-overlay p {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(31, 42, 55, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  z-index: 1001;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 32px;
  color: var(--neutral);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--primary);
}

.modal-content h2 {
  margin-bottom: 24px;
  margin-top: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--primary);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--primary);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107, 127, 90, 0.1);
}

.form-submit-btn {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
  margin-top: 8px;
}

.form-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(107, 127, 90, 0.3);
}

.form-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-status {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.95rem;
  background: rgba(107, 127, 90, 0.1);
}

@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 16px;
  }
  
  .nav {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav a::after {
    display: none;
  }
  
  .hero {
    padding: 100px 0 80px;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 70px 0;
  }
  
  .section h2 {
    font-size: 1.75rem;
  }
  
  .section li {
    padding: 16px 20px 16px 48px;
  }
  
  .section li::before {
    left: 16px;
  }
  
  .btn-regenerate {
    position: static;
    margin-top: 24px;
    opacity: 0.6;
  }
  
  .email-link {
    padding: 14px 28px;
    font-size: 1rem;
  }

  .modal-content {
    padding: 30px 24px;
  }
}
