:root {
    --primary: #2c3e50;
    --secondary: #3b82f6;
    --accent: #64748b;
    --bgLight: #f8fafc;
    --bgDark: #1e293b;
    --white: #ffffff;
    --text: #1e293b;
    --border: #e2e8f0;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Poppins', 'Lato', Arial, sans-serif;
  background: var(--bgLight);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
  line-height: 1.6;
}

/* Container utility class */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Utility classes for responsive design */
.w-full {
  width: 100%;
}

.max-w-sm {
  max-width: 24rem;
}

.max-w-md {
  max-width: 28rem;
}

.h-auto {
  height: auto;
}

.object-cover {
  object-fit: cover;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Responsive utilities */
@media (min-width: 768px) {
  .md\:flex-nowrap {
    flex-wrap: nowrap;
  }
  
  .md\:w-1\/2 {
    width: 50%;
  }
  
  .md\:max-w-md {
    max-width: 28rem;
  }
}

.dark-mode {
  background-color: #121212;
  color: white;
}

.hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-in-out;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card img {
  transition: transform 0.3s ease-in-out;
}

.btn {
  transition: transform 0.2s ease-in-out;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Header */
/* Sticky Header */
.sticky-header {
  position: relative;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.1);
  padding: 1.5rem 0;
  transition: all 0.3s ease;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.nav-links {
  display: flex !important;
  gap: 2rem !important;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  text-transform: capitalize;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease-in-out;
  position: relative;
}

.nav-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Utility classes used in nav */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

/* ✅ Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(44, 62, 80, 0.1);
  color: var(--white);
  margin: 2rem 0;
}

.hero .left {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 250px;
}

.hero .left img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 50%;
  border: 5px solid var(--white);
  box-shadow: 0 4px 20px rgba(44, 62, 80, 0.15);
  transition: transform 0.3s ease;
}

.hero .left img:hover {
  transform: scale(1.05);
}

.hero .right {
  flex: 1;
  text-align: left;
  padding: 2rem 1rem;
  min-width: 250px;
}

.hero .right h6 {
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero .right h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero .right h1 span {
  color: var(--white);
}

.hero .right p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

/* ✅ Button */
.hero .right a.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 2rem;
  background-color: var(--secondary);
  color: var(--white);
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
  border: 2px solid transparent;
  cursor: pointer;
}

.hero .right a.btn:hover {
  background-color: transparent;
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

/* Mobile adjustments for nav bar */
@media screen and (max-width: 768px) {
  .nav-links {
    flex-direction: row; /* Keep horizontal */
    gap: 1rem; /* Tighter spacing */
    padding: 0 1rem; /* Prevent edge overlap */
  }
}

/* Utility classes */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}


/* About Section Styling */
section.about {
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.08);
    margin: 2rem 0;
}

/* Container Flexbox */
section.about .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

/* Image Section (Left) */
section.about .left {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 250px;
}

section.about .left img {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: cover;
    border-radius: 0.8rem;
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.1);
    transition: transform 0.3s ease;
}

section.about .left img:hover {
    transform: translateY(-5px);
}

/* Text Section (Right) */
section.about .right {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

/* Heading Styles */
section.about h1 {
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

section.about h1 span {
    color: var(--secondary);
}

section.about h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

section.about p {
    color: var(--accent);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Social Media Icons */
section.about .socials {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

section.about .socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--border);
    color: var(--primary);
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

section.about .socials a:hover {
    background: var(--secondary);
    color: var(--white);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    section.about .container {
        flex-direction: column;
        text-align: center;
    }

    section.about .right {
        text-align: center;
    }
}


/* Services Section Styling */
.services {
  padding: 4rem 2rem;
  background: var(--white);
  border-radius: 0;
  box-shadow: none;
  margin: 3rem 0;
}

.services-head {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.services p {
  text-align: center;
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 3rem;
}

/* Card Grid Layout */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Card Styling */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    box-shadow: 0 1px 3px rgba(44, 62, 80, 0.05);
    padding: 2.5rem 2rem;
    text-align: left;
    transition: all 0.3s ease;
}

.card img {
    display: none;
}

.card h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.3px;
}

.card ul {
    text-align: left;
    padding: 0;
    list-style: none;
    margin: 0;
}

.card ul li {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
    position: relative;
    padding-left: 1.25rem;
    line-height: 1.5;
}

.card ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-size: 1rem;
    font-weight: bold;
}

/* Card Hover Effects */
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.08);
    border-color: var(--secondary);
}

.flex {
    display: flex;
}

.items-centre {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.justify-right {
    justify-content: right;
}

.btn {
    padding: 0.6rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    outline: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--secondary);
    margin-top: -15rem;
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.flex-1 {
    flex: 1;
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--secondary);
}

