/* ==========================================================================
   PSG Technologies | Premium Custom Stylesheet (Aesthetic Overhaul)
   ========================================================================== */

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

/* --- CSS Variables --- */
:root {
  /* Colors - Based on PSG Tech Logo */
  --color-primary: #0056b3;
  --color-primary-dark: #003d82;
  --color-secondary: #ff7f00;
  --color-orange: #ff7f00;
  --color-warning: #fbbf24;
  --color-purple: #8b5cf6;
  --color-success: #10b981;
  --color-info: #0080ff;
  --color-cyan: #06b6d4;
  --color-green: #22c55e;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0056b3 0%, #ff7f00 100%);
  --gradient-blue: linear-gradient(135deg, #0056b3 0%, #0080ff 100%);
  --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
  --gradient-orange: linear-gradient(135deg, #ff7f00 0%, #ffb366 100%);
  --gradient-dark: linear-gradient(135deg, #1e293b 0%, #334155 100%);

  --bg-soft-gray: #f8fafc;
  --bg-light-gradient: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
  --bg-dark: #0f172a;
  --bg-darker: #020617;

  /* Text */
  --text-dark: #1e293b;
  --text-dark-heading: #0f172a;
  --text-muted: #64748b;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.4);

  /* Shadows */
  --shadow-sm-soft: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-soft: 0 10px 40px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 10px 30px rgba(0, 86, 179, 0.15);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);

  /* Typography */
  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Lexend', sans-serif;
}

/* --- Global Resets & Typography --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-secondary);
  color: var(--text-dark);
  background-color: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark-heading);
  font-family: var(--font-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.secondary-font {
  font-family: var(--font-secondary);
}

/* --- Utilities --- */
.py-7 { padding: 7rem 0; }
.text-line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.text-line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.shadow-glow { box-shadow: var(--shadow-glow) !important; }
.hover-lift { transition: var(--transition-normal); }
.hover-lift:hover { transform: translateY(-8px); box-shadow: var(--shadow-soft); }

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

/* --- Mesh Gradient Background --- */
.mesh-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f8fafc;
  background-image: 
    radial-gradient(at 0% 0%, hsla(210, 100%, 93%, 1) 0, transparent 50%), 
    radial-gradient(at 50% 0%, hsla(210, 80%, 90%, 1) 0, transparent 50%), 
    radial-gradient(at 100% 0%, hsla(30, 100%, 93%, 1) 0, transparent 50%);
  z-index: -1;
}

/* --- Glassmorphism Component Enhancements --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
}

.glass-nav {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- Buttons --- */
.btn-primary-gradient {
  background: var(--gradient-primary);
  border: none;
  color: #fff;
  font-weight: 600;
  background-size: 200% auto;
  transition: 0.5s;
}

.btn-primary-gradient:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 86, 179, 0.2);
  color: #fff;
}

.btn-outline-premium {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
  transition: var(--transition-normal);
}

.btn-outline-premium:hover {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

/* --- Hero Section --- */
.hero-section {
  min-height: 95vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
}

.hero-main-img {
  width: 100%;
  border-radius: 2rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.trust-badge {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
}

/* --- Stats Section --- */
.stats-section {
  position: relative;
  z-index: 10;
  margin-top: -5rem;
}

.stat-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.stat-number {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

/* --- Services & Products --- */
.service-card {
  border-radius: 1.5rem;
  padding: 2.5rem;
  height: 100%;
  transition: var(--transition-normal);
}

.service-icon-box {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.product-card {
  border-radius: 1.5rem;
}

/* --- Portfolio Gallery --- */
.portfolio-item {
  height: 400px;
}

.portfolio-overlay {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, transparent 70%);
}

/* --- Project Details Page Styles --- */
.detail-hero { background: var(--bg-soft-gray); border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
.service-icon-banner { box-shadow: var(--shadow-sm-soft); transition: var(--transition-normal); }
.service-icon-banner:hover { transform: rotate(5deg) scale(1.05); }
.breadcrumb-item + .breadcrumb-item::before { content: "›" !important; color: var(--text-muted); padding: 0 10px !important; font-weight: bold; }
.content-block h2 { position: relative; display: inline-block; padding-bottom: 10px; }
.content-block h2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 3px; background: var(--gradient-primary); border-radius: 2px; }
.feature-item { border: 1px solid transparent; transition: var(--transition-normal); }
.feature-item:hover { border-color: rgba(0, 86, 179, 0.2); background: #fff !important; transform: translateX(5px); }

/* --- Call To Action Section --- */
.cta-gradient-card {
  background: var(--gradient-primary);
  background-size: 200% auto;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.cta-shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.cta-shape-1 { width: 300px; height: 300px; top: -100px; right: -50px; }
.cta-shape-2 { width: 200px; height: 200px; bottom: -50px; left: -50px; }

/* --- Footer --- */
.bg-darker { background-color: var(--bg-darker); }

/* --- Animations --- */
.reveal { 
  opacity: 0; 
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); 
  will-change: transform, opacity;
}
.reveal.active { opacity: 1; transform: translate(0, 0) scale(1); }
.reveal-bottom { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.98); }

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

.floating { animation: float 6s ease-in-out infinite; }

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .py-7 { padding: 4rem 0; }
  .hero-section { text-align: center; min-height: auto; padding-bottom: 8rem; }
  .stats-section { margin-top: 0; }
  .display-3 { font-size: 2.75rem; }
}

/* Responsive adjustments for video container from before */
.video-container { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; overflow: hidden; box-shadow: var(--shadow-soft); border-radius: 12px; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.scroll-margin-top { scroll-margin-top: 100px; }