/* ==========================
   VARIABLES
========================== */
:root {
    --primary-color: #001f3f; /* Dark navy */
    --secondary-color: #007BFF; /* Blue */
    --highlight-color: #00AEEF; /* Electric Blue */

    --light-gray: #f9f9f9;
    --dark-gray: #333;
    --text-color: #555;
    --off-white: #FAFAFA;

    --font-family: 'Roboto', sans-serif;
    --font-size-base: 16px;
    --font-size-large: 36px;
    --font-size-medium: 24px;
    --font-size-small: 14px;

    --section-padding: 40px 20px; /* Default section padding */
    --container-max-width: 1200px;
}

/* section {
    padding: var(--section-padding);
    margin: 0 auto;
    max-width: var(--container-max-width);
} */

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

section h2 {
    font-size: 2rem; /* Larger section titles */
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}


/* ==========================
   RESET AND GLOBAL
========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--light-gray);
    margin: 0;
    padding: 0;
}

/* a {
    text-decoration: none;
    color: var(--secondary-color);
}

a:hover {
    color: var(--highlight-color);
    text-decoration: underline;
} */

/* ==========================
   HEADER
========================== */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--light-gray);
    position: sticky; /* Sticky header that stays visible */
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 50px; /* Adjust for consistent logo size */
    width: auto;
}

.site-nav {
    display: flex;
    gap: 1.5rem; /* Spacing between navigation items */
}

.site-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav li {
    margin: 0.5rem 0; /* Add spacing between each menu item */
}

.site-nav li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    display: block;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 5px;
}

.site-nav li a:hover {
    color: var(--highlight-color); /* Dark text on hover */
    background-color: var(--light-gray); /* Light background on hover */
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--highlight-color);
    border-radius: 2px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* ==========================
   HERO SECTION
========================== */
.hero {
    position: relative;
    color: #fff;
    text-align: center;
    padding: 4rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 70vh; /* Ensure the hero section fills 90% of the viewport height */
    overflow: hidden; /* Prevent any content overflow */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Add a dark overlay */
    z-index: 1; /* Place below the text but above the image */
}

.hero-content {
    max-width: 800px;
    z-index: 2; /* Ensure content appears above the background */
    margin: 0 auto;
    position: relative; /* Prevents stacking issues with the hero image */
    text-align: center;
    padding: 3rem 1rem;
}

.hero-cta {
    margin-top: 1.5rem;
}

.hero-cta .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin: 0.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

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

.btn-secondary {
    background-color: green;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Matches the hero section's height */
    background-size: cover;
    background-position: center;
    z-index: 1; /* Places it behind the hero content */
    /* opacity:  0.6; */
}

.hero-image.default-hero {
    background-image: url('/static/images/default-hero.jpg');
}

.hero-image.home-hero {
    background-image: url('/static/images/home-hero.jpg');
}

.hero-image.about-hero {
    background-image: url('/static/images/about-hero.jpg');
}

.hero-image.projects-hero {
    background-image: url('/static/images/projects-hero.jpg');
}

.hero-image.blog-hero {
    background-image: url('/static/images/blog-hero.jpg');
}

.hero-image.contact-hero {
    background-image: url('/static/images/contact-hero.jpg');
}

.hero h1 {
    font-size: 3rem; /* Adjusted for better responsiveness */
    margin-bottom: 20px;
    text-transform: capitalize;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8); /* Improve text readability */
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8); /* Improve text readability */
}

/* ==========================
   ABOUT SECTION
========================== */
.about {
    background-color: var(--light-gray); /* Light background for contrast */
    color: var(--text-color);
    padding: 3rem 1.5rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h1 {
    color: var(--primary-color); /* Dark navy for headers */
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.certifications {
    /* background-color: var(--secondary-color);  */
    color: #fff; /* White text */
    padding: 2rem 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.certifications h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.certifications p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-color); 
}

.certification-logos {
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* Spacing between logos */
    flex-wrap: wrap; /* Allow logos to wrap on smaller screens */
}

.cert-logo {
    max-width: 150px; /* Limit logo size */
    height: auto;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.cert-logo:hover {
    transform: scale(1.1); /* Slightly enlarge logo on hover */
    filter: drop-shadow(4px 4px 10px rgba(0, 0, 0, 0.4));
}

.skills {
    padding: 3rem 1rem;
    text-align: center;
    /* background-color: green; */
}

.skills h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

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

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
}

.skill-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 0.5rem;
}


/* ==========================
   PROJECTS SECTION
========================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Wider cards */
    gap: 16px; /* Increase spacing between cards */
    /* margin: 40px auto; */
    max-width: 1200px;
}

/* .project-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  .project-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--primary-color); 
} */

/* Project Card */
.project-card {
    /* height: 300px; */
    position: relative; /* Enable positioning of child elements */
    text-decoration: none;
    color: inherit;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Project Card Image */
.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1; /* Ensure the image is behind the content */
}

