 /* 1. CSS Variables & Theming */
        :root {
            --bg-color: #ffffff; /* Off-white */
            --text-color: #000000;
            --primary-color: #ff3300; /* Strong Red */
            --secondary-color: #2B2D42; /* Dark Blue/Grey for subtle text */
            --card-bg: #FFFFFF;
            --border-color: #000000;
            --shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
            --font-heading: 'Playfair Display', serif;
            --font-body: 'Poppins', sans-serif;
            --threejs-particle-color: 0x2B2D42;
        }
        html.dark {
            --bg-color: #000000;
            --text-color: #ffffff;
            --primary-color: #ff3300; /* Brighter Red for dark mode */
            --secondary-color: #adb5bd; /* Lighter Grey for subtle text */
            --card-bg: #000000;
            --border-color: #ffffff;
            --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            --threejs-particle-color: 0xffffff;
        }



        /* 2. Basic Reset & Global Styles */
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        html { scroll-behavior: smooth; font-size: 16px; }
        body { font-family: var(--font-body); background-color: var(--bg-color); color: var(--text-color); line-height: 1.7; transition: background-color 0.3s ease, color 0.3s ease; overflow-x: hidden; }

        /* 3. Typography */
        h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--primary-color); line-height: 1.2; margin-bottom: 1rem; }
        h1 { font-size: clamp(3rem, 6vw, 5rem); }
        h2 { font-size: clamp(2rem, 5vw, 3rem); text-align: center; margin-bottom: 3rem; }
        p { margin-bottom: 1.5rem; max-width: 70ch; }
        a { color: var(--primary-color); text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
        a:hover { opacity: 0.8; }

        /* 4. Utility Classes */
        .container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
        .section { padding: 6rem 0; overflow: hidden; }
        .btn { display: inline-block;  padding: 0.8rem 2.5rem; border-radius: 50px; font-weight: 600; transition: all 0.3s ease; border: none; box-shadow: 0 4px 15px rgba(217, 4, 41, 0.3); text-align: center; cursor: pointer; }
         .btn{background-color: #000000; color: white; border: 1px solid white;}
         html.dark .btn{background: var(--primary-color); color: white !important; border: none;  }
        .btn:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 8px 25px rgba(217, 4, 41, 0.4); }

        /* 5. Header & Navigation */
        .header { color: white ; position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 1.5rem 0; transition: all 0.4s ease;  background-color: rgb(0, 0, 0); border-bottom: 0.5px solid white;}
        .header.scrolled { background-color: rgba(255, 255, 255, 0.541); backdrop-filter: blur(10px); padding: 1rem 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); border-bottom: 0.5px solid black; }
        html.dark .header.scrolled { background-color: #ff33005b; border: none;}
        .navbar { display: flex; justify-content: space-between; align-items: center; }
        .logo { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: white; }
        .hero .logo, .hero .nav-link, .hero .theme-switch, .hero .hamburger { color: white; }
        .header.scrolled .logo, .header.scrolled .nav-link, .header.scrolled .theme-switch, .header.scrolled .hamburger { color: var(--text-color); }
        .nav-menu { list-style: none; display: flex; gap: 2.5rem; }
        .nav-link { font-weight: 500; transition: color 0.3s; }
        .nav-link:hover { color: var(--primary-color) !important; }
        .nav-actions { display: flex; align-items: center; gap: 1.5rem; }
        .theme-switch, .nav-link, .footer-link { cursor: pointer; }
        .theme-switch { font-size: 1.5rem; }
        .hamburger { display: none; cursor: pointer; font-size: 1.8rem; z-index: 1001; }

        /* 6. Hero Section */
        .hero { position: relative; height: 100vh; display: flex; align-items: center; color: white; text-align: left; }
        #hero-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; background-color: #1a1a1a; }
        html:not(.dark) #hero-canvas { background-color: var(--bg-color); }
        .hero-content { position: relative; z-index: 1; }
        html:not(.dark) .hero-content h1, html:not(.dark) .hero-content p { color: var(--primary-color); }
        
        .hero-content h1 { color: white; }
        .typing-text { font-size: clamp(1.2rem, 3vw, 1.5rem); color: #ffffff; min-height: 2.2rem; font-family: var(--font-body); }

        html.dark .typing-text { color: #9e9e9e }
        
         html:not(.dark) .hero-content p, .typing-text {color: #9e9e9e;}
        .typing-text .cursor { display: inline-block; width: 10px; height: 1.5rem; background-color: var(--primary-color); animation: blink 0.7s infinite; margin-left: 5px; vertical-align: middle; }
        @keyframes blink { 50% { opacity: 0; } }

        /* 7. About Section */
        .about-content { display: grid; grid-template-columns: 1fr 2fr; align-items: center; gap: 4rem; }
        .about-avatar { position: relative; cursor: pointer; justify-self: center; }
        .about-avatar img { width: 300px; height: auto; border-radius: 50%; object-fit: cover; border: 3px solid var(--card-bg); box-shadow: var(--shadow); transition: transform 0.3s ease; }
        .about-avatar:hover img { transform: scale(1.05); }
        .avatar-ring { position: absolute; top: 49%; left: 50%; width: 310px; height: 310px; border: 2px dashed var(--primary-color); border-radius: 50%; transform: translate(-50%, -50%); animation: spin 20s linear infinite; }
        @keyframes spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
        .about-text h3 { color: var(--text-color); font-family: var(--font-body); font-weight: 600; font-size: 1.5rem; }
        
        /* 8. Career Timeline */
        .timeline-container { position: relative; width: 100%; overflow-x: auto; padding: 2rem 0; scrollbar-width: thin; scrollbar-color: var(--primary-color) var(--card-bg); }
        .timeline-wrapper { position: relative; display: inline-block; padding: 0 2rem; }
        .timeline { display: flex; gap: 2rem; padding-top: 30px; }
        .timeline-item { position: relative; width: 300px; padding: 1.5rem; background: var(--card-bg); border-radius: 10px; box-shadow: var(--shadow); border-top: 4px solid var(--secondary-color); flex-shrink: 0;  border: 2px solid #ff33005b;}
        .timeline-item h4 { color: var(--text-color); font-family: var(--font-body); font-size: 1.1rem; }
        .timeline-item p { color: var(--secondary-color); font-size: 0.9rem; }
        .timeline-item:before { content: ''; position: absolute; top: -30px; left: 20px; width: 20px; height: 20px; background: var(--secondary-color); border-radius: 50%; border: 4px solid var(--bg-color); z-index: 1; }
        .timeline-line { position: absolute; top: 10px; left: 0; height: 2px; width: 100%; background: var(--border-color); }

        /* 9. Portfolio Section */
        .portfolio-filters { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
        .filter-btn { background: transparent; border: 1px solid var(--border-color); padding: 0.5rem 1.5rem; border-radius: 20px; transition: all 0.3s; color: var(--text-color); font-family: var(--font-body); font-size: 1rem; }
        .filter-btn.active, .filter-btn:hover { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }
        .project-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }
        .project-card { background-color: transparent; perspective: 1000px; transition: opacity 0.4s ease, transform 0.4s ease, width 0.4s, padding 0.4s, margin 0.4s; }
        .project-card.hide { opacity: 0; transform: scale(0.9); width: 0 !important; padding: 0 !important; margin: 0 !important; overflow: hidden; pointer-events: none; }
        .project-card-inner { position: relative; width: 100%; padding-top: 75%; text-align: center; transition: transform 0.6s; transform-style: preserve-3d; }
        .project-card:hover .project-card-inner { transform: rotateY(180deg); }
        .project-card-front, .project-card-back { position: absolute; top: 0; left: 0; width: 100%; height: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 15px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid white;}
        .project-card-front img { width: 100%; height: 100%; object-fit: cover; }
        .project-card-back { background: linear-gradient(45deg, var(--primary-color), #2B2D42); color: white; transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 1.5rem; }
        .project-card-back h3 { color: white; }
        .project-card-back .tech-stack { font-size: 0.9rem; margin: 0.5rem 0 1rem; color: #ddd; }
        .project-card-back .tech-stack a{ color: rgb(9, 255, 0)}
        /* 10. Skills & Achievements */
        .skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
        .skill-category { background: var(--card-bg); padding: 2rem; border-radius: 15px; box-shadow: var(--shadow); border: 2.5px solid rgb(223, 0, 0);}
        .skill-category i { font-size: 3rem; color: var(--primary-color); margin-bottom: 1rem; }
        .skill-category h3 { color: var(--text-color); font-family: var(--font-body); font-weight: 600; text-align: center; }
        .skill-category ul { list-style: none; line-height: 2; padding: 0; color: var(--secondary-color); text-align: center; }
        .achievements-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
        .achievement-card { display: flex; align-items: center; gap: 1.5rem; background: var(--card-bg); padding: 1rem; border-radius: 10px; box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s; color: var(--text-color); border: 2.5px solid rgb(223, 0, 0); }
        .achievement-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
        .achievement-image { width: 60px; height: 60px; border-radius: 8px; object-fit: contain; flex-shrink: 0; background-color: #f0f0f0; padding: 5px; }
        html.dark .achievement-image { background-color: #333; }
        .achievement-details h4 { color: var(--text-color); font-family: var(--font-body); font-size: 1.1rem; margin-bottom: 0.25rem; }
        .achievement-details p { margin-bottom: 0; font-size: 0.9rem; color: var(--secondary-color); }

        /* 11. Blog Section */
        .blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
        .blog-card { background: var(--card-bg); border-radius: 15px; overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s; color: var(--text-color); border: 2.5px solid rgb(223, 0, 0); }
        .blog-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
        html.dark .blog-card:hover { box-shadow: 0 15px 40px rgba(0,0,0,0.3); }
        .blog-card img { width: 100%; height: 200px; object-fit: cover; border-bottom: 1px solid red; }
        .blog-content { padding: 1.5rem; }
        .blog-meta { font-size: 0.9rem; color: var(--secondary-color); margin-bottom: 0.5rem; }
        .blog-content h3 { color: var(--primary-color); }
        .view-more-btn-container { text-align: center; margin-top: 3rem; }

        /* 12. Contact Section */
        .contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
        /* .contact-wrapper { display: flex; justify-content: center; text-align: center;  align-items: center; } */
        .contact-info h3 { color: var(--text-color); font-family: var(--font-body); font-weight: 600; }
        .contact-form .form-group { position: relative; margin-bottom: 2rem; }
        .contact-form input, .contact-form textarea { width: 100%; padding: 0.8rem 0; border: none; border-bottom: 2px solid var(--border-color); background: transparent; color: var(--text-color); font-family: var(--font-body); font-size: 1rem; transition: border-color 0.3s; }
        .contact-form input:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--primary-color); }
        .contact-form label { position: absolute; top: 0.8rem; left: 0; color: var(--secondary-color); transition: all 0.3s; pointer-events: none; }
        .contact-form input:focus + label, .contact-form input:valid + label, .contact-form textarea:focus + label, .contact-form textarea:valid + label { top: -1.2rem; font-size: 0.8rem; color: var(--primary-color); } 
        .contact-info .social-links a { font-size: 1.8rem; margin-right: 1.5rem; color: var(--text-color); }

        /* 13. Footer */
        /* 13. Footer - Improved Version */
.footer {
    background-color: var(--card-bg);
    /* Using Flexbox for a more robust vertical layout */
    display: flex;
    flex-direction: column; /* Stack children (links and paragraph) vertically */
    align-items: center;    /* Center the children horizontally */
    gap: 1.5rem;              /* Creates consistent space between the links and the text below */
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--border-color); /* Suggesting border-color for consistency, but --primary-color also works! */
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    /* margin-bottom is no longer needed because of the 'gap' in the parent .footer */
}

.footer-links a {
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s ease; /* Added a smooth transition for hover */
}

.footer-links a:hover {
    color: var(--primary-color); /* Added a hover effect for better UX */
}

.footer p {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin: 5px; /* Removes any default bottom margin from the paragraph */
}

        /* 14. MODAL STYLES */
        .modal { position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
        .modal.show { opacity: 1; visibility: visible; }
        .modal-content { background: var(--card-bg); color: var(--text-color); padding: 2rem; border-radius: 10px; width: 90%; max-width: 900px; max-height: 90vh; overflow-y: auto; position: relative; transform: translateY(-50px); transition: transform 0.4s ease; }
        .modal.show .modal-content { transform: translateY(0); }
        .close-modal { position: absolute; top: 1rem; right: 1.5rem; font-size: 2.5rem; cursor: pointer; color: var(--text-color); line-height: 1; }
        .modal-body h2 { text-align: center; }
        .modal-body img { width: 100%; border-radius: 8px; margin-bottom: 1rem; }
        .modal-body .btn-group { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
        .legal-content { max-width: 800px; margin: 1rem auto; }
        .legal-content h3 { color: var(--text-color); font-family: var(--font-body); margin-top: 2rem; }

        /* 15. Responsive Design */
        @media (max-width: 992px) { .about-content, .contact-wrapper { grid-template-columns: 1fr; text-align: center; } }
        @media (max-width: 768px) {
            .nav-menu { position: fixed; top: 0; right: 0; width: 100%; height: 100vh; background: var(--card-bg); flex-direction: column; justify-content: center; align-items: center; gap: 2rem; clip-path: circle(0% at top right); transition: clip-path 0.5s ease-in-out; }
            .nav-menu.active { clip-path: circle(150% at top right); }
            .nav-menu .nav-link { font-size: 1.5rem; color: var(--text-color); }
            .hamburger { display: block; }
            .modal-content { padding: 1.5rem; }
            .close-modal { top: 0.5rem; right: 1rem; }
        }





   #typing-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* allow scrolling & clicks */
  z-index: 0;
}




   /* MODAL STYLES
  Link this in the <head> of your main HTML file.
*/

/* The dark background overlay */
.modal-overlay {
    visibility: hidden; /* Hidden by default */
    opacity: 0;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* The active/visible state for the overlay */
.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* The main modal pop-up box */
.modal-content {
    background: #1C1C1C; /* Modern dark "surface" color */
    color: #F5F5F5;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #333;
    width: 90%;
    max-width: 600px; /* Max width for the modal */
    max-height: 90vh; /* Max height */
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    
    /* Transition for the "pop" effect */
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Active state for the content box */
.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* The 'X' close button */
.modal-close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.6rem;
    background: transparent;
    

    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close-btn:hover {
    color: #FFF;
    transform: scale(1.1);
}

/* Class to stop the main page from scrolling when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Content styling inside the modal
*/
.modal-project-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #333;
}

.modal-project-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #FFF;
}

.modal-project-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #CCC;
    margin-bottom: 1.5rem;
}

.modal-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.modal-project-tags .tag {
    background: #333;
    color: #EEE;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
}

.modal-project-links {
    display: flex;
    gap: 1rem;
}

.modal-project-links a {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* "View Code" button */
.modal-project-links .btn-code {
    background: transparent;
    color: white;
    border: 1px solid #ffffff;

}
.modal-project-links .btn-code:hover {
     background: var(--primary-color);
    border-color: white;

}

/* "Live Demo" button */
.modal-project-links .btn-demo {
   

     background: var(--primary-color); /* Your red color */
    color: #FFF;
}
.modal-project-links .btn-demo:hover {
  

     background: var(--primary-color); /* Darker red */
    border: 1px solid white;
}












.policy-container {
            max-width: 850px;
            margin: 2rem auto;
            margin-top: 5rem;
            padding: 3rem;
            background-color: var(--card-bg);
            border-radius: 15px;
            box-shadow: var(--shadow);
            border-top: 5px solid var(--primary-color);
        }

        /* 4. Typography */
        .policy-container h1, h2, h3 {
            font-family: var(--font-heading);
            color: var(--primary-color);
            line-height: 1.3;
            margin-bottom: 1rem;
        }

        .policy-container h1 {
            font-size: clamp(2.5rem, 5vw, 3.5rem);
            text-align: center;
            margin-bottom: 0.5rem;
        }

       .policy-container h2 {
            font-size: clamp(1.8rem, 4vw, 2.2rem);
            margin-top: 3rem;
            border-bottom: 2px solid var(--border-color);
            padding-bottom: 0.5rem;
        }
        
       .policy-container h3 {
            font-size: clamp(1.2rem, 3vw, 1.5rem);
            color: var(--secondary-color);
            margin-top: 2rem;
        }

       .policy-container p {
            margin-bottom: 1.5rem;
            color: var(--secondary-color);
        }

       .policy-container a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 500;
            transition: opacity 0.3s ease;
        }

       .policy-container a:hover {
            opacity: 0.8;
            text-decoration: underline;
        }
        
       .policy-container ul {
            list-style-position: inside;
            padding-left: 1rem;
            margin-bottom: 1.5rem;
        }
        
       .policy-container li {
             margin-bottom: 0.75rem;
        }

        .policy-container strong {
            color: var(--text-color);
            font-weight: 600;
        }

        /* 5. Component Styles */
       .policy-container .page-meta {
            text-align: center;
            margin-bottom: 3rem;
            font-style: italic;
            color: var(--secondary-color);
        }
        
       .policy-container .summary-box {
            background-color: #e9ecef; /* A neutral, professional grey */
            border-left: 5px solid var(--secondary-color);
            padding: 1.5rem;
            border-radius: 8px;
            margin: 2rem 0;
            font-size: 0.95rem;
        }
        
       .policy-container .summary-box strong {
            color: var(--secondary-color);
            display: block;
            margin-bottom: 0.5rem;
            font-size: 1.1rem;
        }

       .policy-container .btn {
            display: inline-block;
            background: var(--primary-color);
            color: white;
            padding: 0.8rem 2.5rem;
            border-radius: 50px;
            font-weight: 600;
            transition: all 0.3s ease;
            text-align: center;
            border: none;
            box-shadow: 0 4px 15px rgba(217, 4, 41, 0.3);
            margin-top: 2rem;
        }

       .policy-container .btn:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 8px 25px rgba(217, 4, 41, 0.4);
            text-decoration: none;
            color: white;
            opacity: 1;
        }
        
        

        /* 6. Responsiveness */
        @media (max-width: 768px) {
            .policy-container body {
                padding: 1rem 0;
            }
            .policy-container .container {
                padding: 2rem 1.5rem;
                margin: 1rem;
                width: auto;
            }
            .policy-container h1 { font-size: 2.2rem; }
            .policy-container h2 { font-size: 1.6rem; }
        }


     
#introduction-block {
    max-width: 1000px;
    justify-content: center;
    margin: 0 auto; 
    padding: 2rem;
    
    margin-top: 10rem;           /* centers horizontally */
    min-height: 100vh;         /* takes full viewport height */
    display: flex;             /* enables centering */
    align-items: center;       /* centers vertically */
    flex-direction: column;    /* keeps content stacked */
}


        #introduction-block p {
            font-size: 1.4rem; /* Made text bigger */
            font-weight: 500;
            text-align: left;

            margin-bottom: 2.5rem; /* Increased spacing */
        }
        
        /* A subtle highlight for the "Kafka" style - ONLY for the first paragraph */
        #introduction-block p:first-of-type::first-letter {
            font-size: 4.5rem; /* Made drop cap bigger */
            font-weight: 700;
            color: #ff3300;
            float: left;
            line-height: 1;
            margin-right: 0.75rem;
            margin-top: 0.4rem; /* Adjusted alignment */
        }







.blog-card {
            /* Set a transition for the filter animation */
            transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.5s ease, 
                        margin 0.5s ease, padding 0.5s ease;
            
            /* Default state: visible */
            display: block; /* Or flex, etc. */
            opacity: 1;
            transform: scale(1);
            max-height: 500px; /* Adjust as needed, should be more than card height */
            overflow: hidden;
            
            /* Re-apply default margins/padding if your external CSS doesn't */
            /* margin: 1rem 0; */ 
        }

        /* This class hides the filtered-out cards */
        .blog-card.hide {
            opacity: 0;
            transform: scale(0.9);
            
            /* Animate height, margin, and padding to zero to collapse the space */
            max-height: 0;
            margin-top: 0;
            margin-bottom: 0;
            padding-top: 0;
            padding-bottom: 0;
            
            /* This removes the element from layout *after* the animation */
            pointer-events: none;
        }

       
        .blog-card.show {
            display: block; /* Or flex, etc. */
            opacity: 1;
            transform: scale(1);
            max-height: 500px; /* Must match default state */
            pointer-events: auto;
        }

        /* Style for the active nav link */
        .nav-link.active {
            /* This uses your brand's red color as the primary indicator */
            color: #D90429; 
            font-weight: 600;
            /* Add a subtle underline */
            border-bottom: 2px solid #D90429;
            padding-bottom: 4px;
        }

        /* Optional: Style for non-active nav links on hover */
        .nav-link:not(.active):hover {
            color: #D90429;
        }


 .article-header {
            text-align: center;
          
           
            margin-top: 10rem; /* Offset for the fixed main header */
        }

        .article-header h1 {
            font-family: 'Cinzel', serif;
            font-size: 3rem;
            font-weight: 700;
            color: var(--text-bright-dark);
            margin-bottom: 1rem;
        }

        .article-header h1 span {
            
            text-shadow: 0 0 8px rgba(217, 4, 41, 0.5);
        }

        .article-header .article-meta {
            font-family: 'Roboto Mono', monospace;
            font-size: 0.9rem;
           
        }
        
        /* The main container for the text */
        .article-container {
            max-width: 800px;
            margin: 0 auto;
            padding: 3rem 2rem;
        }

        .article-content {
            /* Styles for the text itself */
            
            line-height: 2.2;
            font-size: 1.15rem; /* Slightly larger for readability */
        }
        
        .article-content p {
            margin-bottom: 2.5rem;
        }

        /* First letter drop cap for the first paragraph */
        .article-content p:first-of-type::first-letter {
            font-size: 4.5rem;
            font-weight: 700;
            color: red;
            float: left;
            line-height: 1;
            margin-right: 0.75rem;
            margin-top: 0.4rem;
        }

        /* Subsections */
        .article-content h2 {
            font-family: 'Cinzel', serif;
            font-size: 2rem;
            font-weight: 600;
            color: red;
            margin-top: 3rem;
            margin-bottom: 1.5rem;
            border-bottom: 1px solid white;
            padding-bottom: 0.5rem;
        }

        /* Quotes */
        .article-content .quote {
            font-family: 'Playfair Display', serif;
            font-style: italic;
            font-size: 1.4rem;
            color: var(--text-bright-dark);
            margin: 2.5rem 0;
            padding: 1.5rem;
            border: 1px solid white;
            border-left: 4px solid red;
            
        }

       
        /* Code Blocks */
        .article-content pre {
            background-color: #050505;
            border: 1px solid white;
            padding: 1.5rem;
            border-radius: 0.5rem;
            overflow-x: auto;
            color: #d0d0d0;
            font-family: 'Roboto Mono', monospace;
            font-size: 0.9rem;
            line-height: 1.8;
            margin: 2rem 0;
        }
        
        .article-content pre code {
            font-family: inherit;
        }

        .about-btn{
            text-decoration: underline;
        }




        #otp-section {
  display: none;
  margin-top: 20px;
  background-color: #f0f0f0;
  padding: 15px;
  border-radius: 8px;
}

#otp-section input, #otp-section button {
  margin: 5px 0;
}

#response-message {
  margin-top: 15px;
  font-weight: bold;
  color: green;
}

