/* --- General Styles --- */

/* === START SLIDING FIX === */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
/* === END SLIDING FIX === */

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: #0f172a;
    background-image: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    color: #cbd5e1;
    line-height: 1.8;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0; /* <-- Waapas original padding par hai */
}

/* --- Header / Navigation Bar (Sticky Update) --- */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-weight: 700;
    font-size: 1.6rem;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    z-index: 1000;
}
.logo img {
    height: 40px;
    margin-right: 10px;
}
.logo span {
    display: block;
}
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center; /* NAYA: Ise add kiya taaki rating center mein rahe */
}
.nav-links li {
    margin-left: 30px;
}
.nav-links li a {
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-links li a:hover {
    color: #7c3aed;
}

/* === NAYA CODE: NAVBAR RATING === */
.nav-rating {
    /* margin-left: 30px; <-- YEH LINE HATA DI GAYI HAI */
    padding: 8px 12px;
    background-color: rgba(30, 41, 59, 0.7);
    border: 1px solid #334155;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}
.nav-rating .star {
    color: #facc15; /* Yellow star */
    margin-right: 5px;
    font-size: 1.1rem;
}
.nav-rating .count {
    color: #64748b;
    margin-left: 5px;
}
/* === NAYA CODE KHATAM === */


/* --- Hamburger Menu Icon --- */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1000;
}
.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- Hero Section (Homepage) (Hero Image Update) --- */
.hero {
    text-align: center;
    padding: 100px 0; /* Iski padding alag se rehti hai */
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1; 
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.6); 
    z-index: 1;
}
.hero .container {
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}
.hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 35px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}
.hero .highlight {
    background: linear-gradient(90deg, #38bdf8, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, #38bdf8, #8b5cf6);
    color: #fff;
    padding: 16px 40px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 20px rgba(124, 58, 237, 0.3);
    cursor: pointer; /* Buttons ke liye cursor add kiya */
}
.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4);
}
/* Update 1: Hero Secondary Button */
.hero .cta-button.secondary {
    background: transparent;
    border: 2px solid #cbd5e1;
    color: #cbd5e1;
    margin-left: 15px;
    box-shadow: none;
}
.hero .cta-button.secondary:hover {
    background: #cbd5e1;
    color: #0f172a; /* Dark background color */
}


/* --- Features Section (Homepage) --- */
h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
    font-weight: 700;
    color: #ffffff;
}
.features-grid {
    display: flex;
    justify-content: center;
    gap: 30px; /* Updated to 30px */
    flex-wrap: wrap; 
}
.features-grid > a {
    flex: 1;
    min-width: 280px;
    text-decoration: none;
    color: inherit;
}
/* Update 2: Section Subtitles */
.section-subtitle {
    font-size: 1.15rem;
    color: #94a3b8; /* Lighter text */
    text-align: center;
    margin-top: -30px; /* Pulls it closer to the heading */
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- AI Bot Section (Homepage) --- */
.ai-bot-section {
    text-align: center; 
}

/* ================================================================
=== COMBINED CARD STYLES (Roadmap & Feature Cards) ===
================================================================
*/
.roadmaps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.roadmap-card, .feature-card {
    background-color: rgba(30, 41, 59, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #cbd5e1;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
}
.roadmap-card:hover, .feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(167, 139, 250, 0.5);
}
.roadmap-card h3, .feature-card h3 {
    font-size: 1.6rem;
    color: #ffffff;
    font-weight: 700;
    margin: 0 0 10px 0;
}
.roadmap-card p, .feature-card p {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}
.roadmap-card img, .feature-card img {
    width: 100%;
    height: 180px; 
    border-radius: 0; 
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
/* === END COMBINED CARD STYLES === */


/* --- Blog Post Card Styles (Blog Page) --- */
.blog-section .container, 
.interview-prep-section .container, 
.resources-page-section .container {
    max-width: 900px;
}
.blog-post-card {
    background-color: rgba(30, 41, 59, 0.5);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}
.blog-post-card:hover {
    transform: translateY(-5px);
    border-color: rgba(167, 139, 250, 0.5);
}
.blog-post-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    color: #ffffff;
    font-weight: 700;
}
.blog-post-card p {
    margin: 0 0 20px 0;
    color: #94a3b8;
}
.read-more-btn {
    display: inline-block;
    color: #a78bfa;
    text-decoration: none;
    font-weight: 700;
}

/* --- Interview/Resources Page Styles --- */
.prep-section, .resource-section {
    background-color: rgba(30, 41, 59, 0.5);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
}
.prep-section h2, .resource-section h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-top: 0;
    text-align: left;
    border-bottom: none;
}
.prep-section ul {
    padding-left: 20px;
    font-size: 1.1rem;
}
.resource-section ul {
    padding-left: 0;
    list-style: none;
}
.resource-section ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.resource-section ul li:last-child {
    border-bottom: none;
}
.resource-section ul li a {
    font-size: 1.1rem;
    color: #a78bfa;
    text-decoration: none;
    font-weight: 500;
}

