/* ==========================================================================
   Fardheen's Next-Level Portfolio Stylesheet
   Modern Glassmorphism, Neon Accents, Smooth Animations & High Aesthetics
   ========================================================================== */

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

:root {
  /* Primary Palette */
  --bg-primary: #070913;
  --bg-secondary: #0d1126;
  --bg-card: rgba(18, 24, 48, 0.65);
  --bg-card-hover: rgba(28, 38, 74, 0.75);
  --bg-glass: rgba(255, 255, 255, 0.04);

  /* Accent Colors */
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-purple: #7000ff;
  --accent-pink: #f107a3;
  --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 45%, #7000ff 100%);
  --accent-glow: rgba(0, 242, 254, 0.35);

  /* Text Colors */
  --text-main: #f0f4fc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  /* Borders & Shadows */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 242, 254, 0.4);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-neon: 0 0 25px rgba(0, 242, 254, 0.25);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --nav-height: 80px;
  --container-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   1. Base & Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Background Canvas */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

/* Ambient Radial Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
}

.glow-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, #7000ff 0%, transparent 70%);
}

.glow-2 {
  bottom: 10%;
  right: -10%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, #00f2fe 0%, transparent 70%);
}

/* Custom Interactive Cursor */
.cursor-dot,
.cursor-outline {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  transition: opacity 0.3s ease-in-out, transform 0.15s ease-out;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.cursor-outline {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(0, 242, 254, 0.5);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

body:hover .cursor-dot {
  opacity: 1;
}

body:hover .cursor-outline {
  opacity: 1;
}

/* Hover state for links & buttons */
.cursor-hover .cursor-outline {
  width: 55px;
  height: 55px;
  background-color: rgba(0, 242, 254, 0.1);
  border-color: var(--accent-cyan);
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 120px 0;
  position: relative;
}

/* Section Title */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 242, 254, 0.2);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.section-title span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 10px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #7000ff 0%, #00f2fe 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--transition-normal);
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(112, 0, 255, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Glass Card Baseline */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 15px 35px -5px rgba(0, 242, 254, 0.15);
}

/* ==========================================================================
   2. Header & Floating Navbar
   ========================================================================== */

header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
  pointer-events: none;
}

.navbar-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
}

.logo-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulseGlow 2s infinite;
}

.creative-nav {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.nav-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
}

/* Nav Actions (Sound Toggle & Theme) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: var(--transition-fast);
  font-size: 1.1rem;
}

.nav-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
}

/* ==========================================================================
   3. Hero Section
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ff88;
  animation: pulseDot 1.5s infinite;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -1px;
}

.hero-title .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.typing-container {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-muted);
  min-height: 42px;
  margin-bottom: 24px;
}

.typed-text {
  color: var(--accent-cyan);
}

.cursor-blink {
  display: inline-block;
  width: 3px;
  background-color: var(--accent-cyan);
  margin-left: 4px;
  animation: blink 0.8s infinite;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Stats Counter Grid */
.hero-stats {
  display: flex;
  gap: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
  width: 100%;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
}

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

/* Hero Profile Visualizer */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-wrapper {
  position: relative;
  width: 290px;
  aspect-ratio: 730 / 1280;
  border-radius: var(--radius-lg);
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid rgba(0, 242, 254, 0.3);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 254, 0.2);
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.2s ease-out;
}

.avatar-wrapper::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--radius-lg) + 3px);
  background: var(--accent-gradient);
  z-index: -1;
  opacity: 0.7;
  filter: blur(25px);
  transition: opacity 0.3s ease;
}

.avatar-wrapper:hover::before {
  opacity: 1;
  filter: blur(35px);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  border-radius: calc(var(--radius-lg) - 6px);
  filter: brightness(1.05) contrast(1.05) saturate(1.1);
  transition: transform 0.5s ease;
}

/* Floating Tech Badges around Profile */
.floating-badge {
  position: absolute;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  font-weight: 600;
  font-size: 0.85rem;
  z-index: 5;
  animation: float 4s ease-in-out infinite;
}

.badge-1 {
  top: 8%;
  left: -24px;
  animation-delay: 0s;
}

.badge-2 {
  bottom: 10%;
  right: -24px;
  animation-delay: 2s;
}

.floating-badge i {
  font-size: 1.2rem;
  color: var(--accent-cyan);
}

/* ==========================================================================
   4. About Section & Profile Portrait Showcase
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.about-card {
  padding: 40px;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}

.highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.highlight-info h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.highlight-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Profile Showcase Box in About Section */
.profile-showcase-box {
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 270px;
  aspect-ratio: 730 / 1280;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  background: rgba(13, 17, 38, 0.8);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  filter: brightness(1.05) contrast(1.05) saturate(1.1);
  transition: transform 0.5s ease;
}

.portrait-frame:hover img {
  transform: scale(1.05);
}

.play-pulse-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.6);
  transition: var(--transition-bounce);
}

.play-pulse-btn::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  animation: pulseRing 2s infinite;
}

.play-pulse-btn:hover {
  transform: translate(-50%, -50%) scale(1.15);
}

