/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --background: #ffffff;
  --foreground: #0a0202;
  --card: #f9f9f9;
  --card-foreground: #0a0202;
  --primary: #fc1414;
  --primary-foreground: #ffffff;
  --secondary: #f5c518;
  --secondary-foreground: #0a0202;
  --muted: #f5f5f5;
  --muted-foreground: #666666;
  --accent: #f5c518;
  --accent-foreground: #0a0202;
  --border: #e5e5e5;
  --radius: 0.5rem;
  --font-inter: 'Inter', sans-serif;
  --font-space: 'Space Grotesk', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-inter);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
@keyframes scrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}
.animate-fade-in-up  { animation: fadeInUp  0.6s ease-out forwards; }
.animate-fade-in     { animation: fadeIn    0.8s ease-out forwards; }
.animate-slide-left  { animation: slideInLeft 0.6s ease-out forwards; }
.animate-scale-in    { animation: scaleIn   0.5s ease-out forwards; }

/* ===== PARTICLES.JS - NEURAL NETWORK BACKGROUND ===== */
#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(135deg, #fff 0%, rgba(252,20,20,0.02) 100%);
}

/* ===== UTILITIES ===== */
.container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 1.5rem; 
  position: relative; 
  z-index: 10; /* Higher than particles background */
}
.section    { padding: 5rem 0; position: relative; }
.section-alt { background-color: var(--muted); }

.badge {
  display: inline-flex; align-items: center;
  border-radius: 9999px; border: 1px solid transparent;
  padding: 0.2rem 0.75rem; font-size: 0.75rem; font-weight: 600;
  transition: background 0.2s;
}
.badge-primary   { background: var(--primary);   color: var(--primary-foreground); }
.badge-secondary { background: var(--secondary); color: var(--secondary-foreground); }
.badge-outline   { border-color: var(--border);   color: var(--foreground); background: transparent; }
.badge-muted     { background: var(--muted);      color: var(--muted-foreground); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: var(--radius); padding: 0.6rem 1.4rem;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: all 0.2s;
}
.btn-primary {
  background: var(--primary); color: var(--primary-foreground);
  border-color: var(--primary);
}
.btn-primary:hover { background: #d40f0f; border-color: #d40f0f; }
.btn-outline {
  background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--primary-foreground); }
.btn-secondary {
  background: var(--secondary); color: var(--secondary-foreground);
  border-color: var(--secondary);
}
.btn-secondary:hover { background: #e0b010; }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5); padding: 1.5rem;
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover { box-shadow: 0 8px 30px rgba(252,20,20,0.1); transform: translateY(-2px); }

.section-title {
  font-family: var(--font-space);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700; margin-bottom: 0.5rem;
}
.section-title span { color: var(--primary); }
.section-subtitle {
  color: var(--muted-foreground); font-size: 1rem; margin-bottom: 3rem;
  max-width: 600px;
}
.divider {
  width: 3rem; height: 4px; background: var(--primary);
  border-radius: 2px; margin: 0.75rem 0 1.5rem;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0; transition: box-shadow 0.3s;
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-space); font-size: 1.3rem; font-weight: 700;
  color: var(--foreground);
}
.nav-logo span { color: var(--primary); }
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
}
.nav-links a {
  font-size: 0.85rem; font-weight: 500; padding: 0.4rem 0.75rem;
  border-radius: var(--radius); color: var(--muted-foreground);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary); background: rgba(252,20,20,0.07);
}
.nav-cta { margin-left: 1rem; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 1.4rem; color: var(--foreground);
}
.nav-mobile {
  display: none; flex-direction: column; gap: 0.25rem;
  padding: 1rem 0 0.5rem; border-top: 1px solid var(--border); margin-top: 0.75rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 0.9rem; font-weight: 500; padding: 0.6rem 0.5rem;
  color: var(--muted-foreground); border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav-mobile a:hover { color: var(--primary); background: rgba(252,20,20,0.07); }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
}

/* ===== HERO SECTION ===== */
#hero {
  padding-top: 7rem;
  padding-bottom: 5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 20; /* Above particles background */
}

/* Move left side content with 5rem right padding */
.hero-content {
  padding-right: 1rem;
}

