* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  background: #fafbfc;
  background-image: 
    linear-gradient(rgba(10, 132, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 132, 255, 0.02) 1px, transparent 1px);
  background-size: 24px 24px;
  color: #0a0e27;
  line-height: 1.6;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid rgba(10, 132, 255, 0.1);
  position: sticky;
  top: 0;
  background: rgba(250, 251, 252, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  z-index: 1000;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 4px 20px rgba(10, 132, 255, 0.08);
  border-bottom-color: rgba(10, 132, 255, 0.15);
}

.nav-left {
  font-weight: 700;
  font-size: 18px;
  color: #0a0e27;
  letter-spacing: -0.3px;
  font-family: "Inter", -apple-system, sans-serif;
}

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

.nav-right a {
  text-decoration: none;
  color: #0a0e27;
  font-weight: 500;
  font-size: 12px;
  transition: color 0.2s ease;
  position: relative;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.nav-right a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0A84FF, #5856D6, #FF6B6B);
  transition: width 0.3s ease;
}

.nav-right a:hover {
  color: #0A84FF;
}

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

.nav-right a.active {
  color: #0A84FF;
}

.nav-right a.active::after {
  width: 100%;
}

.hero {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Split layout: photo left, text right, AI-style background */
.hero-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(10, 132, 255, 0.05) 0%, rgba(88, 86, 214, 0.05) 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(10, 132, 255, 0.03) 2px,
      rgba(10, 132, 255, 0.03) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(88, 86, 214, 0.03) 2px,
      rgba(88, 86, 214, 0.03) 4px
    );
  border: 1px solid rgba(10, 132, 255, 0.1);
  border-radius: 16px;
  box-shadow: 
    0 20px 60px rgba(10, 132, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  padding: 60px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 10px;
  font-weight: 800;
  background: linear-gradient(135deg, #0a0e27 0%, #0A84FF 50%, #5856D6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.hero h2 {
  font-size: 24px;
  color: #4a5568;
  font-weight: 500;
  letter-spacing: -0.3px;
}

.hero-buttons {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary {
  background: linear-gradient(135deg, #0A84FF 0%, #5856D6 100%);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(10, 132, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 13px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0066CC 0%, #4a47c4 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 132, 255, 0.5);
}

.btn-secondary {
  padding: 14px 28px;
  border-radius: 8px;
  border: 1px solid rgba(10, 132, 255, 0.2);
  text-decoration: none;
  color: #0a0e27;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 13px;
}

.btn-secondary:hover {
  border-color: #0A84FF;
  color: #0A84FF;
  background: rgba(10, 132, 255, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(10, 132, 255, 0.2);
}

.hero-tags {
  margin-top: 28px;
  font-size: 15px;
  color: #4a5568;
  line-height: 1.8;
  letter-spacing: 0.2px;
}

.hero-tags span {
  font-weight: 600;
  color: #0A84FF;
  margin: 0 4px;
  padding: 2px 8px;
  background: rgba(10, 132, 255, 0.1);
  border-radius: 4px;
}

.hero-social {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}

.hero-social a {
  text-decoration: none;
  color: #0A84FF;
  border-radius: 999px;
  padding: 8px 16px;
  border: 1px solid rgba(10, 132, 255, 0.25);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  font-weight: 500;
  transition: all 0.3s ease;
}

.hero-social a:hover {
  background: #0A84FF;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 132, 255, 0.3);
}

.home-services {
  max-width: 1200px;
  margin: 60px auto 100px auto;
  padding: 0 20px;
}

.home-services h2 {
  font-size: 32px;
  margin-bottom: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, #0a0e27 0%, #0A84FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.home-services-intro {
  color: #4a5568;
  max-width: 700px;
  margin-bottom: 32px;
  font-size: 17px;
  line-height: 1.7;
}

.home-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.home-service-card {
  border-radius: 12px;
  border: 1px solid rgba(10, 132, 255, 0.15);
  padding: 32px;
  box-shadow: 
    0 4px 16px rgba(10, 132, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s ease;
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 252, 255, 0.98) 100%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(10, 132, 255, 0.02) 10px,
      rgba(10, 132, 255, 0.02) 20px
    );
  position: relative;
  overflow: hidden;
}

.home-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0A84FF 0%, #5856D6 50%, #FF6B6B 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  box-shadow: 0 2px 8px rgba(10, 132, 255, 0.3);
}

.home-service-card:hover::before {
  transform: scaleX(1);
}

.home-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 20px 50px rgba(10, 132, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(10, 132, 255, 0.4);
}

.home-service-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 700;
  color: #0a0e27;
  letter-spacing: -0.3px;
}

.home-service-card p {
  color: #4a5568;
  font-size: 15px;
  line-height: 1.7;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  padding: 80px 40px;
  max-width: 1200px;
  margin: 60px auto;
  background: rgba(250, 251, 252, 0.5);
  border-radius: 16px;
}

.highlight-card {
  padding: 40px 32px;
  border-radius: 12px;
  border: 1px solid rgba(10, 132, 255, 0.15);
  width: 300px;
  text-align: center;
  box-shadow: 
    0 4px 16px rgba(10, 132, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s ease;
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 252, 255, 0.98) 100%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(10, 132, 255, 0.02) 10px,
      rgba(10, 132, 255, 0.02) 20px
    );
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0A84FF 0%, #5856D6 50%, #FF6B6B 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  box-shadow: 0 2px 8px rgba(10, 132, 255, 0.3);
}

