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

:root {
  --primary: #667eea;
  --primary-dark: #5a6fd6;
  --secondary: #764ba2;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-hover: linear-gradient(135deg, #5a6fd6 0%, #6a4192 100%);
  --dark: #1a1a2e;
  --dark-secondary: #16213e;
  --text: #4a4a6a;
  --text-light: #8888aa;
  --bg-light: #f8f9fe;
  --white: #ffffff;
  --success: #28a745;
  --danger: #dc3545;
  --shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
  --shadow-lg: 0 10px 40px rgba(102, 126, 234, 0.2);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

.section-padding {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--dark);
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 50px;
}

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

.btn-gradient {
  background: var(--gradient);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.btn-gradient:hover {
  background: var(--gradient-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-gradient {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.btn-outline-gradient:hover {
  background: var(--white);
  color: var(--secondary);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.btn-outline-dark:hover {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
}

.navbar .navbar-brand {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar.scrolled .navbar-brand {
  color: var(--dark);
}

.navbar .navbar-brand img {
  height: 100px;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 18px !important;
  border-radius: 8px;
  transition: var(--transition);
}

.navbar.scrolled .nav-link {
  color: var(--text) !important;
}

.navbar .nav-link:hover {
  color: var(--white) !important;
  background: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .nav-link:hover {
  color: var(--primary) !important;
  background: rgba(102, 126, 234, 0.08);
}

.navbar .btn-nav-cta {
  background: var(--white);
  color: var(--secondary) !important;
  border-radius: 50px;
  padding: 8px 22px !important;
  font-weight: 600;
}

.navbar.scrolled .btn-nav-cta {
  background: var(--gradient);
  color: var(--white) !important;
}

.navbar .btn-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  background: var(--white) !important;
  color: var(--secondary) !important;
}

.navbar.scrolled .btn-nav-cta:hover {
  background: var(--gradient-hover) !important;
  color: var(--white) !important;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient);
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"/></svg>') no-repeat bottom;
  background-size: cover;
  pointer-events: none;
}

.hero .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 0;
}

.hero .hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero .hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 650px;
  margin: 0 auto 35px;
  line-height: 1.8;
}

.hero .hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.hero .hero-scroll-indicator a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
}

.hero .hero-scroll-indicator a:hover {
  color: var(--white);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  pointer-events: none;
}

.hero-shapes .shape-1 {
  top: 10%;
  left: 5%;
  width: 300px;
  height: 300px;
  background: var(--white);
  animation: float 8s ease-in-out infinite;
}

.hero-shapes .shape-2 {
  bottom: 15%;
  right: 8%;
  width: 200px;
  height: 200px;
  background: var(--white);
  animation: float 10s ease-in-out infinite reverse;
}

.hero-shapes .shape-3 {
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  background: var(--white);
  animation: float 12s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* ===== About Section ===== */
.about {
  background: var(--white);
}

.about .about-image img {
  width: 100%;
  transition: transform 0.4s ease;
}

.about .about-image:hover img {
  transform: scale(1.03);
}

.about .about-content .lead {
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 500;
}

.about .about-content p {
  margin-bottom: 16px;
}

.about .about-list {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}

.about .about-list li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.about .about-list li i {
  color: var(--primary);
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

/* ===== Features Section ===== */
.features {
  background: var(--bg-light);
}

.feature-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(102, 126, 234, 0.08);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(102, 126, 234, 0.2);
}

.feature-card .feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: var(--gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  border-radius: 50%;
  transform: rotateY(180deg);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.7;
}

/* ===== Screenshots Section ===== */
.screenshots {
  background: var(--white);
}

.screenshot-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  margin-bottom: 30px;
}

.screenshot-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.screenshot-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.screenshot-item .screenshot-caption {
  padding: 15px;
  background: var(--white);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  border-top: 1px solid #f0f0f0;
}

.screenshots .empty-gallery {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-light);
  border-radius: var(--radius);
  border: 2px dashed #ddd;
}

.screenshots .empty-gallery i {
  font-size: 3rem;
  color: #ccc;
  margin-bottom: 15px;
}

.screenshots .empty-gallery p {
  color: var(--text-light);
  font-size: 1rem;
}

/* ===== Video Section ===== */
.video-section {
  background: var(--bg-light);
}

.video-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--dark);
}

.video-wrapper .video-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.video-wrapper .video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.video-wrapper .video-placeholder .play-btn {
  position: absolute;
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.video-wrapper .video-placeholder:hover .play-btn {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
}

.video-wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}

.video-section .video-description {
  max-width: 700px;
  margin: 25px auto 0;
  color: var(--text-light);
  text-align: center;
}

.video-section .empty-video {
  text-align: center;
  padding: 80px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 2px dashed #ddd;
}

.video-section .empty-video i {
  font-size: 3.5rem;
  color: #ccc;
  margin-bottom: 15px;
}

