/* ==========================================================================
   EL-NAFEER TECH AGENCY - PROFESSIONAL CSS STYLESHEET
   Clean, Trustworthy, Light Theme (Stripe/Vercel/Microsoft Aesthetic)
   ========================================================================== */

/* 1. Global Reset & Variables */
:root {
  --primary: #00f2fe;
  --primary-hover: #00d2eb;
  --secondary: #fbbf24;
  --text-main: #94a3b8;
  --text-muted: #64748b;
  --bg-white: rgba(15, 23, 42, 0.6); /* Glassmorphism Card base */
  --bg-light: #060814; /* Deep Space Black */
  --border: rgba(0, 242, 254, 0.15); /* Cyber glowing outline */
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-lg: 0 10px 40px rgba(0, 242, 254, 0.12);
  
  --wa-green: #0b0f19;
  --wa-green-light: #10b981;
  --wa-chat-bg: #080c14;
  --wa-msg-received: rgba(255, 255, 255, 0.02);
  --wa-msg-sent: rgba(0, 242, 254, 0.08);
  
  --font-arabic: 'Tajawal', sans-serif;
  --font-english: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-arabic);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  text-align: right;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

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

/* Common Section Styles */
section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

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

.section-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  background-color: rgba(0, 242, 254, 0.08) !important;
  border: 1px solid rgba(0, 242, 254, 0.2) !important;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.05) !important;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
}

/* Button Classes */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #060814 !important;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4) !important;
}

.btn-secondary {
  background-color: var(--bg-light);
  color: var(--secondary);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background-color: rgba(0, 242, 254, 0.08) !important;
  border-color: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2) !important;
}

.btn-reset {
  background-color: #ef4444;
  color: white;
  padding: 10px 20px;
  font-size: 14px;
}

.btn-reset:hover {
  background-color: #dc2626;
}

/* 2. Header (Navbar) */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(6, 8, 20, 0.8) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1.5px solid var(--border) !important;
  transition: all 0.3s ease;
}

.main-header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 242, 254, 0.08) !important;
  background-color: rgba(6, 8, 20, 0.95) !important;
}

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

.logo-img {
  height: 46px;
  display: block;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3) !important;
  border: 1px solid rgba(0, 242, 254, 0.25) !important;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  padding: 8px 0;
  position: relative;
  transition: color 0.25s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary) !important;
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.3);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.25s ease;
  box-shadow: 0 0 8px var(--primary);
}

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

.nav-btn {
  background-color: var(--secondary) !important;
  color: #060814 !important;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  transition: all 0.25s ease;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.2) !important;
}

.nav-btn:hover {
  background-color: var(--primary) !important;
  color: #060814 !important;
  transform: translateY(-1.5px);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.5) !important;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: var(--secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* 3. Hero Section */
.hero-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.hero-badge {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary) !important;
  background-color: rgba(0, 242, 254, 0.08) !important;
  border: 1px solid rgba(0, 242, 254, 0.2) !important;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.1) !important;
}

.hero-title {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.25;
  color: #ffffff !important;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-main);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.whatsapp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--wa-green-light);
  margin-left: 8px;
  display: inline-block;
  box-shadow: 0 0 8px var(--wa-green-light) !important;
}

/* Hero Graphic (Admin Dashboard CSS Simulation) */
.hero-graphic-placeholder {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  height: 380px;
  position: relative;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-graphic-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border);
}

.g-card {
  width: 80%;
  background-color: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.g-bar {
  height: 16px;
  width: 40%;
  background-color: var(--primary);
  border-radius: 4px;
}

.g-line {
  height: 8px;
  width: 80%;
  background-color: var(--border);
  border-radius: 4px;
}

.g-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #dbeafe;
}

.g-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}

.g-badge {
  position: absolute;
  top: 60px;
  left: 30px;
  background-color: #dcfce7;
  color: #15803d;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid #bbf7d0;
}

/* 4. WhatsApp Bot Simulator */
.simulator-section {
  background-color: var(--bg-light);
}

.whatsapp-mockup {
  max-width: 400px;
  margin: 0 auto;
  border-radius: 20px;
  background-color: var(--wa-chat-bg);
  box-shadow: var(--shadow-lg);
  border: 8px solid var(--secondary);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 560px;
}

