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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Home Section */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 0;
    margin: 0;
}

.home-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.home-text {
    flex: 1;
    text-align: left;
}

.home-text h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.2;
}

.tagline {
    font-size: 1.8rem;
    color: #34495e;
    max-width: 800px;
    line-height: 1.4;
    font-weight: 400;
}

.home-text p {
    font-size: 1.5rem;
    color: #34495e;
    max-width: 600px;
}

.home-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    max-width: 100%;
    height: auto;
    max-height: 80vh;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    object-fit: cover;
}

.profile-image:hover {
    transform: scale(1.02);
}

/* Responsive Design for Home Section */
@media (max-width: 1024px) {
    .home-content {
        gap: 2rem;
        padding: 0 20px;
    }
    
    .home-text h1 {
        font-size: 2.8rem;
    }
    
    .home-text p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .home-content {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    
    .home-text {
        text-align: center;
    }
    
    .home-text h1 {
        font-size: 2.5rem;
    }
    
    .profile-image {
        max-width: 90%;
        max-height: 60vh;
    }
}

/* Navbar */
.navbar {
    background-color: #007bff;
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        right: 1rem;
        top: 1rem;
    }

    .navbar {
        padding: 1rem;
    }

    .navbar ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #007bff;
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }

    .navbar ul.active {
        display: flex;
    }

    .navbar li {
        margin: 0.5rem 0;
    }

    .navbar a {
        padding: 0.8rem;
        justify-content: center;
        width: 100%;
    }

    body {
        padding-top: 60px;
    }
}

/* Contact Section */
#contact {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 120px 20px;
}

.contact-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info {
    flex: 1;
    padding-right: 40px;
    border-right: 1px solid #eee;
}

.contact-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.contact-info p {
    font-size: 1.2rem;
    color: #34495e;
    margin-bottom: 2rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.contact-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #34495e;
}

.contact-list strong {
    color: #2c3e50;
    margin-right: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    justify-content: center;
    align-items: center;
}

