:root {
  --primary: #1E88E5;       /* Main blue color */
  --primary-dark: #1565C0;  /* Darker blue for hover states */
  --bg-light: #FFFFFF;      /* White background */
  --bg-card: #F5F7FA;       /* Light gray for cards */
  --text-primary: #2D3748;  /* Dark gray for primary text */
  --text-secondary: #4A5568; /* Medium gray for secondary text */
  --accent-light: #E3F2FD;  /* Very light blue for accents */
  --border-color: #E2E8F0;  /* Light border color */
}

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

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

nav a {
  color: var(--text-primary);
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--primary);
}

.hero {
  padding: 180px 20px 100px;
  text-align: center;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--bg-light) 100%);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-primary);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  background-color: var(--primary);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
}

.services {
  padding: 60px 0;
  background-color: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  text-align: left;
  transition: transform 0.3s;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.service-card img {
  width: 140px;
  height: 140px;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
  text-align: center;
}

.service-card p {
  text-align: center;
  color: var(--text-secondary);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.solution-card {
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.solution-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.solution-card img {
  width: 140px;
  height: 140px;
  object-fit: contain;
}

.case-studies {
  padding: 100px 0;
  background-color: var(--accent-light);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.case-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  text-align: left;
  transition: all 0.3s;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.case-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.case-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.how-we-work {
  padding: 100px 0;
  background-color: var(--bg-light);
}

.work-steps {
  margin-top: 4rem;
}

.work-step {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
  padding: 2rem;
  background-color: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.work-step:nth-child(even) {
  direction: rtl;
}

.work-step .content {
  direction: ltr;
  padding: 2rem;
}

.work-step h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.work-step .image img {
  width: 300px;
  height: 300px;
  object-fit: contain;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.chatbot {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--primary);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
}

.chatbot:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .work-step {
    grid-template-columns: 1fr;
  }
  .nav .links {
    display: none;
  }
}

/* Demo Modal Styles */
.demo-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
}

.demo-container {
  position: relative;
  width: 90%;
  height: 90%;
  margin: 2% auto;
  background: var(--bg-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.demo-frame {
  width: 100%;
  height: 100%;
  border: none;
}

.close-demo {
  position: absolute;
  top: 15px;
  right: 15px;
  color: white;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 2001;
}

.demo-btn {
  margin-left: 1rem;
  background-color: var(--primary-dark);
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background-color: var(--accent-light);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: white;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
}

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

.contact-form button {
  margin-top: 1rem;
}

.founders {
  padding: 4rem 0;
  background-color: var(--bg-light);
}

.founders-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
}

.founder-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

.founder-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.founder-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-info {
  padding: 1.5rem;
}

.founder-info h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.founder-title {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.founder-bio {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.founder-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.founder-contact a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.founder-contact a:hover {
  color: var(--primary-dark);
}

.founder-contact .linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .founders-grid {
    padding: 0 1rem;  /* Add some padding on smaller screens */
  }
  
  .founder-image {
    height: 250px;  /* Slightly smaller images on mobile */
  }
  
  .founder-info {
    padding: 1rem;  /* Slightly less padding on mobile */
  }
  
  .founder-info h3 {
    font-size: 1.25rem;  /* Slightly smaller heading on mobile */
  }
  
  .founder-bio {
    font-size: 0.9rem;  /* Slightly smaller text on mobile */
  }
}
@media (max-width: 480px) {
  .founder-image {
    height: 200px;  /* Even smaller images on very small screens */
  }
}

/* Video Demos Section */
.video-demos {
  padding: 3px 0;
  background: white;
}

.video-container {
  max-width: 1280px;  /* REDUCED FROM 640px */
  margin: 3rem auto;
}

.video-item {
  background-color: var(--bg-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 640px;
  background-color: #000;
  overflow: hidden; /* Add this */
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-info {
  padding: 1.5rem;
  text-align: center;
}

.video-info h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.video-info p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.video-cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.3s;
  margin-top: 0.5rem;
}

.video-cta:hover {
  background-color: var(--primary-dark);
}

/* Video Controls Styling */
video::-webkit-media-controls {
  background-color: rgba(0, 0, 0, 0.05); /* or try rgba(255, 255, 255, 0.2) */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .video-wrapper {
    height: 180px;  /* REDUCED FROM 280px */
  }
  
  .video-info h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .video-wrapper {
    height: 150px;  /* REDUCED FROM 200px */
  }
}

/* Services and Solutions Grid Layout */
.services-grid,
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Card Container */
.service-card{
  width: 100%;
  height: 550px;
  perspective: 1000px;
  background: transparent;
}


.solution-card{
  width: 100%;
  height: 720px;
  perspective: 1000px;
  background: transparent;
}

/* Card Inner Container - Handles Flip */
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  cursor: pointer;
}

/* Flip Effect on Hover */
.service-card:hover .card-inner,
.solution-card:hover .card-inner {
  transform: rotateY(180deg);
}

/* Common Styles for Front and Back */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Front Side Styling */
.card-front {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-front img {
  width: 140px;
  height: 140px;
  margin-bottom: 1.5rem;
  object-fit: contain;
}

.card-front h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.card-front p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-primary);
}

/* Back Side Styling */
.card-back {
  transform: rotateY(180deg);
  background-color: var(--primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-back h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card-back p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Firefox-specific fixes */
@-moz-document url-prefix() {
  .card-front,
  .card-back {
    backface-visibility: hidden;
    -moz-backface-visibility: hidden;
  }
  
  .card-back {
    transform: rotateY(180deg);
  }
}

/* Edge and Safari fixes */
@supports (-ms-ime-align: auto) {
  .card-front,
  .card-back {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
}

/* Webkit (Chrome, Safari) specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .card-front,
  .card-back {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
}

/* Container width adjustment */
.container {
  max-width: 1550px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Modal Styles */
.login-modal, 
.signup-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 3000;
}

.login-container,
.signup-container {
  max-width: 400px;
  margin: 10% auto;
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.close-login,
.close-signup {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 18px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

#loginForm input,
#signupForm input {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: var(--bg-light);
  color: var(--text-primary);
}

/* Responsive design */
@media (max-width: 768px) {
  .services-grid,
  .solutions-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .service-card {
    height: auto;
    min-height: 400px;
  }
  
  .solution-card {
    height: auto;
    min-height: 500px;
  }
  
  .card-front,
  .card-back {
    padding: 1.5rem;
  }
  
  .card-front h3,
  .card-back h3 {
    font-size: 1.25rem;
  }
  
  .card-front p,
  .card-back p {
    font-size: 0.9rem;
  }
}

/* Language toggle button */
.lang-toggle {
  background-color: var(--primary);
  color: white !important;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-weight: bold;
}

.lang-toggle:hover {
  background-color: var(--primary-dark);
  color: white !important;
}