.wa-header {
  background: linear-gradient(135deg, #0b0f19 0%, #151d30 100%) !important;
  color: #ffffff !important;
  padding: 28px 18px 14px 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  border-bottom: 1.5px solid rgba(0, 242, 254, 0.3) !important;
}

.wa-avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(0, 242, 254, 0.3) !important;
}

.wa-user-info {
  flex-grow: 1 !important;
}

.wa-name {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #00f2fe !important;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.6) !important;
  font-family: var(--font-arabic) !important;
}

.wa-status {
  font-size: 11px !important;
  color: #10b981 !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.wa-status::before {
  content: '' !important;
  width: 6px !important;
  height: 6px !important;
  background-color: #10b981 !important;
  border-radius: 50% !important;
  display: inline-block !important;
  box-shadow: 0 0 8px #10b981 !important;
  animation: pulse-green 1.5s infinite !important;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.wa-actions-icons {
  display: flex !important;
  gap: 16px !important;
  font-size: 15px !important;
  opacity: 0.7 !important;
  color: #a0aec0 !important;
}

.wa-chat-window {
  flex-grow: 1 !important;
  padding: 18px !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  background-color: #080c14 !important;
  background-image: 
    radial-gradient(rgba(0, 242, 254, 0.035) 1px, transparent 1.5px),
    linear-gradient(rgba(37, 99, 235, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.015) 1px, transparent 1px) !important;
  background-size: 24px 24px, 12px 12px, 12px 12px !important;
  background-position: center !important;
}

.wa-msg {
  max-width: 85% !important;
  display: flex !important;
  flex-direction: column !important;
  margin-bottom: 2px !important;
}

.wa-received {
  align-self: flex-start !important;
  text-align: right !important;
}

.wa-sent {
  align-self: flex-end !important;
  text-align: right !important;
}

.wa-bubble {
  padding: 12px 16px !important;
  border-radius: 16px !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  font-family: var(--font-arabic) !important;
}

.wa-received .wa-bubble {
  background-color: #202c33 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #e9edef !important;
  border-top-right-radius: 4px !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.wa-sent .wa-bubble {
  background-color: #005c4b !important;
  border: 1px solid rgba(0, 92, 75, 0.3) !important;
  color: #e9edef !important;
  border-top-left-radius: 4px !important;
  box-shadow: 0 4px 15px rgba(0, 92, 75, 0.1) !important;
}

.wa-time {
  font-size: 9px !important;
  color: #64748b !important;
  align-self: flex-end !important;
  margin-top: 4px !important;
  margin-right: 4px !important;
}

.wa-options-wrap {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
  margin-top: 6px !important;
  align-self: flex-start !important;
}

.wa-option-btn {
  background-color: rgba(32, 44, 51, 0.6) !important;
  color: #cbd5e1 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  padding: 12px 18px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  font-family: var(--font-arabic) !important;
  text-align: right !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.01) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  direction: rtl !important;
}

.wa-option-btn::after {
  content: '←' !important;
  font-size: 14px !important;
  color: #00a884 !important;
  opacity: 0.6 !important;
  transition: all 0.3s ease !important;
}

.wa-option-btn:hover {
  background-color: rgba(0, 168, 132, 0.08) !important;
  color: #ffffff !important;
  border-color: #00a884 !important;
  box-shadow: 0 0 15px rgba(0, 168, 132, 0.25), inset 0 0 15px rgba(0, 168, 132, 0.05) !important;
  transform: translateY(-1.5px) scale(1.01) !important;
}

.wa-option-btn:hover::after {
  opacity: 1 !important;
  transform: translateX(-4px) !important;
  color: #ffffff !important;
}

.wa-input-bar {
  background-color: #202c33 !important;
  padding: 12px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.wa-input-bar input {
  flex-grow: 1 !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 24px !important;
  padding: 11px 18px !important;
  font-size: 14px !important;
  font-family: var(--font-arabic) !important;
  outline: none !important;
  background-color: #2a3942 !important;
  color: #ffffff !important;
  transition: all 0.3s ease !important;
}

.wa-input-bar input:focus {
  border-color: #00a884 !important;
  box-shadow: 0 0 12px rgba(0, 168, 132, 0.2) !important;
}

.wa-send-btn {
  background: #00a884 !important;
  color: #ffffff !important;
  border: none !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 0 12px rgba(0, 168, 132, 0.3) !important;
  transition: all 0.3s ease !important;
}

.wa-send-btn:hover {
  transform: scale(1.06) !important;
  box-shadow: 0 0 18px rgba(0, 168, 132, 0.5) !important;
}

.simulator-reset-wrap {
  text-align: center;
  margin-top: 30px;
}

/* 5. Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.sc-whatsapp {
  background-color: rgba(16, 185, 129, 0.1) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  color: #10b981 !important;
}

.sc-platform {
  background-color: rgba(0, 242, 254, 0.1) !important;
  border: 1px solid rgba(0, 242, 254, 0.25) !important;
  color: #00f2fe !important;
}

.sc-automation {
  background-color: rgba(251, 191, 36, 0.1) !important;
  border: 1px solid rgba(251, 191, 36, 0.25) !important;
  color: #fbbf24 !important;
}

.service-badge {
  position: absolute;
  top: 40px;
  left: 30px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
}

.sb-primary {
  background-color: #dcfce7;
  color: #15803d;
}

.sb-secondary {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.sb-tertiary {
  background-color: #f3e8ff;
  color: #7e22ce;
}

.service-card-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--secondary);
}

.service-card-desc {
  font-size: 15px;
  color: var(--text-main);
}

/* 6. Portfolio / Case Studies */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.portfolio-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
}

.portfolio-img-placeholder {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.08) 0%, rgba(37, 99, 235, 0.12) 100%) !important;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.portfolio-img-placeholder.sec {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.12) 100%) !important;
}

