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

/* ==========================================
   DESIGN TOKENS & ROOT VARIABLES
   ========================================== */
:root {
  --bg-dark: #070913;
  --bg-card: rgba(15, 23, 42, 0.6);
  --bg-card-hover: rgba(20, 30, 55, 0.85);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(217, 70, 239, 0.3);
  
  --text-primary: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dark: #0F172A;
  
  --color-primary: #D946EF; /* Holographic Orchid */
  --color-secondary: #06B6D4; /* Soft Cyan */
  --color-accent: #8B5CF6; /* Neon Violet */
  --color-pink: #EC4899;
  
  --grad-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 50%, var(--color-secondary) 100%);
  --grad-sunset: linear-gradient(135deg, #EC4899 0%, #D946EF 50%, #8B5CF6 100%);
  --grad-dark: linear-gradient(180deg, #090D1F 0%, #05070F 100%);
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease-out;
  
  --container-width: 1200px;
  --header-height: 80px;
}

/* ==========================================
   RESET & SYSTEM STYLES
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, textarea, select {
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(217, 70, 239, 0.15);
  border-radius: 5px;
  border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Selection Highlight */
::selection {
  background: rgba(217, 70, 239, 0.3);
  color: #FFF;
}

/* ==========================================
   TYPOGRAPHY & UTILITIES
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-padding {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  display: block;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--grad-sunset);
  color: #FFF;
  box-shadow: 0 4px 20px rgba(217, 70, 239, 0.35);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 50%, var(--color-pink) 100%);
  opacity: 0;
  z-index: -1;
  transition: var(--transition-smooth);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.45);
}

.btn-outline {
  border: 1.5px solid var(--border-light);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(217, 70, 239, 0.2);
  color: #FFF;
  transform: translateY(-2px);
}

/* Glassmorphism card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 30px;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(217, 70, 239, 0.08);
}

/* ==========================================
   AMBIENT GLOWS & BACKGROUNDS
   ========================================== */
.glow-blob {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
}

.blob-pink {
  background: var(--color-primary);
  top: 10%;
  left: -10%;
}

.blob-blue {
  background: var(--color-secondary);
  bottom: 20%;
  right: -10%;
}

.blob-violet {
  background: var(--color-accent);
  top: 50%;
  left: 30%;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.header {
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.header.scrolled {
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  height: 70px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: inline-block;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 30px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link:hover, .nav-item.active .nav-link {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-item.active .nav-link::after {
  width: 100%;
}

/* Dropdown styling */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #0B0E1F;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 15px 20px;
  min-width: 200px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  list-style: none;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  padding: 8px 0;
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.dropdown-link:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

/* Social icons on header */
.header-socials {
  display: flex;
  gap: 15px;
  font-size: 1.1rem;
}

.header-socials a {
  color: var(--text-muted);
}

.header-socials a:hover {
  color: var(--color-primary);
  transform: scale(1.1);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.4) 0%, var(--bg-dark) 100%);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: contrast(1.1) brightness(0.8);
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(217, 70, 239, 0.1);
  border: 1px solid rgba(217, 70, 239, 0.3);
  color: var(--color-primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 25px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 25px;
}

.hero-title span {
  display: block;
  font-size: 4.8rem;
  font-weight: 800;
  margin-top: 5px;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.hero-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2;
}

.indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.indicator-dot.active {
  background: var(--color-primary);
  width: 25px;
  border-radius: 10px;
  box-shadow: 0 0 10px var(--color-primary);
}

/* ==========================================
   ABOUT US SECTION (HOMEPAGE)
   ========================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img-wrapper {
  position: relative;
  padding: 15px;
}

.about-img-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid;
  border-image: var(--grad-primary) 1;
  transform: translate(-10px, -10px);
  z-index: 1;
  pointer-events: none;
}

.about-img-shadow {
  position: absolute;
  top: 15px;
  left: 15px;
  right: -15px;
  bottom: -15px;
  background: var(--grad-sunset);
  z-index: 0;
  opacity: 0.15;
  filter: blur(20px);
}

.about-img-wrapper img {
  border-radius: 8px;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.about-content {
  position: relative;
  z-index: 2;
}

.about-title {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.about-desc {
  color: var(--text-muted);
  margin-bottom: 35px;
}

.features-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(217, 70, 239, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(217, 70, 239, 0.2);
  color: var(--color-primary);
  font-size: 1.2rem;
}

.feature-box h4 {
  font-size: 1.1rem;
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================
   STATS SECTION
   ========================================== */
.stats-banner {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 40px 0;
  position: relative;
  z-index: 3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  margin-bottom: 5px;
  font-weight: 800;
  letter-spacing: -1px;
}

.stat-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================
   PORTFOLIO MASONRY SECTION
   ========================================== */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--grad-primary);
  color: #FFF;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(217, 70, 239, 0.25);
}

/* Stable Masonry Layout via Flex columns */
.portfolio-masonry {
  display: flex;
  gap: 24px;
  width: 100%;
}

.masonry-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.portfolio-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.portfolio-card img {
  width: 100%;
  transition: var(--transition-smooth);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(7, 9, 19, 0) 40%, rgba(7, 9, 19, 0.9) 100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: var(--transition-smooth);
}

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

.portfolio-card:hover img {
  transform: scale(1.05);
  filter: saturate(1.1);
}

.portfolio-overlay-cat {
  font-size: 0.75rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  font-weight: 600;
}

.portfolio-overlay-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.portfolio-overlay-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.portfolio-overlay-link i {
  font-size: 0.75rem;
  transition: var(--transition-fast);
}

.portfolio-overlay-link:hover i {
  transform: translateX(4px);
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-card-glow {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--color-secondary);
  filter: blur(80px);
  opacity: 0;
  transition: var(--transition-smooth);
}

.service-card:hover .service-card-glow {
  opacity: 0.15;
}

.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid rgba(217, 70, 239, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  transform: rotateY(180deg);
  background: var(--grad-primary);
  color: #FFF;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(217, 70, 239, 0.35);
}

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

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================
   VIDEO / CALL TO ACTION (CTA)
   ========================================== */
.video-cta {
  height: 450px;
  background: var(--grad-sunset);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

.video-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 9, 19, 0.4);
  z-index: 2;
}

.video-cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
}