/* ===== Stats Section ===== */
.stats-section {
  background: var(--gradient);
  padding: 80px 0;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-item .stat-icon {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 15px;
}

.stat-item .stat-value {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 5px;
}

.stat-item .stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== Testimonials Section ===== */
.testimonials {
  background: var(--white);
}

.testimonial-card {
  background: var(--bg-light);
  padding: 35px;
  border-radius: var(--radius);
  position: relative;
  transition: var(--transition);
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 15px;
  left: 25px;
  font-size: 5rem;
  color: rgba(102, 126, 234, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card .testimonial-text {
  font-size: 1rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-card .testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-card .testimonial-author .author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  overflow: hidden;
}

.testimonial-card .testimonial-author .author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card .testimonial-author .author-info h5 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--dark);
}

.testimonial-card .testimonial-author .author-info span {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ===== Demo Request Section ===== */
.demo-section {
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}

.demo-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,213.3C672,224,768,224,864,208C960,192,1056,160,1152,154.7C1248,149,1344,171,1392,181.3L1440,192L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"/></svg>') no-repeat top;
  background-size: cover;
  pointer-events: none;
}

.demo-section .container {
  position: relative;
  z-index: 1;
}

.demo-section h2 {
  color: var(--white);
}

.demo-section .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.demo-form-wrapper {
  max-width: 520px;
  margin: 0 auto;
}

.demo-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.demo-form .form-group {
  margin-bottom: 20px;
}

.demo-form .form-control {
  padding: 14px 18px;
  border: 2px solid #e8e8f0;
  border-radius: 10px;
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.demo-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
  outline: none;
}

.demo-form .form-control.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.demo-form .error-text {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 5px;
  display: none;
}

.demo-form .form-control.is-invalid ~ .error-text {
  display: block;
}

.demo-form .btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--gradient);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.demo-form .btn-submit:hover {
  background: var(--gradient-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.demo-form .btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.demo-form .btn-submit .spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.demo-form .btn-submit.loading .spinner {
  display: inline-block;
}

.demo-form .btn-submit.loading .btn-text {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.demo-form .alert {
  display: none;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 0;
  font-weight: 500;
  text-align: center;
}

.demo-form .alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.demo-form .alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.demo-form .demo-result {
  display: none;
}

.demo-form .demo-result.show {
  display: block;
}

.demo-form .demo-result.show ~ .demo-inputs {
  display: none;
}

/* ===== Contact Section ===== */
.contact {
  background: var(--white);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-info-item .contact-icon {
  width: 55px;
  height: 55px;
  background: var(--bg-light);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-info-item:hover .contact-icon {
  background: var(--gradient);
  color: var(--white);
}

.contact-info-item h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--dark);
}

.contact-info-item p {
  color: var(--text-light);
  margin: 0;
  font-size: 0.95rem;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form .form-control {
  padding: 14px 18px;
  border: 2px solid #e8e8f0;
  border-radius: 10px;
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
  outline: none;
}

.contact-form .form-control.is-invalid {
  border-color: var(--danger);
}

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

.contact-form .btn-submit {
  padding: 14px 36px;
  background: var(--gradient);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-form .btn-submit:hover {
  background: var(--gradient-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.contact-form .btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.contact-form .alert {
  display: none;
  padding: 16px;
  border-radius: 10px;
  margin-top: 20px;
  font-weight: 500;
  text-align: center;
}

.contact-form .alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.contact-form .alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.contact-form .alert.show {
  display: block;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  padding: 60px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer h5 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer p {
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links li {
  margin-bottom: 10px;
}

.footer .footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer .footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer .social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer .social-links a {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer .social-links a:hover {
  background: var(--gradient);
  color: var(--white);
  transform: translateY(-3px);
}

.footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  margin-top: 50px;
  text-align: center;
}

.footer .footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== AOS Overrides ===== */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

[data-aos] input,
[data-aos] select,
[data-aos] textarea,
[data-aos] button,
[data-aos] a,
[data-aos] label,
[data-aos] .btn-gradient,
[data-aos] .btn-outline-gradient,
[data-aos] .btn-outline-dark,
[data-aos] .btn-submit,
[data-aos] .form-control,
[data-aos] .nav-link,
[data-aos] .navbar-brand {
  pointer-events: auto !important;
}

/* ===== Gallery Lightbox ===== */
.gallery-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  cursor: zoom-out;
}

.gallery-overlay.active {
  display: flex;
}

.gallery-overlay img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.gallery-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.gallery-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.08);
}

.gallery-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.gallery-prev {
  left: 20px;
}

.gallery-next {
  right: 20px;
}

.gallery-close {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.gallery-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

.gallery-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 85vh;
  cursor: default;
}

.gallery-image-wrapper .gallery-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 40px 20px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  border-radius: 0 0 4px 4px;
  pointer-events: none;
}

.gallery-image-wrapper .gallery-caption {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 2px;
}

.gallery-image-wrapper .gallery-counter {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}



@media (max-width: 576px) {
  .gallery-btn {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .gallery-prev {
    left: 10px;
  }

  .gallery-next {
    right: 10px;
  }

  .gallery-close {
    width: 40px;
    height: 40px;
    font-size: 22px;
    top: 12px;
    right: 12px;
  }
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .section-padding {
    padding: 70px 0;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .about .about-image img {
    height: 300px;
  }

  .stat-item .stat-value {
    font-size: 2.2rem;
  }

  .navbar .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 10px;
    box-shadow: var(--shadow-lg);
  }

  .navbar .navbar-collapse .nav-link {
    color: var(--text) !important;
  }

  .navbar .navbar-collapse .nav-link:hover {
    color: var(--primary) !important;
    background: rgba(102, 126, 234, 0.08);
  }

  .navbar .navbar-collapse .btn-nav-cta {
    background: var(--gradient);
    color: var(--white) !important;
    text-align: center;
    margin-top: 10px;
  }
}

@media (max-width: 767px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero .hero-subtitle {
    font-size: 1rem;
  }

  .hero .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .demo-form {
    padding: 25px;
  }

  .stat-item .stat-value {
    font-size: 1.8rem;
  }

  .stat-item {
    padding: 15px;
  }
}
