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

:root {
  /* Sleek Dark Mode Palette (Slate) */
  --bg-primary: #1E293B;                     /* Lighter slate for panels */
  --bg-secondary: #0F172A;                   /* Deep slate for sections */
  --bg-dark: #020617;                        /* Ultra dark space background */
  --text-primary: #f8fafc;                   /* Crisp white */
  --text-secondary: #94a3b8;                 /* Muted slate text */
  --text-light: #ffffff;
  --accent: #38bdf8;                         /* Electric cyan */
  --accent-light: rgba(56, 189, 248, 0.15);
  --accent-hover: #0ea5e9;
  --border: rgba(255, 255, 255, 0.05);       /* Subtle border */
  --border-highlight: rgba(255, 255, 255, 0.15);
  
  /* Modern Shadows & Depth */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.3);
  
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   Global Reset & Base
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =========================================
   Typography
   ========================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
p { font-size: 1.125rem; color: var(--text-secondary); margin-bottom: 1rem; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
@media (min-width: 993px) {
  a:hover { color: var(--accent-hover); }
}

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

/* =========================================
   Layout & Containers
   ========================================= */
.container {
  width: 90%;
  max-width: 2000px;
  margin: 0 auto;
}

.section-padded {
  padding: 6rem 0;
}

/* Glassmorphism Portfolio Panel */
.portfolio-panel {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

@media (min-width: 993px) {
  .portfolio-panel:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border-highlight);
  }
}

.section-title {
  margin-bottom: 3rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  text-align: center;
}

.section-title span {
  color: var(--accent);
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =========================================
   Navigation
   ========================================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 100%;
  margin: 0 auto;
}

.hamburger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  cursor: pointer;
  z-index: 1001;
  flex-shrink: 0;
}

.hamburger-menu .bar {
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hamburger-menu.active .bar:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
.hamburger-menu.active .bar:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

.side-nav {
  position: fixed;
  top: 0;
  right: 0;
  transform: translateX(100%);
  width: 320px;
  max-width: 80vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-nav.active { transform: translateX(0); }
.side-nav-links { display: flex; flex-direction: column; gap: 2.5rem; text-align: center; }
.side-nav-links a { font-family: 'Outfit', sans-serif; font-size: 1.75rem; font-weight: 600; color: var(--text-primary); }
@media (min-width: 993px) {
  .side-nav-links a:hover { color: var(--accent); transform: scale(1.05); }
}

.nav-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.nav-backdrop.active { opacity: 1; pointer-events: all; }

.dual-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  letter-spacing: -0.5px;
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .dual-logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    line-height: 1.1;
  }
  .logo-separator {
    display: none;
  }
}

.dual-logo a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo-active {
  color: var(--text-primary);
}

.logo-active:hover {
  color: var(--text-primary) !important;
  text-shadow: none !important;
}

.logo-inactive {
  background: linear-gradient(
    45deg,
    var(--text-secondary) 0%,
    var(--text-secondary) 45%,
    #d4af37 48%, /* Deep metallic gold edges */
    #fff4cc 50%, /* Bright shiny hot center */
    #d4af37 52%,
    var(--text-secondary) 55%,
    var(--text-secondary) 100%
  );
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shineText 3.7s linear infinite;
  display: inline-block;
  transition: transform 0.3s ease;
}

@keyframes shineText {
  0% {
    background-position: 120% center;
  }
  31.35% { /* 1.16s sweep out of 3.7s total */
    background-position: -20% center;
  }
  100% {
    background-position: -20% center; /* Stay hidden for the remaining 2.54s */
  }
}

@media (min-width: 993px) {
  .logo-inactive:hover {
    color: transparent !important;
    text-shadow: none !important;
  }
}

.logo-separator {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 1.2rem;
  opacity: 0.5;
}

/* =========================================
   Technologies We Trust Grid
   ========================================= */
.tech-trust-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  justify-items: center;
  align-items: start;
  color: var(--text-secondary);
  font-size: 2.5rem;
  opacity: 0.7;
  overflow: hidden;
  min-height: 120px;
}

@media (max-width: 992px) {
  .tech-trust-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 500px) {
  .tech-trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .tech-trust-grid > div {
    text-align: center;
  }
}

/* =========================================
   Hero Section
   ========================================= */ 
.global-bg-slider {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  overflow: hidden;
  background: #020617;
}

body > main,
body > section,
body > footer {
  position: relative;
  z-index: 1;
}

.bg-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(2, 6, 23, 0.5); /* Sleek dark overlay */
  z-index: 1;
}

.bg-slide {
  position: absolute;
  top: -10%; left: -10%;
  width: 120%; height: 120%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  animation: kenBurnsFade 78s linear infinite; /* Adjusted for 13 slides * 6s */
  z-index: -1;
  filter: saturate(0.8) brightness(0.6); /* Darkens the background */
  will-change: transform, opacity;
  transform: translateZ(0); /* Hardware acceleration hint to reduce lag */
}