#response-message.error {
  color: red;
}


/* TERMINAL FLOATING WIDGET */
.terminal-float-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 9999; /* Ensure it's on top of everything */
    
    background-color: #000000; /* Deep Black */
    border: 1px solid #ffffff;
    border-radius: 5px; /* Pill shape */
    
    display: flex;
    align-items: center;
    padding: 8px;
    
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    overflow: hidden;
    
    /* Smooth transition for the expansion */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 50px; /* Start collapsed (circle) */
}

/* Hover State: Expand the button */
.terminal-float-btn:hover {
    max-width: 200px; /* Expand to show text */
    border-color: #ff3300; /* Brand Red Border */
    box-shadow: 0 0 15px rgba(255, 51, 0, 0.3); /* Red Glow */
}

/* The Terminal Icon */
.terminal-icon {
    width: 34px;
    height: 34px;
    background-color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff; /* Brand Red Icon */
    font-size: 1rem;
    flex-shrink: 0; /* Prevent squishing */
}

/* The Text Container */
.terminal-text {
    white-space: nowrap;
    padding-left: 10px;
    padding-right: 12px;
    color: #E0E0E0;
    font-family: 'Roboto Mono', monospace; /* Tech font */
    font-size: 0.85rem;
    font-weight: 500;
    
    display: flex;
    align-items: center;
    gap: 8px;
    
    opacity: 0; /* Hidden initially */
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show text on hover */
.terminal-float-btn:hover .terminal-text {
    opacity: 1;
    transform: translateX(0);
}

/* The Arrow Animation */
.terminal-arrow {
    font-size: 0.8rem;
    color: #ff3300;
    transition: transform 0.3s ease;
}

.terminal-float-btn:hover .terminal-arrow {
    transform: translateX(3px); /* Subtle nudge animation */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .terminal-float-btn {
        bottom: 15px;
        left: 15px;
    }
}