/* PhD Research Labs - Custom Styles */
:root {
  --bg-dark: #0a0a0a;
  --bg-card: #161616;
  --bg-card2: #1d1d1d;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --accent-cyan: #7eeaf1;
  --accent-pink: #fb7eff;
  --accent-green: #00df98;
  --accent-blue: #65c8f5;
  --accent-purple: #be69f6;
  --gradient-primary: linear-gradient(171deg, #fb7eff, #c648f6);
  --gradient-secondary: linear-gradient(90deg, #00df98, #bde2c0 22%, #65c8f5 45%, #be69f6 69%, #ffb7f3 93%, #ffb6b6);
  --gradient-text: linear-gradient(171deg, #d6d6d6 11.93%, #ffffff 49.51%, #d5d5d5 85.38%);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

a { text-decoration: none; color: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* Gradient text */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass card */
.glass-card {
  background: rgba(29, 29, 29, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  transition: all 0.3s ease;
}
.glass-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}

/* Navbar */
.navbar-custom {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-link-custom {
  color: #a1a1aa !important;
  font-weight: 400;
  transition: color 0.2s;
  padding: 0.5rem 0.75rem !important;
  border-radius: 8px;
}
.nav-link-custom:hover, .nav-link-custom.active {
  color: var(--text-primary) !important;
  background: rgba(255,255,255,0.05);
}
.dropdown-menu-custom {
  background: var(--bg-card2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
}
.dropdown-item-custom {
  color: #a1a1aa;
  border-radius: 8px;
  margin: 2px 6px;
  padding: 0.5rem 1rem;
}
.dropdown-item-custom:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
}

/* Top bar */
.top-bar {
  background: var(--bg-card);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.top-bar a { color: var(--text-secondary); transition: color 0.2s; }
.top-bar a:hover { color: var(--accent-cyan); }

/* Hero */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.4) 50%, var(--bg-dark) 100%);
}
.hero-content { position: relative; z-index: 2; }

/* Buttons */
.btn-primary-custom {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary-custom:hover {
  opacity: 0.9;
  color: white;
  box-shadow: 0 0 30px rgba(251,126,255,0.4), 0 0 60px rgba(251,126,255,0.2);
}
.btn-outline-custom {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.3s;
}
.btn-outline-custom:hover {
  background: rgba(255,255,255,0.2);
  color: white;
}

/* Stats */
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}

/* Section title */
.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Domain card */
.domain-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}
.domain-card:hover {
  transform: perspective(1000px) rotateY(3deg) rotateX(-2deg) translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Video/Project card */
.project-card {
  transition: all 0.3s ease;
  overflow: hidden;
}
.project-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(126,234,241,0.15);
}
.project-card .play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover .play-overlay { opacity: 1; }

/* Service card */
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Process step */
.process-step {
  text-align: center;
  position: relative;
}
.process-number {
  font-size: 4rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  opacity: 0.15;
  line-height: 1;
}

/* Testimonial */
.testimonial-card {
  max-width: 800px;
  margin: 0 auto;
}

/* Footer */
.footer-custom {
  border-top: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}
.footer-glow-1 {
  position: absolute;
  top: 0; right: 0;
  width: 400px; height: 400px;
  background: radial-gradient(circle farthest-side at 30% 50%, rgba(251,126,255,0.15), transparent);
  pointer-events: none;
}
.footer-glow-2 {
  position: absolute;
  bottom: 0; left: 0;
  width: 400px; height: 400px;
  background: radial-gradient(circle farthest-corner at 30% 50%, rgba(0,223,152,0.1), transparent);
  pointer-events: none;
}

/* Pagination */
.page-link-custom {
  background: rgba(255,255,255,0.05);
  border: none;
  color: #a1a1aa;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  margin: 0 2px;
  transition: all 0.2s;
}
.page-link-custom:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}
.page-link-custom.active {
  background: var(--accent-cyan);
  color: var(--bg-dark);
  font-weight: 600;
}

/* Search */
.search-input {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: white !important;
  padding: 0.75rem 1rem 0.75rem 2.5rem !important;
  border-radius: 12px !important;
}
.search-input:focus {
  border-color: rgba(126,234,241,0.5) !important;
  box-shadow: 0 0 0 2px rgba(126,234,241,0.15) !important;
}
.search-input::placeholder { color: #666; }

/* Filter pills */
.filter-pill {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #a1a1aa;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-pill:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}
.filter-pill.active {
  background: var(--accent-cyan);
  color: var(--bg-dark);
  border-color: var(--accent-cyan);
  font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(251,126,255,0.3), 0 0 40px rgba(251,126,255,0.15); }
  50% { box-shadow: 0 0 40px rgba(251,126,255,0.6), 0 0 80px rgba(251,126,255,0.3), 0 0 120px rgba(251,126,255,0.15); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}
.animate-pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}
.animate-float {
  animation: float 4s ease-in-out infinite;
}

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

/* Glow blobs */
.glow-blob-1 {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle farthest-side at 30% 50%, rgba(251,126,255,0.15), transparent);
  pointer-events: none;
}
.glow-blob-2 {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle farthest-corner at 30% 50%, rgba(0,223,152,0.1), transparent);
  pointer-events: none;
}

/* WhatsApp button */
.whatsapp-btn {
  background: #25d366;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
}
.whatsapp-btn:hover {
  background: #1ebe57;
  color: white;
  box-shadow: 0 0 25px rgba(37,211,102,0.4);
}

/* Particles */
.particle {
  position: absolute;
  width: 3px; height: 3px;
  background: rgba(126,234,241,0.3);
  border-radius: 50%;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section { min-height: 70vh; }
  .stat-number { font-size: 1.8rem; }
  .process-number { font-size: 3rem; }
}

/* Brand subtitle visibility fix */
.brand-subtitle{color:#9ff7ff!important;opacity:1!important;font-weight:700!important;text-shadow:0 0 10px rgba(0,212,255,.45);}
.navbar .brand-subtitle,.footer-custom .brand-subtitle{color:#9ff7ff!important;}








/* Final header/footer logo sizing - v7 */
.navbar-brand {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: 190px !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin-right: clamp(1rem, 2vw, 2rem) !important;
  overflow: visible !important;
}

.navbar-brand .brand-logo-img,
.brand-logo-img {
  width: 180px !important;
  max-width: 180px !important;
  min-width: 180px !important;
  height: auto !important;
  max-height: 42px !important;
  object-fit: contain !important;
  display: block !important;
  transform: translateY(1px) !important;
}

footer .footer-logo-img,
.footer-logo-img {
  width: 220px !important;
  max-width: 220px !important;
  min-width: 220px !important;
  height: auto !important;
  max-height: 50px !important;
  object-fit: contain !important;
  display: block !important;
  margin-bottom: 1rem !important;
}

.logo-text,
.brand-text {
  display: none !important;
}

@media (max-width: 1199px) {
  .navbar-brand {
    max-width: 170px !important;
    margin-right: 1rem !important;
  }
  .navbar-brand .brand-logo-img,
  .brand-logo-img {
    width: 160px !important;
    max-width: 160px !important;
    min-width: 160px !important;
    max-height: 38px !important;
  }
}

@media (max-width: 768px) {
  .navbar-brand {
    max-width: 155px !important;
  }
  .navbar-brand .brand-logo-img,
  .brand-logo-img {
    width: 150px !important;
    max-width: 150px !important;
    min-width: 150px !important;
    max-height: 36px !important;
  }
  footer .footer-logo-img,
  .footer-logo-img {
    width: 200px !important;
    max-width: 200px !important;
    min-width: 200px !important;
  }
}

@media (max-width: 420px) {
  .navbar-brand .brand-logo-img,
  .brand-logo-img {
    width: 138px !important;
    max-width: 138px !important;
    min-width: 138px !important;
  }
}
