/* Root Variables */
:root {
  --primary: #6C63FF;
  --primary-dark: #4A42E6;
  --secondary: #FF6584;
  --dark: #1A1A2E;
  --darker: #0F0F1B;
  --light: #F9F9FF;
  --gray: #E5E5EC;
  --gradient: linear-gradient(135deg, var(--primary), var(--primary-dark));
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --radius: 16px;
  --transition: 0.3s ease;
}

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

/* Body */
body {
  font-family: 'Inter', sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

body.dark-mode {
  background: var(--darker);
  color: var(--light);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: 1.4rem;
}

/* Layout */
.container {
  width: 92%;
  max-width: 1200px;
  margin: auto;
}

/* Highlight */
.highlight {
  color: var(--primary);
}

/* Header */
header {
  position: fixed;
  width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

body.dark-mode header {
  background: rgba(26,26,46,0.95);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo img {
  height: 42px;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
}

body.dark-mode nav a {
  color: var(--light);
}

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

/* Dark Mode Toggle */
.mode-toggle {
  cursor: pointer;
  font-size: 1.2rem;
  margin-left: 20px;
}

/* Hero Section */
.hero {
  padding: 160px 0 80px;
  text-align: center;
}

.hero-text {
  max-width: 800px;
  margin: auto;
}

.hero-text p {
  font-size: 1.1rem;
  margin: 24px 0 40px;
}

.hero-image {
  max-width: 600px;
  margin: 60px auto 0;
}

.hero-image img {
  width: 100%;
}

/* Buttons */
.btn {
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: var(--transition);
}

.btn.primary {
  background: var(--gradient);
  color: #fff;
}

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

.btn:hover {
  transform: translateY(-2px);
}

/* Features */
.features {
  padding: 100px 0;
  background: rgba(108,99,255,0.04);
}

.features h2 {
  text-align: center;
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 30px;
}

.feature-box {
  background: #fff;
  padding: 40px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

body.dark-mode .feature-box {
  background: var(--dark);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* Testimonials */
.testimonials {
  padding: 100px 0;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 60px;
}

.testimonial-slider {
  max-width: 900px;
  margin: auto;
  background: #fff;
  padding: 50px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

body.dark-mode .testimonial-slider {
  background: var(--dark);
}

.testimonial p {
  font-style: italic;
  margin-bottom: 30px;
}

.client-name {
  font-weight: 600;
  color: var(--primary);
}

.client-company {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ================= SERVICES / PRICING ================= */
.services-hero {
  padding: 160px 0 80px; /* Top padding matches the main hero to clear header */
  text-align: center;
  background: linear-gradient(to bottom, rgba(108, 99, 255, 0.05), transparent);
}
.services-hero h1 {
  margin-bottom: 15px;
  color: var(--dark);
}
body.dark-mode .services-hero h1 {
  color: var(--light);
}
.pricing {
  padding: 100px 0;
}

.pricing h2 {
  text-align: center;
  margin-bottom: 60px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 30px;
}

.pricing-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

body.dark-mode .pricing-card {
  background: var(--dark);
}

.pricing-card.popular {
  border: 2px solid var(--primary);
}

.popular-badge {
  background: var(--primary);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  display: inline-block;
  margin-bottom: 10px;
}

.price {
  font-size: 2rem;
  color: var(--primary);
  margin: 10px 0;
}

.features-list {
  list-style: none;
  margin: 20px 0;
}

.features-list li {
  margin-bottom: 10px;
}

/* ================= ADD-ONS ================= */
.add-ons {
  padding: 100px 0;
  background: rgba(108,99,255,0.04);
}

.add-ons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 30px;
}

.add-on-card {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

body.dark-mode .add-on-card {
  background: var(--dark);
}

.add-on-price {
  margin-top: 10px;
  font-weight: 600;
  color: var(--primary);
}

/* ================= CONTACT PAGE ================= */
.contact-hero {
  padding: 160px 0 80px; /* Top padding matches the main hero to clear header */
  text-align: center;
  background: linear-gradient(to bottom, rgba(108, 99, 255, 0.05), transparent);
}
.contact-hero h1 {
  margin-bottom: 15px;
  color: var(--dark);
}
body.dark-mode .contact-hero h1 {
  color: var(--light);
}
.contact-section {
  padding: 100px 0;
}

.contact-section .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
}

.contact-form,
.contact-info {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

body.dark-mode .contact-form,
body.dark-mode .contact-info {
  background: var(--dark);
}

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

label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--gray);
  font-family: inherit;
}

.info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.info-icon {
  font-size: 1.5rem;
}
/* Fix for Contact Section Layout on Mobile */
@media (max-width: 992px) {
  .contact-section .container {
    grid-template-columns: 1fr; /* Stack form and info on tablets/phones */
  }
  
  .contact-info {
    order: -1; /* Move contact info above form on mobile for easier access */
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Accessibility: Focus states */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Career Page Specifics */
.career-hero {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../assets/career-bg.jpg');
    background-size: cover;
    color: white;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.culture-item {
    padding: 30px;
    background: var(--card-bg); /* Use your existing variable */
    border-radius: 12px;
    text-align: center;
}

.job-list {
    max-width: 800px;
    margin: 40px auto;
}

.job-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: var(--card-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.job-card:hover {
    transform: translateX(10px);
}

.job-info h3 { margin-bottom: 5px; }
.job-info span { color: #888; font-size: 0.9rem; }

.no-positions {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    border: 2px dashed #444;
    border-radius: 12px;
}

/* ================= RESPONSIVE DESIGN ================= */

/* For Tablets (Screens smaller than 992px) */
@media (max-width: 992px) {
    .culture-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns instead of 3 */
    }
}

/* For Mobile Phones (Screens smaller than 768px) */
@media (max-width: 768px) {
    .career-hero h1 {
        font-size: 2rem; /* Shrink title so it doesn't wrap awkwardly */
    }

    .culture-grid {
        grid-template-columns: 1fr; /* Stack culture items in 1 column */
    }

    .job-card {
        flex-direction: column; /* Stack Job Info and Button vertically */
        text-align: center;
        gap: 20px;
    }

    .job-card .btn {
        width: 100%; /* Make button full width for easy tapping */
    }

    .job-info span {
        display: block;
        margin-top: 8px;
    }
}

/* Footer */
footer {
  background: var(--dark);
  color: #fff;
  padding: 100px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 40px;
}

.footer-about img {
  height: 45px;
  margin-bottom: 15px;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 120px 0 60px;
  }

  nav ul {
    gap: 16px;
  }

  .hero-image {
    margin-top: 40px;
  }
}

/* ================= ANIMATION STATES ================= */

/* Initial state for all cards */
.feature-box, 
.pricing-card, 
.add-on-card,
.contact-form,
.contact-info {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: transform, opacity;
}

/* The state triggered by your JavaScript */
.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Staggered Delay Logic */
/* This makes the 2nd card wait 0.2s and the 3rd wait 0.4s */
.pricing-grid .pricing-card:nth-child(2),
.features-grid .feature-box:nth-child(2),
.add-ons-grid .add-on-card:nth-child(2) {
  transition-delay: 0.2s;
}

.pricing-grid .pricing-card:nth-child(3),
.features-grid .feature-box:nth-child(3),
.add-ons-grid .add-on-card:nth-child(3) {
  transition-delay: 0.4s;
}

/* Hero Content Entrance (No scroll needed) */
.hero-text h1 {
  animation: fadeInUp 1s ease forwards;
}

.hero-text p {
  animation: fadeInUp 1s ease forwards 0.3s;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

