/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f8f9fb;
  --bg-card:   #ffffff;
  --bg-card-hover: #f0f2f8;
  --navy:      #1a1a6e;
  --navy-light:#4a5aff;
  --steel:     #6b7280;
  --steel-light:#9ca3af;
  --white:     #111827;
  --white-dim: #374151;
  --accent:    #4a5aff;
  --radius:    12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy-light); }

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

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

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: .5px;
}

.nav-logo img { height: 40px; width: auto; }

.nav-links { display: flex; gap: 32px; list-style: none; }

.nav-links a {
  color: var(--white-dim);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(74, 90, 255, .06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(26, 26, 110, .04) 0%, transparent 50%),
    var(--bg);
}

.hero-content {
  max-width: 680px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 99px;
  background: rgba(74, 90, 255, .08);
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}

.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 1.15rem;
  color: var(--white-dim);
  max-width: 520px;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 24px rgba(74, 90, 255, .3);
}
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(74, 90, 255, .45);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--white-dim);
  border: 1.5px solid rgba(0,0,0,.15);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

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

.section-label {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 99px;
  background: rgba(74, 90, 255, .06);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -.01em;
}

.section-subtitle {
  color: var(--white-dim);
  max-width: 560px;
  margin-bottom: 48px;
  font-size: 1.05rem;
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: background .25s, border-color .25s, transform .25s;
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(74, 90, 255, .3);
  transform: translateY(-4px);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(74, 90, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--white-dim);
  font-size: .9rem;
  line-height: 1.6;
}

/* ===== Portfolio ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}

.portfolio-card:hover {
  border-color: rgba(74, 90, 255, .3);
  transform: translateY(-4px);
}

.portfolio-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #e8ebf5 0%, #d5d9e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.portfolio-info { padding: 24px; }

.portfolio-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.portfolio-info p {
  color: var(--white-dim);
  font-size: .85rem;
  line-height: 1.5;
}

.portfolio-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.portfolio-tags span {
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(74, 90, 255, .06);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 500;
}

.portfolio-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent);
  font-size: .85rem;
  font-weight: 600;
  transition: color .2s;
}
.portfolio-link:hover { color: var(--navy-light); }

/* ===== Contact ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--white-dim);
  margin-bottom: 32px;
  font-size: .95rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  color: var(--white-dim);
  font-size: .9rem;
}

.contact-detail .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(74, 90, 255, .06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--white);
  font-family: inherit;
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--steel);
}

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

.contact-form .btn { align-self: flex-start; }

/* ===== Footer ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(0,0,0,.08);
  text-align: center;
  color: var(--steel);
  font-size: .85rem;
}

/* ===== Legal Pages ===== */
.legal-page {
  padding-top: 140px;
  padding-bottom: 80px;
}

.legal-updated {
  color: var(--steel);
  font-size: .9rem;
  margin-bottom: 48px;
}

.legal-content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--white);
}

.legal-content p {
  color: var(--white-dim);
  font-size: .92rem;
  line-height: 1.7;
  margin-bottom: 14px;
  max-width: 720px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 14px;
  max-width: 720px;
}

.legal-content li {
  color: var(--white-dim);
  font-size: .92rem;
  line-height: 1.7;
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--accent);
}

.footer a {
  color: var(--steel-light);
  transition: color .2s;
}
.footer a:hover {
  color: var(--white);
}

/* ===== Animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(255, 255, 255, .97);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(0,0,0,.08);
  }
  .nav-toggle { display: block; }

  .hero { min-height: auto; padding: 120px 0 80px; }

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

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