.hero-greeting {
  font-size: 0.95rem; font-weight: 600; color: var(--primary);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.hero-greeting::before {
  content: ''; display: inline-block;
  width: 2rem; height: 2px; background: var(--primary);
}
.hero-name {
  font-family: var(--font-space);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700; line-height: 1.1; margin-bottom: 0.75rem;
}
.hero-name span { color: var(--primary); }
.hero-title {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted-foreground); margin-bottom: 1.25rem; font-weight: 500;
}
.hero-desc {
  font-size: 1rem; line-height: 1.75; color: #444;
  max-width: 600px; margin-bottom: 2rem;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-space); font-size: 1.75rem; font-weight: 700;
  color: var(--primary);
}
.stat-label { font-size: 0.8rem; color: var(--muted-foreground); font-weight: 500; }

.hero-avatar-wrap { 
  position: relative; 
  flex-shrink: 0;
  margin-left: -1.5rem; /* Pull avatar slightly left */
}
.hero-avatar {
  width: 280px; height: 280px; border-radius: 50%;
  border: 5px solid var(--primary);
  background: linear-gradient(135deg, var(--muted) 0%, #e8e8e8 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem; color: var(--primary);
  box-shadow: 0 0 0 10px rgba(252,20,20,0.08), 0 20px 60px rgba(0,0,0,0.12);
  overflow: hidden;
}
.hero-badge-float {
  position: absolute; background: var(--secondary);
  color: var(--secondary-foreground); padding: 0.5rem 0.9rem;
  border-radius: var(--radius); font-size: 0.78rem; font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.hero-badge-float.tl { top: 10px; left: -20px; }
.hero-badge-float.br { bottom: 20px; right: -20px; }

@media (max-width: 768px) {
  .hero-inner { 
    grid-template-columns: 1fr; 
    text-align: center; 
    gap: 1rem;
  }
  .hero-content { 
    padding-right: 0; 
  }
  .hero-avatar-wrap { 
    order: -1; 
    margin: 0 auto;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-avatar { width: 200px; height: 200px; font-size: 4rem; }
  .hero-badges, .hero-actions, .hero-stats { justify-content: center; }
  .hero-greeting { justify-content: center; }
}

/* ===== SCROLLING TEXT CONTAINER ===== */
.scrolling-text-container {
  height: 60px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  margin: 2rem 0 0;
  box-shadow: 0 4px 15px rgba(252, 20, 20, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.scrolling-text {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  animation: scrollUp 15s linear infinite;
}

.scrolling-text-item {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.scrolling-text-item i {
  margin-right: 0.75rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

.scrolling-text-container:hover .scrolling-text {
  animation-play-state: paused;
}

/* ===== ACADEMIC ===== */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0.5rem; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--primary), var(--secondary));
}
.timeline-item { position: relative; margin-bottom: 2rem; padding-left: 1.5rem; }
.timeline-dot {
  position: absolute; left: -1.9rem; top: 0.4rem;
  width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--primary); border: 3px solid white;
  box-shadow: 0 0 0 3px rgba(252,20,20,0.2);
}
.timeline-year {
  font-size: 0.8rem; font-weight: 700; color: var(--primary);
  letter-spacing: 0.05em; margin-bottom: 0.25rem;
}
.timeline-degree {
  font-family: var(--font-space); font-size: 1.05rem; font-weight: 700;
  margin-bottom: 0.15rem;
}
.timeline-inst { color: var(--muted-foreground); font-size: 0.9rem; }
.timeline-detail { font-size: 0.85rem; color: #555; margin-top: 0.3rem; }

/* ===== RESEARCH ===== */
.research-card { position: relative; overflow: hidden; }
.research-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.research-icon {
  width: 3rem; height: 3rem; border-radius: var(--radius);
  background: rgba(252,20,20,0.1); display: flex; align-items: center;
  justify-content: center; font-size: 1.3rem; color: var(--primary);
  margin-bottom: 1rem;
}

/* ===== EXPERIENCE ===== */
.exp-card { border-left: 4px solid var(--primary); }
.exp-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.exp-role { font-family: var(--font-space); font-size: 1.05rem; font-weight: 700; }
.exp-org { color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.exp-period { font-size: 0.8rem; color: var(--muted-foreground); white-space: nowrap; }
.exp-desc { font-size: 0.9rem; color: #555; margin-top: 0.5rem; line-height: 1.6; }
.exp-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }

/* ===== PROJECTS ===== */
.project-card { display: flex; flex-direction: column; }
.project-img {
  width: 100%; height: 160px;
  background: linear-gradient(135deg, rgba(252,20,20,0.1), rgba(245,197,24,0.2));
  border-radius: calc(var(--radius) * 1.5) calc(var(--radius) * 1.5) 0 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--primary); margin: -1.5rem -1.5rem 1rem;
}
.project-title { font-family: var(--font-space); font-weight: 700; margin-bottom: 0.5rem; }
.project-desc { font-size: 0.88rem; color: #555; flex: 1; }
.project-footer { margin-top: 1rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.project-links { display: flex; gap: 0.5rem; }
.project-link {
  font-size: 0.8rem; font-weight: 600; color: var(--primary);
  display: flex; align-items: center; gap: 0.25rem;
  padding: 0.25rem 0.5rem; border-radius: var(--radius);
  border: 1px solid var(--primary); transition: all 0.2s;
}
.project-link:hover { background: var(--primary); color: white; }

/* ===== PUBLICATIONS ===== */
.pub-item {
  border-bottom: 1px solid var(--border); padding: 1.5rem 0;
}
.pub-item:last-child { border-bottom: none; }
.pub-title { font-weight: 700; margin-bottom: 0.3rem; font-size: 0.95rem; }
.pub-authors { font-size: 0.85rem; color: var(--muted-foreground); margin-bottom: 0.3rem; }
.pub-venue { font-size: 0.85rem; color: var(--primary); font-style: italic; }
.pub-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }

/* ===== TALKS ===== */
.talk-card { border-top: 3px solid var(--secondary); }
.talk-event { font-size: 0.8rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.talk-title { font-family: var(--font-space); font-weight: 700; margin: 0.3rem 0; }
.talk-venue { font-size: 0.88rem; color: var(--muted-foreground); }

/* ===== AWARDS ===== */
.award-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: box-shadow 0.2s;
}
.award-item:hover { box-shadow: 0 4px 15px rgba(252,20,20,0.08); }
.award-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem; flex-shrink: 0;
}
.award-title { font-weight: 700; font-size: 0.95rem; }
.award-org { font-size: 0.85rem; color: var(--muted-foreground); }
.award-year { font-size: 0.8rem; color: var(--primary); font-weight: 600; margin-top: 0.15rem; }

/* ===== CERTIFICATIONS ===== */
.cert-card { text-align: center; }
.cert-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: rgba(252,20,20,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--primary); margin: 0 auto 1rem;
}
.cert-name { font-family: var(--font-space); font-weight: 700; margin-bottom: 0.3rem; font-size: 0.95rem; }
.cert-issuer { font-size: 0.85rem; color: var(--primary); }
.cert-year { font-size: 0.8rem; color: var(--muted-foreground); margin-top: 0.25rem; }

/* ===== MEMBERSHIP ===== */
.member-item {
  display: flex; gap: 0.75rem; align-items: center;
  padding: 1rem 1.25rem; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.member-dot {
  width: 0.75rem; height: 0.75rem; border-radius: 50%;
  background: var(--primary); flex-shrink: 0;
}
.member-name { font-weight: 600; font-size: 0.9rem; }
.member-role { font-size: 0.8rem; color: var(--muted-foreground); }

/* ===== ALBUM ===== */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.album-photo {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--muted), #ddd);
  border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--muted-foreground);
  position: relative;
}
.album-photo:nth-child(3n+1) { background: linear-gradient(135deg, rgba(252,20,20,0.1), rgba(252,20,20,0.2)); color: var(--primary); }
.album-photo:nth-child(3n+2) { background: linear-gradient(135deg, rgba(245,197,24,0.1), rgba(245,197,24,0.25)); color: #b8860b; }
.album-photo:nth-child(3n+3) { background: linear-gradient(135deg, #e8e8e8, #d0d0d0); color: #888; }
.album-photo:hover { transform: scale(1.02); transition: transform 0.3s; }
.album-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.65); color: white;
  font-size: 0.75rem; padding: 0.4rem 0.6rem;
  transform: translateY(100%); transition: transform 0.3s;
}
.album-photo:hover .album-caption { transform: translateY(0); }

/* Footer bottom section */
.footer-bottom {
  background-color: #000; /* black background */
  color: #fff; /* white text */
  text-align: center;
  padding: 20px 10px;
  font-family: "Poppins", sans-serif;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Each footer line */
.footer-copy {
  font-size: 15px;
  letter-spacing: 0.5px;
  opacity: 0.9;
  transition: all 0.3s ease;
}

/* Hover effect for elegance */
.footer-copy:hover {
  opacity: 1;
  color: var(--primary, #00bcd4);
  transform: translateY(-2px);
}

/* Styling for span elements */
.footer-copy span {
  color: var(--primary, #00bcd4);
  font-weight: 600;
}

/* Responsive look for small screens */
@media (max-width: 600px) {
  .footer-bottom {
    font-size: 14px;
    padding: 15px;
  }
}
/* Mobile navigation contact button */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.75rem;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 0.5rem;
  color: var(--muted-foreground);
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}

.nav-mobile a:hover {
  color: var(--primary);
  background: rgba(252,20,20,0.07);
}

.nav-mobile-contact {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.mobile-contact-btn {
  width: 100%;
  justify-content: center;
  background: var(--primary);
  color: white;
  padding: 0.75rem !important;
  font-size: 0.95rem !important;
  border-radius: var(--radius) !important;
  margin-top: 0.25rem;
}

.mobile-contact-btn i {
  margin-right: 0.5rem;
}

.mobile-contact-btn:hover {
  background: #d40f0f !important;
  color: white !important;
}

/* Hide desktop contact on mobile */
@media (max-width: 900px) {
  .nav-cta {
    display: none !important;
  }
}

/* Show desktop contact on larger screens */
@media (min-width: 901px) {
  .nav-mobile-contact {
    display: none;
  }
}
/* ===== SKILLS / DEVELOPMENT ===== */
.skill-group { margin-bottom: 1.75rem; }
.skill-label { display: flex; justify-content: space-between; margin-bottom: 0.35rem; font-size: 0.9rem; font-weight: 600; }
.skill-bar { height: 8px; background: var(--muted); border-radius: 9999px; overflow: hidden; }
.skill-fill { height: 100%; border-radius: 9999px; background: linear-gradient(90deg, var(--primary), var(--secondary)); }

.tools-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tool-chip {
  padding: 0.35rem 0.85rem; border-radius: 9999px;
  background: var(--muted); font-size: 0.82rem; font-weight: 600;
  border: 1px solid var(--border); color: var(--foreground);
  display: flex; align-items: center; gap: 0.35rem; transition: all 0.2s;
}
.tool-chip:hover { background: rgba(252,20,20,0.1); border-color: var(--primary); color: var(--primary); }

/* ===== SCROLL TO TOP ===== */
#scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 99;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--primary); color: white; border: none; cursor: pointer;
  font-size: 1.1rem; box-shadow: 0 4px 15px rgba(252,20,20,0.4);
  transition: all 0.3s; opacity: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
#scroll-top.visible { opacity: 1; pointer-events: all; }
#scroll-top:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(252,20,20,0.5); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  
  /* Adjust scrolling text for mobile */
  .scrolling-text-container {
    height: auto;
    max-height: 400px;
    overflow-y: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
  
  .scrolling-text {
    animation: none;
  }

  .scrolling-text-item {
    height: auto;
    min-height: 80px;
    padding: 0.75rem 0.5rem;
    white-space: normal;
    line-height: 1.3;
    font-size: 0.95rem;
  }
}

/* Mobile navigation contact button */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.75rem;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 0.5rem;
  color: black;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}

.nav-mobile a:hover {
  color: var(--primary);
  background: rgba(252,20,20,0.07);
}

.nav-mobile-contact {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.mobile-contact-btn {
  width: 100%;
  justify-content: center;
  background: var(--primary);
  color: white;
  padding: 0.75rem !important;
  font-size: 0.95rem !important;
  border-radius: var(--radius) !important;
  margin-top: 0.25rem;
}

.mobile-contact-btn i {
  margin-right: 0.5rem;
}

.mobile-contact-btn:hover {
  background: #d40f0f !important;
  color: white !important;
}

/* Hide desktop contact on mobile */
@media (max-width: 900px) {
  .nav-cta {
    display: none !important;
  }
}

/* Show desktop contact on larger screens */
@media (min-width: 901px) {
  .nav-mobile-contact {
    display: none;
  }
}
