/* ===== FortressGuard High-Tech Modern Theme ===== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #00e5ff;
  --primary-dark: #0091a1;
  --accent: #7c4dff;
  --accent-light: #b47cff;
  --bg-dark: #0a0e17;
  --bg-card: rgba(15, 23, 42, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-heading: #ffffff;
  --danger: #ff4d6a;
  --success: #00e676;
  --warning: #ffc107;
  --gradient-primary: linear-gradient(135deg, #00e5ff 0%, #7c4dff 100%);
  --gradient-hero: linear-gradient(160deg, rgba(0, 229, 255, 0.12) 0%, rgba(124, 77, 255, 0.08) 50%, transparent 100%);
  --gradient-card: linear-gradient(135deg, rgba(0, 229, 255, 0.06) 0%, rgba(124, 77, 255, 0.04) 100%);
  --shadow-glow: 0 0 30px rgba(0, 229, 255, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.section-header .label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 1rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 30px;
}

.section-header h2 {
  margin-bottom: 1.2rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* --- Grid Background Effect --- */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* --- Particle Canvas --- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 1rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.5px;
}

.nav-logo img {
  height: 160px;
  width: auto;
}

.landing-logo {
  height: 160px !important;
  width: auto;
}

.nav-logo .logo-accent {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-heading);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  margin-left: 1rem;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #f8fafc;
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  border: 1px solid rgba(30, 64, 175, 0.9);
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.35);
  text-decoration: none;
}

.nav-cta-btn:hover,
.nav-cta-btn:focus {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(30, 64, 175, 0.45);
}

.nav-links .nav-cta-btn {
  color: #f8fafc;
}

.nav-links .nav-cta-btn:hover,
.nav-links .nav-cta-btn:focus {
  color: #ffffff;
}

.nav-cta-btn:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}

.nav-cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(30, 64, 175, 0.35);
}

.nav-cta-btn:visited {
  color: #f8fafc;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  font-family: var(--font-main);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #0a0e17;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.4);
  color: #0a0e17;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(0, 229, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(0, 229, 255, 0.08);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.4rem;
  font-size: 1.05rem;
}

.btn svg,
.btn i {
  font-size: 1.1em;
}

/* --- Glass Card --- */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.3), transparent);
}

.glass-card:hover {
  border-color: rgba(0, 229, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 14rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(124, 77, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
}

.hero-stat .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-heading);
  display: block;
}

.hero-stat .number span {
  color: var(--primary);
}

.hero-stat .label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  width: 100%;
  max-width: 520px;
  filter: drop-shadow(0 0 40px rgba(0, 229, 255, 0.15));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Shield animation for hero */
.shield-container {
  position: relative;
  width: 400px;
  height: 400px;
}

.shield-ring {
  position: absolute;
  border: 2px solid rgba(0, 229, 255, 0.15);
  border-radius: 50%;
  animation: rotateRing 20s linear infinite;
}

.shield-ring:nth-child(1) {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.shield-ring:nth-child(2) {
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  border-color: rgba(124, 77, 255, 0.15);
  animation-direction: reverse;
  animation-duration: 15s;
}

.shield-ring:nth-child(3) {
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  animation-duration: 10s;
}

.shield-ring .dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--primary);
}

.shield-ring:nth-child(1) .dot { top: -4px; left: 50%; }
.shield-ring:nth-child(2) .dot { bottom: -4px; right: 20%; }
.shield-ring:nth-child(3) .dot { top: 50%; right: -4px; }

.shield-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-center svg {
  width: 80px;
  height: 80px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.4));
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2.5rem 2rem;
}

.service-card .icon-box {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.15);
  font-size: 1.5rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.service-card .learn-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition);
}

.service-card:hover .learn-more {
  gap: 0.8rem;
}

#services.section {
  padding-bottom: 4rem;
}

#about.section {
  padding-top: 4rem;
}

/* --- About / Why Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1) 0%, transparent 60%);
  border-radius: var(--radius-lg);
}

.about-content .label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 1rem;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.feature-list {
  margin: 2rem 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.feature-list li .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 230, 118, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
  font-size: 0.75rem;
  margin-top: 2px;
}

/* --- CASTLE Methodology --- */
.castle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  counter-reset: castle;
}

.castle-card {
  counter-increment: castle;
  padding: 2.5rem 2rem;
  position: relative;
}

.castle-card::after {
  content: counter(castle, decimal-leading-zero);
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(0, 229, 255, 0.3);
}

.castle-card .letter {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1;
}

.castle-card h3 {
  margin-bottom: 0.75rem;
}

.castle-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- Stats Section --- */
.stats-section {
  background: var(--gradient-card);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item .number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-heading);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item .number .accent {
  color: var(--primary);
}

.stat-item .desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- CEO / Team Section --- */
.ceo-section {
  position: relative;
}

.ceo-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  padding: 3rem;
  max-width: 900px;
  margin: 0 auto;
  align-items: center;
}

.ceo-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(124, 77, 255, 0.15));
}

.ceo-avatar .initials {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
}

.ceo-info h3 {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.ceo-info .title {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.ceo-info p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* --- FAQ Section --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: rgba(0, 229, 255, 0.15);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-heading);
  transition: color var(--transition);
  user-select: none;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question .icon {
  font-size: 1.3rem;
  transition: transform var(--transition);
  color: var(--primary);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-main);
  transition: all var(--transition);
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.contact-form select option {
  background: #1a1f2e;
  color: var(--text-primary);
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-card .icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.15);
  flex-shrink: 0;
  font-size: 1.2rem;
}