/* Project Card Content */
.project-card .card-content {
    position: relative;
    z-index: 2; /* Ensure the content is on top of the image */
    padding: 16px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
    color: #fff; /* White text color for contrast */
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.project-card h3 {
    font-size: 1.5rem; /* Larger title */
    margin: 15px 0;
    color: #fff;
    font-weight: 600; /* Bold and modern */
    text-transform: capitalize;
}

.project-card p {
    font-size: 1rem;
    color: #fff;
    line-height: 1.6;
    margin: 10px 0 20px;
    flex-grow: 1; /* Push the button to the bottom */
}
  
  .card-link {
    display: block;
    text-decoration: none;
    color: inherit;
  }
  
  .card-link img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .project-info {
    padding: 16px;
    list-style: none;
  }
  
  .project-info h3 {
    color: var(--light-gray);
    margin: 0 0 8px;
    font-size: 1.25rem;
  }

  .project-info h3 a {
    text-decoration: none;
    color: inherit;
  }

  .project-info h3 a:hover {
    color: var(--highlight-color); /* Link hover effect */
  }
  
  .project-info p {
    margin: 0;
  }
  
  .btn {
    display: inline-block;
    margin: 16px;
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
  }
  
  .btn:hover {
    background-color: #0056b3;
  }
  

.project-card .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.project-card .btn:hover {
    background-color: var(--highlight-color);
}


/* Styling for the project detail page */

.project-detail .hero {
    /* padding: 120px 20px; */
    /* background-image: url('{{ project.image.url }}'); */
    background-image: url('{{ project.image.url|default:"/static/images/default-hero.jpg" }}');
    background-size: cover;
    background-position: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.project-detail .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.project-detail .hero p {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.project-detail {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.project-detail h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-detail img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover; /* Ensures the image scales proportionally */
    aspect-ratio: 16 / 9; /* Optional: Gives the image a cinematic aspect ratio */
}

.project-image {
    max-width: 1000px; /* Maximum width for the image container */
    margin: 0 auto 1.5rem; /* Centers the image container and adds spacing */
}

.project-image img {
    width: 100%; /* The image will take up the full width of the container */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


.project-detail p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.project-meta {
    margin-bottom: 2rem;
}

.project-meta h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-meta ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.project-meta li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--text-color);
}

.project-meta li img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

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

.project-links h3 {
    display: none; /* Optional: Remove this if you don't want the title to appear */
}

.project-links .btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.project-links .btn:hover {
    background-color: var(--primary-dark);
}


.technology-list {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center the list items */
}
  
.technology-item {
    text-align: center;
    margin: 10px;
}
  
.technology-icon {
    width: 50px; /* Adjust the size as needed */
    height: 50px; /* Adjust the size as needed */
}
  
.technology-name {
    margin-top: 5px;
    font-size: 14px; /* Adjust the size as needed */
}

/* .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
} */
  
section.about,
section.projects,
section.featured-blogs, .blog {
    padding: 50px 0;
    text-align: center;
}
  
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--highlight-color);
    color: var(--light-gray);
    text-decoration: none;
}