.social-link {
    color: #2c3e50;
    font-size: 2rem;
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f8f9fa;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-link:nth-child(1):hover { color: #333; } /* GitHub */
.social-link:nth-child(2):hover { color: #0077b5; } /* LinkedIn */
.social-link:nth-child(3):hover { color: #000000; } /* X (Twitter) */
.social-link:nth-child(4):hover { color: #e4405f; } /* Instagram */

.contact-form {
    flex: 1;
}

.contact-form h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #34495e;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

.submit-btn {
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #0056b3;
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        padding: 20px;
    }
    
    .contact-info {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .contact-info h1,
    .contact-form h2 {
        font-size: 2rem;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-link {
        font-size: 1.8rem;
        width: 45px;
        height: 45px;
    }
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: auto;
}

/* Styling for Content */
section {
    min-height: 100vh;
    padding: 120px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

section h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

section p {
    font-size: 1.2em;
    max-width: 600px;
    line-height: 1.6;
}

/* Add smooth transition for sections */
.section {
    padding: 40px 0;
    transition: all 0.3s ease;
}

/* Add hover effect for sections */
.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Page Styles */
.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.contact-info, .contact-form {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.contact-list strong {
    color: #007bff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info, .contact-form {
        width: 100%;
    }
}

/* Contact Form Styles */
.contact-form-container {
    max-width: 400px;
    margin: 120px auto 40px;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-form-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 32px;
    font-weight: normal;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 16px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-field textarea {
    height: 120px;
    resize: vertical;
}

button[type="submit"] {
    width: 100px;
    padding: 12px;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #3367d6;
}

/* Shop Section */
#shop {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 120px 20px;
}

.shop-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.shop-container h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.shop-container p {
    font-size: 1.2rem;
    color: #34495e;
}

@media (max-width: 768px) {
    .navbar ul {
        gap: 1rem;
        padding: 0.5rem;
    }
    
    .navbar a {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Blog Section */
#blogs {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 120px 20px;
}

.blogs-container {
    max-width: 1200px;
    width: 95%;
    margin: 0 auto;
    padding: 1rem;
}

.blogs-container h1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
}

/* Ensure proper blog post ordering */
.blog-post[data-date="2024-04-14"] {
    order: 1;
}

.blog-post[data-date="2024-04-15"] {
    order: 2;
}

.blog-post[data-date="2024-04-16"] {
    order: 3;
}

.blog-post {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    position: relative;
    background-color: #f5f5f5;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

.blog-post:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 2.5rem;
    text-align: left;
}

.blog-content h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    text-align: left;
}

.blog-excerpt {
    color: #444;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: justify;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0056b3;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Blog Meta Styles */
.blog-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

.blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background-color: #f8f9fa;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.blog-meta span:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.blog-meta i {
    color: #007bff;
    font-size: 1rem;
}

.blog-meta .date {
    background-color: #f8f9fa;
    color: #666;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-meta .date i {
    color: #007bff;
    margin-right: 0.5rem;
}

.blog-meta .date:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.blog-meta .category {
    background-color: #f8f9fa;
    color: #666;
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blogs-container {
        padding: 1rem;
    }
    
    .blog-content {
        padding: 1.8rem;
    }
    
    .blog-content h2 {
        font-size: 1.8rem;
    }
    
    .blog-excerpt,
    .article-content p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .blog-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .blog-meta span {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .blog-meta .date,
    .blog-meta .category {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

/* Full Article Styles */
.full-article {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.full-article h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    color: #666;
    font-size: 1rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta i {
    color: #007bff;
}

.article-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    padding: 2rem;
    display: block;
    visibility: visible;
}

.article-content.visible {
    display: block;
    visibility: visible;
}

.blog-preview.hidden {
    display: none;
    opacity: 0;
}

.article-content h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 2.5rem 0 1.2rem;
    line-height: 1.4;
    text-align: left;
}

.article-content p {
    margin-bottom: 1.8rem;
    text-align: justify;
}

.article-content ul {
    margin: 1.5rem 0 2rem;
    padding-left: 2rem;
    text-align: left;
}

.article-content li {
    margin-bottom: 1rem;
    line-height: 1.7;
    text-align: left;
}

.article-content strong {
    color: #2c3e50;
}

@media (max-width: 768px) {
    .full-article {
        margin: 2rem auto;
        padding: 1.5rem;
    }
    
    .full-article h2 {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .article-content h3 {
        font-size: 1.5rem;
    }
}

/* Coming Soon Section */
.coming-soon {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.coming-soon h3 {
    font-size: 2.5em;
    color: #ff6b6b;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.coming-soon p {
    color: #666;
    font-size: 1.2em;
}

/* AdSense Container */
.ad-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 0.5rem;
        position: fixed;
        top: 0;
        width: 100%;
        background-color: #007bff;
        z-index: 1000;
    }

    .navbar ul {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .navbar li {
        margin: 0;
        padding: 0;
    }

    .navbar a {
        padding: 0.5rem;
        font-size: 0.9rem;
        display: block;
        text-align: center;
    }

    /* Adjust content padding to account for fixed navbar */
    body {
        padding-top: 60px;
    }

    section {
        padding-top: 20px;
    }

    /* Ensure content starts below navbar */
    #home, #about, #blogs, #shop, #contact {
        margin-top: 0;
        padding-top: 20px;
    }

    /* Home Section */
    #home {
        padding-top: 100px !important;
    }

    .home-content {
        flex-direction: column;
        text-align: center;
        padding: 10px;
        gap: 2rem;
    }

    .home-text h1 {
        font-size: 2em;
        margin-bottom: 0.5rem;
    }

    .tagline {
        font-size: 1.2em;
    }

    .home-image {
        width: 100%;
        padding: 0 20px;
    }

    .profile-image {
        max-width: 200px;
        margin: 0 auto;
    }

    /* Blog Section */
    .blog-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .blog-post {
        margin: 0 0 20px 0;
    }

    /* Contact Section */
    .contact-container {
        padding: 15px;
        margin: 15px;
    }

    .contact-info, 
    .contact-form {
        padding: 15px;
    }

    /* AdSense Container */
    .ad-container {
        margin: 10px -15px;
        padding: 10px;
        border-radius: 0;
    }
}

/* Additional mobile-specific adjustments */
@media screen and (max-width: 480px) {
    .navbar a {
        font-size: 0.8rem;
        padding: 0.4rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .blog-post {
        margin-bottom: 1.5rem;
    }
}

/* Blogs Preview Section */
.blogs-preview {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 800px;
}

.blogs-preview p {
    font-size: 1.2em;
    color: #2c3e50;
    margin-bottom: 30px;
}

.view-all-blogs {
    display: inline-block;
    padding: 15px 30px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: 2px solid #007bff;
}

.view-all-blogs:hover {
    background: transparent;
    color: #007bff;
    transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
    .blogs-preview {
        margin: 20px 15px;
        padding: 30px 15px;
    }

    .blogs-preview p {
        font-size: 1.1em;
    }

    .view-all-blogs {
        padding: 12px 25px;
        font-size: 1em;
    }
}

/* About Section */
#about {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 120px 20px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    text-align: center;
}

.about-text p {
    font-size: 1.2rem;
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 20px;
}

.education-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.education-info p {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.5;
}

.passions-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.passions-section h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.passions-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.passions-section li {
    font-size: 1.2rem;
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-left: 30px;
    position: relative;
}

.passions-section li:before {
    content: "•";
    color: #007bff;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -2px;
}

@media (max-width: 768px) {
    .about-content {
        padding: 20px;
        margin: 20px;
    }

    .about-text p {
        font-size: 1rem;
    }

    .education-info p {
        font-size: 0.95rem;
    }

    .passions-section h2 {
        font-size: 1.5rem;
    }

    .passions-section li {
        font-size: 1.1rem;
    }
}

/* GitHub Repositories Section */
.github-repos {
    margin-top: 40px;
}

.github-repos h2 {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 30px;
}

.repo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.repo-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.repo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.repo-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.repo-card p {
    color: #34495e;
    margin-bottom: 20px;
    line-height: 1.6;
}

.repo-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #666;
}

.repo-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.repo-meta i {
    color: #007bff;
}

.repo-link {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.repo-link:hover {
    background: #0056b3;
}

@media (max-width: 768px) {
    .about-content {
        padding: 20px;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .about-text .tagline {
        font-size: 1.2rem;
    }
    
    .repo-grid {
        grid-template-columns: 1fr;
    }
    
    .repo-card {
        padding: 20px;
    }
}

.comments-section {
    margin: 2rem 0;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.comments-section h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.comment-form {
    margin-bottom: 2rem;
}

.comment-form .form-group {
    margin-bottom: 1rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.comment-form textarea {
    min-height: 100px;
    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #007bff;
}

.submit-comment {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-comment:hover {
    background-color: #0056b3;
}

.comments-list {
    margin-top: 2rem;
}

.comment {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.comment-header strong {
    color: #2c3e50;
    font-size: 1.1rem;
}

.comment-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.comment-content {
    color: #4a5568;
    line-height: 1.6;
}

@media screen and (max-width: 768px) {
    .comments-section {
        padding: 1rem;
        margin: 1rem 0;
    }

    .comment {
        padding: 1rem;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.blog-tags {
    margin: 2rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.blog-tags span {
    background-color: #f0f2f5;
    color: #2c3e50;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    cursor: pointer;
    font-weight: 500;
}

.blog-tags span:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.book-recommendation {
    text-align: center;
    margin: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.amazon-button {
    display: inline-block;
    text-decoration: none;
}

.amazon-button-inner {
    background-color: #4285f4;
    color: white;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 20px 0;
    display: inline-block;
}

.amazon-button:hover .amazon-button-inner {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#single-blog {
    min-height: 100vh;
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

#single-blog .blogs-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

#single-blog .blog-post.single {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: visible;
    margin-top: 2rem;
}

#single-blog .blog-image {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
}

#single-blog .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#single-blog h2 {
    font-size: 2.8rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

#single-blog .blog-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

#single-blog .blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-radius: 20px;
    color: #666;
    font-size: 0.95rem;
}

#single-blog .blog-meta i {
    color: #007bff;
}

#single-blog .article-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    padding: 2rem;
    display: block;
    visibility: visible;
}

#single-blog .article-content p {
    margin-bottom: 2rem;
    text-align: justify;
}

#single-blog .article-content h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin: 3rem 0 1.5rem;
}

#single-blog .article-content ul {
    margin: 2rem 0;
    padding-left: 2rem;
}

#single-blog .article-content li {
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

#single-blog .article-content strong {
    color: #2c3e50;
    font-weight: 600;
}

#single-blog .blog-tags {
    margin: 3rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

#single-blog .blog-tags span {
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-radius: 20px;
    color: #666;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

#single-blog .blog-tags span:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-2px);
}

#single-blog .amazon-button-container {
    text-align: center;
    margin: 3rem 0;
}

#single-blog .amazon-button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#single-blog .amazon-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#single-blog .comments-section {
    margin-top: 4rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 12px;
}

#single-blog .comments-section h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

#single-blog .comment-form {
    margin-bottom: 2rem;
}

#single-blog .comment-form input,
#single-blog .comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#single-blog .comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

#single-blog .comment-form input:focus,
#single-blog .comment-form textarea:focus {
    outline: none;
    border-color: #007bff;
}

#single-blog .submit-comment {
    background-color: #007bff;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#single-blog .submit-comment:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

#single-blog .comment {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#single-blog .comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

#single-blog .comment-header strong {
    color: #2c3e50;
    font-size: 1.1rem;
}

#single-blog .comment-date {
    color: #6c757d;
    font-size: 0.9rem;
}

#single-blog .comment-content {
    color: #4a5568;
    line-height: 1.6;
}

