@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Merriweather:wght@300;400;700&display=swap');

:root {
  --primary-color: #1E40AF;
  --secondary-color: #3B82F6;
  --accent-color: #60A5FA;
  --neutral-color: #F3F4F6;
  --text-color: #1F2937;
  --gray-primary: #4A5568;
  --gray-secondary: #2D3748;
  --gray-accent: #718096;
  --white: #FFFFFF;
  --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-medium: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-heavy: 0 10px 15px rgba(0,0,0,0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
  overflow-x: hidden;
}

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

.main-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.sidebar {
  width: 280px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  transition: var(--transition);
}

.sidebar.right {
  right: 0;
}

.sidebar.left {
  left: 0;
}

.content-area {
  flex: 1;
  margin-left: 280px;
  min-height: 100vh;
}

.content-area.sidebar-right {
  margin-left: 0;
  margin-right: 280px;
}

.sidebar-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1001;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1.2rem;
}

.sidebar-header {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-title {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.sidebar-subtitle {
  font-size: 0.9rem;
  opacity: 0.8;
}

.sidebar-nav {
  padding: 1rem 0;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 0.5rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

.sidebar-nav a:hover {
  background: rgba(255,255,255,0.1);
  padding-left: 2rem;
}

.sidebar-nav a.active {
  background: rgba(255,255,255,0.15);
  border-right: 3px solid var(--accent-color);
}

.sidebar-nav .nav-icon {
  width: 1.2rem;
  margin-right: 0.75rem;
  text-align: center;
}

.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow-heavy);
  border-top: 3px solid var(--primary-color);
  padding: 2rem;
  z-index: 999;
}

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

.mega-menu-section h3 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.mega-menu-section ul {
  list-style: none;
}

.mega-menu-section li {
  margin-bottom: 0.5rem;
}

.mega-menu-section a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

.mega-menu-section a:hover {
  color: var(--primary-color);
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 64, 175, 0.7);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
  animation: heroFadeIn 1.5s ease-out;
}

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

.hero h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

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

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

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

.btn-white:hover {
  background: var(--neutral-color);
  transform: translateY(-2px);
}

.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--gray-accent);
  line-height: 1.7;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.grid-2 > * {
  flex: 1;
  min-width: calc(50% - 1rem);
}

.grid-4 > * {
  flex: 1;
  min-width: calc(25% - 1.5rem);
}

.grid-6 > * {
  flex: 1;
  min-width: calc(33.333% - 1.33rem);
}

.grid-span-2 {
  flex: 2;
  min-width: calc(66.666% - 0.67rem);
}

.card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border: 1px solid var(--neutral-color);
}

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

.card-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--white);
  font-size: 1.5rem;
}

.card h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.card p {
  color: var(--gray-accent);
  line-height: 1.7;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-light);
  position: relative;
  border-left: 4px solid var(--primary-color);
  opacity: 1;
  transform: translateY(0);
}

.testimonial-card.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-quote {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: var(--text-color);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
}

.testimonial-info h4 {
  font-weight: 600;
  color: var(--text-color);
}

.testimonial-info span {
  color: var(--gray-accent);
  font-size: 0.9rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.portfolio-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-heavy);
}

.portfolio-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(30, 64, 175, 0.9), transparent);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  color: var(--white);
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.form {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--neutral-color);
}

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

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

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--neutral-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

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

.accordion {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.accordion-item {
  border-bottom: 1px solid var(--neutral-color);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  background: none;
  border: none;
  width: 100%;
  padding: 1.5rem 2rem;
  text-align: left;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.accordion-header:hover {
  background: var(--neutral-color);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content.active {
  max-height: 1000px;
}

.accordion-body {
  padding: 0 2rem 1.5rem;
  color: var(--gray-accent);
  line-height: 1.7;
}

.chat-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.chat-button {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  box-shadow: var(--shadow-heavy);
  transition: var(--transition);
}

.chat-button:hover {
  transform: scale(1.1);
}

.client-portal {
  background: var(--neutral-color);
  padding: 3rem 0;
}

.portal-login {
  max-width: 400px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

.portal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.portal-title {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.footer {
  background: var(--gray-secondary);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  font-family: 'Merriweather', serif;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

.parallax-section {
  position: relative;
  height: 60vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.parallax-content {
  text-align: center;
  color: var(--white);
  z-index: 2;
  position: relative;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 64, 175, 0.6);
  z-index: 1;
}

.stats {
  background: var(--primary-color);
  color: var(--white);
  padding: 4rem 0;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
}

.stat-item {
  flex: 1;
  min-width: 200px;
}

.stat-number {
  font-family: 'Merriweather', serif;
  font-size: 3rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.cta-title {
  font-family: 'Merriweather', serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

@media (max-width: 1024px) {
  .sidebar {
    width: 250px;
  }
  
  .content-area {
    margin-left: 250px;
  }
  
  .content-area.sidebar-right {
    margin-left: 0;
    margin-right: 250px;
  }
  
  .grid-4 > * {
    min-width: calc(50% - 1rem);
  }
  
  .grid-6 > * {
    min-width: calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
  }
  
  .sidebar.right {
    transform: translateX(100%);
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .sidebar-toggle {
    display: block;
  }
  
  .content-area,
  .content-area.sidebar-right {
    margin-left: 0;
    margin-right: 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .grid-2 > *,
  .grid-4 > *,
  .grid-6 > * {
    min-width: 100%;
  }
  
  .grid-span-2 {
    min-width: 100%;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .stats-grid {
    flex-direction: column;
  }
  
  .stat-item {
    min-width: auto;
  }
  
  .mega-menu-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .hero {
    height: 80vh;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .form {
    padding: 1.5rem;
  }
  
  .portal-login {
    padding: 2rem;
    margin: 0 1rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
  }
  
  .chat-widget {
    bottom: 1rem;
    right: 1rem;
  }
  
  .chat-button {
    width: 3.5rem;
    height: 3.5rem;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-up {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s ease;
}

.scale-up.visible {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}