/* ==========================================================================
   5. Skills Section
   ========================================================================== */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.skill-card {
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent-cyan);
  margin-bottom: 20px;
  transition: var(--transition-bounce);
}

.skill-card:hover .skill-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  background: rgba(0, 242, 254, 0.1);
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.skill-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.skill-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Progress bar inside skill card */
.skill-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.skill-progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 3px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   6. Education & Experience Timeline
   ========================================================================== */

.timeline-wrapper {
  max-width: 850px;
  margin: 0 auto;
  position: relative;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  width: 50%;
  padding: 0 40px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 24px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -9px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -9px;
}

.timeline-card {
  padding: 30px;
}

.timeline-date {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.timeline-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* ==========================================================================
   7. Projects Portfolio Section
   ========================================================================== */

/* ==========================================================================
   7. Projects Portfolio Section (Redesigned Tiered Architecture)
   ========================================================================== */

.project-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--text-main);
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.1);
}

.filter-btn.active {
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

/* Featured Project Layouts (CyberGuard & Healora) */
.featured-projects-wrapper {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-bottom: 60px;
}

.featured-project-card {
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.featured-grid.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

/* Browser Window Frame Wrapper */
.browser-frame {
  background: #0d1120;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  position: relative;
}

.browser-header {
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border-glass);
}

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

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.browser-address-bar {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  padding: 4px 12px;
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-content {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: #070913;
}

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

.browser-frame:hover .browser-content img {
  transform: scale(1.05);
}

/* Simulated SOC CyberGuard Visual Mockup */
.cyber-mockup {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #070914 0%, #0d1326 100%);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.cyber-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 229, 255, 0.12) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.cyber-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.cyber-pill {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.cyber-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  z-index: 2;
}

.cyber-metric-card {
  background: rgba(18, 24, 48, 0.8);
  border: 1px solid var(--border-glass);
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}

.cyber-metric-val {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: #00e5ff;
}

.cyber-metric-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Featured Info Column */
.featured-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 229, 255, 0.2);
  margin-bottom: 16px;
}

.featured-info h3 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 6px;
}

.featured-subtitle {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 16px;
}

.featured-description {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Tech Badges Container */
.tech-badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.tech-badge {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 5px 12px;
  border-radius: 6px;
  transition: var(--transition-fast);
}

.tech-badge:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.08);
}

/* Featured Action Buttons */
.project-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-case-study {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(0, 229, 255, 0.2) 100%);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-case-study:hover {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

/* Secondary Featured Grid (TMS & DealSpotter) */
.secondary-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 30px;
  margin-bottom: 70px;
}

.secondary-project-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.secondary-project-card .project-body {
  padding: 28px;
}

.project-number-badge {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-purple);
  background: rgba(124, 58, 237, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 10px;
}

/* Compact Experiments Section */
.compact-experiments-section {
  padding-top: 40px;
  border-top: 1px solid var(--border-glass);
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.compact-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.compact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.3);
}

.compact-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.compact-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.compact-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Case Study Detailed Modal Overlay */
.case-study-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 18, 0.9);
  backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.case-study-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.case-study-modal-container {
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 229, 255, 0.2);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.case-study-modal-overlay.active .case-study-modal-container {
  transform: scale(1);
}

.case-study-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
}

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.case-study-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 20px;
  border-radius: var(--radius-md);
}

.case-study-box h4 {
  font-family: var(--font-heading);
  color: var(--accent-cyan);
  font-size: 1.05rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.case-study-box p, .case-study-box ul {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.case-study-box ul {
  padding-left: 20px;
}

.case-study-box li {
  margin-bottom: 6px;
}

/* ==========================================================================
   8. Contact Section
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

.contact-info-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.info-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.info-text h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.info-text p,
.info-text a {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.info-text a:hover {
  color: var(--accent-cyan);
}

/* Contact Form */
.contact-form-card {
  padding: 40px;
}

.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.98rem;
  outline: none;
  transition: var(--transition-normal);
}

.form-control:focus {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.03);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}

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

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-card);
  border: 1px solid var(--accent-cyan);
  backdrop-filter: blur(20px);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-bounce);
  z-index: 10000;
}

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

/* ==========================================================================
   9. Footer
   ========================================================================== */

footer {
  padding: 60px 0 30px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  position: relative;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

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

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-bounce);
  font-size: 1.1rem;
}

.social-btn:hover {
  background: var(--accent-gradient);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

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

/* ==========================================================================
   10. Modals
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 15, 0.85);
  backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 0, 80, 0.8);
  transform: rotate(90deg);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   11. Animations
   ========================================================================== */

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 10px var(--accent-cyan); }
  50% { box-shadow: 0 0 20px var(--accent-cyan), 0 0 30px var(--accent-cyan); }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

@keyframes pulseRing {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

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

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Scroll reveal class */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   12. Responsive Breakpoints
   ========================================================================== */

@media (max-width: 992px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
    text-align: left !important;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-wrapper::before {
    left: 20px;
  }

  .timeline-dot {
    left: 11px !important;
  }

  .avatar-wrapper {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 768px) {
  .creative-nav {
    display: none; /* Mobile menu can be toggled */
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .typing-container {
    font-size: 1.25rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

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