/* ==========================
   BLOG SECTION
========================== */
.blog, .featured-blogs {
    /* padding: 40px 20px; */
    background-color: #f9f9f9; /* Light background for contrast */
  }
  
  .blog h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    /* color: #333; */
  }
  
  /* Blog Grid */
  .blog-grid, .featured-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive layout */
    gap: 16px; /* Space between blog cards */
  }
  
  /* Blog Card */
  .blog-card {
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
  }
  
  .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  }
  
  .blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  .blog-card img:hover {
    transform: scale(1.05);
}
  
  /* Blog Info */
  .blog-info {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
  }
  
  .blog-info h3 {
    font-size: 1.5rem;
    margin: 0 0 8px;
    color: var(--dark-gray);
    transition: color 0.3s ease;
  }
  
  .blog-info h3 a {
    text-decoration: none;
    color: inherit;
  }
  
  .blog-info h3 a:hover {
    color: var(--highlight-color); /* Link hover effect */
  }
  
  .blog-author {
    font-size: 0.75rem;
    color: #777;
    /* margin-bottom: 8px; */
  }
  
  .blog-excerpt {
    font-size: 0.9rem; /* Smaller font for the excerpt */
    color: #555;
    margin: 0;
    line-height: 1.4; /* Tighter spacing */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .btn-read-more {
    text-decoration: none;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    align-self: flex-end;
    transition: background-color 0.3s ease;
  }
  
  .btn-read-more:hover {
    background-color: var(--highlight-color);
  }
  
/* Blog Detail Styling */
.blog-detail {
    padding: 20px;
    max-width: 1200px; /* Wider max width for a more spacious layout */
    margin: 0 auto;
}

.blog-header {
    text-align: center;
    margin-bottom: 20px;
}

.blog-header .blog-title {
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: #333;
}

.blog-header .blog-meta {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 20px;
}

.blog-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Match the content width */
    height: 62vh; /* Give the image a large height */
    margin: 0 auto 30px auto;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blog-image-wrapper img {
    width: 100%; /* Make the image occupy the full wrapper */
    height: 100%; /* Scale to fill the height */
    object-fit: cover; /* Ensure the image fits the dimensions without distortion */
    display: block;
    border-radius: 8px;
}

.blog-content {
    line-height: 1.8;
    font-size: 1rem;
    color: #333;
    margin-bottom: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.btn-back {
    display: inline-block;
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 0.875rem;
    padding: 10px 20px;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    transition: all 0.2s;
    text-align: center;
    margin: 20px auto;
}

.btn-back:hover {
    background: var(--secondary-color);
    color: #fff;
    text-decoration: none;
}
  

/* ==========================
   CONTACT SECTION
========================== */
.contact {
    /* padding: 3rem 1.5rem; */
    background-color: var(--light-gray);
    color: var(--text-color);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    /* color: var(--primary-color); */
}

form {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--dark-gray);
    border-radius: 4px;
}

textarea {
    resize: vertical;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

.contact-info {
    padding: 3rem 1rem;
    text-align: center;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.contact-info li {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    margin-bottom: 10px; /* Optional spacing */
    display: flex;
    align-items: center;
}

.contact-info a {
    color: #007bff;
    text-decoration: none;
}

.google-map  {
    border-radius: 10px;
    overflow: hidden;    /* Ensures corners are clipped */
    max-width: 100%;     /* Ensure responsiveness */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional shadow */
}
.google-map iframe {
    width: 100%;
    height: 400px;
    border: 1px solid green; /* Optional border */
}


/* ==========================
   FOOTER
========================== */
footer {
    background: var(--primary-color);
    color: var(--light-gray);
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-color); /* Slightly muted text */
}

/* Footer Navigation */
.footer-nav, .footer-nav2 {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 1rem;
}

.footer-nav a {
    text-decoration: none;
    color: var(--light-gray);
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--highlight-color);
}

.footer-nav2 a {
    text-decoration: none;
    font-size: 0.8rem;
    color: var(--text-color);
    transition: color 0.3s;
}

.footer-nav2 a:hover {
    color: var(--highlight-color); /* Blue on hover */
}

/* Social Media Icons */
.social {
    display: flex;
    justify-content: center; /* Center the icons horizontally */
    gap: 1rem; /* Add spacing between the icons */
    margin-top: 2rem; /* Add some margin above the social icons */
}

.social-icon {
    display: inline-block;
    width: 40px; /* Set the size of the icon container */
    height: 40px; /* Maintain a square container */
    border-radius: 50%; /* Make the icons circular */
    background-color: var(--dark-gray); /* Background for icons */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icon img {
    width: 60%; /* Make the icon smaller relative to its container */
    height: 60%;
    object-fit: contain; /* Ensure the image fits well */
}

.social-icon:hover {
    background-color: var(--highlight-color); /* Change background on hover */
    transform: scale(1.1); /* Slightly enlarge the icon */
}

.social-icon img:hover {
    filter: brightness(1.2); /* Brighten the image on hover */
}

/* ==========================
   RESPONSIVE DESIGN
========================== */
/* Medium screens (max-width: 1024px) */
@media (max-width: 1024px) {

    body {
        padding: 0 10px; /* Consistent padding on all sides */
        margin: 0;
    }

    h2, h3 {
        margin: 0; /* Remove extra white spaces around headings */
    }

    .hero {
        padding: 60px 10px; /* Adjust padding for smaller screens */
        text-align: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .project-card h3, .blog-card h3 {
        margin: 0 0 10px; /* Tighten spacing */
    }

    /* Footer Links */
    .footer-nav {
        flex-direction: column; /* Align links vertically */
        gap: 8px;
        text-align: center; /* Center align text */
    }

    .footer-nav a {
        font-size: 1rem;
        text-decoration: none;
        color: var(--light-gray);
    }
}


@media (max-width: 768px) {

    body {
        padding: 0 5px; /* Tighter padding for smaller screens */
    }

    .site-nav {
        display: none; /* Hide navigation for mobile */
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        width: 50%;
        padding: 1rem 0; /* Add padding for breathing room */
        /* z-index: 1000; */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .site-nav.open {
        display: flex; /* Show menu when toggled */
    }

    .site-nav li {
        width: 100%; /* Full width items */
        /* margin: 1rem 0; */
    }

    .site-nav li a {
        text-align: center; /* Center align for better aesthetics */
        font-size: 1.2rem; /* Slightly larger text for readability */
    }

    /* Hamburger Menu */

    .hamburger {
        display: flex; /* Show hamburger on mobile */
    }

    .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.open span:nth-child(2) {
        opacity: 0; /* Hide middle line */
    }
    
    .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    h2, h3 {
        font-size: 1.5rem; /* Adjust heading sizes */
        margin: 0 0 10px;
    }

    .hero {
        padding: 40px 5px;
    }

    .hero h1 {
        font-size: 2.5rem; /* Adjust font size for smaller screens */
    }
    .hero p {
        font-size: 1rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

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

    .footer {
        text-align: center;
        padding: 20px 5px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 10px;
    }

    .footer-links a {
        display: block;
        text-align: center;
        font-size: 0.9rem;
    }
}

/* ==========================
   FOOTER
========================== */
footer {
    background: var(--primary-color);
    color: var(--light-gray);
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-color); /* Slightly muted text */
}

/* Footer Navigation */
.footer-nav, .footer-nav2 {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 1rem;
}

.footer-nav a {
    text-decoration: none;
    color: var(--light-gray);
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--highlight-color);
}

.footer-nav2 a {
    text-decoration: none;
    font-size: 0.8rem;
    color: var(--text-color);
    transition: color 0.3s;
}

.footer-nav2 a:hover {
    color: var(--highlight-color); /* Blue on hover */
}

/* Social Media Icons */
.social {
    display: flex;
    justify-content: center; /* Center the icons horizontally */
    gap: 1rem; /* Add spacing between the icons */
    margin-top: 2rem; /* Add some margin above the social icons */
}

.social-icon {
    display: inline-block;
    width: 40px; /* Set the size of the icon container */
    height: 40px; /* Maintain a square container */
    border-radius: 50%; /* Make the icons circular */
    background-color: var(--dark-gray); /* Background for icons */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icon img {
    width: 60%; /* Make the icon smaller relative to its container */
    height: 60%;
    object-fit: contain; /* Ensure the image fits well */
}

.social-icon:hover {
    background-color: var(--highlight-color); /* Change background on hover */
    transform: scale(1.1); /* Slightly enlarge the icon */
}

.social-icon img:hover {
    filter: brightness(1.2); /* Brighten the image on hover */
}

/* ==========================
   RESPONSIVE DESIGN
========================== */
/* Medium screens (max-width: 1024px) */
@media (max-width: 1024px) {

    body {
        padding: 0 10px; /* Consistent padding on all sides */
        margin: 0;
    }

    h2, h3 {
        margin: 0; /* Remove extra white spaces around headings */
    }

    .hero {
        padding: 60px 10px; /* Adjust padding for smaller screens */
        text-align: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .project-card h3, .blog-card h3 {
        margin: 0 0 10px; /* Tighten spacing */
    }

    /* Footer Links */
    .footer-nav {
        flex-direction: column; /* Align links vertically */
        gap: 8px;
        text-align: center; /* Center align text */
    }

    .footer-nav a {
        font-size: 1rem;
        text-decoration: none;
        color: var(--light-gray);
    }
}

/* Large Screens (min-width: 1025px) */
/* Explicitly revert back to row layout for large screens */
@media (min-width: 1025px) {
    .footer-nav {
        flex-direction: row; /* Re-align links horizontally */
    }
}


@media (max-width: 768px) {

    body {
        padding: 0 5px; /* Tighter padding for smaller screens */
    }

    .site-nav {
        display: none; /* Hide navigation for mobile */
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        width: 50%;
        padding: 1rem 0; /* Add padding for breathing room */
        /* z-index: 1000; */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .site-nav.open {
        display: flex; /* Show menu when toggled */
    }

    .site-nav li {
        width: 100%; /* Full width items */
        /* margin: 1rem 0; */
    }

    .site-nav li a {
        text-align: center; /* Center align for better aesthetics */
        font-size: 1.2rem; /* Slightly larger text for readability */
    }

    /* Hamburger Menu */

    .hamburger {
        display: flex; /* Show hamburger on mobile */
    }

    .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.open span:nth-child(2) {
        opacity: 0; /* Hide middle line */
    }
    
    .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    h2, h3 {
        font-size: 1.5rem; /* Adjust heading sizes */
        margin: 0 0 10px;
    }

    .hero {
        padding: 40px 5px;
    }

    .hero h1 {
        font-size: 2.5rem; /* Adjust font size for smaller screens */
    }
    .hero p {
        font-size: 1rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

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

    .footer {
        text-align: center;
        padding: 20px 5px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 10px;
    }

    .footer-links a {
        display: block;
        text-align: center;
        font-size: 0.9rem;
    }
}

/* Large Screens (min-width: 1025px) */
/* Explicitly revert back to row layout for large screens */
@media (min-width: 1025px) {
    .footer-nav {
        flex-direction: row; /* Re-align links horizontally */
    }
}