/* Next Century Software - Fresh Design */

:root {
  --bg: #faf9f6;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --gradient-1: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #c2410c 100%);
  --gradient-2: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
  --gradient-text: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --gradient-text-alt: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
  --orange: #f97316;
  --blue: #0ea5e9;
  --purple: #8b5cf6;
  --green: #10b981;
  --slate-blue: #4a5f7f;
  --silver: #94a3b8;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 16px;
  --radius-xl: 24px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: rgba(250, 249, 246, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  color: var(--orange) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  color: #ea580c !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 10rem 0 8rem;
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.4) 45%,
    rgba(0, 0, 0, 0.1) 70%,
    transparent 100%
  );
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 560px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: #fff;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .gradient-text-alt {
  background: linear-gradient(135deg, #38bdf8 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-content .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-content .btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

.hero-content .btn-primary {
  background: #fff;
  color: var(--text) !important;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--text);
  color: var(--bg) !important;
  border: none;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-arrow {
  transition: transform 0.2s;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* Marquee */
.hero-marquee {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  z-index: 2;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 2rem;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.marquee-track span:nth-child(odd) {
  color: rgba(255, 255, 255, 0.5);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* Services - Bento */
.services {
  background: var(--bg-card);
}

.services-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem;
}

.service-card {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius-xl);
  padding: 2rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-color);
  opacity: 0.9;
}

.service-card--large {
  grid-column: span 2;
  grid-row: span 2;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-card--large .service-card-bg {
  height: 100%;
  width: 4px;
  left: 0;
  top: 0;
  right: auto;
}

.service-card--large h3 {
  font-size: 1.75rem;
}

.service-card--large p {
  font-size: 1.05rem;
}

.service-card--wide {
  grid-column: span 2;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* About */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content .section-title {
  margin-bottom: 1.5rem;
}

.about-text {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.about-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.about-web {
  width: 220px;
  height: 220px;
}

.about-web-svg {
  width: 100%;
  height: 100%;
}

.about-core {
  fill: var(--slate-blue);
  opacity: 0.95;
  animation: coreGlow 2.5s ease-in-out infinite;
}

.about-line {
  stroke: var(--slate-blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: lineShoot 2.2s ease-out infinite;
}

.about-line--2 {
  animation-delay: 0.08s;
}

.about-line--3 {
  animation-delay: 0.18s;
}

.about-node {
  fill: var(--slate-blue);
  opacity: 0;
  animation: nodeAppear 2s ease-out infinite;
}

.about-node--2 {
  animation-delay: 0.12s;
}

.about-node--3 {
  animation-delay: 0.25s;
}

@keyframes lineShoot {
  0% {
    stroke-dashoffset: 120;
    opacity: 1;
  }
  45% {
    stroke-dashoffset: 0;
    opacity: 0.95;
  }
  80% {
    opacity: 0.8;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.65;
  }
}

@keyframes nodeAppear {
  0% {
    opacity: 0;
  }
  40% {
    opacity: 0;
  }
  50% {
    opacity: 0.95;
  }
  80% {
    opacity: 0.85;
  }
  100% {
    opacity: 0.7;
  }
}

@keyframes coreGlow {
  0%, 100% {
    opacity: 0.9;
  }
  50% {
    opacity: 1;
  }
}

/* Platforms */
.platforms-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.platform-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.platform-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-icon--windows {
  background: linear-gradient(135deg, #0078d4 0%, #00bcf2 100%);
}

.platform-icon--web {
  background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
}

.platform-icon--android {
  background: linear-gradient(135deg, #3ddc84 0%, #34a853 100%);
}

.platform-icon::after {
  content: '';
  width: 28px;
  height: 28px;
  background: white;
  opacity: 0.9;
  border-radius: 4px;
  display: block;
}

.platform-icon--web::after {
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 100%);
}

.platform-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.platform-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contact */
/* Contact */
.contact.section {
  padding: 0;
}

.contact-block {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    transparent 65%
  );
  z-index: 1;
}

.contact-content {
  position: relative;
  z-index: 2;
  padding: 4rem;
  max-width: 420px;
  text-align: left;
  margin-left: 0;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.contact-tagline {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-company {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.contact-location {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--orange);
  transition: color 0.2s, transform 0.2s;
}

.contact-link:hover {
  color: #fb923c;
  transform: translateY(-2px);
}


.contact-website {
  color: rgba(255, 255, 255, 0.9);
}

.contact-website:hover {
  color: #fff;
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  height: 36px;
  width: auto;
  opacity: 0.7;
}

.footer p {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
  .services-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .service-card--large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .service-card--large .service-card-bg {
    height: 4px;
    width: 100%;
    right: 0;
    left: 0;
    top: 0;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(250, 249, 246, 0.98);
    backdrop-filter: blur(20px);
    padding: 2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .hero-content {
    max-width: 100%;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-visual {
    order: -1;
    min-height: 200px;
  }

  .about-web {
    width: 180px;
    height: 180px;
  }

  .platforms-row {
    grid-template-columns: 1fr;
  }

  .contact-content {
    padding: 2.5rem;
  }

  .contact-block {
    min-height: 400px;
  }
}

@media (max-width: 600px) {
  .services-bento {
    grid-template-columns: 1fr;
  }

  .service-card--large,
  .service-card--wide {
    grid-column: span 1;
  }
}
