/* === Global Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top left, rgba(0, 212, 255, 0.12), transparent 24%),
              radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.06), transparent 18%),
              #0a0a23; /* Deep navy gradient base */
  color: #f8f9fa; /* Light text */
  line-height: 1.8;
  transition: all 0.3s ease-in-out;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* === Modernized Navigation Bar === */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(10, 10, 35, 0.92); /* Semi-transparent background */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  z-index: 1000;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px); /* Blur effect for modern look */
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: auto;
  padding: 15px 20px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #00d4ff; /* Electric blue logo */
  text-transform: uppercase;
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  gap: 20px;
}

nav ul li {
  position: relative;
}

nav a {
  color: #f8f9fa;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease-in-out;
}

nav a:hover,
nav a.active {
  background-color: #00d4ff; /* Highlight background */
  color: #0a0a23; /* Dark text on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

/* === Responsive Navigation Bar === */
.nav-toggle {
  display: none;
  font-size: 2rem;
  color: #f8f9fa;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  transition: color 0.3s ease-in-out;
}

.nav-toggle:hover {
  color: #00d4ff; /* Highlight toggle on hover */
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    cursor: pointer; /* Ensure the toggle is clickable */
    font-size: 2rem;
    color: #f8f9fa;
  }

  nav ul {
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background-color: rgba(10, 10, 35, 0.95); /* Semi-transparent background */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    display: none; /* Hidden by default */
    z-index: 1000; /* Ensure it appears above other content */
  }

  nav ul.active {
    display: flex; /* Display when active */
  }

  nav ul li {
    margin-bottom: 10px;
  }

  nav ul a {
    padding: 10px 15px;
    text-align: center;
    display: block; /* Ensure links are clickable */
    color: #f8f9fa;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
  }

  nav ul a:hover {
    color: #00d4ff; /* Highlight links on hover */
  }
}

/* === Hero Section === */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 90px);
  padding: 120px 20px 80px;
  max-width: 1100px;
  margin: auto;
  color: #ffffff;
  overflow: hidden;
  background: radial-gradient(circle at top right, rgba(0, 212, 255, 0.14), transparent 28%),
              radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.06), transparent 25%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 35, 0.92), rgba(10, 10, 35, 0.75));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  width: 100%;
}

.hero-text {
  max-width: 560px;
}

.eyebrow {
  color: #7be7ff;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-text h1 {
  font-size: 3.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.05;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #d3d9f4;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-text .highlight {
  color: #72e2ff; /* Electric blue highlight */
}

.hero-image {
  position: relative;
  max-width: 560px;
  width: 100%;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(0, 0, 0, 0));
  filter: blur(18px);
  opacity: 0.8;
  pointer-events: none;
}

.hero-image img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 32px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
  display: block;
  object-fit: cover;
}

.hero-image img:hover {
  transform: translateY(-6px) scale(1.02);
  filter: saturate(1.05);
}

.projects-hero {
  padding-top: 120px;
}

.section-intro {
  max-width: 780px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-intro h2 {
  font-size: 2.8rem;
  margin: 18px auto 16px;
  line-height: 1.05;
}

.section-intro p {
  font-size: 1.05rem;
  color: #d3d9f4;
  max-width: 820px;
  margin: 0 auto;
}

.project-highlight {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 60px;
}

.project-highlight-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-highlight-copy h3 {
  font-size: 2rem;
  margin: 0;
}

.project-highlight-copy p {
  color: #d3d9f4;
  line-height: 1.75;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #00d4ff;
  font-weight: 600;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 212, 255, 0.35);
}

.project-media img {
  width: 100%;
  display: block;
  height: 220px;
  object-fit: cover;
}

.project-info {
  padding: 24px;
}

.project-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.12);
  color: #00d4ff;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.project-card h3 {
  font-size: 1.45rem;
  margin: 0 0 16px;
}

.project-info p {
  color: #d3d9f4;
  line-height: 1.75;
  margin-bottom: 18px;
}

.project-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
}

.project-features li {
  color: #cbd6ee;
  padding-left: 22px;
  position: relative;
}

.project-features li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #00d4ff;
}

.project-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.project-actions .btn {
  padding: 12px 18px;
}

@media (max-width: 980px) {
  .project-highlight {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .section-intro h2 {
    font-size: 2.3rem;
  }

  .project-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 580px) {
  .section-intro h2 {
    font-size: 2rem;
  }

  .project-media img {
    height: 180px;
  }
}

.preview-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.preview-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.preview-card h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: #f4fbff;
}

.preview-card p {
  font-size: 1rem;
  color: #d7dbe8;
  margin-bottom: 22px;
  line-height: 1.7;
}

