/* ================================================
   LABTECH SKILLS - Main Stylesheet
   Design System: Deep Tech Blue & Digital Green
   ================================================ */

/* ---- CSS Variables / Design Tokens ---- */
:root {
  /* Primary Colors */
  --blue-900: #0d2137;
  --blue-800: #122d4a;
  --blue-700: #1a3f66;
  --blue-600: #1e5799;
  --blue-500: #2574b5;
  --blue-400: #3a8fd4;
  --blue-300: #6aafe0;
  --blue-200: #a3d0f0;
  --blue-100: #daeaf8;
  --blue-50: #edf5fc;

  /* Green Accent */
  --green-700: #2e7d3e;
  --green-600: #3a9d4f;
  --green-500: #4caf50;
  --green-400: #66bb6a;
  --green-300: #81c784;
  --green-200: #a5d6a7;
  --green-100: #c8e6c9;
  --green-50: #e8f5e9;

  /* Neutrals */
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-500) 100%);
  --gradient-hero: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 50%, #1a4a3a 100%);
  --gradient-green: linear-gradient(135deg, var(--green-600) 0%, var(--green-400) 100%);
  --gradient-card: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
  --gradient-dark: linear-gradient(135deg, var(--blue-900) 0%, var(--gray-900) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  --gray-800: #1a1a1a;
  --gray-900: #111111;

  /* Brand Colors */
  --color-canva: #00C4CC;
  --color-chatgpt: #10A37F;
  --color-gemini: #8E75C2;
  --color-elementor: #922247;
  --color-capcut: #000000;
  --color-semrush: #FF6200;
  --color-grammarly: #059862;
  --color-youtube: #FF0000;
  --color-microsoft: #00a4ef;
  --color-envato: #82B441;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-glow-blue: 0 0 30px rgba(37, 116, 181, 0.2);
  --shadow-glow-green: 0 0 30px rgba(76, 175, 80, 0.2);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1200px;
  --container-padding: 0 24px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  color: var(--gray-700);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--blue-900);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

/* ---- Container ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(30, 87, 153, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 87, 153, 0.4);
}

.btn-green {
  background: var(--gradient-green);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-green:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 25px rgba(76, 175, 80, 0.45);
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-blue {
  background: transparent;
  color: var(--blue-600);
  border: 2px solid var(--blue-500);
}

.btn-outline-blue:hover {
  background: var(--blue-600);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.btn svg,
.btn i {
  font-size: 1.1em;
}

/* ---- Section Styling ---- */
.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header .badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(30, 87, 153, 0.08);
  color: var(--blue-700);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(30, 87, 153, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-500);
}

.section-alt {
  background: var(--gray-50);
}

/* ---- Header / Navigation ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.97);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.logo img {
  height: 64px;
  width: auto;
}

.header .logo img {
  mix-blend-mode: multiply;
}

/* Logo text styles removed - Using image only */

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
  padding: 4px 0;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-green);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active {
  color: var(--blue-600);
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after {
  width: 100%;
}

.nav-cta {
  margin-left: 8px;
}

.nav-cta .btn {
  padding: 10px 26px;
  font-size: 0.88rem;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 4px;
}

.mobile-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--blue-700);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(76, 175, 80, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(37, 116, 181, 0.2) 0%, transparent 50%);
  z-index: 1;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(76, 175, 80, 0.4);
  border-radius: 50%;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: var(--radius-full);
  color: var(--green-300);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 .highlight {
  background: var(--gradient-green);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 36px;
  line-height: 1.8;
  max-width: 520px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-400);
  display: block;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s ease 0.3s both;
}

.hero-illustration {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: float 6s ease-in-out infinite;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.hero-card-title {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
}

.hero-card-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.hero-card-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-card-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  transition: background var(--transition-fast);
}

.hero-card-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-card-item .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(76, 175, 80, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-400);
  font-size: 0.7rem;
  flex-shrink: 0;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
}

/* Floating elements */
.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 0.82rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  animation: float 5s ease-in-out infinite;
}

.floating-badge.badge-1 {
  top: -20px;
  right: -20px;
  animation-delay: 0s;
}

.floating-badge.badge-2 {
  bottom: -20px;
  left: -40px;
  animation-delay: 2s;
}

.floating-badge .emoji {
  font-size: 1.2rem;
}

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

.service-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.service-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(30, 87, 153, 0.15);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: all var(--transition-base);
}

.service-card:hover .service-card-icon {
  background: var(--gradient-primary);
  transform: scale(1.05);
}

.service-card:hover .service-card-icon svg {
  color: var(--white);
  stroke: var(--white);
}

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

