/* ==========================================================================
   Junaid Alam - Executive Portfolio Theme
   Fintech Founder & AI Cloud Architect
   ========================================================================== */

:root {
  /* Color Palette - Executive Obsidian Theme */
  --bg-primary: #07090e;
  --bg-secondary: #0d111a;
  --bg-card: rgba(18, 24, 38, 0.72);
  --bg-card-hover: rgba(26, 34, 54, 0.88);
  --bg-glass: rgba(7, 9, 14, 0.85);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-glow: rgba(56, 189, 248, 0.35);
  --border-color-hover: rgba(255, 255, 255, 0.18);
  
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-cyan: #06b6d4;
  --accent-blue: #0ea5e9;
  --accent-sky: #38bdf8;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;

  --gradient-brand: linear-gradient(135deg, #38bdf8 0%, #6366f1 50%, #a855f7 100%);
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.18);
  --shadow-glow-purple: 0 0 40px rgba(168, 85, 247, 0.18);

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(248, 250, 252, 0.92);
  --border-color: rgba(15, 23, 42, 0.08);
  --border-color-glow: rgba(14, 165, 233, 0.3);
  --border-color-hover: rgba(15, 23, 42, 0.2);
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 30px rgba(14, 165, 233, 0.12);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] body::before {
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
}

.ambient-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

.ambient-cyan {
  top: -150px;
  right: -100px;
  background: #38bdf8;
}

.ambient-purple {
  top: 40%;
  left: -200px;
  background: #a855f7;
}

.ambient-emerald {
  bottom: 10%;
  right: -150px;
  background: #10b981;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.75rem;
  position: relative;
  z-index: 1;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-text-cyan {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section {
  padding: 6.5rem 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-sky);
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 1.2rem;
}

.section-title {
  font-size: 2.6rem;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Navigation Bar (Header Overhaul - Professional, No Mixing Text)
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

/* Brand Identity */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(99, 102, 241, 0.25) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.05em;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
  transition: all var(--transition-fast);
}

.brand-logo:hover .brand-mark {
  transform: scale(1.05);
  border-color: #38bdf8;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-caption {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-sky);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 2px;
}

/* Desktop Menu Links - Spaced, Clean, No Wrapping */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: 9999px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  background: rgba(15, 23, 42, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-sky);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--gradient-brand);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.68rem 1.4rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.25);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.68rem 1.4rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7.5rem 0 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent-emerald);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.8rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  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 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 1.2rem;
}

.hero-typing-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
  min-height: 42px;
}

.typed-text {
  color: var(--accent-sky);
  border-right: 3px solid var(--accent-sky);
  animation: blinkCursor 0.8s infinite;
  padding-right: 4px;
}

@keyframes blinkCursor {
  50% { border-color: transparent; }
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 2.2rem;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 2.8rem;
}

.hero-trust-badges {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-item i {
  color: var(--accent-sky);
  font-size: 1.1rem;
}

/* Hero Avatar Card */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-avatar-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 28px;
  overflow: visible;
}

.avatar-glow-ring {
  position: absolute;
  inset: -12px;
  border-radius: 36px;
  background: var(--gradient-brand);
  filter: blur(25px);
  opacity: 0.35;
  z-index: 0;
}

.avatar-image-container {
  position: relative;
  z-index: 1;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/5;
}

.avatar-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform var(--transition-smooth);
}

.hero-avatar-card:hover .avatar-image-container img {
  transform: scale(1.03);
}

