* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.lazy-img {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.lazy-img[data-loaded="true"] {
  opacity: 1;
}


html {
  scroll-behavior: smooth;
}

body {
    background-color: #e6efe8;
    color: #1b2a25;
    line-height: 1.6;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
}

header {
    background-color: #234d20;
    padding: 20px;
    text-align: center;
    border-bottom: 4px solid #1b3a1a;
}

header h1 {
    color: #a3c293;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 50px;
}

ul {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    flex-wrap: wrap;

}

li {
    list-style: none;
    background-color: #3a633e;
    border: 1px solid #234d20;
    border-radius: 8px;
    padding: 15px 80px;
    margin: 10px;
    text-align: center;
    
}

li:hover {
        background-color: #1b3a1a;
}

a {
    color: #a3c293;
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 10px;
}

a:hover {

    color: #d9b44a;
    text-decoration: underline;
}

.about-me,
.projects,
.contact,
.skills {
    background-color: #2e57342f;
    padding: 30px;
    margin: 90px 0 20px 0;
    border-left: 6px solid #d9b44a;
    border-radius: 10px;
    box-shadow: 4px 4px 10px 5px rgba(50, 80, 50, 0.5);
}

.about-me {
  padding: 20px;
  line-height: 1.6;
}

.about-me h2 {
  font-family: 'Poppins', sans-serif; 
  font-size: 2rem; 
  margin-bottom: 15px;
  color: #222;
}

.about-me p {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem; 
  color: #333;
  margin:0 25px 15px 15px;
}


#userName,
#email {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    margin: 6px 0;
    border: 1px solid #234d20;
    border-radius: 6px;
    background-color: #3a633e;
    color: #a3c293;
}

#message {
    width: 100%;
    max-width: 600px;
    height: 150px;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid #234d20;
    border-radius: 10px;
    background-color: #3a633e;
    color: #a3c293;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: lightyellow;
    font-style: italic;
    opacity: 0.5;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

h2 {
    color: #1b2a25;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 40px;
}

.grid-item {
    background-color: #3a633e;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 5px;
    width: 100%;
}

.grid-item:hover {
    background-color: #1e1e2f;
    color: white;
}

.dark-mode {
    background-color: black;
}


 svg {
      width: 30px;
      height: 30px;
    }

.hide-project-details {
    display: none;
    visibility: hidden;
    
}

.show-project-details {
    visibility: visible;
    display: flex;
}

.grid-item:hover {
    color: white;
}

.grid-item button:hover,
#submit-button:hover {
    background-color: #a3c293;
    border: 5px solid #a3c293;
    color: white;
    cursor: pointer;
}

.project-details {
    margin-bottom: 25px;
}

.project-info {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #1e1e2f; /* dark background for contrast */
    padding: 20px;
    border-radius: 10px;
    max-width: 1000px; 
    margin: 0 auto;  
}

.project-info img {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}


.project-specs {
    display: flex;
    flex-direction: column;
    text-align: center;
    color: white;
    gap: 10px;
}

.project-specs p span {
    font-weight: bold;
    color: #00CFFF;
}


button {
    background-color: #d9b44a;
    border: 5px solid #d9b44a;
    border-radius: 5px;
    color: #1b3a1a;
    letter-spacing: 2px;
    margin-top: 10px;
}

.github {
    display: inline-block;
    margin: 10px 10px 0 0;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    background-color: #0056b3; 
}

.github a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.github:hover {
    background-color: #007BFF; 
}

.github:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    transition: transform 0.3s;
}

.skill i {
    font-size: 3rem;
    color: #0a5745;
    margin-bottom: 10px;
}

.skill i:hover {
    color: #06b189;
}

.skill p {
    margin: 0;
    font-weight: bold;
}

/* Hover effect */
.skill:hover {
    transform: translateY(-10px);
}


footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #234d20;
    color: #ccc;
    text-align: center;
    padding: 5px;

}


/* Dark Mode Theme */

.dark-mode-btn {
    position: absolute;
    top: 20px;
    right: 50px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: #d9b44a;
    color: #1e1e2f;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 100;
}

#moonIcon { 
    display: none; 
}

.dark-mode #sunIcon { 
    display: none; 
}
.dark-mode #moonIcon { 
    display: inline; 
}


/* Full dark mode styles */
.dark-mode, .dark-mode footer {
    background-color: #121212;
    color: #e0e0e0;
}

.dark-mode header {
    background-color: #1f2937;
    border-bottom: 4px solid #2c3e50;
}

.dark-mode nav li {
    background-color: #06101d;
    border: 2px solid #06101d;
}

.dark-mode h1, .dark-mode h2 {
    color: #f0c94d;
}

.dark-mode a {
    color: #4aa3df;
}

.dark-mode a:hover {
    color: #f0c94d;
}

.dark-mode .about-me p {
        color: white;
    }

.dark-mode .grid-item {
    background: #06101d;
}

.dark-mode #userName,
.dark-mode #email,
.dark-mode #message,
.dark-mode .about-me,
.dark-mode .projects,
.dark-mode .contact {
    background-color: #1e2a38;
    color: #e0e0e0;
    border: 1px solid #575656;
}

.dark-mode button {
    background-color: #f0c94d;
    color: #1f2937;
    border: 3px solid #f0c94d;
}

.dark-mode button:hover {
    background-color: #887203;
    color: #1f2937;
    border: 3px solid #887203;
}

.dark-mode .skill i {
    color:#3b5676
}
.dark-mode .skill i:hover {
    color:#529af3
}

@media (max-width: 600px) {

    ul {
        display: block
    }

    h2 {
        margin: 0.5px;
        text-align: center;
    }

    .about-me,
    .projects,
    .contact {
        margin: 25px;
        padding-top: 10px;
    }

    .grid-item {
        margin-bottom: 10px;

    }

    #message {
        width: 90%;
    }

    footer {
        padding: 0;

    }

}