/* --- Roadmap Step Styles (Tutorial Pages) --- */
.roadmap-step {
    background-color: rgba(30, 41, 59, 0.5);
    padding: 25px 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 25px;
    transition: all 0.3s ease;
}
.roadmap-step:hover {
    transform: translateY(-3px);
    border-color: rgba(167, 139, 250, 0.5);
}
.step-number {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, #38bdf8, #8b5cf6);
    color: #fff;
    min-width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-content h3 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    color: #ffffff;
}
.step-content p {
    margin: 0;
    color: #94a3b8;
}

/* --- Content/Article Page Styles (Tutorials & Posts) --- */
.content-container .container,
.about-section .container {
    max-width: 800px;
}
.content-header h1, .post-header h1 {
    font-size: 2.8rem;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}
.content-meta, .post-meta {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 40px;
}
.content-body h2, .post-content h2, .about-content h2 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-top: 60px;
    text-align: left;
    border-bottom: 2px solid #38bdf8;
    padding-bottom: 10px;
}
.content-body h3, .post-content h3, .about-content h3 {
    font-size: 1.7rem;
    color: #e0e0e0;
    margin-top: 40px;
    border-left: 3px solid #8b5cf6;
    padding-left: 15px;
}
.content-body p, .post-content p, .about-content p,
.content-body ul, .post-content ul, .about-content ul,
.content-body ol {
    font-size: 1.1rem;
}
.content-body ul, .post-content ul, .about-content ul,
.content-body ol {
    padding-left: 25px;
}
.content-body li, .post-content li, .about-content li {
    margin-bottom: 10px;
}
.content-body code, .post-content code, .about-content code {
    background-color: #1e293b;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: monospace;
    border: 1px solid #334155;
    color: #f8fafc;
}
pre {
    background-color: #1e293b;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #334155;
    overflow-x: auto;
}
pre code {
    display: block;
    padding: 0;
    white-space: pre-wrap;
    background-color: transparent;
    border: none;
}
.note {
    background-color: rgba(30, 41, 59, 0.7);
    border-left: 4px solid #facc15;
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
}
.note strong {
    color: #facc15;
}

