/* Modern Software Development Company - Xandiva.com */
/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #4287f5;
  --secondary-color: #8ab4f8;
  --accent-color: #5e9ceb;
  --dark-color: #1a1a2e;
  --light-color: #f5f7fa;
  --text-dark: #2d3748;
  --text-light: #718096;
  --white: #ffffff;
  --success: #48bb78;
  --border-radius: 12px;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: 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;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

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

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

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  margin-bottom: 15px;
}

.section-title p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Header & Navigation */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

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

.nav-menu a {
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
  pointer-events: none;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

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

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--dark-color);
  transition: var(--transition);
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

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

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

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

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

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

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/img_6b89dafa.jpg') center/cover;
  opacity: 0.15;
  pointer-events: none;
}

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

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

/* Features/Services Grid */
.features-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card,
.service-card {
  background: var(--white);
  padding: 35px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.feature-icon,
.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.75rem;
}

.feature-card h3,
.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.375rem;
}

.feature-card p,
.service-card p {
  font-size: 1rem;
  line-height: 1.7;
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.about-text h2 {
  margin-bottom: 25px;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.125rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: var(--light-color);
  border-radius: var(--border-radius);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

.stat-label {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.team-member {
  text-align: center;
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 4px solid var(--primary-color);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.team-role {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.team-member p {
  font-size: 0.95rem;
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
}

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

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

.blog-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-content {
  padding: 25px;
}

.blog-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 12px;
  font-size: 0.875rem;
  color: var(--text-light);
}

.blog-content h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
  color: var(--dark-color);
}

.blog-excerpt {
  margin-bottom: 18px;
  color: var(--text-light);
}

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.read-more:hover {
  gap: 10px;
}

/* Article Page */
.article-hero {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
  color: var(--white);
  padding: 80px 0 60px;
  text-align: center;
}

.article-hero h1 {
  color: var(--white);
  max-width: 800px;
  margin: 0 auto 20px;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 25px;
  color: rgba(255, 255, 255, 0.9);
}

.article-content {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}

.article-featured-image {
  margin-bottom: 40px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-featured-image img {
  width: 100%;
}

.article-body h2,
.article-body h3 {
  margin-top: 35px;
  margin-bottom: 18px;
}

.article-body p {
  margin-bottom: 20px;
  font-size: 1.125rem;
  line-height: 1.8;
}

.article-body ul,
.article-body ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.article-body li {
  margin-bottom: 10px;
  color: var(--text-light);
  list-style: disc;
}

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

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.contact-details h3 {
  font-size: 1.125rem;
  margin-bottom: 5px;
}

.contact-details p {
  margin: 0;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 25px;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 2px solid #e2e8f0;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

.contact-form .btn {
  width: 100%;
}

/* Map */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-top: 30px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 35px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  background: var(--dark-color);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  display: block;
}

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

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--white);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 2000;
  max-width: 500px;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner p {
  margin-bottom: 15px;
  color: var(--text-dark);
}

.cookie-buttons {
  display: flex;
  gap: 12px;
}

.cookie-buttons .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--white);
    flex-direction: column;
    padding: 40px 20px;
    transition: var(--transition);
    box-shadow: var(--shadow);
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-content,
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .hero-image {
    order: -1;
  }

  .section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .features-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  .section-title h2 {
    font-size: 1.75rem;
  }

  .contact-form {
    padding: 25px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}