@media (max-width: 768px) {
    #single-blog .blogs-container {
        width: 100%;
        padding: 0;
    }
    
    #single-blog .blog-content {
        padding: 1rem;
    }

    #single-blog h2 {
        font-size: 2rem;
    }

    #single-blog .blog-image {
        height: 250px;
    }

    #single-blog .article-content {
        font-size: 1.1rem;
    }

    #single-blog .article-content h3 {
        font-size: 1.6rem;
        margin: 2rem 0 1rem;
    }

    #single-blog .blog-meta {
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    #single-blog .comments-section {
        padding: 1.5rem;
        margin-top: 3rem;
    }
}

/* About Page Styles */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Profile Section */
.profile-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.profile-image {
    flex: 0 0 300px;
}

.profile-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.profile-info .tagline {
    font-size: 1.4rem;
    color: #34495e;
    margin-bottom: 2rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007bff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #007bff;
    color: white;
    transform: translateY(-5px);
}

/* Section Styles */
.about-section, .skills-section, .experience-section, .education-section,
.certifications-section, .interests-section, .github-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-section h2, .skills-section h2, .experience-section h2,
.education-section h2, .certifications-section h2, .interests-section h2,
.github-section h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-section h2 i, .skills-section h2 i, .experience-section h2 i,
.education-section h2 i, .certifications-section h2 i, .interests-section h2 i,
.github-section h2 i {
    color: #007bff;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.skill-category {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #444;
}