/* --- Page-Specific: Language Comparison --- */
.language-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}
.language-card {
    background-color: rgba(30, 41, 59, 0.7);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #334155;
}
.language-card h3 {
    font-size: 1.7rem;
    color: #ffffff;
    margin-top: 0;
    border-bottom: 2px solid;
    padding-bottom: 10px;
    border-left: none;
    padding-left: 0;
}
.python-card h3 { border-color: #fde047; }
.node-card h3 { border-color: #86efac; }

/* --- Responsive Design (Media Queries) --- */
@media (max-width: 768px) {
    .logo span {
        display: none;
    }
    
    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0;
        background-color: #1e293b;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center; 
        width: 60%;
        transform: translateX(100%);
        z-index: 999;
    }
    .nav-links li {
        margin-left: 0;
        opacity: 1; 
        margin: 25px 0; 
    }
    .nav-links li a { 
        font-size: 1.3rem;
    }

    /* YEH BLOCK HATA DIYA GAYA HAI
    .nav-rating {
        display: none; 
    }
    */

    .hamburger {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    h2 {
        font-size: 2.2rem;
    }
    .content-header h1, .post-header h1 {
        font-size: 2.2rem;
    }
    .features-grid {
        flex-direction: column;
    }
    .language-comparison {
        grid-template-columns: 1fr;
    }

    /* === START: NAYA MOBILE PADDING FIX === */
    .about-snippet,
    .community-cta,
    .philosophy-section {
        padding: 30px 25px; /* Top/Bottom 30px, Left/Right 25px */
    }
    .philosophy-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
    }
    .philosophy-content h2 {
        text-align: center;
    }
    /* === END: NAYA MOBILE PADDING FIX === */

    /* === START: Mobile Button Gap Fix === */
    .hero .cta-button.secondary {
        margin-top: 15px; /* Adds space above the second button on mobile */
        margin-left: 0; /* Removes side margin on mobile */
    }
    /* === END: Mobile Button Gap Fix === */
}

/* --- JS-Toggled Classes for Mobile Menu --- */
.nav-active {
    transform: translateX(0%);
}
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
    opacity: 0;
}
.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* --- Page-Specific Highlight Colors --- */
.js-highlight { background: linear-gradient(90deg, #fde047, #f97316); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.react-highlight { background: linear-gradient(90deg, #61DAFB, #00C8FF); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.git-highlight { background: linear-gradient(90deg, #F05033, #f97316); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.node-highlight { background: linear-gradient(90deg, #86efac, #22c55e); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ================================================================
=== PORTFOLIO & PROJECT IDEA CARD STYLES ===
================================================================
*/
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}
.project-card {
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(167, 139, 250, 0.5);
}
.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #334155;
}
.project-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.project-title {
    font-size: 1.6rem;
    color: #ffffff;
    font-weight: 700;
    margin: 0 0 10px 0;
}
.project-description {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}
.project-tags span {
    background-color: #334155;
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
}
.project-links {
    display: flex;
    gap: 15px;
}
.project-btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-align: center;
    flex-grow: 1;
    background: linear-gradient(90deg, #38bdf8, #8b5cf6);
    color: #fff;
    border: none;
}
.project-btn.github {
    background: transparent;
    color: #cbd5e1;
    border: 2px solid #334155;
}
.project-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.project-btn.github:hover {
    background: #334155;
    color: #fff;
}
.project-btn.disabled {
    background: #475569;
    opacity: 0.7;
    cursor: not-allowed;
}

