/* General Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

header {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1.5rem 1rem;
    position: relative;
    animation: fadeIn 1.5s ease-in-out; /* Fade-in animation for header */
}

header h1 {
    margin: 0;
}

nav {
    background-color: #333;
    color: white;
    padding: 10px 0;
    text-align: center;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 1rem;
}

nav ul li {
    list-style: none;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background-color: #555;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #666;
}

.contact-info {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-link {
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease; /* Animation on hover */
}

.contact-link i {
    margin-right: 0.5rem;
    font-size: 1.2rem; /* Icon size */
}

.contact-link:hover {
    transform: scale(1.1); /* Enlarge slightly on hover */
    color: #f0f0f0; /* Change color on hover */
}

section {
    padding: 2rem;
    margin: 1rem;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    opacity: 0; /* Start hidden for fade-in effect */
    transform: translateY(30px); /* Start slightly below */
    transition: all 0.5s ease-out; /* Transition for scroll-triggered animation */
}

section.active {
    opacity: 1;
    transform: translateY(0); /* Reset position when in view */
}

h2 {
    color: #333;
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
}

.project {
    margin-bottom: 1rem;
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    background-color: #eee;
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-radius: 5px;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #333;
    color: #fff;
}

/* Read More Link Style */
.read-more {
    display: inline-block;
    margin-top: 0.5rem;
    color: #007bff;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    header, footer {
        text-align: center;
    }

    .contact-link {
        display: block;
        margin: 0.5rem 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }
}

/* Blog Header */
.blog-header {
    background-color: #004080;
    color: white;
    text-align: center;
    padding: 20px 0;
}

.blog-header h1 {
    margin: 0;
}

.blog-header p {
    font-size: 0.9em;
}

/* Blog Content */
.blog-content {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.blog-content h2 {
    color: #333;
    margin-top: 20px;
}

.blog-content p {
    margin-bottom: 20px;
}

/* Footer */
footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: white;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer p {
    margin: 0;
}
/* General navigation styles */
nav a {
    color: white; /* Or whatever color the other links are */
    text-decoration: none;
    padding: 10px 15px;
    background-color: #333; /* The background color for other nav links */
    border-radius: 5px;
}

/* Styling the 'Blogs' nav button differently */
nav a[href="blog.html"] {
    background-color: lightgreen; /* Light green background for Blogs link */
    color: black; /* Set a different text color for contrast */
}
