@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Design Tokens */
  --primary-color: #8b5cf6;
  --primary-rgb: 139, 92, 246;
  --secondary-color: #06b6d4;
  --secondary-rgb: 6, 182, 212;
  --background-color: #07070f;
  --surface-color: #11111f;
  --surface-border: #1f1f3a;
  --text-color: #94a3b8;
  --heading-color: #f8fafc;
  --contrast-color: #ffffff;
  
  --accent-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  
  --font-default: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  scroll-behavior: smooth;
}

/* Base resets & layouts */
body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-default);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-color);
}

/* Glassmorphic Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 15px 0;
  background: rgba(7, 7, 15, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31, 31, 58, 0.5);
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 10px 0;
  background: rgba(7, 7, 15, 0.9);
}

.header .logo h1 {
  font-size: 24px;
  margin: 0;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header .btn-getstarted {
  background: var(--accent-gradient);
  color: var(--contrast-color);
  padding: 8px 20px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
  transition: all 0.3s ease;
}

.header .btn-getstarted:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

/* Nav Menu */
.navmenu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 24px;
}

.navmenu a {
  color: var(--text-color);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
}

.navmenu a:hover,
.navmenu .active {
  color: var(--secondary-color);
}

/* Hero Section with Glowing Gradients */
.hero {
  position: relative;
  padding: 160px 0 100px 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero .subtitle {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 991px) {
  .hero h1 {
    font-size: 2.8rem;
  }
}

.hero .description {
  font-size: 1.125rem;
  margin-bottom: 32px;
}

.btn-accent {
  background: var(--accent-gradient);
  color: var(--contrast-color);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
  color: var(--contrast-color);
}

.btn-text {
  color: var(--heading-color);
  font-weight: 600;
  margin-left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-text:hover {
  color: var(--secondary-color);
}

/* Sections */
section {
  padding: 80px 0;
  position: relative;
}

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

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: inline-block;
  position: relative;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  right: 25%;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 999px;
}

.section-title p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Glass Cards */
.card-glass {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 30px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.card-glass:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

/* About Section */
.about .check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.about .check-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.about .check-list li i {
  color: var(--secondary-color);
  font-size: 1.25rem;
}

.about .check-list li h4 {
  font-size: 1.1rem;
  margin: 0 0 4px 0;
}

.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-visual svg {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Services */
.service-icon {
  font-size: 2.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

/* Portfolio Filters & Cards */
.isotope-filters {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.isotope-filters li {
  padding: 8px 20px;
  border-radius: 9999px;
  cursor: pointer;
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  transition: all 0.3s ease;
  font-weight: 500;
}

.isotope-filters li.filter-active,
.isotope-filters li:hover {
  background: var(--accent-gradient);
  color: var(--contrast-color);
  border-color: transparent;
}

.work-card {
  overflow: hidden;
  position: relative;
}

.work-card .work-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.work-card img,
.work-card svg {
  transition: transform 0.5s ease;
  width: 100%;
  height: auto;
}

.work-card:hover img,
.work-card:hover svg {
  transform: scale(1.05);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 15, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.work-overlay i {
  color: var(--heading-color);
  font-size: 2rem;
}

.work-info {
  padding-top: 15px;
}

.work-meta {
  font-size: 13px;
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.work-tags {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.work-tags span {
  font-size: 11px;
  padding: 3px 8px;
  background: rgba(31, 31, 58, 0.5);
  border-radius: 4px;
}

/* Why Us Metrics */
.metric-card {
  text-align: center;
  padding: 40px 20px;
}

.metric-value {
  font-size: 3rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 10px;
}

/* Testimonials */
.testimonial-card {
  padding: 35px;
}

.testimonial-card p {
  font-style: italic;
  font-size: 1.05rem;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
}

.testimonial-user svg {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.testimonial-user h4 {
  font-size: 1rem;
  margin: 0;
}

.testimonial-user span {
  font-size: 12px;
  color: var(--text-color);
}

/* Contact */
.contact-info-block {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-info-block i {
  font-size: 1.5rem;
  color: var(--primary-color);
  background: rgba(139, 92, 246, 0.1);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.contact-form input,
.contact-form textarea {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  color: var(--heading-color);
  padding: 12px 16px;
  border-radius: 8px;
  width: 100%;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
  outline: none;
}

.contact-form button {
  background: var(--accent-gradient);
  color: var(--contrast-color);
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

/* Global Footer Adjustments */
.spec-site-global-footer {
  background: #07070f !important;
  border-top: 1px solid var(--surface-border) !important;
}

/* Mobile Nav Toggle Icon */
.mobile-nav-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--heading-color);
}

@media (max-width: 1199px) {
  .mobile-nav-toggle {
    display: block;
  }
  .navmenu {
    display: none;
  }
  body.mobile-nav-active .navmenu {
    display: block;
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    background: rgba(17, 17, 31, 0.95);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  }
  body.mobile-nav-active .navmenu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}