/* --- Project Idea Card (no Image) --- */
.idea-card {
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.idea-card:hover {
    transform: translateY(-5px);
    border-color: rgba(167, 139, 250, 0.5);
}
.idea-card .project-links {
    display: grid;
}

/* --- START: Homepage 5 New Updates CSS --- */
.about-snippet {
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 50px;
    text-align: center;
}
.about-snippet h2 {
    margin-top: 0;
}
.about-snippet p {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 30px auto;
}
.about-snippet .cta-button {
    background: transparent;
    border: 2px solid #334155;
    color: #cbd5e1;
}
.about-snippet .cta-button:hover {
    background: #334155;
    color: #fff;
    box-shadow: none;
}
#latest-posts-container.blog-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1100px; 
}
#latest-posts-container .blog-post-card {
    margin-bottom: 0; 
}
.community-cta {
    text-align: center;
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 50px;
}
.community-cta h2 {
    margin-top: 0;
    font-size: 2.5rem;
}
.community-cta p {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 30px;
}
.philosophy-section {
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 50px;
}
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 40px;
    align-items: center;
}
.philosophy-image img {
    width: 100%;
    max-width: 100%; 
    height: auto; 
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block; 
}
.philosophy-content h2 {
    text-align: left;
    margin-top: 0;
    margin-bottom: 20px;
}
.philosophy-content p {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 20px;
}
.philosophy-content ul {
    list-style: none;
    padding-left: 0;
    font-size: 1.1rem;
}
.philosophy-content ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}
.philosophy-content ul li::before {
    content: '✔';
    color: #22c55e; 
    position: absolute;
    left: 0;
    top: 2px;
    font-weight: 700;
}
.tech-stack-section {
    padding-top: 40px;
    padding-bottom: 40px;
}
.tech-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 30px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}
.tech-logo {
    text-align: center;
    padding: 20px;
    background-color: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.tech-logo:hover {
    transform: translateY(-5px);
    border-color: rgba(167, 139, 250, 0.5);
}
.tech-logo img {
    height: 40px; 
    width: auto;
}
.tech-logo p {
    margin: 10px 0 0 0;
    font-weight: 500;
    color: #cbd5e1;
}
.text-center-container {
    text-align: center;
    margin-top: 40px;
}
.text-center-container .cta-button {
    background: transparent;
    border: 2px solid #334155;
    color: #cbd5e1;
    box-shadow: none;
}
.text-center-container .cta-button:hover {
    background: #334155;
    color: #fff;
}
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background-color: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    overflow: hidden; 
}
.faq-question {
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after {
    content: '+';
    font-size: 2rem;
    font-weight: 300;
    color: #a78bfa; 
    transition: transform 0.3s ease;
}
.faq-answer {
    max-height: 0; 
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer p {
    padding: 0 25px 20px 25px;
    margin: 0;
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.7;
}
.faq-item.active .faq-question::after {
    transform: rotate(45deg); 
}
.faq-item.active .faq-answer {
    max-height: 200px; 
    padding-top: 0;
}
/* --- END: Homepage 5 New Updates CSS --- */


/* ================================== */
/* === SCROLL & MENU FIXES === */
/* ================================== */

body.body-no-scroll {
    position: fixed;
    width: 100%;
    /* 'top' position will be set by JavaScript */
}

@media (max-width: 768px) {
    .nav-links {
        justify-content: center; 
    }
    .nav-links li {
        margin: 25px 0;
    }
    .nav-links li a {
        font-size: 1.3rem;
    }
}


/* ================================== */
/* === NAYA CODE: CONTACT PAGE STYLES === */
/* ================================== */

.contact-form-section .container {
    max-width: 700px; /* Form ko chhota rakhega */
}

.contact-form-section h2 {
    text-align: center;
}

.contact-form-section .section-subtitle {
    text-align: center;
    margin-bottom: 40px;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background-color: rgba(30, 41, 59, 0.7);
    border: 1px solid #334155;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box; /* Yeh layout ko fix karega */
}

.form-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

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

.contact-form .cta-button {
    width: 100%;
    font-size: 1.1rem;
}

.form-status-message {
    text-align: center;
    margin-top: 20px;
    font-weight: 500;
    display: none; /* Default hidden */
}

/* --- Rating Stars Style --- */
.form-rating {
    display: flex;
    flex-direction: row-reverse; /* Stars ko right se left karega */
    justify-content: flex-end; /* Left mein align karega */
}

.form-rating input[type="radio"] {
    display: none; /* Radio buttons ko chupa do */
}

.form-rating label {
    font-size: 2rem;
    color: #475569; /* Empty star color */
    cursor: pointer;
    margin: 0 3px;
    transition: color 0.2s ease;
}

.form-rating input[type="radio"]:hover ~ label,
.form-rating input[type="radio"]:checked ~ label {
    color: #facc15; /* Filled star color */
}
/* --- Project Difficulty Tags (FIXED) --- */
.project-tags .tag-difficulty {
    display: inline-flex;       /* Puraana: inline-block */
    align-items: center;       /* NAYA: Yeh text ko vertical center karega */
    justify-content: center;   /* NAYA: Yeh text ko horizontal center karega */
    
    padding: 4px 12px;
    font-size: 0.75rem; /* 12px */
    font-weight: 700;
    /* line-height: 1.25; <-- YEH LINE HATA DEIN */
    text-transform: uppercase;
    border-radius: 999px; /* Pill shape */
    margin-right: 6px;
}

/* Beginner - Green */
.project-tags .tag-beginner {
    background-color: #10b98130; 
    color: #34d399; 
}

/* Intermediate - Yellow/Orange */
.project-tags .tag-intermediate {
    background-color: #f59e0b30; 
    color: #f59e0b; 
}

/* Advanced - Red/Pink */
.project-tags .tag-advanced {
    background-color: #f43f5e30; 
    color: #f43f5e; 
}
        /* --- Hero Section Styles --- */
        .hero-section {
            padding: 100px 0 80px 0;
            background-color: #0f172a; /* Slightly lighter than main bg */
            border-bottom: 1px solid #1e293b;
            text-align: center; /* Center-align for mobile */
        }

        .hero-content {
            display: flex;
            flex-direction: column; /* Stack items vertically */
            align-items: center;
            gap: 20px;
        }
        
        .hero-image {
            width: 180px;
            height: 180px;
            border-radius: 50%; /* Makes it a circle */
            object-fit: cover;
            border: 5px solid #1e293b;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            margin-bottom: 10px;
        }

        .hero-text {
            max-width: 700px;
        }
        
        .hero-subtitle {
            font-size: 1.2rem;
            color: #94a3b8;
            font-weight: 500;
        }

        .hero-title {
            font-size: 3.2rem;
            color: #fff;
            margin: 10px 0;
        }

        /* This uses the .highlight class you already defined */
        
        .hero-description {
            font-size: 1.15rem;
            color: #cbd5e1;
            line-height: 1.7;
            margin-bottom: 30px;
        }

        .hero-buttons {
            display: flex;
            gap: 15px;
            justify-content: center;
            flex-wrap: wrap; /* Buttons stack on small screens */
        }

        /* Style for the secondary contact button */
        .cta-button.secondary {
            background: #334155;
            color: #e2e8f0;
        }
        .cta-button.secondary:hover {
            background: #475569;
        }

        /* Desktop view: side-by-side */
        @media (min-width: 768px) {
            .hero-section {
                text-align: left; /* Left-align on desktop */
            }
            
            .hero-content {
                flex-direction: row; /* Side-by-side */
                justify-content: space-between;
                gap: 40px;
            }

            .hero-text {
                flex: 2; /* Text takes more space */
            }

            .hero-image-container {
                flex: 1; /* Image takes less space */
                display: flex;
                justify-content: center;
                align-items: center;
            }

            .hero-buttons {
                justify-content: flex-start; /* Align buttons to the left */
            }

            .hero-image {
                width: 250px;
                height: 250px;
                margin-bottom: 0;
            }
        }
/* --- Blog Page Styles --- */

/* Highlight color for this page */
.highlight {
    background: linear-gradient(90deg, #f472b6, #a78bfa); /* Pink/Purple */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- 1. Featured Post Section --- */
.blog-featured {
    padding: 60px 0;
    background-color: #0f172a; /* Card background */
    border-bottom: 1px solid #1e293b;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr; /* Stacked on mobile */
    gap: 30px;
    align-items: center;
}

.featured-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #1e293b;
}

.featured-content .tag {
    display: inline-block;
    background-color: #a78bfa30;
    color: #c4b5fd;
    padding: 5px 15px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.featured-content h2 {
    font-size: 2.5rem;
    color: #fff;
    margin: 0 0 15px 0;
}

.featured-content p {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* --- 2. Blog List Section --- */
.blog-list-section {
    padding: 80px 0;
}

.blog-list-header {
    margin-bottom: 50px;
    text-align: center;
}

.blog-list-header h2 {
    font-size: 2.5rem;
    color: #fff;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 column on mobile */
    gap: 30px;
}

/* --- 3. Upgraded Blog Card --- */
.blog-post-card {
    background-color: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 12px;
    overflow: hidden; /* To contain the image */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.blog-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 25px;
}

.blog-card-tags {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.blog-card-tags .tag {
    display: inline-block;
    background-color: #334155;
    color: #94a3b8;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-card-content h3 {
    font-size: 1.5rem;
    color: #fff;
    margin: 0 0 10px 0;
}

.blog-card-content p {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more-btn {
    color: #c4b5fd;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}
.read-more-btn:hover {
    text-decoration: underline;
}

/* --- Media Queries for Grid --- */
@media (min-width: 768px) {
    .featured-card {
        grid-template-columns: 1.5fr 1fr; /* Image left, text right */
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    }
}
