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

:root {
  --bg-main: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-solid: #f8fafc;
  --primary: #d97706; /* Ámbar de alto contraste */
  --primary-hover: #b45309;
  --primary-glow: rgba(217, 119, 6, 0.15);
  --secondary: #0284c7; /* Azul eléctrico legible */
  --secondary-glow: rgba(2, 132, 199, 0.15);
  
  --text-primary: #0f172a; /* Slate 900 */
  --text-secondary: #475569; /* Slate 600 */
  --text-muted: #64748b;
  --accent: #10b981; /* Verde esmeralda */
  
  --border: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(2, 132, 199, 0.4);
  --border-focus: rgba(217, 119, 6, 0.5);
  
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-premium: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-neon: 0 4px 20px rgba(2, 132, 199, 0.08);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

button, input, select, textarea {
  font-family: inherit;
}

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.85rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 0.95rem;
  gap: 0.6rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(251, 191, 36, 0.5);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--secondary);
  transform: translateY(-2px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  background: rgba(14, 165, 233, 0.08);
  color: var(--secondary);
  border: 1px solid rgba(14, 165, 233, 0.15);
}

.text-accent {
  color: var(--accent);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

header.scrolled {
  padding: 0.5rem 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-premium);
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-weight: 800;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.5px;
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.logo-icon {
  color: var(--primary);
  font-size: 1.5rem;
  animation: pulse-glow 2s infinite ease-in-out;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.2rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 180px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 5%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: -5%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 5rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 3rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trust-lbl {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Card Glowing (Visual Panel) */
.hero-visual {
  display: flex;
  justify-content: center;
}

.card-glowing {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.2rem;
  box-shadow: var(--shadow-premium), var(--shadow-neon);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 420px;
}

.card-glowing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.card-profile {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #ffffff;
}

.profile-info h4 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.profile-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  margin-top: 0.4rem;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.card-details {
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.card-detail-item span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.card-detail-item strong {
  color: var(--text-primary);
}

/* Sections General */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.section-subtitle {
  color: var(--primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  display: block;
  margin-bottom: 0.8rem;
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Process Section */
.process-section {
  background: linear-gradient(180deg, var(--bg-main) 0%, rgba(15, 23, 42, 0.3) 100%);
  position: relative;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.process-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-premium);
}

.process-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.08);
}

.process-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(14, 165, 233, 0.06);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(14, 165, 233, 0.15);
  transition: var(--transition);
}

.process-card:hover .process-icon {
  background: var(--secondary);
  color: #05070c;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}

.process-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  letter-spacing: -0.2px;
}

.process-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* About Us Section */
.about-section {
  background: rgba(15, 23, 42, 0.15);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.about-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  transition: var(--transition);
}

.about-card:hover {
  border-color: rgba(251, 191, 36, 0.25);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.about-card-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.about-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Objectives Section */
.objectives-section {
  position: relative;
}

.objectives-list-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.objective-item {
  display: flex;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem 2.2rem;
  align-items: center;
  transition: var(--transition);
}

.objective-item:hover {
  border-color: rgba(251, 191, 36, 0.2);
  transform: translateX(5px);
  background: rgba(15, 23, 42, 0.8);
}

.obj-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.8;
  font-family: monospace;
}

.obj-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  letter-spacing: -0.2px;
}

.obj-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Interactive Forms Section */
.actions-section {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, var(--bg-main) 100%);
}

.form-container-box {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 3.5rem;
  box-shadow: var(--shadow-premium);
  position: relative;
}

.form-container-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(135deg, var(--border), rgba(14, 165, 233, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.tab-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.4rem;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 0.9rem 1.5rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.input-wrapper, .select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper input, .select-wrapper select, .input-wrapper textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border);
  padding: 0.9rem 1rem 0.9rem 2.8rem;
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
}

.input-wrapper textarea {
  padding-top: 0.9rem;
  resize: vertical;
}

.input-wrapper i, .select-wrapper i {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.input-wrapper textarea-wrapper i {
  top: 1.1rem;
}

.input-wrapper input:focus, .select-wrapper select:focus, .input-wrapper textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.15);
  background: rgba(255, 255, 255, 1);
}

.form-tip {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.submit-btn {
  margin-top: 2rem;
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
}

/* Success Message styles */
.success-message {
  display: none;
  text-align: center;
  padding: 2rem 0;
  animation: fadeIn 0.4s ease-out;
}

.success-icon {
  font-size: 3.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  animation: pulse-glow 2s infinite ease-in-out;
}

.success-message h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.success-message p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* Contact Us Section */
.contact-section {
  padding-bottom: 120px;
}

.contact-card-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--border);
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

.contact-info-side {
  padding: 4.5rem;
}

.contact-info-side h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.contact-info-side p {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail-link {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-detail-link i {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid rgba(251, 191, 36, 0.15);
  transition: var(--transition);
}

.contact-detail-link:hover i {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
  transform: scale(1.05);
}

.contact-visual-side {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--border);
  position: relative;
}

.electrical-icon-box {
  font-size: 5rem;
  color: var(--secondary);
}

.lightning-animated {
  animation: lightning-strike 3s infinite ease-in-out;
}

/* Footer */
footer {
  background: #f8fafc;
  border-top: 1px solid var(--border);
  padding: 60px 0 50px;
  position: relative;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0.8rem;
  max-width: 400px;
}

.footer-socials {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin: 0.5rem 0;
}

.footer-social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.04);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.footer-social-link:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
  transform: translateY(-2px);
}

