/* CSS Variables for Theming */
:root {
  --bg-color: #ffffff;
  --text-color: #333333;
  --primary-color: #0072ff;
  --secondary-color: #00c6ff;
  --nav-bg: #0e1d34;
  --footer-bg: #0e1d34;
  --card-bg: #ffffff;
  --input-bg: #ffffff;
}

body.dark-mode {
  --bg-color: #1c1c1e;
  --text-color: #f1f1f1;
  --nav-bg: #2b2b2e;
  --footer-bg: #2b2b2e;
  --card-bg: #2a2a2d;
  --input-bg: #2f2f33;
}

/* Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.mail {
  text-decoration: none !important;
  color: rgb(206, 134, 1);
  font-weight: bold;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header & Navbar */
header {
  background: var(--nav-bg);
  color: #fff;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
/* 
.nav-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
} */
.nav-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.logo-and-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

nav ul {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  list-style: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

#nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

#nav-links li {
  display: block;
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #fff;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
}

/* nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
} */

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover {
  color: var(--secondary-color);
}

/* Toggle Switch */
.toggle-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #fff;
  margin-top: 10px;
}


.toggle-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #fff;
  margin-left: auto;
}



.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--secondary-color);
}

input:checked + .slider:before {
  transform: translateX(18px);
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn {
  background: #fff;
  color: var(--primary-color);
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background: #f0f0f0;
}

/* Section Layouts */
.section {
  padding: 80px 0;
}

.section.light {
  background: #f4f4f4;
}

body.dark-mode .section.light {
  background: #242426;
}

/* Cards Layout */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  flex: 1 1 250px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}


/* About Section */
#about h3 {
  margin-top: 30px;
  font-size: 1.3rem;
}

#about ul {
  margin-top: 15px;
  padding-left: 20px;
  list-style-type: disc;
}

#about li {
  margin-bottom: 10px;
}

/* Contact Form */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

input, textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  background: var(--input-bg);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
}

input::placeholder,
textarea::placeholder {
  color: #999;
}

button {
  background: var(--primary-color);
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #005dc1;
}

/* Footer */
footer {
  background: var(--footer-bg);
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

/* About Section Cards */
.about-cards .card ul {
  margin-top: 10px;
  padding-left: 20px;
  list-style-type: disc;
}

.about-cards .card li {
  margin-bottom: 8px;
}

/* Contact Grid Styling */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
  align-items: flex-start;
}

.contact-grid form {
  flex: 1;
  min-width: 280px;
}

.contact-details {
  flex: 1;
  min-width: 260px;
  text-align: left;
}

.contact-details h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.contact-details p {
  margin-bottom: 8px;
}

.socials {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.socials li {
  margin-bottom: 5px;
}

.socials a {
  text-decoration: none;
  color: var(--text-color);
}

.socials a:hover {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column;
  }
}
@media (min-width: 769px) {
  .contact-details {
    text-align: right;
  }
}

/* Logo styling */

.logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: bold;
  gap: 8px;
  color: #fff;
}

.logo-icon {
  width: 28px;
  height: 28px;
}


/* Responsive Nav */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    padding-left: 0;
  }

  .toggle-switch {
    align-self: flex-end;
  }
}