.video-cta-content {
  position: relative;
  z-index: 3;
  max-width: 600px;
  padding: 0 20px;
}

.play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 1.8rem;
  color: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 0 10px rgba(255, 255, 255, 0.2);
  transition: var(--transition-smooth);
}

.play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4), 0 0 0 15px rgba(255, 255, 255, 0.4);
  color: var(--color-pink);
}

.video-cta h2 {
  font-size: 2.2rem;
  font-weight: 800;
}

/* ==========================================
   TEAM SECTION
   ========================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.team-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.team-img-wrapper {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.team-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.team-card:hover .team-img-wrapper img {
  transform: scale(1.05);
}

.team-hover-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(7, 9, 19, 0.95) 0%, rgba(7, 9, 19, 0.5) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 24px;
  opacity: 0;
  transition: var(--transition-smooth);
  text-align: center;
}

.team-card:hover .team-hover-info {
  opacity: 1;
}

.team-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.85rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.team-socials {
  display: flex;
  gap: 12px;
}

.team-socials a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.team-socials a:hover {
  background: var(--grad-primary);
  color: #FFF;
  border-color: transparent;
  transform: translateY(-2px);
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
.testimonials-slider {
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.testimonials-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 30px;
}

.testimonial-card {
  min-width: calc(33.333% - 20px);
  margin-top: 45px;
  position: relative;
  text-align: center;
  padding-top: 55px; /* Offset for absolute avatar */
  border-bottom: 3px solid;
  border-image: var(--grad-primary) 1;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  border: 3px solid var(--bg-dark);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  overflow: hidden;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.testimonial-author {
  font-size: 1.1rem;
  font-weight: 700;
}

