:root {
    --primary: #2c3e50;
    --secondary: #34495e;
    --navbar-bg: #1a252f;
    --accent: #3498db;
    --text-main: #ecf0f1;
    --text-highlight: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    padding-top: 80px;
    background-color: var(--primary);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: var(--navbar-bg);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--accent);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    scroll-margin-top: 0;
}

nav {
    flex: 1;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-highlight);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-toggle {
        display: block;
        margin-bottom: 10px;
    }

    nav {
        display: none;
        width: 100%;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}


nav ul li a {
    color: var(--text-highlight);
    text-decoration: none;
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--accent);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

main {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: auto;
    flex: 1;
    width: 100%;
    animation: fadeIn 0.8s ease-out;
}

h1, h2 {
    color: var(--text-highlight);
    letter-spacing: 0.5px;
    scroll-margin-top: 100px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-to-top {
    font-size: 1rem;
    color: var(--accent);
    text-decoration: none;
    margin-right: 10px;
}

.back-to-top:hover {
    color: var(--text-highlight);
}

/* Blog Post Card Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.blog-card {
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.portfolio-card {
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.portfolio-card:hover {
    transform: translateY(-5px);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.blog-card h3, .portfolio-card h3 {
    margin: 0 0 10px 0;
    color: var(--text-highlight);
}

.blog-card p, .portfolio-card p {
    font-size: 0.9rem;
    margin: 0 0 10px 0;
}

.portfolio-card-body {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.portfolio-icon img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
}

.portfolio-card-footer {
    display: flex;
    gap: 15px;
    border-top: 1px solid var(--primary);
    padding-top: 10px;
}

.portfolio-card-footer a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.portfolio-card-footer a:hover {
    color: var(--accent);
}

/* Home Section */
.home-section {
    text-align: center;
    padding-top: 50px;
}

.home-name {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.home-title {
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 1.5rem;
}

.social-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.social-links a {
    color: var(--text-highlight);
    font-size: 1.5rem;
    transition: color 0.3s;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent);
    color: var(--text-highlight);
    text-decoration: none;
    border-radius: 50px; /* More rounded */
    margin-top: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn:hover {
    background: var(--text-highlight);
    color: var(--primary);
    transform: scale(1.05);
}

.resume-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.75rem;
    background: var(--navbar-bg);
    color: var(--text-highlight);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--accent);
}

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

/* Row/Column Layout */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.col {
    flex: 1;
    min-width: 300px;
}

.info-block {
    margin-bottom: 20px;
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.info-block h4 {
    margin: 0 0 10px 0;
    color: var(--text-highlight);
    display: flex;
    align-items: center;
}

.info-block h4 i {
    margin-right: 10px;
    color: var(--accent);
}

.experience-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    background: var(--secondary);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.experience-logo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.experience-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.experience-details h4 {
    margin: 0 0 5px 0;
    color: var(--text-highlight);
}

.experience-details p {
    margin: 0;
    font-size: 0.95rem;
}

.experience-desc {
    margin-top: 5px;
    font-size: 0.9rem;
    color: #bdc3c7;
}

.about-info p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.about-info p i {
    margin-right: 10px;
    color: var(--accent);
    width: 20px;
}

/* Single Post Styles */
.post-content {
    max-width: 800px;
    margin: auto;
}

.about-profile-row {
    align-items: center;
    margin-bottom: 30px;
}

.about-profile-col {
    flex: 0 0 auto;
    margin-right: 20px;
}

.post-banner {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
    border-radius: 12px;
}

.post-header {
    margin-bottom: 20px;
}

.post-body {
    line-height: 1.8;
}

.profile-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent);
    margin-bottom: 20px;
}

footer {
    text-align: center;
    padding: 1rem;
    background: var(--secondary);
    color: var(--text-main);
    margin-top: 2rem;
}

@media (min-width: 768px) {
    header {
        flex-direction: row;
        justify-content: center;
        padding: 1rem 2rem;
    }
    nav ul {
        gap: 20px;
        flex-wrap: nowrap;
    }
    main {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 1rem;
    }
    header {
        padding: 0.5rem;
    }
    main {
        padding: 1rem 0.5rem;
    }
    .col {
        min-width: 100%;
    }
    .about-profile-row {
        flex-direction: column;
        text-align: center;
    }
    .about-profile-col {
        margin-right: 0;
        margin-bottom: 20px;
    }
    .home-name {
        font-size: 2rem;
    }
    .home-title {
        font-size: 1.2rem;
    }
}