@keyframes kenBurnsFade {
  0% { opacity: 0; transform: scale(1); }
  4% { opacity: 0.3; transform: scale(1.02); }
  12% { opacity: 0.3; transform: scale(1.08); }
  16% { opacity: 0; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.1); }
}

.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.hero-text {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  letter-spacing: -3px;
  line-height: 1.05;
  color: var(--text-primary);
}

.hero-title span {
  background-image: linear-gradient(
    110deg,
    var(--text-secondary) 0%,
    var(--text-secondary) 45%,
    #d97706 48%,
    #fbbf24 50%,
    #d97706 52%,
    var(--text-secondary) 55%,
    var(--text-secondary) 100%
  );
  background-size: 400% auto;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: goldTextShine 10s linear infinite;
  display: inline;
}

@keyframes goldTextShine {
  0% { background-position: 75% center; }
  24% { background-position: 25% center; }
  100% { background-position: 25% center; }
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 1.5rem auto 3.5rem auto;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  color: #000 !important;
  padding: 0.85rem 2rem;
  min-height: 44px;
  border-radius: 100px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

@media (min-width: 993px) {
  .btn:hover {
    background-color: var(--accent-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
  }
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-highlight);
  backdrop-filter: blur(10px);
}

@media (min-width: 993px) {
  .btn-outline:hover {
    background-color: rgba(255,255,255,0.05);
    border-color: var(--text-primary);
    box-shadow: none;
  }
}

.hero-btn-primary { padding: 1.1rem 2.5rem; font-size: 1.15rem; }
.hero-btn-outline { padding: 1.1rem 2.5rem; font-size: 1.15rem; }

/* Pulse Button (Estimate) */
@keyframes pulseButton {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
  50% { transform: scale(1.05); box-shadow: 0 0 35px 15px rgba(255, 255, 255, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@keyframes shineSweep {
  0% { left: -100%; opacity: 0; }
  15% { opacity: 0.8; }
  100% { left: 200%; opacity: 0; }
}

.pulse-btn {
  animation: pulseButton 2.5s infinite ease-in-out;
  position: relative;
  overflow: hidden;
  background: var(--text-primary);
  color: var(--bg-dark) !important;
  padding: 1.5rem 3rem !important;
  font-size: 1.3rem !important;
  font-weight: 700;
}

@media (min-width: 993px) {
  .pulse-btn:hover {
    animation: none;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255,255,255,0.2);
  }
}

.pulse-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: shineSweep 2.5s infinite ease-in-out;
}

/* =========================================
   Timeline / Experience
   ========================================= */
.timeline {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 1px;
  background: var(--border-highlight);
  top: 0; bottom: 0;
  left: 50%;
  margin-left: -0.5px;
}

.timeline-item {
  position: relative;
  width: 100%;
  margin-bottom: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  background-color: var(--accent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 10px var(--accent);
}

.timeline-content {
  width: 45%;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.timeline-image-wrapper {
  width: auto;
  max-width: 100%;
  height: 250px;
  aspect-ratio: 16/9;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
  transition: var(--transition);
}

.timeline-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.timeline-image-wrapper.square-image {
  max-width: 100%;
  width: auto;
  background-color: #000000;
}

.timeline-image-wrapper.square-image img {
  object-fit: contain;
}

.timeline-image-column {
  width: 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 993px) {
  .timeline-item:hover .timeline-image-wrapper img {
    transform: scale(1.05);
  }
}

@media (min-width: 993px) {
  .timeline-item:hover .timeline-content {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-highlight);
    transform: translateY(-5px);
  }
}

@media (min-width: 993px) {
  .timeline-item:hover .timeline-image-wrapper {
    transform: translateY(-5px);
    border-color: var(--border-highlight);
  }
}

.left { flex-direction: row; }
.right { flex-direction: row-reverse; }

.timeline-content h3 { font-size: 1.35rem; color: var(--text-primary); margin-bottom: 0.2rem; }
.timeline-content h4 { font-size: 1.05rem; color: var(--text-secondary); font-weight: 400; margin-bottom: 1rem; }
.timeline-date { font-size: 0.9rem; color: var(--accent); font-weight: 600; margin-bottom: 1rem; display: inline-block; letter-spacing: 1px; text-transform: uppercase; }
.timeline-content ul { padding-left: 1.5rem; color: var(--text-secondary); font-size: 1rem; }
.timeline-content li { margin-bottom: 0.5rem; }

/* =========================================
   Projects Grid
   ========================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

@media (min-width: 993px) {
  .project-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-highlight);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
  }
}

.project-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.project-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.project-content p { font-size: 1rem; margin-bottom: 1.5rem; flex: 1; color: var(--text-secondary); }

/* =========================================
   Forms & Inputs
   ========================================= */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--text-secondary); font-size: 0.95rem; }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.form-card {
  max-width: 900px;
  width: 100%;
  margin: 0 auto 1.5rem auto;
  text-align: left;
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}

.btn-full {
  width: 100%;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.social-icon {
  font-size: 2.5rem;
  color: var(--text-secondary);
  transition: color 0.3s ease, transform 0.3s ease;
  margin: 0 0.5rem;
}

@media (min-width: 993px) {
  .social-icon:hover {
    color: var(--accent);
    transform: translateY(-3px);
  }
}

.btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

/* =========================================
   Modal
   ========================================= */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  overflow-y: auto;
  padding: 2rem 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  flex-direction: column;
}

.modal-overlay::before,
.modal-overlay::after {
  content: '';
  flex: 1 0 auto;
}

.modal-overlay.show {
  opacity: 1;
}

.modal-content {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-highlight);
  margin: 0 auto;
  padding: 3rem;
  border-radius: var(--radius-xl);
  max-width: 1000px;
  width: 90%;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: scale(0.5);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  flex: 0 0 auto;
}

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

