/* CSS Variables for Theme - Geometric Art Variant */
:root {
  --primary-color: #00ddff;
  /* Cyan */
  --secondary-color: #d946ef;
  /* Magenta */
  --accent-color: #8b5cf6;
  /* Violet */
  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-border: 1px solid rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  --font-main: 'Inter', sans-serif;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  /* Deep Blue Base */
  background-color: #0f172a;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;

  /* ARTWORK: Complex Geometric Background */
  background-image:
    /* Grid Line Pattern */
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    /* Large Diagonal Shards */
    linear-gradient(135deg, rgba(59, 130, 246, 0.1) 25%, transparent 25%),
    linear-gradient(225deg, rgba(139, 92, 246, 0.1) 25%, transparent 25%),
    linear-gradient(45deg, rgba(37, 99, 235, 0.1) 25%, transparent 25%),
    linear-gradient(315deg, rgba(236, 72, 153, 0.05) 25%, transparent 25%);

  background-size:
    40px 40px,
    /* Grid size */
    40px 40px,
    /* Grid size */
    100% 100%,
    /* Large patterns */
    100% 100%,
    100% 100%,
    100% 100%;

  background-attachment: fixed;
}

/* Floating Shapes (Defined Art Elements) - NOT blurry blobs */
body::before {
  content: '';
  position: fixed;
  top: 10%;
  right: -5%;
  width: 400px;
  height: 400px;
  border: 2px solid rgba(0, 221, 255, 0.1);
  border-radius: 50%;
  animation: floatRotate 20s infinite linear;
  z-index: -1;
  background: conic-gradient(from 0deg, transparent, rgba(0, 221, 255, 0.05), transparent);
}

body::after {
  content: '';
  position: fixed;
  bottom: 10%;
  left: -5%;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(217, 70, 239, 0.15);
  transform: rotate(45deg);
  z-index: -1;
  background: linear-gradient(45deg, transparent, rgba(217, 70, 239, 0.05));
  animation: floatSimple 15s infinite alternate ease-in-out;
}

/* Extra decorative element: A large subtle geometric polygon */
.art-poly {
  position: fixed;
  top: 30%;
  left: 20%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.03), transparent 60%);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  z-index: -2;
  animation: spinSlow 60s infinite linear;
  pointer-events: none;
}

@keyframes floatRotate {
  0% {
    transform: rotate(0deg) translate(0, 0);
  }

  50% {
    transform: rotate(180deg) translate(20px, 20px);
  }

  100% {
    transform: rotate(360deg) translate(0, 0);
  }
}

@keyframes floatSimple {
  0% {
    transform: translateY(0) rotate(45deg);
  }

  100% {
    transform: translateY(-30px) rotate(50deg);
  }
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-speed);
}

p {
  color: var(--text-muted);
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(to right, #00ddff, #d946ef);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links a:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(0, 221, 255, 0.6);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8rem 5% 5rem;
  min-height: 80vh;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 1;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: linear-gradient(180deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: #94a3b8;
  max-width: 90%;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  color: white;
  border-radius: 4px;
  /* More tech-y boxy look */
  font-weight: 600;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
  background-size: 200% 200%;
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
  color: white;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  z-index: 1;
  position: relative;
}

/* Geometric frame behind hero image */
.hero-image::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(0, 221, 255, 0.2);
  top: 20px;
  right: -20px;
  z-index: -1;
  border-radius: 20px;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Splash Cards Section (Zig-Zag) */
.splash-section {
  padding: 6rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 5rem;
}

.splash-container {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.splash-row {
  display: flex;
  width: 100%;
  padding: 1rem 0;
}

.splash-row.left {
  justify-content: flex-start;
}

.splash-row.right {
  justify-content: flex-end;
}

.splash-card-boxed {
  width: 48%;
  background: #1e293b;
  /* Fallback */
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Tech Corner Accents */
.splash-card-boxed::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-top: 2px solid var(--primary-color);
  border-left: 2px solid var(--primary-color);
  z-index: 2;
  transition: all 0.3s;
}

.splash-card-boxed::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px;
  border-bottom: 2px solid var(--secondary-color);
  border-right: 2px solid var(--secondary-color);
  z-index: 2;
  transition: all 0.3s;
}

.splash-card-boxed:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
}

.splash-card-boxed:hover::before,
.splash-card-boxed:hover::after {
  width: 100%;
  height: 100%;
  opacity: 0.1;
  background: var(--primary-color);
  border: none;
}

.splash-card-boxed img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.3s;
}

.splash-card-boxed:hover img {
  filter: grayscale(0%);
}

.splash-card-boxed .info {
  padding: 2.5rem;
}

.splash-card-boxed .info h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0 5%;
}

.service-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  /* Neon glow icon */
  text-shadow: 0 0 20px rgba(0, 221, 255, 0.5);
}

/* Footer */
footer {
  background-color: #020617;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 5rem 5% 2rem;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 3rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-col h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: #64748b;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 8rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .splash-card-boxed {
    width: 100%;
  }

  .splash-row {
    justify-content: center !important;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    gap: 1.5rem;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }
}