.portfolio-img-placeholder.tert {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, rgba(217, 119, 6, 0.12) 100%) !important;
}

.img-lbl-main {
  font-family: var(--font-english);
  font-size: 20px;
  font-weight: 800;
  color: var(--primary) !important;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
  margin-bottom: 6px;
}

.img-lbl-sub {
  font-family: var(--font-english);
  font-size: 12px;
  color: var(--text-muted);
}

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

.portfolio-header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.portfolio-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}

.portfolio-badge.live {
  background-color: rgba(16, 185, 129, 0.1) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.portfolio-badge.upcoming {
  background-color: rgba(251, 191, 36, 0.1) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(251, 191, 36, 0.3) !important;
}

.portfolio-tech {
  font-family: var(--font-english);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.portfolio-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #ffffff !important;
}

.portfolio-desc {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 20px;
  flex-grow: 1;
}

.portfolio-stats {
  display: flex;
  gap: 16px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  margin-bottom: 20px;
}

.stat-item {
  flex: 1;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 16px;
  color: var(--primary);
  font-weight: 800;
}

.stat-item span {
  font-size: 11px;
  color: var(--text-muted);
}

.portfolio-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  display: inline-block;
}

.portfolio-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.portfolio-link.disabled {
  color: var(--text-muted);
  cursor: not-allowed;
}

/* 7. How it Works (Timeline) */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%) !important;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.5) !important;
  z-index: 1;
}

.timeline-item {
  position: relative;
  z-index: 2;
  text-align: center;
}

.timeline-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #0c101d !important;
  border: 3px solid var(--primary);
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3) !important;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-num {
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.6) !important;
  border-color: #ffffff;
}

.timeline-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff !important;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-main);
  padding: 0 10px;
}

/* 8. Contact Section (CTA) */
.contact-section {
  background-color: var(--bg-light);
  border-bottom: none;
}

.contact-card {
  background: linear-gradient(135deg, #0b0f19 0%, #151d30 100%) !important;
  border-radius: 24px;
  padding: 80px 40px;
  text-align: center;
  color: #ffffff !important;
  box-shadow: 0 25px 60px rgba(0, 242, 254, 0.15) !important;
  border: 1.5px solid rgba(0, 242, 254, 0.25) !important;
}

.contact-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  color: #ffffff !important;
}

.contact-subtitle {
  font-size: 18px;
  color: #94a3b8 !important;
  margin-bottom: 40px;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-cta-main {
  background-color: var(--primary) !important;
  color: #060814 !important;
  padding: 14px 36px;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3) !important;
  transition: all 0.25s ease;
}

.btn-cta-main:hover {
  background-color: #ffffff !important;
  color: #060814 !important;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.6) !important;
}

.btn-cta-sub {
  background-color: transparent !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(0, 242, 254, 0.3) !important;
  padding: 14px 36px;
  transition: all 0.25s ease;
}

.btn-cta-sub:hover {
  background-color: rgba(0, 242, 254, 0.08) !important;
  border-color: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3) !important;
}

/* 9. Footer */
.main-footer {
  background-color: #05070c !important;
  color: #94a3b8;
  padding: 80px 0 0 0;
  border-top: 1.5px solid var(--border) !important;
}

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

