/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --gray: #64748b;
  --gray-light: #cbd5e1;
  --light: #f1f5f9;
  --white: #ffffff;
  --success: #10b981;
  --error: #ef4444;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.logo img {
  height: 40px;
  width: 200px;
  object-fit: cover;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-suffix {
  font-weight: 400;
  font-size: 0.9rem;
  opacity: 0.95;
}

.nav-list {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.user-profile {
  position: relative;
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  color: var(--white);
  font-weight: 500;
  border: none;
  transition: var(--transition);
}

.profile-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.profile-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.profile-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  display: none;
  z-index: 100;
}

.profile-dropdown.active {
  display: block;
}

.profile-dropdown-header {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-light);
}

.profile-dropdown-header p {
  margin: 0;
  color: var(--dark);
  font-weight: 600;
}

.profile-dropdown-header small {
  color: var(--gray);
  font-size: 0.875rem;
}

.profile-dropdown-menu {
  padding: 0.5rem 0;
}

.profile-dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--dark);
  transition: var(--transition);
  cursor: pointer;
}

.profile-dropdown-item:hover {
  background: var(--light);
}

.nav-link {
  color: var(--white);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(142, 143, 232, 0.9) 0%, rgba(210, 196, 241, 0.9) 100%), url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=1920&h=1080&fit=crop') center/cover;
  color: var(--white);
  text-align: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.8;
}

/* ===== MAIN CONTENT ===== */
.main {
  padding-top: 80px;
  min-height: calc(100vh - 80px);
}

.section {
  padding: 5rem 2rem;
}

.section.bg-light {
  background: var(--light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--dark);
}

.section-title-large {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--dark);
  line-height: 1.2;
}

.text-center {
  text-align: center;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

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

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

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

.btn-block {
  width: 100%;
  display: block;
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.feature-card p {
  color: var(--gray);
  line-height: 1.8;
}

/* ===== WORK GRID ===== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.work-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.work-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.work-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
}

.work-title {
  font-size: 1.25rem;
  margin: 1.5rem 1.5rem 0.5rem;
  color: var(--dark);
}

.work-card p {
  padding: 0 1.5rem 1.5rem;
  color: var(--gray);
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.cta-subtitle {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* ===== ABOUT PAGE ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--gray);
  font-size: 1.125rem;
  line-height: 1.8;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.values-list {
  list-style: none;
  margin-top: 2rem;
}

.values-list li {
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--gray);
}

.values-list strong {
  color: var(--primary);
  font-weight: 600;
}

/* ===== SERVICES PAGE ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.service-card > p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.service-card ul {
  list-style: none;
  margin-bottom: 2rem;
}

.service-card ul li {
  padding: 0.5rem 0;
  color: var(--gray);
  position: relative;
  padding-left: 1.5rem;
}

.service-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--dark);
}

.contact-details {
  list-style: none;
}

.contact-details li {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  color: var(--gray);
}

.contact-details strong {
  color: var(--dark);
  display: block;
  margin-bottom: 0.25rem;
}

.contact-details a {
  color: var(--primary);
}

.contact-details a:hover {
  text-decoration: underline;
}

/* ===== FORMS ===== */
.contact-form,
.auth-form-inner {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-light);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

.error-message {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}

.form-message {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  display: none;
}

.form-message.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid var(--success);
  display: block;
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 1px solid var(--error);
  display: block;
}

/* ===== AUTH PAGES ===== */
.auth-section {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
}

.auth-form {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

.auth-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
  text-align: center;
}

.auth-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 2rem;
}

.password-input-group {
  position: relative;
}

.toggle-password-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--gray);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password-btn:hover {
  color: var(--primary);
}

.password-hint {
  display: block;
  color: var(--gray);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.password-rules {
  margin-top: 0.75rem;
}

.password-rules ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.password-rules li {
  font-size: 0.875rem;
  color: var(--gray);
  padding: 0.25rem 0.75rem;
  background: var(--light);
  border-radius: 4px;
}

.password-rules li.valid {
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  cursor: pointer;
}

.checkbox-label a {
  color: var(--primary);
  text-decoration: underline;
}

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  color: var(--gray);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ===== LEGAL PAGES ===== */
.legal-article {
  max-width: 900px;
  margin: 2rem auto;
  line-height: 1.8;
}

.legal-article h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
  color: var(--dark);
}

.legal-article h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--dark);
}

.legal-article p {
  margin-bottom: 1.5rem;
  color: var(--gray);
  font-size: 1.0625rem;
}

.legal-article ul,
.legal-article ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
  color: var(--gray);
}

.legal-article li {
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.legal-article strong {
  color: var(--dark);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 2rem 1.5rem;
}

.footer-light {
  background: var(--dark-light);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.footer-logo img {
  height: 60px;
  width: 220px;
  object-fit: cover;
}

.footer-contact p {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
}

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

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

.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

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

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    transition: var(--transition);
    padding: 2rem;
  }

  .nav.active {
    left: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    width: 100%;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-title-large {
    font-size: 2.25rem;
  }

  .features-grid,
  .work-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .footer-top {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-links ul {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 1rem;
  }

  .logo a {
    font-size: 1.25rem;
  }

  .logo img {
    height: 40px;
    width: 290px;
  }

  .section {
    padding: 3rem 1rem;
  }

  .hero {
    padding: 5rem 1rem 3rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }

  .feature-card,
  .service-card,
  .contact-form,
  .auth-form-inner {
    padding: 1.5rem;
  }
}