.footer-bottom {
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}

.footer-bottom-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.4));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.8));
  }
}

@keyframes lightning-strike {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(14, 165, 233, 0.4));
  }
  48%, 52% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(14, 165, 233, 1));
  }
}

/* Responsiveness */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-trust {
    justify-content: center;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .contact-card-box {
    grid-template-columns: 1fr;
  }
  .contact-visual-side {
    display: none;
  }
}

@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }
  .nav-menu, .nav-cta {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .hero-content h1 {
    font-size: 2.7rem;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .form-container-box {
    padding: 2rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .contact-info-side {
    padding: 2.5rem;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1.5rem !important;
  }
  .dev-btn {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    margin-top: 1rem !important;
  }
}

/* Gallery Section & Carousel Styles */
.gallery-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.carousel-container {
  max-width: 900px;
  position: relative;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

.carousel-slide {
  display: none;
  position: relative;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 480px;
  object-fit: cover;
  filter: brightness(0.9);
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.85) 100%);
  color: #ffffff;
  padding: 3rem 2.5rem 2rem;
  text-align: left;
}

.carousel-caption h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.carousel-caption p {
  font-size: 1.05rem;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Slide control buttons */
.carousel-prev, .carousel-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: bold;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.carousel-prev:hover, .carousel-next:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
}

.carousel-prev {
  left: 1.5rem;
}

.carousel-next {
  right: 1.5rem;
}

/* Indicators dots */
.carousel-dots {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.dot {
  cursor: pointer;
  height: 8px;
  width: 24px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  transition: var(--transition);
}

.dot.active, .dot:hover {
  background-color: #ffffff;
  width: 32px;
}

/* Fading animation */
.fade {
  animation-name: fadeEffect;
  animation-duration: 0.8s;
}

@keyframes fadeEffect {
  from {opacity: 0.4} 
  to {opacity: 1}
}

@media (max-width: 768px) {
  .carousel-slide img {
    height: 320px;
  }
  .carousel-caption {
    padding: 2rem 1.5rem 1.5rem;
  }
  .carousel-caption h3 {
    font-size: 1.3rem;
  }
  .carousel-caption p {
    font-size: 0.9rem;
  }
  .carousel-prev, .carousel-next {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ==========================================================================
   Preloader Screen
   ========================================================================== */
#preloader {
  position: fixed;
  inset: 0;
  background-color: #ffffff;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.preloader-logo {
  height: 90px;
  width: auto;
  object-fit: contain;
  animation: preloader-logo-pulse 2.5s infinite ease-in-out;
  z-index: 2;
}

.preloader-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.18) 0%, rgba(217, 119, 6, 0.06) 50%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  animation: preloader-glow-expand 2.5s infinite ease-in-out;
}

.preloader-spinner {
  width: 55px;
  height: 55px;
  border: 3px solid rgba(15, 23, 42, 0.04);
  border-top: 3px solid var(--secondary);
  border-bottom: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1.2s infinite cubic-bezier(0.5, 0.1, 0.5, 0.9);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes preloader-logo-pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px rgba(2, 132, 199, 0.2));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 25px rgba(2, 132, 199, 0.6));
  }
}

@keyframes preloader-glow-expand {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

/* ==========================================================================
   Scroll To Top Button
   ========================================================================== */
#scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

#scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

#scroll-top-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.4);
}

/* ==========================================================================
   Developer Button & Modal Overlay
   ========================================================================== */
.dev-btn {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: var(--text-secondary) !important;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  position: absolute;
  left: 2rem;
  bottom: 2rem;
  z-index: 10;
}

.dev-btn:hover {
  color: var(--primary) !important;
  transform: translateY(-1px);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-main);
  width: 90%;
  max-width: 420px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.6rem;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 12;
  transition: var(--transition);
  line-height: 1;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.modal-header-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  height: 110px;
  position: relative;
}

.modal-avatar-box {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 76px;
  background: var(--bg-main);
  border-radius: 20px;
  box-shadow: 0 8px 24px var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  border: 4px solid var(--bg-main);
}

.modal-body-content {
  padding: 50px 2rem 2.2rem;
  text-align: center;
}

.modal-body-content h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  letter-spacing: -0.5px;
}

.dev-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-glow);
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  margin-top: 0.4rem;
}

.dev-sub-badge {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  width: fit-content;
  margin: 0.6rem auto 0;
  letter-spacing: 0.5px;
}

.dev-contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.8rem 0;
}

.dev-contact-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
}

.dev-contact-row i {
  color: var(--primary);
  font-size: 1.05rem;
}

.dev-contact-row:hover {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 15px var(--primary-glow);
  transform: translateY(-2px);
}

.dev-social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.dev-social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.dev-social-icon-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.modal-footer-text {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
}

.footer-link-item {
  transition: var(--transition);
}

.footer-link-item:hover {
  color: var(--primary) !important;
  text-decoration: underline;
}