@keyframes slingshotOut {
  0% { transform: translateX(0) scale(1); opacity: 1; }
  30% { transform: translateX(-40px) scale(0.95); opacity: 1; }
  100% { transform: translateX(150vw) scale(0.8); opacity: 0; }
}

.modal-content.slingshot {
  animation: slingshotOut 0.8s cubic-bezier(0.5, -0.5, 1, 1) forwards !important;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.close-btn {
  background: none;
  border: none;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

@media (min-width: 993px) {
  .close-btn:hover { color: var(--accent); }
}

.form-section {
  margin-bottom: 3rem;
  padding: 2.5rem;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.form-section h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-size: 1.35rem;
}

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

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

.timeline-item.reveal {
  opacity: 0.15;
  transform: none !important;
  transition: opacity 0.5s ease;
}

.timeline-item.reveal.active {
  opacity: 1;
}

/* =========================================
   Expandable Content
   ========================================= */
.expandable-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, margin-top 0.5s ease-in-out;
}

.expandable-content.expanded {
  max-height: 1000px;
  opacity: 1;
  margin-top: 1.5rem;
}

@media (min-width: 993px) {
  .read-more-btn:hover {
    color: var(--accent-hover) !important;
  }
}

.read-more-btn .fa-chevron-down.rotated {
  transform: rotate(180deg);
}

/* =========================================
   Header Tech Ticker
   ========================================= */
.nav-ticker-container {
  flex-grow: 1;
  overflow: hidden;
  margin: 0 2rem;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.nav-ticker {
  display: flex;
  width: max-content;
  flex-shrink: 0;
  animation: scroll-ticker 60s linear infinite;
}

@media (min-width: 993px) {
  .nav-ticker:hover {
    animation-play-state: paused;
  }
}

.nav-ticker-content {
  display: flex;
  gap: 3rem;
  padding-right: 3rem;
  align-items: center;
  flex-shrink: 0;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition-speed) ease;
  flex-shrink: 0;
}

.ticker-item i {
  font-size: 2.2rem;
  transition: transform var(--transition-speed) ease;
}

@media (min-width: 993px) {
  .ticker-item:hover {
    color: var(--text-primary);
  }
}

@media (min-width: 993px) {
  .ticker-item:hover i {
    transform: scale(1.15) translateY(-2px);
    filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.3));
  }
}

@keyframes scroll-ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .nav-ticker-container {
    margin: 0 0.5rem;
    mask-image: linear-gradient(to right, transparent, black 25%, black 75%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 25%, black 75%, transparent);
  }
  .nav-ticker-content {
    gap: 1.5rem;
    padding-right: 1.5rem;
  }
  .ticker-item i {
    font-size: 1.4rem;
  }
}

/* =========================================
   Footer
   ========================================= */
footer {
  text-align: center;
  padding: 3rem 0;
  background-color: var(--bg-dark);
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}

/* =========================================
   Mobile Responsiveness
   ========================================= */
@media (max-width: 768px) {
  
  .glass-panel { padding: 2rem 1.5rem; }
  .section-padded { padding: 4rem 0; }
  .portfolio-panel { padding: 1.5rem !important; }
  .project-card { padding: 1.5rem !important; }
  
  .timeline::after { display: none; }
  .timeline-item { width: 100%; flex-direction: column !important; margin-bottom: 3rem; align-items: center; text-align: center; }
  .timeline-item::after { display: none; }
  
  .timeline-content { width: 100%; padding: 0; background: none; border: none; box-shadow: none; padding-bottom: 1rem; text-align: center; }
  .timeline-content ul { padding-left: 0; list-style-position: inside; }
  
  .timeline-image-wrapper { width: auto; max-width: 100%; margin: 0 auto; height: 250px; }
  .timeline-image-column { width: 100%; margin: 0; }
  
  .left, .right { left: 0; }
  
  .projects-grid { grid-template-columns: 1fr !important; }
  
  .hero { padding-top: 8rem; }
  .modal-content { padding: 1.5rem; }
  .form-section { padding: 1.5rem; }
  
  footer p { font-size: 0.75rem; }

  .side-nav {
    width: 100vw;
    max-width: 100vw;
    border-left: none; /* remove border for full screen */
  }
  
  /* iOS Form Zoom Prevention */
  input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    font-size: 16px !important;
  }
}
