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

:root {
    --primary-color: #2F3E46;      /* Dark slate gray blue */
    --secondary-color: #4A6572;    /* Slate blue gray */
    --background-color: #121212;   /* Dark background */
    --text-color: #e0e0e0;         /* Light text */
    --light-color: #1e1e1e;        /* For dark theme elements */
    --dark-color: #ffffff;         /* For light elements */
    --accent-color: #4FB3BF;       /* Muted teal */
    --accent-color-hover: #3A9CA5; /* Darker teal */
    --link-color: #8FCFD1;         /* Lighter teal */
    --icon-color: #4FB3BF;         /* Same as accent color */
    --progress-bg-color: #2F3E46;  /* Progress bar background */
    --progress-fill-color: #4FB3BF; /* Progress bar fill */
}

/* Body */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    padding-top: 70px;
    scroll-behavior: smooth;
}

/* Global Link Styles */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .fas {
    font-size: 1.5rem;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    position: relative;
    background: url('hero-background.jpg') center/cover no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color);
    padding: 0 2rem;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.6); /* Slightly darker overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeIn 1s ease-in-out;
    transform: translateY(-70px); /* Adjust this value */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

/* Buttons */
.btn {
    background-color: var(--accent-color);
    color: var(--dark-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: var(--accent-color-hover);
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 5rem 2rem;
    background: var(--background-color);
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.about img {
    max-width: 300px;
    border-radius: 50%;
    margin: 0 2rem 2rem;
    border: 2px solid var(--secondary-color);
}

.about-text {
    max-width: 600px;
    color: var(--text-color);
}

.about-text p {
    margin-bottom: 1rem;
}

/* Projects Section */
.projects {
    padding: 5rem 2rem;
    background: var(--background-color);
}

.projects h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

.project-item {
    background: var(--light-color);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.project-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 1rem;
    color: var(--text-color);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-info p {
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Progress Bar */
.progress-bar {
    background-color: var(--progress-bg-color);
    border-radius: 5px;
    overflow: hidden;
    height: 10px;
    margin-bottom: 0.5rem;
}

.progress {
    background-color: var(--progress-fill-color);
    height: 100%;
    width: 0;
    transition: width 2s ease-in-out;
}

/* Completion Text */
.completion-text {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Read More */
.read-more-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    margin-top: 0.5rem;
    align-self: flex-start;
}

.read-more-btn:hover {
    text-decoration: underline;
}

.more-info {
    display: none;
    margin-top: 0.5rem;
    color: var(--text-color);
}

/* Contact Section */
.contact {
    padding: 5rem 2rem;
    background: var(--background-color);
    text-align: center;
}

.contact h2 {
    margin-bottom: 2rem;
    color: var(--text-color);
}

.contact p {
    color: var(--text-color);
}

.social-links a {
    margin: 0 1rem;
    font-size: 2rem;
    color: var(--icon-color);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-color-hover);
}

/* Footer */
footer {
    background: var(--light-color);
    text-align: center;
    padding: 1rem 0;
    color: var(--text-color);
}

footer p {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-color);
    margin: 0 0.5rem;
    text-decoration: none;
    transition: color 0.3s, text-decoration 0.3s;
}

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



/* Blog Header */
.blog-header {
    padding: 5rem 2rem;
    background: var(--background-color);
    text-align: center;
    color: var(--text-color);
}

.blog-header h1 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.blog-header p {
    font-size: 1.2rem;
    color: var(--text-color);
}

/* Blog Posts */
.blog-posts {
    padding: 3rem 2rem;
    background: var(--background-color);
    max-width: 800px;
    margin: 0 auto;
}

.blog-post {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}

.blog-post h2 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.post-date {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.blog-post p {
    color: var(--text-color);
}

/* Blog Excerpt */
.blog-post .excerpt {
    margin-bottom: 1rem;
}

/* Read More Button */
.blog-read-more-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.blog-read-more-btn:hover {
    text-decoration: underline;
}

/* Full Content */
.blog-more-info {
    display: none;
    color: var(--text-color);
    margin-top: 0.5rem;
}


.read-more {
    color: var(--accent-color);
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}



/* Responsive Adjustments for Blog */
@media (max-width: 768px) {
    .blog-posts {
        padding: 2rem 1rem;
    }

    .blog-post {
        padding: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
        background: var(--light-color);
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        display: none;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .hamburger {
        display: block;
    }

    .about-container {
        flex-direction: column;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .project-item img {
        height: 150px;
    }

    .blog-posts {
        padding: 2rem 1rem;
    }
}