.highlight-card:hover::before {
  transform: scaleX(1);
}

.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 20px 50px rgba(10, 132, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(10, 132, 255, 0.4);
}

.highlight-card h3 {
  margin-bottom: 16px;
  font-size: 22px;
  color: #0a0e27;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.highlight-card p {
  color: #4a5568;
  font-size: 15px;
  line-height: 1.7;
}

.hero-photo img {
  display: block;
  max-width: 500px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-content h1 {
  font-size: 44px;
  margin-bottom: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, #0a0e27 0%, #0A84FF 50%, #5856D6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.hero-content h2 {
  font-size: 22px;
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.hero-content p {
  margin-top: 8px;
  color: #4a5568;
  font-size: 17px;
  line-height: 1.7;
}

.hero-buttons {
  margin-top: 28px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 32px;
  margin-top: 32px;
}

.contact-details {
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 252, 255, 0.98) 100%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(10, 132, 255, 0.02) 10px,
      rgba(10, 132, 255, 0.02) 20px
    );
  border-radius: 12px;
  border: 1px solid rgba(10, 132, 255, 0.15);
  padding: 40px;
  box-shadow: 
    0 8px 24px rgba(10, 132, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.contact-details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0A84FF 0%, #5856D6 50%, #FF6B6B 100%);
}

.contact-details p {
  margin: 12px 0;
  line-height: 1.8;
  color: #4a5568;
}

.contact-details a {
  color: #0A84FF;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-details a:hover {
  color: #0066CC;
  text-decoration: underline;
}

.contact-form-box {
  border-radius: 12px;
  border: 1px solid rgba(10, 132, 255, 0.15);
  padding: 40px;
  box-shadow: 
    0 8px 24px rgba(10, 132, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 252, 255, 0.98) 100%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(10, 132, 255, 0.02) 10px,
      rgba(10, 132, 255, 0.02) 20px
    );
  position: relative;
  overflow: hidden;
}

.contact-form-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0A84FF 0%, #5856D6 50%, #FF6B6B 100%);
}

