/* CSS Variables */
:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --secondary: #00d4ff;
  --dark: #1a1a2e;
  --dark-light: #16213e;
  --gray: #6b7280;
  --gray-light: #9ca3af;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #1a73e8 0%, #00d4ff 100%);
  --shadow: 0 10px 40px rgba(26, 115, 232, 0.15);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  font-size: 24px;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  color: var(--gray-light);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(26, 115, 232, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(26, 115, 232, 0.2) 0%, transparent 40%);
  animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.1); }
}

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

.hero-title {
  font-size: 72px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 28px;
  color: var(--secondary);
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-desc {
  font-size: 18px;
  color: var(--gray-light);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-btns {
  display: flex;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(26, 115, 232, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26, 115, 232, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* Section Styles */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--gray);
}

/* Services Section */
.services {
  background: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

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

.service-icon {
  font-size: 48px;
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
}

/* About Section */
.about {
  background: var(--white);
}

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

.about-text h2 {
  font-size: 40px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
}

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

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #e5e7eb;
}

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

.stat-num {
  display: block;
  font-size: 48px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 14px;
  color: var(--gray);
}

.about-image {
  position: relative;
}

.about-img-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-img-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #1a73e8 0%, #16213e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img-placeholder span {
  font-size: 32px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 8px;
}

/* Cases Section */
.cases {
  background: var(--bg-light);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.case-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

.case-image {
  height: 220px;
  position: relative;
  background: linear-gradient(135deg, #1a73e8 0%, #00d4ff 100%);
}

.case-1 { background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%); }
.case-2 { background: linear-gradient(135deg, #00d4ff 0%, #1a73e8 100%); }
.case-3 { background: linear-gradient(135deg, #16213e 0%, #1a73e8 100%); }
.case-4 { background: linear-gradient(135deg, #0d47a1 0%, #00d4ff 100%); }

.case-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.case-card:hover .case-overlay {
  opacity: 1;
}

.case-overlay span {
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
}

.case-info {
  padding: 24px;
}

.case-info h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.case-info p {
  font-size: 14px;
  color: var(--gray);
}

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

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

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 15px;
  color: var(--gray);
}

.contact-form {
  background: var(--bg-light);
  padding: 40px;
  border-radius: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 20px;
  font-size: 15px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--white);
  margin-bottom: 16px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
}

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

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

/* Footer */
.footer {
  background: var(--dark);
  padding: 60px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--gray-light);
  font-size: 14px;
}

.footer-links h4 {
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul a {
  color: var(--gray-light);
  font-size: 14px;
  transition: color 0.3s ease;
}

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

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--gray-light);
  transition: all 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding: 24px 0;
}

.footer-bottom p {
  color: var(--gray);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 22px;
  }

  .hero-desc {
    font-size: 16px;
  }

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

  .section-header h2 {
    font-size: 32px;
  }

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

  .about-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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