.contact-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(10, 10, 35, 0.92));
  border: 1px solid rgba(0, 212, 255, 0.18);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  padding: 32px 40px;
  border-radius: 22px;
  margin: 50px auto 80px;
  max-width: 1100px;
  color: #ffffff;
}

.contact-cta h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact-cta p {
  color: #d7dbe8;
  font-size: 1rem;
  line-height: 1.75;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.06);
  color: #f8f9fa;
  border: 1px solid rgba(0, 212, 255, 0.22);
}

.btn-secondary:hover {
  background-color: rgba(0, 212, 255, 0.18);
  color: #ffffff;
}

/* === Sections === */
section {
  padding: 80px 20px;
  max-width: 1100px;
  margin: auto;
}

h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #00d4ff; /* Section heading color */
}

/* === Card Layouts === */
.services-container,
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service,
.project {
  background: #142850; /* Deep blue cards */
  color: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
}

.service:hover,
.project:hover {
  transform: translateY(-10px);
  background: #00d4ff; /* Electric blue on hover */
  color: #142850; /* Dark text on hover */
}

/* === Services Section Background === */
#services {
  position: relative;
  background: url('images/services-image.jpg') no-repeat center center/cover; /* Use the image as background */
  color: #f8f9fa; /* Light text for contrast */
  padding: 80px 20px;
  max-width: 1100px;
  margin: auto;
  z-index: 1;
}

#services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 35, 0.8); /* Dark navy overlay */
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px); /* Blur effect */
  z-index: -1; /* Place behind the content */
}

.services-container {
  position: relative;
  z-index: 2; /* Ensure content is above the overlay */
}

/* === About Page Background === */
#about {
  position: relative;
  background: url('images/about-image.jpg') no-repeat center center/cover; /* Use the image as background */
  color: #f8f9fa; /* Light text for contrast */
  padding: 80px 20px;
  z-index: 1;
}

#about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 35, 0.8); /* Dark navy overlay */
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px); /* Blur effect */
  z-index: -1; /* Place behind the content */
}

.about-container {
  position: relative;
  z-index: 2; /* Ensure content is above the overlay */
}

#about .about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
}

.about-actions {
  margin-top: 24px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
}

.about-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.about-card h3 {
  color: #00d4ff;
  margin-bottom: 18px;
}

.about-card h4 {
  margin: 22px 0 10px;
  color: #72e2ff;
  font-size: 1rem;
}

.about-card p,
.about-card ul {
  color: #d7d9f8;
  line-height: 1.75;
}

.about-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.about-card li {
  position: relative;
  padding-left: 18px;
}

.about-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #00d4ff;
}

#about .about-text p {
  font-size: 1.1rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  #about .about-text p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  #about .about-text p {
    font-size: 0.9rem;
  }
}

/* === Contact Form === */
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

input,
textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #1a1a3d; /* Dark input background */
  color: #f8f9fa;
}

form input,
form textarea {
  background-color: #1a1a3d;
  border: 1px solid #00d4ff;
}

textarea {
  resize: vertical;
  height: 150px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #00d4ff; /* Electric blue focus */
}

form button.btn:hover {
  background-color: #00a3cc;
  transform: scale(1.05);
}

/* === Buttons === */
.btn {
  background-color: #00d4ff; /* Electric blue button */
  color: #142850; /* Dark text for contrast */
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.btn:hover {
  background-color: #00a3cc; /* Darker blue on hover */
  transform: translateY(5px); /* Drop-down effect */
}

/* === Footer === */
footer {
  background-color: #142850; /* Deep blue footer */
  color: #f8f9fa;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  word-wrap: break-word; /* Ensure long text breaks into multiple lines */
}

@media (max-width: 480px) {
  footer {
    font-size: 0.8rem; /* Reduce font size for smaller screens */
    padding: 15px; /* Adjust padding */
  }

  #social-media {
    flex-wrap: wrap; /* Allow social media links to wrap */
    gap: 10px; /* Reduce gap between icons */
  }

  #social-media a {
    font-size: 1rem; /* Adjust icon size */
  }
}

#social-media {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 10px 0;
}

#social-media a {
  color: #ffffff;
  font-size: 1.2rem;
  text-decoration: none;
  transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#social-media a:hover {
  color: #00d4ff; /* Electric blue hover */
  transform: scale(1.1);
}

/* === Responsive Design === */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-image {
    margin-top: 20px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 10px 16px;
  }
}

/* Styles for images with the class .framed-img */
.framed-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto; /* Center alignment */
  border-radius: 12px; /* Smooth border-radius */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Subtle box-shadow */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Smooth transitions */
}

.framed-img:hover {
  transform: scale(1.05); /* Slight scale on hover */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); /* Enhanced shadow glow on hover */
}

.framed-img.circular {
  border-radius: 50%; /* Circular style for profile photos */
}

.contact-container img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
