* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-purple: #6B46C1;
  --secondary-purple: #8B5CF6;
  --light-purple: rgba(139, 92, 246, 0.1);
  --primary-gold: #F59E0B;
  --secondary-gold: #FBBF24;
  --light-gold: rgba(245, 158, 11, 0.1);
  --white: #FFFFFF;
  --black: #000000;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-600: #4B5563;
  --gray-800: #1F2937;
  --royal-blue: rgba(65, 105, 225, 0.1); 
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  overflow-x: hidden;
  background-color: var(--white) !important;
}

.container {
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  background-color: var(--gray-100) !important; /* Corrected: changed --grey to --gray-100 */
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Updated logo styling */
.logo {
  display: flex;
  align-items: center;
  gap: 10px; /* Space between the icon and the text container */
}

.logo-icon {
    height: 60px; /* Adjust size of the icon */
    width: auto;
    /* No alt text as requested. */
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    line-height: 1.1; /* Tightly packed lines */
}

.dannex-consultancy-text {
    font-size: 1.25rem; /* Adjust font size as needed */
    font-weight: 700; /* Bold for main name */
    color: var(--primary-purple); /* Royal purple */
    white-space: nowrap; /* Keep on one line */
}

.logo-tagline-gold {
    font-size: 0.85rem; /* Adjust font size as needed */
    color: var(--primary-gold); /* Gold color */
    white-space: nowrap; /* Keep on one line */
}

/* Hide previous text-based logo elements if they exist */
.logo h1, .logo-tagline {
  display: none;
}


.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--primary-gold);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--secondary-gold);
  transform: translateY(-2px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-gold);
  margin: 3px 0;
  transition: 0.3s;
}

/* Diagonal Shape */
.diagonal-shape {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100vh;
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-gold) 100%);
  clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: -1;
  opacity: 0.1;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(107, 70, 193, 0.7), rgba(107, 70, 193, 0.7)), 
              url('https://th.bing.com/th/id/OIP.GJowdNmXuoO_Ojka0sSlUQAAAA?rs=1&pid=ImgDetMain') center/cover;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.hero-text {
  max-width: 600px;
  color: var(--white);
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: var(--primary-gold);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--secondary-gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--primary-gold);
  border-color: var(--primary-gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

/* Why Choose Us Section */
.why-choose {
  padding: 0;
  background: var(--white) !important;
  position: relative;
  margin-top: -1px;
}

.why-choose-header {
  text-align: center;
  padding: 4rem 0 2rem;
}

.why-choose-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--black);
}

.why-choose-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0 4rem;
  position: relative;
  z-index: 2;
}

.card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  position: relative;
  top: 50px;
}

.card:hover {
  transform: translateY(-10px);
}

.card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.card-icon i {
  font-size: 2rem;
  color: var(--white);
}

.card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-purple);
}

.card p {
  color: var(--gray-600);
  line-height: 1.6;
}

/* Our Expertise Section */
.expertise {
  padding: 6rem 0;
  background: var(--white) !important;
}

.expertise h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--primary-purple);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.expertise-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.expertise-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.expertise-item i {
  font-size: 3rem;
  color: var(--primary-gold);
  margin-bottom: 1rem;
}

.expertise-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-purple);
}

.expertise-item p {
  color: var(--gray-600);
}

/* Who We Are Section */
.who-we-are {
  padding: 6rem 0;
  background: var(--white) !important;
}

.who-we-are-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.slideshow-container {
  position: relative;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.who-we-are-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  font-style: italic;
  color: var(--primary-gold);
  margin-bottom: 2rem;
}

.who-we-are-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--gray-600);
}

/* Services Section (general, for index.html) */
.services {
  padding: 6rem 0;
  background: var(--gray-100) !important; /* Corrected: changed --grey to --gray-100 */
}

.services h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--primary-purple);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-item i {
  font-size: 3rem;
  color: var(--primary-gold);
  margin-bottom: 1rem;
}

.service-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-purple);
}

.service-item p {
  color: var(--gray-600);
  line-height: 1.6;
}

/* Our Goals Section */
.our-goals {
  padding: 6rem 0;
  background: var(--white) !important;
}

.goals-container {
  background: var(--royal-blue);
  padding: 4rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  transform: translateY(-20px);
}