.service-card p {
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 16px;
}

.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-600);
  font-weight: 600;
  font-size: 0.88rem;
  transition: gap var(--transition-fast);
}

.service-card:hover .card-link {
  gap: 10px;
}

/* ---- Tools Grid ---- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.tool-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: all var(--transition-base);
  overflow: hidden;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--green-200);
}

.tool-card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
  transition: all var(--transition-base);
  overflow: hidden;
  padding: 12px;
}

.tool-card-icon img,
.tool-card-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tool-card:hover .tool-card-icon {
  background: var(--gradient-green);
  transform: scale(1.08) rotate(-3deg);
}

.tool-card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.tool-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.tool-card .price {
  display: inline-block;
  padding: 4px 14px;
  background: var(--green-50);
  color: var(--green-700);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.tool-card .btn {
  width: 100%;
  justify-content: center;
}

/* ---- Why Choose Us ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 28px;
}

.why-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.why-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  transition: all var(--transition-base);
}

.why-card:hover .why-icon {
  background: var(--gradient-primary);
  transform: scale(1.1);
}

.why-card:hover .why-icon svg {
  color: var(--white);
  stroke: var(--white);
}

.why-card h3 {
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.92rem;
  color: var(--gray-500);
}

/* ---- CTA Section ---- */
.cta-section {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(76, 175, 80, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(37, 116, 181, 0.12) 0%, transparent 50%);
}

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

.cta-content h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Footer ---- */
.footer {
  background: var(--blue-900);
  padding: 80px 0 0;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo img {
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  margin-top: 16px;
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-base);
  font-size: 1rem;
}

.footer-social a:hover {
  background: var(--green-500);
  color: var(--white);
  transform: translateY(-3px);
}

.footer h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--green-400);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.footer-contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green-400);
  font-size: 0.9rem;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---- WhatsApp Floating ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-base);
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-whatsapp {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.3); }
  50% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
}

/* ---- Page Hero (Inner Pages) ---- */
.page-hero {
  background: var(--gradient-hero);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(37, 116, 181, 0.15) 0%, transparent 50%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.88rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb a:hover {
  color: var(--green-400);
}

.breadcrumb .sep {
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumb .current {
  color: var(--green-400);
}

/* ---- Service Detail Cards ---- */
.service-detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--gray-200);
}

.service-detail-card:last-child {
  border-bottom: none;
}

.service-detail-card:nth-child(even) {
  direction: rtl;
}

.service-detail-card:nth-child(even) > * {
  direction: ltr;
}

.service-detail-info h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.service-detail-info p {
  margin-bottom: 16px;
}

.service-benefits {
  margin-bottom: 24px;
}

.service-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.92rem;
  color: var(--gray-600);
}

.service-benefits .check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.service-detail-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-visual-card {
  width: 100%;
  max-width: 380px;
  padding: 48px;
  border-radius: var(--radius-xl);
  background: var(--gradient-primary);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

/* Text overlay removed as requested */

.service-visual-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 33, 55, 0.7) 0%, rgba(30, 87, 153, 0.4) 100%);
  z-index: 1;
}

/* Highly Specific Service Backgrounds */
/* Reliable Service Backgrounds */
.bg-wp { background-image: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=800&q=80'); }
.bg-ecommerce { background-image: url('https://images.unsplash.com/photo-1557821552-17105176677c?auto=format&fit=crop&w=800&q=80'); }
.bg-seo { background-image: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=800&q=80'); }
.bg-social { background-image: url('https://images.unsplash.com/photo-1611162617213-7d7a39e9b1d7?auto=format&fit=crop&w=800&q=80'); }
.bg-ai-design { background-image: url('https://images.unsplash.com/photo-1620712943543-bcc4688e7485?auto=format&fit=crop&w=800&q=80'); }
.bg-youtube { background-image: url('https://images.unsplash.com/photo-1524749292158-7540c2494485?auto=format&fit=crop&w=800&q=80'); }
.bg-hosting { background-image: url('https://images.unsplash.com/photo-1544197150-b99a580bb7a8?auto=format&fit=crop&w=800&q=80'); }
.bg-migration { background-image: url('https://images.unsplash.com/photo-1563986768609-322da13575f3?auto=format&fit=crop&w=800&q=80'); }
.bg-content { background-image: url('https://images.unsplash.com/photo-1488190211105-8b0e65b80b4e?auto=format&fit=crop&w=800&q=80'); }

.service-visual-card h3 {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-size: 2rem;
  font-weight: 800;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* ---- Tools Page Grid ---- */
.tools-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.tool-detail-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.tool-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--green-200);
}

.tool-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.tool-detail-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  overflow: hidden;
  padding: 10px;
}