.contact-info-card h4 {
  margin-bottom: 0.3rem;
}

.contact-info-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* --- Blog / Uplink Cards --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.blog-card {
  overflow: hidden;
  border-radius: var(--radius);
}

.blog-card .image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.blog-card .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .image img {
  transform: scale(1.05);
}

.blog-card .image .tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.8rem;
  background: rgba(10, 14, 23, 0.8);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--primary);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-card .content {
  padding: 1.5rem;
}

.blog-card .meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
}

.blog-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card h3 a {
  color: var(--text-heading);
}

.blog-card h3 a:hover {
  color: var(--primary);
}

.blog-card .excerpt {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* --- Newsletter --- */
.newsletter-section {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.06) 0%, rgba(124, 77, 255, 0.06) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 4rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.newsletter-section h2 {
  margin-bottom: 1rem;
}

.newsletter-section p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-main);
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--primary);
}

/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.3), transparent);
}

.cta-banner h2 {
  margin-bottom: 1rem;
}

.cta-banner p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  max-width: 300px;
}

.footer h4 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-heading);
  margin-bottom: 1.25rem;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.footer-social a:hover {
  color: var(--primary);
  border-color: rgba(0, 229, 255, 0.3);
  background: rgba(0, 229, 255, 0.08);
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* --- Scan Line Effect --- */
.scanline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 229, 255, 0.008) 2px,
    rgba(0, 229, 255, 0.008) 4px
  );
}

/* --- Page Header (sub pages) --- */
.page-header {
  padding: 10rem 0 4rem;
  position: relative;
  text-align: center;
  background: var(--gradient-hero);
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.3), transparent);
}

.page-header .label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 1rem;
}

.page-header h1 {
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Detailed Services Page --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border-glass);
}

.service-detail:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even) > * {
  direction: ltr;
}

.service-detail-content .label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.service-detail-content h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.service-detail-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.service-detail-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.service-detail-visual img {
  max-width: 100%;
  border-radius: var(--radius);
}

/* --- CASTLE Detail --- */
.castle-hero {
  text-align: center;
  padding: 3rem 0 4rem;
}

.castle-hero h2 {
  margin-bottom: 1rem;
}

.castle-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 2rem;
}

.castle-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.castle-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  opacity: 0.3;
}

.castle-step {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  margin-bottom: 3rem;
  align-items: center;
}

.castle-step:nth-child(odd) .step-content {
  text-align: right;
  padding-right: 2rem;
}

.castle-step:nth-child(odd) .step-empty {
  order: 3;
}

.castle-step:nth-child(even) .step-content {
  order: 3;
  padding-left: 2rem;
}

.castle-step:nth-child(even) .step-empty {
  order: 1;
}

.step-marker {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  border: 2px solid var(--primary);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  position: relative;
  z-index: 2;
  order: 2;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.step-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- Mobile Sidebar --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: rgba(10, 14, 23, 0.98);
  backdrop-filter: blur(20px);
  z-index: 1050;
  padding: 5rem 2rem 2rem;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 1px solid var(--border-glass);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu a {
  display: block;
  padding: 0.85rem 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border-glass);
  transition: color var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--primary);
}

.mobile-menu .nav-cta-mobile {
  width: 100%;
  margin-top: 1.5rem;
  text-align: center;
}

.mobile-menu .nav-cta-btn {
  color: #f8fafc;
}

.mobile-menu .nav-cta-btn:hover,
.mobile-menu .nav-cta-btn:focus {
  color: #ffffff;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero p { max-width: 100%; }

  .hero-buttons { justify-content: center; }

  .hero-stats { justify-content: center; }

  .hero-visual { display: none; }

  .about-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }

  .service-detail {
    grid-template-columns: 1fr;
  }

  .service-detail:nth-child(even) {
    direction: ltr;
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .ceo-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .castle-timeline::before { left: 30px; }

  .castle-step {
    grid-template-columns: 60px 1fr;
  }

  .castle-step .step-empty { display: none; }

  .castle-step:nth-child(odd) .step-content,
  .castle-step:nth-child(even) .step-content {
    text-align: left;
    padding-left: 2rem;
    padding-right: 0;
    order: 3;
  }

  .step-marker { order: 1; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .section { padding: 4rem 0; }

  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .castle-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }

  .hero {
    min-height: auto;
    padding-top: 14rem;
    padding-bottom: 3rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-stat {
    min-width: 140px;
    text-align: center;
  }

  .newsletter-section { padding: 2.5rem 1.5rem; }
  .newsletter-form { flex-direction: column; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .landing-logo {
    height: 120px !important;
  }

  .nav-logo img {
    height: 120px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }

  .mobile-menu { width: 100%; }

  .hero-buttons {
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .ceo-card {
    padding: 2rem 1.5rem;
  }

  .ceo-avatar {
    width: 140px;
    height: 140px;
  }

  .faq-question {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .faq-question .icon {
    margin-left: 0;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .stats-grid { grid-template-columns: 1fr; }
}

/* Partners section logo sizing */
#partners .partner-logo img {
  max-height: 48px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}
