/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #3498db;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 60vh; /* Reduced from 100vh */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 70px;
    padding: 40px 0; /* Added padding for better spacing */
}

.hero-content h1 {
    font-size: 3rem; /* Slightly reduced from 3.5rem */
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.2rem; /* Slightly reduced from 1.3rem */
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #2c3e50;
    border: 2px solid #2c3e50;
}

.btn-secondary:hover {
    background: #2c3e50;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

/* Featured Work Section */
.featured-work {
    padding: 80px 0;
    background-color: white;
}

.featured-work h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.project-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

/* Disabled project links */
.project-link.disabled {
    background: #95a5a6;
    color: white;
    cursor: not-allowed;
    opacity: 0.6;
}

.project-link.disabled:hover {
    background: #95a5a6;
    transform: none;
}

/* Blog Section */
.recent-posts {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.recent-posts h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.blog-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.blog-card h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.blog-card h3 a:hover {
    color: #3498db;
}

.post-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

/* Blog Page Styles */
.blog-main {
    margin-top: 70px;
    padding: 40px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.blog-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.blog-post-full {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.blog-post-full h2 a {
    color: #2c3e50;
    text-decoration: none;
}

.blog-post-full h2 a:hover {
    color: #3498db;
}

.read-more-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 8px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background-color: #2980b9;
}

/* Blog Page Additional Styles */
.read-more-btn.disabled {
    background: #95a5a6;
    color: white;
    cursor: not-allowed;
    opacity: 0.6;
}

.read-more-btn.disabled:hover {
    background: #95a5a6;
    transform: none;
}

.category-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.category-list li i {
    color: #3498db;
    width: 16px;
}

.coming-soon {
    color: #7f8c8d;
    font-style: italic;
    font-size: 0.9rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud .tag {
    display: inline-block;
    background: #ecf0f1;
    color: #2c3e50;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #bdc3c7;
}

.tag-cloud .tag:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Blog Main Container Enhancements */
.page-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive adjustments for blog sidebar */
@media screen and (max-width: 768px) {
    .tag-cloud {
        justify-content: center;
    }
    
    .category-list li {
        justify-content: center;
        text-align: center;
    }
}

/* Sidebar */
.blog-sidebar {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.category-list,
.recent-posts-list {
    list-style: none;
}

.category-list li,
.recent-posts-list li {
    margin-bottom: 0.5rem;
}

.category-list a,
.recent-posts-list a {
    color: #7f8c8d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-list a:hover,
.recent-posts-list a:hover {
    color: #3498db;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #3498db;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: 50vh; /* Even smaller on mobile */
        padding: 30px 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem; /* Reduced from 2.5rem */
    }

    .hero-content p {
        font-size: 1rem; /* Reduced from 1.1rem */
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .blog-preview {
        grid-template-columns: 1fr;
    }

    .blog-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .experience-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .education-grid,
    .tools-grid,
    .interests {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        min-height: 45vh;
        padding: 20px 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem; /* Reduced from 2rem */
    }

    .btn {
        display: block;
        margin: 10px 0;
    }
    
    .profile-pic {
        width: 150px;
        height: 150px;
    }
    
    .quick-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-section {
        padding: 2rem 1rem;
    }
}

/* Contact Page Styles - Reduced spacing */
.contact-main {
    margin-top: 70px;
    padding: 20px 0 40px; /* Reduced from 40px 0 80px */
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem; /* Reduced from 4rem */
    margin-top: 1.5rem; /* Reduced from 3rem */
}

.page-header {
    text-align: center;
    margin-bottom: 1.5rem; /* Reduced from 3rem */
}

.page-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.3rem; /* Reduced from 0.5rem */
}

/* Contact Info Section - Reduced spacing */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Reduced from 1.5rem */
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem; /* Reduced from 1.5rem */
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-details h3 {
    color: #2c3e50;
    margin-bottom: 0.2rem; /* Reduced from 0.3rem */
}

.contact-details p {
    color: #7f8c8d;
    margin-bottom: 0.3rem; /* Reduced from 0.5rem */
}

/* Contact Form - Reduced spacing */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-header {
    margin-bottom: 1.5rem; /* Reduced from 2rem */
    text-align: center;
}

.form-header h2 {
    color: #2c3e50;
    margin-bottom: 0.3rem; /* Reduced from 0.5rem */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-header p {
    color: #7f8c8d;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-group {
    margin-bottom: 1rem; /* Reduced from 1.5rem */
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem; /* Reduced from 0.5rem */
    color: #2c3e50;
    font-weight: 500;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px; /* Reduced from 12px 15px */
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.character-count {
    text-align: right;
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-top: 0.2rem; /* Reduced from 0.3rem */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Checkbox Styles - Fixed visibility and positioning */
.checkbox-group {
    margin-bottom: 1.5rem;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 8px 0;
    text-align: left;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    border: 2px solid #3498db;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    margin-top: 0;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.checkbox-container:hover .checkmark {
    border-color: #2980b9;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background-color: #3498db;
    border-color: #3498db;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

/* Text styling for checkbox labels */
.checkbox-container > span:not(.checkmark) {
    flex: 1;
    color: #2c3e50;
}

.privacy-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.privacy-link:hover {
    text-decoration: underline;
    color: #2980b9;
}

/* Ensure proper spacing for checkbox groups */
.form-group.checkbox-group {
    margin-bottom: 1.2rem;
}

.form-group.checkbox-group:last-of-type {
    margin-bottom: 1.8rem;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .checkbox-container {
        gap: 12px;
        font-size: 0.85rem;
        padding: 6px 0;
    }
    
    .checkmark {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
    }
    
    .checkbox-container input[type="checkbox"]:checked + .checkmark::after {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .checkbox-container {
        gap: 10px;
        font-size: 0.8rem;
    }
    
    .checkmark {
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
    }
    
    .checkbox-container input[type="checkbox"]:checked + .checkmark::after {
        font-size: 11px;
    }
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: none;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loader {
    display: inline;
}

/* Error Messages */
.error-message {
    display: block;
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 0.2rem; /* Reduced from 0.3rem */
    min-height: 0.8rem; /* Reduced from 1rem */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e74c3c;
}

/* Form Status Messages */
.form-status {
    margin-top: 0.8rem; /* Reduced from 1rem */
    padding: 0.8rem; /* Reduced from 1rem */
    border-radius: 8px;
    text-align: center;
    display: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Contact Page Font Consistency */
.contact-main,
.contact-main * {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* About Page Styles */
.about-main {
    margin-top: 70px;
    padding: 40px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

.about-intro {
    margin-bottom: 3rem;
}

.profile-section {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.profile-image {
    text-align: center;
}

.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #3498db;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.3);
}

.profile-info h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.intro-text {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.quick-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #3498db;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.about-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-section h3 i {
    color: #3498db;
}

.about-section p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.skill-category {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.skill-category h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category li {
    color: #7f8c8d;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.skill-category li::before {
    content: '▶';
    color: #3498db;
    position: absolute;
    left: 0;
}

.certifications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-3px);
}

.cert-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.cert-info h4 {
    color: #2c3e50;
    margin-bottom: 0.2rem;
}

.cert-info p {
    color: #7f8c8d;
    margin: 0;
    font-size: 0.9rem;
}

.hobbies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.hobby-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    color: #7f8c8d;
}

.hobby-item i {
    color: #3498db;
    font-size: 1.2rem;
}

.mission-statement {
    margin-top: 1rem;
}

.mission-statement blockquote {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
    position: relative;
}

.mission-statement blockquote::before {
    content: '"';
    font-size: 3rem;
    position: absolute;
    top: -10px;
    left: 15px;
    opacity: 0.5;
}

.cta-section {
    text-align: center;
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 3rem;
}

.cta-section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.cta-section p {
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Additional About Page Styles */
.experience-item {
    display: flex;
    gap: 1.5rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.company-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.experience-details h4 {
    color: #2c3e50;
    margin-bottom: 0.3rem;
    font-size: 1.2rem;
}

.experience-details .company {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.experience-details .duration {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.experience-details .description {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.education-item {
    display: flex;
    gap: 1rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.edu-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.edu-info h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.edu-info p {
    color: #7f8c8d;
    margin: 0;
    line-height: 1.5;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    color: #7f8c8d;
    transition: transform 0.3s ease;
}

.tool-item:hover {
    transform: translateY(-2px);
    background: #e9ecef;
}

.tool-item i {
    color: #3498db;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.interests {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.interest-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    color: #7f8c8d;
}

.interest-item i {
    color: #3498db;
    font-size: 1.2rem;
}

/* Responsive adjustments for new elements */
@media screen and (max-width: 768px) {
    .experience-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .education-grid,
    .tools-grid,
    .interests {
        grid-template-columns: 1fr;
    }
}

/* Blog Post Styles */
.blog-post-main {
    margin-top: 70px;
    padding: 40px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.blog-post {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.post-header {
    padding: 2.5rem 2.5rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: white;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.post-meta span i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
}

/* Alternative style - if you prefer solid background */
.post-meta-alt span {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mobile responsive adjustments */
@media screen and (max-width: 768px) {
    .post-meta {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
    
    .post-meta span {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .post-meta {
        gap: 0.5rem;
    }
    
    .post-meta span {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        gap: 0.3rem;
    }
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.4;
    margin: 0;
}

/* Blog Post Content - More Compact Spacing */
.post-content {
    padding: 2rem;
    line-height: 1.6;
    color: #2c3e50;
}

.post-content h2 {
    color: #2c3e50;
    margin: 1.5rem 0 0.8rem;
    font-size: 1.8rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.3rem;
}

.post-content h3 {
    color: #2c3e50;
    margin: 1.2rem 0 0.6rem;
    font-size: 1.4rem;
}

.post-content h4 {
    color: #2c3e50;
    margin: 1rem 0 0.4rem;
    font-size: 1.2rem;
}

.post-content p {
    margin-bottom: 0.8rem;
    color: #555;
    line-height: 1.6;
}

.post-content ol,
.post-content ul {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.3rem;
    color: #555;
    line-height: 1.5;
}

.featured-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 0.3rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.image-caption {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-style: italic;
    text-align: center;
    margin-bottom: 1.5rem;
}

.highlight-box {
    gap: 0.5rem;
}

.highlight-box ul {
    margin-bottom: 0;
}

.highlight-box li {
    margin-bottom: 0.4rem;
}

.use-case {
    background: #f8f9fa;
    padding: 1.2rem;
    margin: 1.2rem 0;
    border-radius: 8px;
    border-left: 4px solid #2ecc71;
}

.use-case h4 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.use-case p {
    margin-bottom: 0;
}

.code-block {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1.2rem;
    border-radius: 8px;
    margin: 1.2rem 0;
    overflow-x: auto;
}

.code-block h4 {
    color: #ecf0f1;
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.pro-tip {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-left: 4px solid #f39c12;
    padding: 1.2rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.pro-tip h4 {
    color: #b7950b;
    margin-top: 0;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pro-tip p {
    margin-bottom: 0;
}

.call-to-action {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    margin: 1.5rem 0;
}

.call-to-action h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.call-to-action p {
    color: white;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.post-footer {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.post-tags {
    margin-bottom: 1rem;
}

.post-tags h4 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.post-tags .tag {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 0.2rem 0.4rem 0.2rem 0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.post-tags .tag:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* Alternative color scheme for tags */
.post-tags .tag:nth-child(2n) {
    background: #e74c3c;
}

.post-tags .tag:nth-child(2n):hover {
    background: #c0392b;
}

.post-tags .tag:nth-child(3n) {
    background: #2ecc71;
}

.post-tags .tag:nth-child(3n):hover {
    background: #27ae60;
}

.post-tags .tag:nth-child(4n) {
    background: #f39c12;
}

.post-tags .tag:nth-child(4n):hover {
    background: #e67e22;
}

.post-tags .tag:nth-child(5n) {
    background: #9b59b6;
}

.post-tags .tag:nth-child(5n):hover {
    background: #8e44ad;
}

/* Mobile responsive tags */
@media screen and (max-width: 768px) {
    .post-tags .tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        margin: 0.1rem 0.2rem 0.1rem 0;
    }
}

/* Blog Page Sidebar Tags - Same styling as blog post tags */
.tag-cloud .tag {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    margin: 0.2rem 0.4rem 0.2rem 0;
    font-weight: 500;
}

.tag-cloud .tag:hover {
    background: #2980b9;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* Same color variations as blog post tags */
.tag-cloud .tag:nth-child(2n) {
    background: #e74c3c;
}

.tag-cloud .tag:nth-child(2n):hover {
    background: #c0392b;
}

.tag-cloud .tag:nth-child(3n) {
    background: #2ecc71;
}

.tag-cloud .tag:nth-child(3n):hover {
    background: #27ae60;
}

.tag-cloud .tag:nth-child(4n) {
    background: #f39c12;
}

.tag-cloud .tag:nth-child(4n):hover {
    background: #e67e22;
}

.tag-cloud .tag:nth-child(5n) {
    background: #9b59b6;
}

.tag-cloud .tag:nth-child(5n):hover {
    background: #8e44ad;
}

.tag-cloud .tag:nth-child(6n) {
    background: #1abc9c;
}

.tag-cloud .tag:nth-child(6n):hover {
    background: #16a085;
}

.tag-cloud .tag:nth-child(7n) {
    background: #34495e;
}

.tag-cloud .tag:nth-child(7n):hover {
    background: #2c3e50;
}

.tag-cloud .tag:nth-child(8n) {
    background: #e67e22;
}

.tag-cloud .tag:nth-child(8n):hover {
    background: #d35400;
}

/* Mobile responsive for sidebar tags */
@media screen and (max-width: 768px) {
    .tag-cloud .tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        margin: 0.1rem 0.2rem 0.1rem 0;
    }
}

:root {
    --tag-color-1: #3498db;
    --tag-color-2: #e74c3c;
    --tag-color-3: #2ecc71;
    --tag-color-4: #f39c12;
    --tag-color-5: #9b59b6;
    --tag-color-6: #1abc9c;
    --tag-color-7: #34495e;
    --tag-color-8: #e67e22;
}

/* Simplified tag styling */
.tag-cloud .tag,
.post-tags .tag {
    display: inline-block;
    background: var(--tag-color-1);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0.2rem 0.4rem 0.2rem 0;
    font-weight: 500;
}

/* Use CSS custom properties for colors */
.tag-cloud .tag:nth-child(2n) { background: var(--tag-color-2); }
.tag-cloud .tag:nth-child(3n) { background: var(--tag-color-3); }
.tag-cloud .tag:nth-child(4n) { background: var(--tag-color-4); }
.tag-cloud .tag:nth-child(5n) { background: var(--tag-color-5); }
.tag-cloud .tag:nth-child(6n) { background: var(--tag-color-6); }
.tag-cloud .tag:nth-child(7n) { background: var(--tag-color-7); }
.tag-cloud .tag:nth-child(8n) { background: var(--tag-color-8); }

/* Simplified hover states */
.tag-cloud .tag:hover,
.post-tags .tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    filter: brightness(0.9);
}