.testimonial-meta {
  font-size: 0.85rem;
  color: var(--color-secondary);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

/* ==========================================
   BLOGS SECTION
   ========================================== */
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}

.blog-card-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--grad-sunset);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #FFF;
}

.blog-card-content {
  padding: 24px 0 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.blog-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 15px;
}

.blog-card-title a:hover {
  color: var(--color-primary);
}

.blog-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.blog-card-link:hover {
  color: var(--color-primary);
}

.blog-card-link i {
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

.blog-card-link:hover i {
  transform: translateX(4px);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--grad-dark);
  border-top: 1px solid var(--border-light);
  padding-top: 70px;
  padding-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-primary);
}

.footer-about p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
}

.footer-socials a:hover {
  background: var(--grad-primary);
  color: #FFF;
  border-color: transparent;
  transform: translateY(-2px);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

.footer-recent-posts {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-post-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-post-thumb {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.footer-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-post-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}

.footer-post-info h4 a:hover {
  color: var(--color-primary);
}

.footer-post-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-contact-list {
  list-style: none;
}

.footer-contact-list li {
  margin-bottom: 15px;
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer-contact-list i {
  color: var(--color-primary);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================
   SECONDARY PAGES STYLES
   ========================================== */

/* Page Banner/Hero */
.page-hero {
  padding: 140px 0 60px;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.4) 0%, var(--bg-dark) 100%);
  position: relative;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.page-hero-title {
  font-size: 3rem;
  margin-bottom: 12px;
}

.breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  list-style: none;
}

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

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: var(--border-light);
}

/* --- ABOUT PAGE STYLES --- */
.timeline-section {
  position: relative;
  margin-top: 40px;
}

.timeline-section::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: var(--border-light);
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  position: relative;
  width: 100%;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content-wrapper {
  width: 45%;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 4px solid var(--bg-dark);
  box-shadow: 0 0 10px var(--color-primary);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-year {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

/* --- SERVICES PAGE STYLES --- */
.pricing-section {
  position: relative;
}

.pricing-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.pricing-toggle-label {
  font-weight: 600;
  cursor: pointer;
}

.pricing-toggle-label.active {
  color: var(--color-primary);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-light);
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background: var(--grad-primary);
}

input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.pricing-card.popular {
  border-color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(217, 70, 239, 0.15);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--grad-sunset);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
}

.pricing-header {
  margin-bottom: 25px;
  text-align: center;
}

.pricing-name {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.pricing-price {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: 30px;
}

.pricing-features li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.pricing-features li i {
  color: var(--color-secondary);
}

.pricing-features li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.6;
}

.pricing-features li.disabled i {
  color: var(--text-muted);
}

/* --- PORTFOLIO & FILTER STYLES --- */
.portfolio-expanded {
  margin-top: 40px;
}

/* Virtual pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}

.page-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.page-number:hover, .page-number.active {
  background: var(--grad-primary);
  color: #FFF;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(217, 70, 239, 0.2);
}

/* Portfolio Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 9, 19, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  position: relative;
  transform: scale(0.9);
  transition: var(--transition-smooth);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #FFF;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #FFF;
  font-size: 2.5rem;
  cursor: pointer;
  background: rgba(255,255,255,0.05);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.15);
  color: var(--color-primary);
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

.lightbox-caption {
  position: absolute;
  bottom: -40px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
}

/* --- PORTFOLIO DETAIL STYLES --- */
.project-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
}

