/* ===== Color Variables ===== */
:root {
  --primary: #6e44ff;
  --primary-light: #9d7aff;
  --secondary: #00f5d4;
  --dark: #0f0a1a;
  --darker: #070311;
  --light: #f8f9fa;
  --accent: #ff2d75;
  --text: #e2e1ff;
}

/* ===== Base Styles ===== */
body {
  background-color: var(--dark);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  margin: 0;
  overflow-x: hidden;
}

/* Hero Section Styling */
.hero {
  padding: 80px 0;
  position: relative;
}

.hero-content {
  padding-right: 30px;
}

.hero-image {
  padding-left: 30px;
  animation: float 6s ease-in-out infinite;
}

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

@media (max-width: 992px) {
  .hero {
    padding: 60px 0;
  }
  .hero-content {
    padding-right: 0;
    text-align: center;
  }
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--light);
  position: relative;
  display: inline-block;
}


.lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  opacity: 0.9;
}

/* ===== Hero Section ===== */
.hero {
  background: radial-gradient(
      circle at 20% 50%,
      rgba(110, 68, 255, 0.15) 0%,
      transparent 40%
    ),
    linear-gradient(var(--darker), var(--dark));
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.hero:before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
      circle,
      rgba(0, 245, 212, 0.04) 0%,
      transparent 70%
    ),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="none" stroke="rgba(110,68,255,0.05)" stroke-width="0.5" d="M0,0 L100,100 M100,0 L0,100 Z"/></svg>');
  animation: rotate 120s linear infinite;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* ===== Buttons ===== */
.btn {
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary {
  background: var(--primary);
  border: none;
  color: white;
  padding: 14px 32px;
  box-shadow: 0 4px 20px rgba(110, 68, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(110, 68, 255, 0.4);
}

.btn-primary:after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: rotate(30deg);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-primary:hover:after {
  left: 100%;
}

.btn-outline {
  border: 2px solid var(--secondary);
  color: var(--secondary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--secondary);
  color: var(--dark);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.3);
}

/* ===== Service Cards ===== */
.services {
  padding: 100px 0;
  background-color: var(--darker);
}

.service-card {
  background: rgba(15, 10, 26, 0.6);
  border: 1px solid rgba(110, 68, 255, 0.2);
  border-radius: 12px;
  padding: 40px 30px;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(8px);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-light);
  box-shadow: 0 15px 40px rgba(110, 68, 255, 0.15);
}

.service-icon {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
}

/* ===== Process Steps ===== */
.process-step {
  position: relative;
  padding: 10px 10px;
}

.step-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

/* ===== Tech Stack ===== */
.tech-stack {
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(110, 68, 255, 0.1);
  border-bottom: 1px solid rgba(110, 68, 255, 0.1);
}

/* ===== CTA Section ===== */
.cta {
  background: linear-gradient(135deg, var(--primary), #8a2be2);
  position: relative;
  overflow: hidden;
}

/* ===== Mobile Components ===== */
.mobile-badge .badge {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  font-weight: 600;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
}

.mobile-stats {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 15px 0;
  margin-top: 30px;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--secondary), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.mobile-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: none;
}

/* ===== Animations ===== */
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

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

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

/* ===== Mobile Breakpoints ===== */
@media (max-width: 992px) {
  .hero {
    min-height: 100vh;
    padding: 60px 0;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px !important;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .service-card {
    padding: 25px 20px;
    margin-bottom: 20px;
  }

  .mobile-cta {
    display: block;
  }

  .mobile-cta .btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(110, 68, 255, 0.4);
    font-size: 30px;
    position: relative;
  }

  .mobile-cta .btn:after {
    content: "✉️";
    font-size: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

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

  .hero {
    padding-top: 80px;
  }

  .tech-stack img {
    height: 30px;
    margin: 0 10px;
  }
}

/* Quote Modal Styles */

.modal {
  background: rgba(0, 0, 0, 0.8);
}
#quoteModal .modal-content {
  border-radius: 10px;
  overflow: hidden;
  border: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

#quoteModal .modal-header {
  border-bottom: none;
  padding: 1.5rem;
}

#quoteModal .modal-title {
  font-size: 1.5rem;
  font-weight: 600;
}

#quoteModal .modal-body {
  padding: 2rem;
}

#quoteModal .form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

#quoteModal .form-control,
#quoteModal .form-select {
  padding: 0.75rem;
  border: 1px solid #dee2e6;
  border-radius: 8px;
}

