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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #333;
  background: var(--light-color);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Variables */
:root {
  --primary-color: #7752fe;       /* vibrant purple */
  --secondary-color: #00b4d8;     /* bright cyan */
  --accent-color: #ff6c8a;        /* pink accent */
  --dark-color: #0c1030;          /* deep navy for nav */
  --light-color: #f5f7fa;         /* soft light background */
  --max-width: 1140px;
  --border-radius: 12px;
  --transition: 0.3s ease;
}

/* Navbar */
header {
  width: 100%;
  background: var(--dark-color);
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Style the logo container. Use flex to align the image and brand name side by side */
.navbar .logo {
  display: flex;
  align-items: center;
  color: #fff;
}

/* Increase the logo image size for better visibility */
.navbar .logo img {
  height: 60px;
  width: auto;
  margin-right: 0.5rem;
}

/* Style the brand name next to the logo. Make it bold and larger for emphasis */
.navbar .logo .brand-name {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  color: #fff;
  font-weight: 500;
  transition: color var(--transition);
}

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

.cta-button {
  padding: 0.5rem 1rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: background var(--transition);
}

.cta-button:hover {
  background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
  color: #fff;
  padding-top: 7rem; /* account for fixed header */
  overflow: hidden;
}

/* Layout for the hero content */
.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(100vh - 7rem);
  gap: 2rem;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #e8eaf6;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
}

/* Primary button reused in hero and contact */
.primary-button {
  display: inline-block;
  background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}

.primary-button:hover {
  background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
  transform: translateY(-3px);
}

/* Section common styles */
section {
  padding: 5rem 1rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--dark-color);
}

/* Features Section */
.features-section {
  background: var(--light-color);
}

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

.feature-card {
  background: #fff;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.feature-card .icon {
  /* Create a colorful circle behind icons */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.6rem;
}

/* Adjust image icons inside feature circles */
.feature-card .icon img {
  width: 36px;
  height: 36px;
}

/* Ensure Font Awesome icons display properly inside feature circles */
.feature-card .icon i {
  font-size: 1.6rem;
  color: #fff;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--dark-color);
}

.feature-card p {
  font-size: 0.95rem;
  color: #555;
}

/* About Section */
.about-section {
  background: #fff;
}

.about-section p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #555;
}

/* Contact Section */
.contact-section {
  background: var(--light-color);
}

.contact-section form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  background: #fff;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.contact-section .form-group {
  display: flex;
  flex-direction: column;
}

.contact-section label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark-color);
}

.contact-section input,
.contact-section textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.contact-section textarea {
  resize: vertical;
}

.contact-section button {
  cursor: pointer;
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}

.contact-section button:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

.contact-info {
  text-align: center;
  color: #555;
}

.contact-info p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.contact-info i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

/* Footer */
footer {
  background: var(--dark-color);
  color: #fff;
  padding: 2rem 1rem;
}

footer p {
  text-align: center;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-links a {
  color: #fff;
  font-size: 1.25rem;
  transition: color var(--transition);
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .navbar {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    background: var(--dark-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    position: absolute;
    top: 70px;
    right: 1rem;
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .cta-button {
    margin-left: auto;
  }
}