.goals-container h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--primary-purple);
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.goal-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.goal-item:hover {
  transform: translateY(-5px);
}

.goal-number {
  position: absolute;
  top: -15px;
  left: 2rem;
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-gold));
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.goal-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 1rem 0;
  color: var(--primary-purple);
}

.goal-item p {
  color: var(--gray-600);
  line-height: 1.6;
}

/* Industry Focus Section */
.industry-focus {
  padding: 6rem 0;
  background: var(--white) !important;
}

.industry-focus h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-purple);
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--gray-600);
  margin-bottom: 3rem;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.industry-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.industry-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.industry-item i {
  font-size: 3rem;
  color: var(--primary-gold);
  margin-bottom: 1rem;
}

.industry-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-purple);
}

.industry-item p {
  color: var(--gray-600);
}

/* FAQ Section */
.faq {
  padding: 6rem 0;
  background: var(--white) !important;
}

.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-purple);
}

.faq-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.highlight {
  color: var(--primary-gold);
  font-weight: 700;
}

.faq-description {
  color: var(--gray-600);
  font-size: 1.1rem;
}

.faq-content {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: var(--white);
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-purple);
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: var(--light-purple);
}

.faq-question i {
  transition: transform 0.3s ease;
  color: var(--primary-gold);
}

.faq-question.active i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--gray-100);
}

.faq-answer.active {
  max-height: 200px;
}

.faq-answer p {
  padding: 1.5rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background: var(--white) !important;
}

.contact h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--primary-purple);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-image-section {
  position: relative;
}

.contact-image {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 400px;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.contact-item i {
  color: var(--primary-gold);
  width: 20px;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--primary-purple);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-purple);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* CTA Section */
.cta {
  padding: 6rem 0;
  background: var(--white); /* This should now contrast with the text */
  color: var(--primary-purple); /* Changed text color to loyal purple */
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-purple); /* Ensure heading is purple */
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  color: var(--primary-purple); /* Ensure paragraph is purple */
}

.cta .btn-primary {
  background: var(--primary-gold); 
  color: var(--white);
}

.cta .btn-primary:hover {
  background: var(--secondary-gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

/* Footer */
.footer {
  background: var(--gray-800);
  color: var(--black);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-gold);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.footer-section p {
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.footer-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-gold);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--black);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
  opacity: 1;
  color: var(--primary-gold);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--primary-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary-gold);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-600);
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .why-choose-cards {
    grid-template-columns: 1fr;
  }

  .who-we-are-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .goals-container {
    padding: 2rem;
  }

  .goals-grid {
    grid-template-columns: 1fr;
  }

  .diagonal-shape {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .card {
    top: 20px;
  }

  .goals-container {
    padding: 1.5rem;
  }
}

/* Services Page Specific Styles */
.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-gold));
    color: var(--black);
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.services-detail {
    padding: 6rem 0;
}

.service-detail-item {
    margin-bottom: 6rem;
}

.service-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-detail-item.reverse .service-detail-content {
    direction: rtl;
}

.service-detail-item.reverse .service-detail-text {
    direction: ltr;
}

.service-detail-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 1.5rem;
}

.service-detail-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.service-detail-text ul {
    list-style: none;
    margin-bottom: 2rem;
}

.service-detail-text ul li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
    color: var(--gray-600);
}

.service-detail-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-weight: bold;
}

.service-detail-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-detail-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.nav-link.active {
    color: var(--secondary-gold);
}
/* Responsive design for logo and text */
@media (max-width: 768px) {
    .service-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-detail-item.reverse .service-detail-content {
        direction: ltr;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .logo-text {
        align-items: center; /* Center align text for smaller screens if needed */
    }

    .dannex-consultancy-text {
        font-size: 1.3rem; /* Adjust font size for smaller screens */
    }

    .logo-tagline-gold {
        font-size: 0.8rem; /* Adjust font size for smaller screens */
    }
}
@media (max-width: 480px) {
    .logo-img {
        height: 50px; /* Smaller logo on very small screens */
    }
    .dannex-consultancy-text {
        font-size: 1.1rem;
    }
    .logo-tagline-gold {
        font-size: 0.7rem;
    }
}