.skill-category li i {
    color: #28a745;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% - 100px); /* Reduce height to stop before last item */
    background: #007bff;
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
    width: 100%;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-date {
    position: absolute;
    left: -65px;
    background: #007bff;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.timeline-content {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin-left: 20px;
}

.timeline-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.timeline-content .company {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
}

.timeline-content li {
    margin-bottom: 10px;
    color: #444;
    position: relative;
    padding-left: 20px;
}

.timeline-content li::before {
    content: '•';
    color: #007bff;
    position: absolute;
    left: 0;
}

/* Education */
.education-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
}

.education-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.education-item .institution {
    color: #007bff;
    font-weight: 500;
    margin-bottom: 5px;
}

.education-item .year {
    color: #666;
    margin-bottom: 15px;
}

/* Certifications */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.certification-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.certification-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.certification-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.certification-item p {
    color: #666;
}

.cert-date {
    color: #007bff;
    font-weight: 500;
    margin-top: 10px;
}

/* Interests */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.interest-item {
    text-align: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.interest-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.interest-item i {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 15px;
}

.interest-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.interest-item p {
    color: #666;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .skills-grid, .interests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .profile-image {
        flex: 0 0 200px;
    }

    .social-links {
        justify-content: center;
    }

    .skills-grid, .certifications-grid, .interests-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-date {
        position: relative;
        left: 0;
        margin-bottom: 10px;
        display: inline-block;
    }

    .timeline-content {
        margin-left: 0;
    }

    .about-section, .skills-section, .experience-section,
    .education-section, .certifications-section, .interests-section,
    .github-section {
        padding: 20px;
    }
}

/* Passions Section */
#passions {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 120px 20px;
}

.passions-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.passions-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.passions-list li {
    font-size: 1.2rem;
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-left: 30px;
    position: relative;
}

.passions-list li:before {
    content: "•";
    color: #007bff;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -2px;
}

@media (max-width: 768px) {
    .passions-content {
        padding: 20px;
        margin: 20px;
    }

    .passions-list li {
        font-size: 1.1rem;
    }
}

.education-timeline {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.education-timeline h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% - 100px); /* Reduce height to stop before last item */
    background: #007bff;
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
    width: 100%;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-content {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    position: relative;
    margin: 0 auto;
    width: 80%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.timeline-content p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.degree-icon {
    font-size: 2rem;
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }

    .degree-icon {
        left: 10px;
    }

    .education-timeline h2 {
        font-size: 1.5rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }
}

.projects-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    text-align: center;
}

.projects-section h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.projects-section p {
    font-size: 1.2rem;
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .projects-section {
        padding: 20px;
        margin-top: 30px;
    }

    .projects-section h2 {
        font-size: 1.5rem;
    }

    .projects-section p {
        font-size: 1.1rem;
    }
}

/* Modern Comment Section Styles */
.modern-comments-section {
    background-color: #f8f9fa;
    padding: 60px;
    border-radius: 20px;
    margin: 40px 0;
}

.modern-comments-section h3 {
    font-size: 3rem;
    color: #2d3748;
    margin-bottom: 40px;
    font-weight: 600;
}

.modern-comment-form {
    max-width: 800px;
    margin: 0 auto;
}

.modern-form-group {
    margin-bottom: 30px;
}

.modern-form-group input,
.modern-form-group textarea {
    width: 100%;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    color: #4a5568;
}

.modern-form-group textarea {
    min-height: 200px;
    resize: vertical;
}

.modern-submit-button {
    background-color: #4285f4;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    font-weight: 500;
    display: block;
    margin: 30px auto 0;
}

.modern-submit-button:hover {
    background-color: #3b7de2;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}