.tool-detail-icon img,
.tool-detail-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tool-detail-card:hover .tool-detail-icon {
  background: var(--gradient-green);
}

.tool-detail-header h3 {
  font-size: 1.15rem;
}

.tool-detail-card p {
  font-size: 0.92rem;
  color: var(--gray-500);
  flex: 1;
}

.tool-detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.tool-price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green-600);
}

.tool-price small {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--gray-500);
}

/* ---- About Page ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h2 {
  margin-bottom: 16px;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.8;
}

.about-visual {
  position: relative;
}

.about-image-card {
  width: 100%;
  padding: 48px;
  border-radius: var(--radius-xl);
  background: var(--gradient-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.about-image-card::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -20%;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  background: rgba(76, 175, 80, 0.15);
}

.about-image-card .icon-large {
  font-size: 5rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.about-image-card h3 {
  color: var(--white);
  font-size: 1.5rem;
  position: relative;
  z-index: 1;
}

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}

.mv-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: var(--white);
}

.mv-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.mv-card p {
  font-size: 0.92rem;
}

/* ---- Contact Page ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}

.contact-form-card h3 {
  margin-bottom: 8px;
}

.contact-form-card > p {
  margin-bottom: 28px;
  color: var(--gray-500);
}

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 0.92rem;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(37, 116, 181, 0.1);
}

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

.form-submit .btn {
  width: 100%;
  justify-content: center;
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: all var(--transition-base);
}

.contact-info-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
}

.contact-info-item:hover .contact-info-icon {
  background: var(--gradient-primary);
  color: var(--white);
}

.contact-info-item:hover .contact-info-icon svg {
  stroke: var(--white);
}

.contact-info-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  color: var(--blue-600);
}

.contact-info-item h4 {
  margin-bottom: 4px;
  color: var(--blue-900);
}

.contact-info-item p {
  font-size: 0.92rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

.contact-info-item a {
  color: var(--blue-600);
  font-weight: 500;
}

.contact-info-item a:hover {
  color: var(--green-500);
}

.contact-friendly {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  color: var(--white);
  text-align: center;
}

.contact-friendly h3 {
  color: var(--white);
  margin-bottom: 10px;
}

.contact-friendly p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

/* ---- Form Success Message ---- */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show {
  display: block;
}

.form-success .success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}

.form-success h3 {
  color: var(--green-600);
  margin-bottom: 8px;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-600);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--blue-700);
  transform: translateY(-3px);
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin: 0 auto 36px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

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

  .service-detail-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .service-detail-card:nth-child(even) {
    direction: ltr;
  }

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

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }

  .header .container {
    height: 66px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: 1000;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-cta {
    margin-left: 0;
  }

  .mobile-toggle {
    display: flex;
  }

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

  .hero-stats {
    gap: 24px;
  }

  .hero-stat-number {
    font-size: 1.6rem;
  }

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

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

  .tools-page-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .mission-vision {
    grid-template-columns: 1fr;
  }

  .service-visual-card {
    max-width: 280px;
    font-size: 3.5rem;
    padding: 36px;
  }

  .contact-form-card {
    padding: 28px;
  }

  .page-hero {
    padding: 120px 0 60px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 60px 0;
    --container-padding: 0 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

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

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
    bottom: 20px;
    right: 20px;
  }

  .back-to-top {
    bottom: 84px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }

/* ---- Loading Skeleton ---- */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- About Page Backgrounds ---- */
#aboutCardClients {
  background: linear-gradient(rgba(13, 33, 55, 0.7), rgba(13, 33, 55, 0.7)), url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?q=80&w=1974&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
}

#aboutCardServices {
  background: linear-gradient(rgba(26, 74, 58, 0.75), rgba(26, 74, 58, 0.75)), url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?q=80&w=2015&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
}

/* ---- Founder Section ---- */
.founder-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.founder-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--white);
}

.founder-image img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-slow);
}

.founder-image:hover img {
  transform: scale(1.05);
}

.founder-experience-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--gradient-green);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float 4s ease-in-out infinite;
}

.founder-info h2 {
  margin-bottom: 20px;
}

.founder-title {
  display: block;
  font-size: 1.1rem;
  color: var(--blue-600);
  font-weight: 600;
  margin-bottom: 24px;
}

.founder-bio {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.founder-socials {
  display: flex;
  gap: 16px;
}

.founder-social-btn {
  width: 44px;
  height: 44px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-700);
  transition: all var(--transition-base);
}