.contact-form-box button,
.contact-form-box input[type="submit"] {
  background: linear-gradient(135deg, #0A84FF 0%, #5856D6 100%);
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 16px rgba(10, 132, 255, 0.3);
}

.contact-form-box button:hover,
.contact-form-box input[type="submit"]:hover {
  background: linear-gradient(135deg, #0066CC 0%, #4a47c4 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 132, 255, 0.4);
}

.contact-form-box form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.contact-form-box input,
.contact-form-box textarea {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(10, 132, 255, 0.2);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.9);
}

.contact-form-box input:focus,
.contact-form-box textarea:focus {
  outline: none;
  border-color: #0A84FF;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.1);
  background: #fff;
}

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

.contact-note {
  font-size: 13px;
  color: #718096;
  line-height: 1.6;
}

.page-section {
  max-width: 1000px;
  margin: auto;
  padding: 80px 20px;
  position: relative;
}

.page-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -20px;
  right: -20px;
  bottom: 0;
  background:
    linear-gradient(135deg, rgba(10, 132, 255, 0.03) 0%, rgba(88, 86, 214, 0.03) 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 20px,
      rgba(10, 132, 255, 0.02) 20px,
      rgba(10, 132, 255, 0.02) 21px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 20px,
      rgba(88, 86, 214, 0.02) 20px,
      rgba(88, 86, 214, 0.02) 21px
    );
  z-index: -1;
  border-radius: 16px;
}

.page-section h1 {
  font-size: 48px;
  margin-bottom: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #0a0e27 0%, #0A84FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.page-section h2 {
  font-size: 32px;
  margin-top: 48px;
  margin-bottom: 20px;
  font-weight: 700;
  color: #0a0e27;
  letter-spacing: -0.5px;
}

.page-section p {
  color: #4a5568;
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.page-section ul {
  color: #4a5568;
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 32px;
}

.page-section li {
  margin-bottom: 12px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  padding-top: 32px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
}

.project-card,
.service-card {
  border: 1px solid rgba(10, 132, 255, 0.15);
  padding: 32px;
  border-radius: 12px;
  box-shadow: 
    0 4px 16px rgba(10, 132, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s ease;
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 252, 255, 0.98) 100%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(10, 132, 255, 0.02) 10px,
      rgba(10, 132, 255, 0.02) 20px
    );
  position: relative;
  overflow: hidden;
}

.project-card::before,
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0A84FF 0%, #5856D6 50%, #FF6B6B 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  box-shadow: 0 2px 8px rgba(10, 132, 255, 0.3);
}

.project-card:hover::before,
.service-card:hover::before {
  transform: scaleX(1);
}

.project-card:hover,
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 50px rgba(10, 132, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(10, 132, 255, 0.4);
}

.project-card h3,
.service-card h3 {
  margin-bottom: 16px;
  font-size: 22px;
  color: #0a0e27;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.project-card p,
.service-card p {
  color: #4a5568;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.resume-section-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(10, 132, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(10, 132, 255, 0.05);
  transition: all 0.3s ease;
}

.resume-section-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(10, 132, 255, 0.15);
  border-color: rgba(10, 132, 255, 0.3);
}

footer {
  text-align: center;
  padding: 60px 40px;
  color: #718096;
  margin-top: 120px;
  border-top: 1px solid rgba(10, 132, 255, 0.1);
  font-size: 14px;
  background: rgba(250, 251, 252, 0.5);
  letter-spacing: 0.3px;
}

@media (max-width: 800px) {
  .nav {
    padding: 16px 20px;
    flex-direction: column;
    gap: 16px;
  }

  .nav-right {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-right a {
    font-size: 11px;
  }

  .hero {
    padding: 40px 20px;
  }

  .hero-split {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
    gap: 32px;
  }

  .hero-photo img {
    max-width: 320px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content h2 {
    font-size: 18px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-secondary {
    margin-left: 0;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .highlights {
    grid-template-columns: 1fr;
    padding: 60px 20px;
  }

  .highlight-card {
    width: 100%;
    max-width: 400px;
  }

  .page-section {
    padding: 60px 20px;
  }

  .page-section h1 {
    font-size: 36px;
  }

  .page-section h2 {
    font-size: 26px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
