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

body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
    opacity: 0;
    animation: bodyFadeIn 1.5s forwards; /* Fade in effect when the page loads */
}

@keyframes bodyFadeIn {
    to {
        opacity: 1;
    }
}

a {
    color: #bb86fc;
    text-decoration: none;
}

a:hover {
    color: #03dac6;
}

/* Header Styling */
header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px solid #333;
}

header img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

header h1 {
    font-size: 2.5rem;
    color: #ffffff;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideIn 1s forwards;
}

header p {
    font-size: 1.2rem;
    color: #bbb;
}

/* Slide in effect for header text */
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

nav ul li {
    display: inline;
}

/* Section Styling */
section {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 2rem auto;
    opacity: 0;
    animation: fadeInSection 1s forwards;
}

@keyframes fadeInSection {
    to {
        opacity: 1;
    }
}

section h2 {
    color: #ffffff;
    border-bottom: 2px solid #4d8ef0;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

section p, section ul {
    font-size: 1.1rem;
    color: #e0e0e0;
}

/* Project Card Styling */
#projects ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#projects li {
    display: flex;
    align-items: center;
    background-color: #1e1e1e;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

#projects li:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#projects li a {
    display: flex;
    gap: 1rem;
    align-items: center;
    width: 100%;
}

#projects img.thumbnail {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.project-heading {
    font-size: 3rem;
    color: #ffffff;
    letter-spacing: 1px;
    font-weight: bold;
    text-align: center;
    padding: 5px;
    margin-bottom: 40px;
    border-bottom: 1px solid #868c8b;
}

#projects h3 {
    color: #bb86fc;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

#projects p {
    font-size: 1.1rem;
    color: #e0e0e0;
}

/* Button Styling */
.btn {
    background-color: #03dac6;
    padding: 1rem 2rem;
    border-radius: 5px;
    color: #121212;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: #bb86fc;
    transform: scale(1.1);
}

/* Contact Icons Styling */
.contact-icons {
    display: flex;
    justify-content: center;
    gap: 4rem;
}

.contact-icons a img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s;
}

.contact-icons a img:hover {
    transform: scale(1.1);
}

/* Footer Styling */
footer {
    text-align: center;
    padding: 1.5rem;
    background-color: #1e1e1e;
    color: #bbb;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Resize the Smart Soil Project Page Images to Same Size */
#project-overview img {
    width: 100%;
    max-width: 900px;
    height: 300px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* Gallery of Images */
#project-images .image-gallery img {
    width: 100%;
    max-width: 900px;
    height: 650px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

#project-images .image-gallery {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

#project-images .image-gallery img {
    transition: transform 0.3s ease;
}

#project-images .image-gallery img:hover {
    transform: scale(1.05);
}

/* Thumbnail Styling for Project Images */
.thumbnail {
    width: 250px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Link Styling */
a {
    color: #2196F3;
    text-decoration: none;
}

a:hover {
    color: #8BC34A;
}

/* Heading Styling for Project Titles */
#projects h3 {
    color: #65a8e3;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

#projects h3:hover {
    color: #65bc70;
}

/* CV Download Section */
#cv-download {
    padding: 2rem 0;
    text-align: center;
}

/* Button Styling for CV Download */
#cv-download .btn {
    background-color: #4a93d7;
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
    display: block;
    width: fit-content;
    margin: 20px auto 0;
}

#cv-download .btn:hover {
    background-color: #55d760;
    transform: scale(1.05);
}

/* Smooth motion for the job title */
.motion-text {
    display: inline-block;
    animation: moveText 3s ease-in-out forwards;
}

@keyframes moveText {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile and Tablet Styles */
@media (max-width: 768px) {
    /* Header */
    header h1 {
        font-size: 2rem;
    }

    header img {
        width: 120px;
        height: 120px;
    }

    /* Navigation */
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    /* Projects */
    #projects ul {
        flex-direction: column;
    }

    #projects img.thumbnail {
        width: 100%; /* Make thumbnails full-width */
        height: 150px; /* Set fixed height */
        object-fit: cover; /* Maintain aspect ratio */
    }

    /* Section */
    section {
        padding: 1.5rem;
    }

    /* Contact Icons */
    .contact-icons {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-icons a img {
        width: 30px;
        height: 30px;
    }

    /* Footer */
    footer {
        font-size: 0.9rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    /* Projects */
    #projects li {
        flex-direction: column;
        padding: 1rem;
    }

    #projects img.thumbnail {
        width: 100%; /* Make thumbnails full-width on smaller screens */
        height: 120px; /* Set smaller fixed height */
        object-fit: cover; /* Maintain aspect ratio */
    }

    /* CV Button */
    #cv-download .btn {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
}
/* Header Image Animation */
header img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    opacity: 0; /* Start with the image hidden */
    transform: translateY(-30px); /* Start slightly above its position */
    animation: zoomIn 3s forwards;
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.8); /* Start smaller */
    }
    100% {
        opacity: 1;
        transform: scale(1); /* End at normal size */
    }
}

/* Navigation Bar Styling */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    opacity: 0; /* Initially hidden */
    transform: translateX(-100%); /* Start off-screen (to the left) */
    animation: slideInFromLeft 1s forwards; /* Apply the sliding animation */
}

/* Slide In from Left Animation */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100%); /* Start off-screen */
    }
    100% {
        opacity: 1;
        transform: translateX(0); /* End at its normal position */
    }
}
iframe {
    border: none;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
  }
  

  /* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
}

th {
  background-color: #2d3e50;
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
}

td {
  background-color: #f4f7fa;
}

tr:nth-child(even) td {
  background-color: #e9eff2;
}

tr:hover td {
  background-color: #d1e1f2;
}

/* Optional: Add a shadow around the table */
table {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Optional: Style the table borders to make them smoother */
td, th {
  border-radius: 5px;
}
/* Table Styles for Dark Theme */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
  }
  
  th, td {
    padding: 12px;
    text-align: left;
    border: 1px solid #444;
  }
  
  th {
    background-color: #333;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
  }
  
  td {
    background-color: #2c2f38;
    color: #ddd;
  }
  
  tr:nth-child(even) td {
    background-color: #333;
  }
  
  tr:hover td {
    background-color: #444;
    cursor: pointer;
  }
  
  /* Optional: Add a shadow around the table */
  table {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }
  
  /* Optional: Style the table borders to make them smoother */
  td, th {
    border-radius: 5px;
  }
/* Key Features Styles */
.features-list {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
}

.features-list li {
    background-color: #2c2f38;
    color: #ddd;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #444;
    transition: background-color 0.3s ease;
}

.features-list li strong {
    color: #ffcc00; /* Accent color for the feature names */
}

.features-list li:hover {
    background-color: #333;
    cursor: pointer;
}

.features-list li b {
    font-weight: bold;
}

.features-list li:last-child {
    margin-bottom: 0; /* Removes margin from last item */
}
/* Technical Details Styling */
#technical-details ul {
    list-style: none;
    padding: 0;
}

#technical-details li {
    background-color: #2c2f38;
    color: #ddd;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #444;
}

#technical-details li strong {
    color: #ffcc00; /* Accent color for technical detail titles */
}

#technical-details li:last-child {
    margin-bottom: 0; /* Removes margin from last item */
}