.founder-social-btn:hover {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 992px) {
  .founder-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .founder-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .founder-info {
    text-align: center;
  }

  .founder-socials {
    justify-content: center;
  }
}

/* ---- Portfolio Section ---- */
.portfolio-filters {
  display: flex; /* Restored */
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 50px;
}

.filter-btn {
  padding: 10px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  color: var(--gray-600);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
  box-shadow: var(--shadow-md);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

/* Portfolio grid with items */
.portfolio-grid.has-items {
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.portfolio-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 40px;
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  border: 2px dashed var(--gray-300);
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease;
}

.empty-state-icon {
  margin-bottom: 24px;
  color: var(--blue-400);
}

.empty-state-icon svg {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.portfolio-empty-state h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--blue-900);
}

.portfolio-empty-state p {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 30px;
  line-height: 1.8;
}

.empty-state-buttons {
  display: flex;
  justify-content: center;
}

.portfolio-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(30, 87, 153, 0.2);
}

.portfolio-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-image img.logo-img {
  object-fit: contain;
  padding: 30px;
  background: #13263a; /* Matches the dark logo's navy background */
}

.portfolio-category {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 14px;
  background: var(--blue-600);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 10;
}

.portfolio-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--blue-900);
}

.portfolio-content p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-highlights {
  margin-bottom: 25px;
  padding: 18px;
  background: var(--blue-50);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--green-500);
}

.project-highlights h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-700);
  margin-bottom: 15px;
  font-weight: 800;
}

.highlights-list {
  display: grid;
  gap: 12px;
}

.highlights-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--blue-900);
  font-weight: 600;
}

.highlights-list li svg {
  color: var(--green-600);
  flex-shrink: 0;
}

.portfolio-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.client-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-800);
  display: flex;
  align-items: center;
  gap: 6px;
}

.client-name svg {
  color: var(--green-600);
}

.view-project {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-600);
  display: flex;
  align-items: center;
  gap: 6px;
}

.view-project:hover {
  gap: 10px;
}

/* Internal Galleries for Service Cards */
.item-gallery-section {
  margin-top: 20px;
  margin-bottom: 25px;
}

.item-gallery-section span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 12px;
}

.branding-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.social-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.branding-item, .social-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: all var(--transition-base);
  position: relative;
  cursor: zoom-in;
}

.branding-item:hover, .social-item:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--blue-400);
  box-shadow: var(--shadow-md);
  z-index: 5;
}

.branding-item img, .social-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-base);
}

.branding-item:hover img, .social-item:hover img {
  transform: scale(1.1);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 41, 0.95);
  backdrop-filter: blur(10px);
}

.lightbox-container {
  position: relative;
  z-index: 10000;
  max-width: 90%;
  max-height: 90%;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.lightbox-container img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: -40px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.2) rotate(90deg);
}

@media (max-width: 768px) {
  .lightbox-close {
    top: -50px;
    right: 10px;
  }
}

/* Portfolio Hover Enhancements */
.portfolio-image.clickable {
  cursor: zoom-in;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 87, 153, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.image-overlay svg {
  color: var(--white);
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portfolio-image:hover .image-overlay svg {
  transform: scale(1);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--blue-50);
  color: var(--blue-700);
  border-radius: var(--radius-sm);
  border: 1px solid var(--blue-100);
}

.client-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-socials {
  display: flex;
  gap: 10px;
}

.project-socials a {
  color: var(--gray-400);
  transition: color var(--transition-fast), transform var(--transition-bounce);
}

.project-socials a:hover {
  color: var(--blue-600);
  transform: translateY(-2px) scale(1.1);
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================
   PROJECT DETAIL PAGE (Case Study)
   ================================================ */

.project-hero-header {
  padding: 140px 0 80px;
  background: var(--gradient-hero);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.project-hero-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(37, 116, 181, 0.15) 0%, transparent 50%);
  z-index: 1;
}

.project-hero-header .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.back-link {
  display: inline-block;
  color: var(--blue-200);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--white);
}

.project-hero-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

.project-hero-header h1 {
  color: var(--white);
}

.lead {
  font-size: 1.25rem;
  color: var(--blue-100);
  margin-bottom: 40px;
  max-width: 600px;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue-400);
  font-weight: 700;
}

.meta-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
}

.project-main-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* background and shadow removed to prevent blue edges on logo */
}