.project-gallery-slides {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-gallery-slides img {
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.project-meta-box {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.project-meta-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.project-meta-list {
  list-style: none;
  margin-bottom: 30px;
}

.project-meta-list li {
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.project-meta-list span:first-child {
  color: var(--text-muted);
  font-weight: 500;
}

.project-meta-list span:last-child {
  font-weight: 600;
  text-align: right;
}

.project-quote {
  font-style: italic;
  color: var(--text-muted);
  padding-left: 15px;
  border-left: 3px solid var(--color-primary);
  margin: 20px 0;
  font-size: 0.95rem;
}

/* --- BLOG PAGE & LIST STYLES --- */
.blog-list-container {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 40px;
}

.blog-posts-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.blog-row-card {
  display: flex;
  gap: 30px;
}

.blog-row-card .blog-card-img {
  width: 40%;
  aspect-ratio: 4/3;
  flex-shrink: 0;
  border-radius: 12px;
}

.blog-row-card .blog-card-content {
  padding: 0;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
}

.widget-title {
  font-size: 1.15rem;
  margin-bottom: 20px;
  position: relative;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 25px;
  height: 2px;
  background: var(--color-secondary);
}

.sidebar-search {
  display: flex;
  border: 1px solid var(--border-light);
  border-radius: 50px;
  overflow: hidden;
}

.sidebar-search input {
  padding: 12px 20px;
  color: #FFF;
  flex-grow: 1;
}

.sidebar-search button {
  padding: 12px 20px;
  background: var(--grad-primary);
  color: #FFF;
  cursor: pointer;
}

.sidebar-cats {
  list-style: none;
}

.sidebar-cats li {
  margin-bottom: 12px;
}

.sidebar-cats a {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

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

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-tags a {
  padding: 6px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sidebar-tags a:hover {
  border-color: var(--color-primary);
  color: #FFF;
}

/* --- BLOG DETAIL PAGE --- */
.blog-detail-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.blog-detail-content p {
  margin-bottom: 20px;
}

.blog-detail-content blockquote {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 500;
  border-left: 4px solid var(--color-primary);
  padding: 10px 0 10px 25px;
  margin: 30px 0;
  color: var(--text-primary);
  background: rgba(217, 70, 239, 0.03);
}

.blog-detail-content h2, .blog-detail-content h3 {
  margin: 35px 0 15px;
}

.blog-author-box {
  display: flex;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 30px 0;
  margin-top: 50px;
}

.blog-author-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.blog-author-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- CONTACT PAGE STYLES --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-form-wrapper h3 {
  font-size: 1.6rem;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-input {
  width: 100%;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: #FFF;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(217, 70, 239, 0.15);
}

textarea.form-input {
  height: 150px;
  resize: vertical;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-card);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-header h4 {
  font-size: 1rem;
  font-weight: 600;
}

.faq-icon {
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.faq-item.active {
  border-color: var(--color-secondary);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--color-secondary);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.faq-content {
  padding: 0 20px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Toast Message */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-secondary);
  padding: 15px 25px;
  border-radius: 8px;
  color: #FFF;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-smooth);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast i {
  color: var(--color-secondary);
}

/* Map Canvas Placeholder */
.map-canvas {
  height: 350px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.5) 0%, rgba(5, 7, 15, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 50px;
}

.map-canvas-inner {
  z-index: 2;
  padding: 20px;
}

.map-canvas::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: radial-gradient(var(--border-light) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.3;
}

/* ==========================================
   SCROLL TRIGGERS & ANIMATIONS
   ========================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger delay classes */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 1024px) {
  :root {
    --header-height: 70px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  .hero-title span {
    font-size: 3.6rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .project-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-list-container {
    grid-template-columns: 1fr;
  }
  
  .blog-row-card {
    flex-direction: column;
  }
  
  .blog-row-card .blog-card-img {
    width: 100%;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: #070913;
    flex-direction: column;
    padding: 40px 0;
    gap: 20px;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--border-light);
    z-index: 999;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 5px 20px;
    display: none;
  }
  
  .nav-item:hover .nav-dropdown {
    display: block;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .header-socials {
    display: none;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .portfolio-masonry {
    flex-direction: column;
  }
  
  .timeline-section::before {
    left: 20px;
  }
  
  .timeline-item {
    flex-direction: row !important;
  }
  
  .timeline-content-wrapper {
    width: calc(100% - 50px);
    margin-left: 40px;
  }
  
  .timeline-dot {
    left: 20px;
    transform: translateX(-50%);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .features-2x2 {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