#quoteModal .form-control:focus,
#quoteModal .form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

#quoteModal .btn-close {
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  #quoteModal .modal-dialog {
    margin: 1rem auto;
  }

  #quoteModal .modal-body {
    padding: 1.5rem;
  }
}

/* Services Page Specific Styles */
.services-hero {
  background: linear-gradient(135deg, #1d0325 0%, #0b1927 100%);
}

.service-card-extended {
  background: rgb(3, 4, 24);
  border-radius: 10px;
  padding: 30px;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card-extended:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon-lg {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 30px;
}

.service-features {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.service-features li {
  padding: 5px 0;
  position: relative;
  padding-left: 25px;
}

.service-features li:before {
  content: "✓";
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.process-step-extended {
  display: flex;
  margin-bottom: 30px;
  align-items: flex-start;
}

.step-number {
  background: var(--primary);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 20px;
  flex-shrink: 0;
}

.step-content {
  padding-top: 5px;
}

.step-content h4 {
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .service-card-extended {
    padding: 20px;
  }

  .service-icon-lg {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}

/* About Page Specific Styles */
.about-hero {
  background: linear-gradient(135deg, #050d18 0%, #021531 100%);
}

.who-we-are {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Founder's Story Styling */
.icon-box {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.story-point h5 {
  color: var(--dark);
  margin-bottom: 8px;
}

.border-start {
  border-left: 3px solid !important;
}

.fst-italic {
  font-style: italic;
}
.bg-primary-dark {
  background-color: rgba(0, 0, 0, 0.2);
}

.btn-outline-light:hover {
  color: var(--primary);
}
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
}

.milestones {
  position: relative;
  padding-left: 30px;
}

.milestones:before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--primary);
}

.milestone {
  position: relative;
  padding-bottom: 20px;
}

.milestone-year {
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 5px;
}

.founder-section {
  background: linear-gradient(135deg, #000102 0%, #000000 100%);
}

.founder-photo-container {
  position: relative;
  display: inline-block;
}

.founder-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border: 1px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.founder-badge {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: var(--primary);
  color: rgb(3, 2, 26);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.founder-card {
  background: rgb(8, 2, 37);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.founder-quote {
  border-left: 3px solid var(--primary);
  padding-left: 15px;
}

.founder-quote i {
  font-size: 24px;
  margin-right: 10px;
  opacity: 0.5;
}

.team-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-card {
  padding: 20px;
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
}

.value-card {
  padding: 30px 20px;
  height: 100%;
}

.value-icon {
  font-size: 2.5rem;
  color: var(--primary);
}

.bg-primary-soft {
  background-color: rgba(13, 110, 253, 0.1);
  color: var(--primary);
}

@media (max-width: 768px) {
  .founder-photo {
    width: 150px;
    height: 150px;
  }

  .team-photo {
    width: 120px;
    height: 120px;
  }
}

/* Contact Page Styles */
.contact-hero {
  background: linear-gradient(135deg, #050a11 0%, #021024 100%);
}

.contact-card {
  background: rgb(51, 50, 88);
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.bg-primary-soft {
  background-color: rgba(13, 110, 253, 0.1);
}

.map-section {
  background-color: #f8f9fa;
}

/* Form validation styles */
.was-validated .form-control:invalid,
.form-control.is-invalid {
  border-color: #dc3545;
}

.was-validated .form-control:valid,
.form-control.is-valid {
  border-color: #198754;
}

.invalid-feedback {
  display: none;
  color: #dc3545;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-hero {
    text-align: center;
    padding: 60px 0;
  }

  .contact-hero img {
    margin-top: 30px;
  }

  .contact-card {
    margin-bottom: 20px;
  }
}

/* Portfolio Styles */
.portfolio-hero {
  background: linear-gradient(135deg, #090c11 0%, #021024 100%);
}

.portfolio-filters {
  z-index: 1020;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
  background-color: var(--primary);
  color: white;
}

.project-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-image {
  position: relative;
  overflow: hidden;
}

.project-image img {
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 110, 253, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  text-align: center;
}

.project-links .btn {
  margin: 0 5px;
}

.project-tags {
  margin-top: 10px;
}

.bg-primary-soft {
  background-color: rgba(13, 110, 253, 0.1);
  color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .portfolio-filters {
    position: static !important;
  }

  .filter-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
  }
}