.project-hero-header {
  background: var(--gradient-hero);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.project-hero-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(37, 116, 181, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.project-main-image img {
  width: 100%;
  height: auto;
  display: block;
}

.project-overview {
  text-align: center;
  background: var(--white);
  padding: 100px 0 50px;
}

.overview-lead {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--gray-600);
  line-height: 1.8;
}

/* Zig-Zag Service Rows */
.service-zig-zag {
  padding: var(--section-padding); /* Standardized to 100px 0 */
}


.service-row {
  display: flex;
  align-items: center;
  gap: 100px; /* Increased for premium breathing room */
  margin-bottom: 150px; /* Increased weight between sections */
}


.service-row:last-child {
  margin-bottom: 0;
}

.service-text {
  flex: 1;
}

.service-media {
  flex: 1.2;
}

.service-number {
  font-family: var(--font-heading);
  font-size: 5rem; /* More weight/presence */
  font-weight: 800;
  color: var(--blue-50);
  line-height: 1;
  margin-bottom: -25px;
  position: relative;
  z-index: -1;
  user-select: none;
  opacity: 0.8;
}


.service-text h3 {
  font-size: 2.5rem; /* Increased weight */
  margin-bottom: 24px;
  color: var(--blue-900);
  position: relative;
  font-family: var(--font-heading);
}


.service-text p {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-bottom: 30px;
}

/* Media Containers (No Cropping) */
.media-container {
  background: var(--white); /* Premium white background */
  border-radius: var(--radius-xl);
  padding: 40px; /* More internal 'weight' */
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xl); /* Heavier premium shadow */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.media-container:hover {
  transform: translateY(-5px);
}


.stacked-media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  background: var(--gray-50);
  padding: 35px;
  border-radius: var(--radius-lg);
}


.stacked-media img {
  max-height: 220px;
  width: 100%;
  object-fit: contain;
  padding: 15px; /* Safety padding to prevent side lines from being hidden */
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Soft shadow to distinguish from background */
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
}

.screenshot-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: transform 0.3s ease;
  cursor: zoom-in;
  background: var(--white);
}

.screenshot-gallery img:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* New Gallery for Post Designs to prevent cropping */
.posts-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
}

.posts-gallery img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: transform 0.3s ease;
  cursor: zoom-in;
  background: var(--gray-50);
  padding: 10px;
}

.posts-gallery img:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

.posts-gallery img:last-child:nth-child(odd) {
  grid-column: span 2;
  height: 280px;
}




/* Automatic Zig-Zag Logic (matching services page) */
.service-row:nth-child(even) {
  direction: rtl;
}

.service-row:nth-child(even) > * {
  direction: ltr; /* Reset text direction inside */
}

/* Align text and social links based on direction */
.service-row:nth-child(even) .service-text {
  text-align: left; /* Keep left aligned for readability even if flipped */
}

/* Ensure social links also align correctly */
.service-row:nth-child(even) .social-links {
  justify-content: flex-start;
}

.roofing-icons-row {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.roofing-icon-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--blue-50);
  padding: 12px 20px;
  border-radius: 50px;
  border: 1px solid var(--blue-100);
}

.roofing-brand-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.roofing-icon-box span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-900);
}

/* Responsive Stacking (Text always first) */
@media (max-width: 992px) {
  .service-row {
    flex-direction: column !important;
    text-align: left !important;
    gap: 40px;
    margin-bottom: 80px;
    direction: ltr !important; /* Always reset on mobile */
  }
  
  .service-row > * {
    direction: ltr !important;
  }

  .service-media {
    width: 100%;
    order: 2; /* Image second on mobile */
  }
  
  .service-text {
    order: 1; /* Text first on mobile */
  }
}


.gallery-item-full {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.gallery-item-full img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}


/* Gallery Styles for Project Page */
.project-gallery-grid {
  display: grid;
  gap: 15px;
  margin: 25px 0;
}

.branding-gallery-layout {
  grid-template-columns: 1fr 1fr;
}

.social-gallery-layout {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  position: relative;
  background: var(--white);
  aspect-ratio: 4/3;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 41, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-overlay span {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
  transform: translateY(0);
}

.project-links-box {
  background: var(--gray-50);
  padding: 20px;
  border-radius: var(--radius-md);
  margin-top: 25px;
}

.project-links-box span {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.social-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--blue-600);
  font-size: 0.9rem;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 30px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
  transform: translateY(-2px);
}


/* Results & CTA Styles Removed for Site-Wide Consistency */


@media (max-width: 768px) {
  .results-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 992px) {
  .project-hero-header .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .project-main-image {
    transform: none;
    max-width: 600px;
  }
  
  .project-details-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .project-gallery-grid {
    grid-template-columns: 1fr;
  }
}

