:root {
  --primary: #e74c3c;
  --light: #f7f7f7;
  --dark: #333;
  --card-bg: #ff4f4f;
  --text-light: #fff;
}

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

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

/* Header */
header {
  background: var(--light);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .profile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

header .profile img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.profile-info h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.profile-info p {
  font-size: 0.9rem;
  color: #666;
}

.logo-socials {
  margin-top: 0.5rem;
  display: flex;
  justify-content: left;
  gap: 1rem;
}

.logo-socials a img {
  width: 24px;
  height: 24px;
  transition: filter 0.3s ease;
  filter: invert(15%);
}

.logo-socials a:hover img {
  filter: invert(40%) sepia(100%) saturate(800%) hue-rotate(-10deg);
}

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

nav ul li {
  position: relative;
}

nav ul li a {
  text-decoration: none;
  padding: 0.5em 1em;
  display: block;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s;
}

html {
  scroll-behavior: smooth;
}


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

/* Dropdown Menu */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 140px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  top: 100%;
  left: 0;
  border: 1px solid #ddd;
}

.dropdown-content li a {
  padding: 0.5em 1em;
  color: black;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content li a:hover {
  background-color: #f0f0f0;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
}

.hero h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.hero p {
  color: #555;
  margin-bottom: 1.5rem;
}

.hero .cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--text-light);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
}

.features-section {
  padding: 3rem 2rem;
  background-color: #fff;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-family: 'Quicksand', sans-serif;
  margin-bottom: 2rem;
  color: var(--dark);
}

.hero.with-bg {
  background: linear-gradient(
      rgba(0, 0, 0, 0.45),
      rgba(0, 0, 0, 0.45)
    ),
    url('../images/ModernSMTP\ -\ Cover.png') no-repeat center center/cover;
  color: var(--text-light);
  background-attachment: fixed;
}

.cta.blue {
  background-color: #007bff; /* Blue */
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cta.blue:hover {
  background-color: #0056b3;
  color: #fff;
}

.carousel-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.carousel-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-images {
  width: 100%;
  display: flex;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}


.carousel-img {
  min-width: 100%;
  max-height: 450px;
  object-fit: contain; /* or cover if preferred */
  display: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.carousel-img.active {
  display: block;
  width: 100%;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 12px;
  cursor: pointer;
  font-size: 24px;
  z-index: 2;
  border-radius: 50%;
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}



.documentation {
  background: #f0f8ff; /* a subtle light blue background */
  padding: 3rem 2rem;
  text-align: center;
  max-width: 900px;
  margin: 3rem auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.05);
}

.features-grid {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.feature-card {
  background: var(--card-bg);
  color: var(--text-light);
  border-radius: 10px;
  padding: 1.5rem 1rem;
  width: 260px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1.5px solid black;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.feature-icon {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.feature-icon i {
  display: inline-block;
}

.feature-icon img {
  display: inline-block;
  vertical-align: middle;
}


.documentation h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 1rem;
}

.documentation p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}


.hero.with-bg h2,
.hero.with-bg p {
  color: var(--text-light);
}


.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--card-bg);
  color: var(--text-light);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  border: 2px solid black;
}

.feature-card:hover {
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-family: 'Montserrat', sans-serif;
}

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


.hero .cta:hover {
  background: #c0392b;
}

.hero .socials {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.hero .socials a img {
  width: 24px;
  height: 24px;
  filter: invert(15%);
  transition: filter 0.3s ease;
}

.hero .socials a:hover img {
  filter: invert(50%) sepia(100%) saturate(800%) hue-rotate(-10deg);
}

/* Projects Section */
.projects {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  border: 2px solid black;
  padding: 1em;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: scale(1.05);
  z-index: 10;
}

.project-info {
  padding: 1rem;
  color: var(--text-light);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-info h3 {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.project-info p,
.project-info ul {
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--text-light);
}

.project-info ul {
  list-style-type: disc;
  padding-left: 1.25rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: #fff;
  color: #666;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 2rem;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  ul {
    columns: 1 !important;
  }
}