/* General Projects Section Styling */
.projects {
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 0;
    box-shadow: none;
    margin: 3rem 0;
    color: var(--text);
}

.projects-head {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.projects p {
    text-align: center;
    font-size: 1.05rem;
    color: var(--accent);
    margin-bottom: 3rem;
}

/* Project Grid Layout */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Project Card Styling */
.project-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    box-shadow: 0 1px 3px rgba(44, 62, 80, 0.05);
    padding: 0;
    text-align: left;
    transition: all 0.3s ease;
    color: var(--text);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 0;
    border-radius: 0;
}

.project-card h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
    padding: 1.5rem 1.5rem 0;
    letter-spacing: -0.3px;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 1rem;
    line-height: 1.5;
    padding: 0 1.5rem;
}

.project-card a {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background-color: var(--secondary);
    color: var(--white);
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 1.5rem 1.5rem 1.5rem;
    font-size: 0.9rem;
}

.project-card a:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

/* Hover Effects for Project Cards */
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
    border-color: var(--secondary);
}

/* *************************************/
/* ************ CONTACT STYLES ******** */
/* ************************************ */

/* Contact Section */
#contact {
  background: linear-gradient(135deg, var(--bgLight) 0%, rgba(59, 130, 246, 0.05) 100%);
  padding: 3rem 2rem;
  border-radius: 1rem;
  margin: 2rem 0;
}

#contact h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 700;
}

#contact p {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1rem;
  color: var(--accent);
}

form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 0 auto;
  gap: 1.5rem;
}

form label {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: var(--text);
  font-weight: 500;
}

form input, form textarea {
  padding: 1rem;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  transition: all 0.3s ease;
}

form input:focus, form textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

form textarea {
  resize: vertical;
  height: 150px;
  min-height: 120px;
}

form button {
  background-color: var(--secondary);
  color: var(--white);
  padding: 1rem 2rem;
  font-size: 0.95rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

form button:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2);
}

/* Footer Section */
.footer {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 3rem 2rem;
  border-radius: 1rem 1rem 0 0;
  margin-top: 3rem;
  box-shadow: 0 -2px 12px rgba(44, 62, 80, 0.1);
}

.footer .footer-row {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-col .links {
  margin-top: 1rem;
}

.footer-col .links li {
  list-style: none;
  margin-bottom: 0.8rem;
}

.footer-col .links li a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.footer-col .links li a:hover {
  color: var(--white);
}

.footer-col p {
  margin: 1rem 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.footer-col .icons {
  display: flex;
  margin-top: 1.5rem;
  gap: 1rem;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}

.footer-col .icons a {
  color: var(--white);
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-col .icons a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-col .icons a:active {
  transform: translateY(-1px) scale(1.05);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .sticky-header {
    padding: 1rem 0;
  }

  .nav-links {
    gap: 1rem !important;
    font-size: 0.85rem;
  }

  .container {
    padding: 0 1rem;
  }

  section.about .container {
    flex-direction: column;
    text-align: center;
  }

  section.about .right {
    text-align: center;
  }

  section.about .left img {
    max-width: 280px;
  }

  .hero {
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 1.5rem;
  }

  .hero .left {
    min-width: auto;
  }

  .hero .left img {
    max-width: 220px;
  }

  .hero .right {
    text-align: center;
    min-width: auto;
    padding: 1rem 0;
  }

  .hero .right h1 {
    font-size: 1.8rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer .footer-row {
    gap: 2rem;
  }

  #about p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .services-head,
  .projects-head {
    font-size: 1.8rem;
  }

  .card-grid {
    gap: 1rem;
  }

  .services p,
  .projects p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .sticky-header {
    padding: 0.8rem 0;
  }

  .nav-links {
    gap: 0.5rem !important;
    font-size: 0.8rem;
  }

  .hero {
    padding: 1.5rem 1rem;
    gap: 1rem;
  }

  .hero .left img {
    max-width: 180px;
  }

  .hero .right h1 {
    font-size: 1.4rem;
  }

  .hero .right h6 {
    font-size: 0.8rem;
  }

  .services-head,
  .projects-head {
    font-size: 1.5rem;
  }

  section.about {
    padding: 1.5rem 1rem;
  }

  section.about .left img {
    max-width: 200px;
  }

  section.about h1 {
    font-size: 1.5rem;
  }

  section.about h3 {
    font-size: 1rem;
  }

  .card-grid {
    flex-direction: column;
  }

  .card {
    min-width: 100%;
  }

  .card h2 {
    font-size: 1.1rem;
  }

  .footer .footer-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-col .icons {
    justify-content: center;
  }

  form {
    max-width: 100%;
  }

  form input, form textarea {
    font-size: 0.9rem;
  }
}