.footer-logo {
  height: 52px;
  display: block;
  border-radius: 8px;
  margin-bottom: 24px;
}

.footer-desc {
  font-size: 15px;
  line-height: 1.7;
}

.footer-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff !important;
  margin-bottom: 24px;
  position: relative;
}

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

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

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

.footer-contact-info p {
  margin-bottom: 12px;
  font-size: 15px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px 0;
  text-align: center;
  font-size: 14px;
}

/* 10. Responsive Media Queries */
@media (max-width: 1024px) {
  .services-grid, .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .timeline::before {
    display: none;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .services-grid, .portfolio-grid, .footer-container {
    grid-template-columns: 1fr;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 20px;
    display: none;
  }
  
  .nav-menu.open {
    display: flex;
  }
  
  .contact-actions {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 30px;
  }
  
  .timeline {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   VISUAL OVERHAUL - PREMIUM STYLING ADDITIONS
   ========================================================================== */

/* Upgraded Logo Container */
.logo-link {
  display: flex;
  align-items: center;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  background-color: #0b0f19;
}
.logo-img {
  height: 48px;
  display: block;
}

/* Premium Typography Adjustments */
.hero-title {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--secondary);
}

.hero-subtitle {
  font-size: 19px;
  color: #475569;
  line-height: 1.7;
}

/* SaaS Dashboard CSS Mockup */
.hero-dashboard {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  height: 380px;
  width: 100%;
  overflow: hidden;
}

.db-header {
  height: 40px;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: relative;
}

.db-dots {
  display: flex;
  gap: 6px;
}

.db-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.db-dots span:nth-child(1) { background-color: #ef4444; }
.db-dots span:nth-child(2) { background-color: #eab308; }
.db-dots span:nth-child(3) { background-color: #22c55e; }

.db-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
}

.db-body {
  display: flex;
  flex-grow: 1;
  height: calc(100% - 40px);
}

.db-sidebar {
  width: 130px;
  background-color: var(--bg-light);
  border-left: 1px solid var(--border);
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sb-item {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  text-align: right;
  transition: all 0.25s ease;
}

.sb-item.active {
  background-color: rgba(0, 242, 254, 0.08) !important;
  color: var(--primary) !important;
  border: 1px solid rgba(0, 242, 254, 0.25) !important;
}

.db-content {
  flex-grow: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: var(--bg-white);
  text-align: right;
}

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

.db-stat-card {
  background-color: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.db-stat-lbl {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
}

.db-stat-val {
  font-size: 20px;
  font-weight: 900;
  color: var(--secondary);
  margin: 4px 0;
}

.db-stat-trend {
  font-size: 9px;
  font-weight: 700;
}

.db-stat-trend.up { color: #16a34a; }
.db-stat-trend.active { color: var(--primary); }

.db-chart-mock {
  flex-grow: 1;
  background-color: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 16px;
}

.db-chart-bar {
  width: 28px;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(37, 99, 235, 0.3) 100%) !important;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  transition: height 0.5s ease;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2) !important;
}

/* Realistic Bezel for WhatsApp Mockup */
.whatsapp-mockup {
  border: 14px solid #080c14 !important; /* Premium Phone Bezel */
  border-radius: 36px !important;
  box-shadow: 0 25px 60px rgba(0, 242, 254, 0.18), 0 0 50px rgba(0, 0, 0, 0.6) !important;
  position: relative;
  overflow: hidden;
}

.whatsapp-mockup::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 18px;
  background-color: #080c14;
  border-radius: 10px;
  z-index: 10;
}

/* Upgraded Reset Button style */
.btn-reset {
  background-color: var(--bg-white) !important;
  color: #ef4444 !important;
  border: 1px solid #fee2e2 !important;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reset:hover {
  background-color: #fee2e2 !important;
  border-color: #fca5a5 !important;
  transform: translateY(-1px);
}

/* Mini UI Showcase Mockups inside Portfolio Image Placeholders */
.portfolio-img-placeholder {
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at 10% 20%, rgba(239,246,255,1) 0%, rgba(219,234,254,1) 90%) !important;
}

.mini-ui {
  width: 85%;
  height: 160px;
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-top: 40px; /* Offset down for 3D look */
  text-align: right;
}

.ui-bar {
  height: 20px;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 4px;
}

.ui-bar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--border);
}

.ui-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 10px;
}