.floating-badge {
  position: absolute;
  z-index: 2;
  padding: 0.85rem 1.2rem;
  border-radius: 18px;
  background: rgba(13, 17, 26, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  animation: floatCard 6s ease-in-out infinite;
  white-space: nowrap;
}

.badge-top-right {
  top: 15px;
  right: -25px;
  animation-delay: 0s;
}

.badge-bottom-left {
  bottom: 25px;
  left: -35px;
  animation-delay: 3s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.badge-icon.blue {
  background: rgba(14, 165, 233, 0.15);
  color: var(--accent-sky);
}

.badge-icon.emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.badge-text .val {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.badge-text .lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   Metrics Bar
   ========================================================================== */

.metrics-bar {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.8rem 2rem;
  margin-top: -2.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 10;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.metric-item {
  position: relative;
}

.metric-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-color);
}

.metric-number {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.metric-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.about-content p {
  margin-bottom: 1.4rem;
}

.about-highlight-box {
  background: rgba(56, 189, 248, 0.05);
  border-left: 4px solid var(--accent-sky);
  padding: 1.2rem 1.6rem;
  border-radius: 0 16px 16px 0;
  margin: 1.8rem 0;
}

.about-highlight-box p {
  font-style: italic;
  color: var(--text-main);
  margin: 0;
}

.about-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 2rem;
}

.meta-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1rem 1.2rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.meta-card i {
  font-size: 1.3rem;
  color: var(--accent-sky);
}

.meta-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.meta-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

/* ==========================================================================
   Flagship Ventures Section
   ========================================================================== */

.ventures-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.venture-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.2rem 1.8rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  overflow: hidden;
}

.venture-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-color-glow);
  box-shadow: var(--shadow-glow);
}

.venture-card-image {
  width: 100%;
  height: 200px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.venture-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-fast);
}

.venture-card:hover .venture-card-image img {
  transform: scale(1.03);
}

.venture-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.venture-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-sky);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.venture-status-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.venture-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.venture-role {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-sky);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.venture-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.venture-features-list {
  list-style: none;
  margin-bottom: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.venture-features-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.venture-features-list li i {
  color: var(--accent-emerald);
  font-size: 0.9rem;
}

.venture-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-color);
}

.venture-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-sky);
}

.venture-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Skills Matrix
   ========================================================================== */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.2rem;
  backdrop-filter: blur(14px);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.skill-category-card:hover {
  border-color: var(--border-color-glow);
  transform: translateY(-4px);
}

.category-title-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.category-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.skill-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.tech-tag:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--accent-sky);
  color: var(--accent-sky);
  transform: translateY(-2px);
}

.tech-tag i {
  font-size: 1.05rem;
}

.ai-badge {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.cloud-badge {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.fintech-badge {
  background: rgba(14, 165, 233, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 2.2rem 1.8rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--border-color-glow);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.4rem;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.contact-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.3rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: all var(--transition-fast);
}

.contact-item-card:hover {
  border-color: var(--accent-sky);
  transform: translateX(6px);
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.contact-details p {
  font-size: 1rem;
  color: var(--text-main);
  font-weight: 600;
  margin: 0;
}

.map-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  height: 240px;
  margin-top: 0.5rem;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.6rem 2.4rem;
  backdrop-filter: blur(14px);
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-sky);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem 0;
  background: var(--bg-secondary);
  position: relative;
  z-index: 10;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-circle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.social-circle:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-sky);
  color: var(--accent-sky);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   Floating Actions (WhatsApp & Back To Top)
   ========================================================================== */

.floating-whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.whatsapp-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  animation: pulse-whatsapp 2.2s infinite;
  z-index: -1;
}

@keyframes pulse-whatsapp {
  0% { transform: scale(0.9); opacity: 0.8; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 34px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  border-color: var(--accent-sky);
  color: var(--accent-sky);
  transform: translateY(-4px);
}

/* ==========================================================================
   Responsive Breakpoints - Overhauled to Prevent Any Overlaps
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }
  
  .hero-typing-box {
    justify-content: center;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cta-group {
    justify-content: center;
  }
  
  .hero-trust-badges {
    justify-content: center;
  }

  .ventures-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* Seamless Mobile Menu Transition */
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 2.2rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
  }

  .d-none-sm {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.7rem;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  
  .metric-item:not(:last-child)::after {
    display: none;
  }
  
  .ventures-grid,
  .services-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .floating-badge {
    position: static;
    margin: 0.6rem auto;
    display: inline-flex;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Founder Portrait Logo Styling
   ========================================================================== */

.brand-logo-frame {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-logo-frame {
  transform: scale(1.08);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.4);
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  background: var(--bg-secondary);
}

.brand-active-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 8px var(--accent-emerald);
}
