/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", Arial, sans-serif;
}

body {
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Color Variables */
:root {
  --primary-green: #8cc63f;
  --secondary-green: #6ea32d;
  --accent-purple: #5d4e9b;
  --light-purple: #e9e6f3;
  --dark-navy: #1a2a3a;
  --light-gray: #f9f9f9;
  --medium-gray: #eaeaea;
}

/* Header */
header {
  padding: 15px 0;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.logo {
  height: 70px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  position: relative;
}

.nav-links {
  display: flex;
  gap: 60px;
  margin-left: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-navy);
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  transition: color 0.3s;
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(90deg, var(--primary-green), var(--accent-purple));
  transition: width 0.3s ease;
}

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

/* Mobile Navigation */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 200;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--dark-navy);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  background-image: linear-gradient(120deg, rgba(26, 42, 58, 0.8), rgba(26, 42, 58, 0.6)), url("img/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 80vh;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 50%;
  position: relative;
  z-index: 2;
  padding-left: 20px;
  animation: fadeInUp 1s ease-out;
}

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

.hero h1 {
  background: linear-gradient(90deg, var(--primary-green), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: white;
}

.btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--primary-green), var(--accent-purple));
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(140, 198, 63, 0.3);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  box-shadow: 0 6px 20px rgba(93, 78, 155, 0.4);
  transform: translateY(-2px);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s;
}

.btn:hover::before {
  left: 100%;
}

/* About Section */
.about,
.why-us,
.services,
.insights,
.data-protection,
.contact {
  padding: 70px 0;
  text-align: center;
  position: relative;
  width: 100%;
}

.about, .services, .data-protection {
  background-color: var(--light-gray);
}

.why-us, .insights {
  background-color: white;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: var(--dark-navy);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-green), var(--accent-purple));
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.about p,
.why-us p,
.data-protection p {
  max-width: 800px;
  margin: 0 auto 20px;
  text-align: center;
  font-size: 1.1rem;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 50px;
}

.service-card {
  background-color: white;
  padding: 35px 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, var(--primary-green), var(--accent-purple));
  transition: height 0.3s ease;
  z-index: -1;
}

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

.service-card:hover::before {
  height: 100%;
  opacity: 0.05;
}

.service-icon {
  font-size: 50px;
  color: #8cc63f;
  margin-bottom: 20px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  color: var(--primary-green);
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--dark-navy);
  font-weight: 600;
}

.service-card p {
  color: #666;
  line-height: 1.6;
}

/* Insights Section */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.insight-card {
  border: none;
  padding: 25px;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  background-color: white;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.insight-icon {
  width: 70px;
  height: 70px;
  display: block;
  margin: 0 auto 20px;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.1));
}

.insight-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--dark-navy);
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

.insight-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-green), var(--accent-purple));
}

.insight-card p {
  color: #666;
  line-height: 1.6;
  font-style: normal;
}

.more-content {
  display: none;
  margin-top: 15px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.insight-card.expanded .more-content {
  display: block;
  opacity: 1;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.insight-card.expanded {
  transition: all 0.3s ease-in-out;
}

.read-more-btn {
  background-color: transparent;
  border: none;
  color: var(--accent-purple);
  font-weight: bold;
  cursor: pointer;
  margin-top: 15px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  padding-right: 25px;
  margin-top: auto;
}

.read-more-btn::after {
  content: "→";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.read-more-btn:hover {
  color: var(--primary-green);
}

.read-more-btn:hover::after {
  transform: translate(5px, -50%);
}

/* Contact Section */
.contact {
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--light-purple) 100%);
  padding: 70px 0;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.contact-info {
  width: 100%;
  padding: 15px;
  height: 60px;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  background: white;
  font-size: 16px;
  font-weight: 500;
  color: var(--dark-navy);
  text-align: left;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.contact-info:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.contact-icon {
  background: linear-gradient(135deg, var(--primary-green), var(--accent-purple));
  padding: 12px;
  border-radius: 50%;
  margin-right: 15px;
  font-size: 20px;
  color: white;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.contact-text {
  flex: 1;
  padding-left: 10px;
  word-break: break-word;
}

.contact-form .btn {
  margin-top: 10px;
  width: 100%;
  max-width: 200px;
}

/* Footer Styling */
footer {
  background-color: var(--dark-navy);
  padding: 30px 0;
  color: white;
  width: 100%;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.social-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.social-icon {
  font-size: 22px;
  color: white;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
  background-color: var(--primary-green);
  transform: translateY(-3px);
}

.copyright {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

/* Enhanced Responsive Design */
/* Large Tablets & Small Desktops */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .insights-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

/* Tablets */
@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }
  
  .hero-content {
    max-width: 70%;
  }

  .services-grid,
  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .nav-links {
    gap: 30px;
  }
  
  .about p,
  .why-us p,
  .data-protection p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .service-card,
  .insight-card {
    padding: 25px 20px;
  }
}

/* Large Phones & Small Tablets */
@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    max-width: 300px;
    background-color: white;
    flex-direction: column;
    gap: 0;
    justify-content: flex-start;
    padding-top: 70px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 150;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    display: block;
    padding: 15px 30px;
    border-bottom: 1px solid var(--light-gray);
    width: 100%;
  }
  
  .nav-links a::after {
    display: none;
  }
  
  .hero-content {
    max-width: 100%;
    padding: 0 15px;
  }

  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .services-grid,
  .insights-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .about,
  .why-us,
  .services,
  .insights,
  .data-protection,
  .contact {
    padding: 50px 0;
  }
  
  .contact-form {
    padding: 0 15px;
  }
  
  .contact-info {
    height: auto;
    min-height: 60px;
    padding: 10px 15px;
  }
  
  .contact-text {
    font-size: 14px;
  }
}

/* Mobile Phones */
@media (max-width: 576px) {
  .logo {
    height: 50px;
  }
  
  .hero {
    height: auto;
    min-height: 80vh;
    padding: 80px 0 50px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .service-card,
  .insight-card {
    padding: 20px 15px;
  }
  
  .service-icon {
    font-size: 40px;
  }
  
  .insight-icon {
    width: 60px;
    height: 60px;
  }
  
  .social-links {
    gap: 15px;
  }
  
  .social-icon {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  
  .about p,
  .why-us p,
  .data-protection p {
    font-size: 0.95rem;
  }
}

/* Very Small Phones */
@media (max-width: 375px) {
  .hero h1 {
    font-size: 1.6rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .service-title {
    font-size: 1.1rem;
  }
  
  .insight-title {
    font-size: 1.1rem;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* Add mobile menu overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 140;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* For devices that support hover */
@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px);
  }
  
  .social-icon:hover {
    transform: translateY(-3px);
  }
}

/* For devices with no hover support */
@media (hover: none) {
  .btn:active {
    background: var(--secondary-green);
  }
  
  .social-icon:active {
    background-color: var(--primary-green);
  }
}