.ui-card {
  background-color: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
}

.ui-card span {
  font-size: 8px;
  color: var(--text-muted);
}

.ui-card strong {
  font-size: 14px;
  color: var(--secondary);
}

.ui-graph {
  flex-grow: 1;
  padding: 0 10px 10px 10px;
  display: flex;
  align-items: flex-end;
}

.ui-graph-line {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #10b981 100%);
  border-radius: 2px;
}

/* Education Dashboard Mini UI */
.edu-ui .ui-list {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ui-list-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ui-list-item span {
  font-size: 10px;
  font-weight: 700;
  color: var(--secondary);
}

.ui-progress {
  height: 6px;
  background-color: var(--primary);
  border-radius: 3px;
}

.edu-ui .ui-list-item:nth-child(2) .ui-progress {
  background-color: #10b981;
}

/* Real Estate Mini UI */
.ui-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 12px;
}

.ui-box {
  background-color: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  color: var(--secondary);
}

.ui-box:nth-child(3) {
  background-color: #fef3c7;
  color: #d97706;
  border-color: #fde68a;
}

/* ==========================================================================
   ADVANCED GLOBAL TECH AESTHETICS OVERHAUL
   ========================================================================== */

/* Blueprint Grid + Alternating Dark Cyber Gradient Backgrounds applied to all sections */
.hero-section {
  background-image: 
    linear-gradient(rgba(0, 242, 254, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 254, 0.025) 1px, transparent 1px),
    linear-gradient(135deg, #060814 0%, #0b0f19 100%) !important;
  background-size: 50px 50px !important;
  background-position: center !important;
}

.simulator-section, .portfolio-section, .contact-section {
  background-image: 
    linear-gradient(rgba(0, 242, 254, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 254, 0.02) 1px, transparent 1px),
    linear-gradient(180deg, #0b0f19 0%, #060814 100%) !important;
  background-size: 50px 50px !important;
  background-position: center !important;
}

.services-section, .timeline-section {
  background-image: 
    linear-gradient(rgba(0, 242, 254, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 254, 0.02) 1px, transparent 1px),
    linear-gradient(180deg, #060814 0%, #0b0f19 100%) !important;
  background-size: 50px 50px !important;
  background-position: center !important;
}

/* Scroll Reveal Base Classes */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.0s cubic-bezier(0.16, 1, 0.3, 1), transform 1.0s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

/* Sequential Delay utility classes for scroll reveal elements */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Glowing Pulse Animation for status lights */
@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.db-stat-trend.active::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22c55e;
  margin-left: 6px;
  animation: status-pulse 2s infinite;
  vertical-align: middle;
}

/* Hero Chart Loading Animation */
.db-chart-bar {
  height: 0 !important; /* Starts at 0, animated by JS adding .loaded class */
  transition: height 1.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hero-dashboard.loaded .db-chart-bar:nth-child(1) { height: 40% !important; }
.hero-dashboard.loaded .db-chart-bar:nth-child(2) { height: 65% !important; }
.hero-dashboard.loaded .db-chart-bar:nth-child(3) { height: 85% !important; }
.hero-dashboard.loaded .db-chart-bar:nth-child(4) { height: 50% !important; }
.hero-dashboard.loaded .db-chart-bar:nth-child(5) { height: 95% !important; }

/* Interactive Hover transitions for Cards */
.service-card, .portfolio-card {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border: 1px solid var(--border) !important;
  background-color: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(12px) !important;
}

.service-card:hover, .portfolio-card:hover {
  transform: translateY(-8px) scale(1.01) !important;
  box-shadow: 0 20px 40px rgba(0, 242, 254, 0.12), inset 0 0 20px rgba(0, 242, 254, 0.05) !important;
  border-color: rgba(0, 242, 254, 0.45) !important;
}

/* Floating effect for Hero Graphic mockup */
@keyframes float-mockup {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.hero-dashboard {
  animation: float-mockup 6s ease-in-out infinite;
}

/* Footer Contact Social Icons Styling */
.footer-social-icons {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  justify-content: flex-start;
}

.footer-social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 242, 254, 0.25) !important;
  background-color: rgba(15, 23, 42, 0.5) !important;
  color: var(--primary) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.1) !important;
}

.footer-social-icon:hover {
  background-color: var(--primary) !important;
  color: #060814 !important;
  border-color: var(--primary) !important;
  transform: translateY(-4px) scale(1.08) !important;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.6) !important;
}


