* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}

:root {
    --bg-dark: #0a0a0f;
    --text-light: #f5f5f5;
    --neon-blue: #00eaff;
    --purple: #4b395e;
    --orange: #ff7a00;
    --card-bg: rgba(15, 15, 25, 0.8);
    --border-color: rgba(0, 234, 255, 0.3);
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}



.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.container img,
.container video,
img,
video {
    max-width: 100%;
    height: auto;
}

       

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    /* mix-blend-mode: multiply; */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    border-radius: 10px;
}



.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-blue), var(--purple), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    position: absolute;
    left: 150px;
    gap: 40px;
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-icon span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    display: flex;
    align-items: center;

}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 19px;
    display: flex;
    /* justify-content: end; */
    /* align-items: end; */
    position:relative;
    gap: 20px;
   transform: translateX(170px);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--neon-blue);
}

.cta-button {
    padding: 0.5rem 1.5rem;
    background: var(--neon-blue);
    color: var(--bg-dark);
    border-radius: 6px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(2px);
    box-shadow: 0 10px 30px rgba(0, 234, 255, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
   
    padding-top: 96px;
}

.aurora-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 234, 255, 0.2), rgba(179, 102, 255, 0.2), rgba(196, 98, 6, 0.283));
    background-size: 400% 400%;
    animation: aurora-shift 15s ease infinite;
    display: flex;
    flex-wrap: wrap;
}

@keyframes aurora-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-content {
    position: relative;
    z-index: 10;
    /* text-align: center; */
    max-width: 900px;
    padding: 0 2rem;
    top: 0;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-blue), var(--purple), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;

    animation: float-up 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: rgba(245, 245, 245, 0.8);
    margin-bottom: 2.5rem;
    animation: float-up 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: float-up 1s ease-out 0.4s both;
}

@keyframes float-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    padding: 0.875rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--neon-blue);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.4);
    animation: pulse-glow 2s ease-in-out infinite;
}

.btn-outline {
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    background: rgba(0, 234, 255, 0.1);
}

.btn-glow {
    background: var(--orange);
    color: var(--bg-dark);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 234, 255, 0.4), 0 0 40px rgba(0, 234, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 234, 255, 0.6), 0 0 60px rgba(0, 234, 255, 0.3);
    }
}

/* Features Section */
.features {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 234, 255, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--neon-blue);
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    animation: blob-float 8s ease-in-out infinite;
}

.blob-1 {
    top: 25%;
    left: 25%;
    background: rgba(0, 234, 255, 0.3);
}

.blob-2 {
    bottom: 25%;
    right: 25%;
    background: rgba(179, 102, 255, 0.3);
    animation-delay: 2s;
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
}

.cta-section p {
    font-size: 1.25rem;
    color: rgba(245, 245, 245, 0.8);
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}


.footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    position: relative;
    width: 100vw;
}

.gradient-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    animation: aurora-shift 3s ease infinite;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-brand h3 {
    background: linear-gradient(135deg, var(--neon-blue), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    font-size: 0.875rem;
    color: rgba(245, 245, 245, 0.6);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--neon-blue);
}

.footer-info {
    text-align: right;
}

.footer-info p {
    font-size: 0.875rem;
    color: rgba(245, 245, 245, 0.6);
}

/* Algorithm Page */
.algo-page {
    padding: 8rem 2rem 4rem;
    min-height: 100vh;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 1rem;
}

.page-subtitle {
    text-align: center;
    color: rgba(245, 245, 245, 0.7);
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

/* CSS-only Tabs */
.algo-tabs {
    max-width: 1200px;
    margin: 0 auto;
}

.algo-tabs input[type="radio"] {
    display: none;
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.875rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.tab-btn:hover {
    background: rgba(0, 234, 255, 0.1);
    transform: translateY(-2px);
}

#bubble:checked ~ .tab-buttons label[for="bubble"],
#binary:checked ~ .tab-buttons label[for="binary"],
#dfs:checked ~ .tab-buttons label[for="dfs"] {
    background: var(--neon-blue);
    color: var(--bg-dark);
    box-shadow: 0 5px 20px rgba(0, 234, 255, 0.5);
}

.tab-content {
    display: none;
}

#bubble:checked ~ .bubble-sort,
#binary:checked ~ .binary-search,
#dfs:checked ~ .dfs-traversal {
    display: block;
    animation: float-up 0.5s ease-out;
}

/* Algorithm Cards */
.algo-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.algo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.algo-header h2 {
    color: var(--neon-blue);
    font-size: 1.75rem;
}

.complexity {
    padding: 0.5rem 1rem;
    background: rgba(0, 234, 255, 0.1);
    border: 1px solid var(--neon-blue);
    border-radius: 6px;
    font-family: 'Space Mono', monospace;
    white-space: nowrap;
}

.complexity-log {
    border-color: var(--purple);
    background: rgba(179, 102, 255, 0.1);
}

.complexity-graph {
    border-color: var(--orange);
    background: rgba(255, 122, 0, 0.1);
}

.algo-steps {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.algo-steps h4 {
    margin-bottom: 0.75rem;
}

.algo-steps ol {
    padding-left: 1.5rem;
    color: rgba(245, 245, 245, 0.8);
}

.algo-steps li {
    margin: 0.5rem 0;
}

/* Bar Chart Visualization */
.visualization {
    margin-top: 2rem;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.75rem;
    height: 300px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    position: relative;
    margin-bottom: 1.5rem;
}

.bar {
    flex: 1;
    max-width: 80px;
    background: linear-gradient(to top, var(--neon-blue), rgba(0, 234, 255, 0.6));
    border-radius: 6px 6px 0 0;
    border: 2px solid rgba(0, 234, 255, 0.5);
    position: relative;
    height: var(--height);
    animation: bubble-swap 8s ease-in-out infinite;
    animation-delay: var(--delay);
}

.bar span {
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Space Mono', monospace;
    font-weight: bold;
    font-size: 0.875rem;
    color: var(--bg-dark);
    background: rgba(0, 234, 255, 0.4);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    animation: pulse-glow 8s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes bubble-swap {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(calc(var(--delay) * 20)); }
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: rgba(245, 245, 245, 0.7);
}

.status-badge {
    padding: 0.5rem 1rem;
    background: rgba(179, 102, 255, 0.2);
    border-radius: 6px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Binary Search */
.search-array {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem;
}

.search-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(179, 102, 255, 0.1);
    border: 2px solid rgba(179, 102, 255, 0.3);
    border-radius: 8px;
    font-family: 'Space Mono', monospace;
    font-weight: bold;
    font-size: 1.25rem;
    animation: fade-out 8s ease-in-out infinite;
    animation-delay: var(--delay);
    position: relative;
}

.search-box.mid::after {
    content: "Mid";
    position: absolute;
    bottom: -30px;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(179, 102, 255, 0.2);
    border-radius: 4px;
    animation: float-up 1s ease-out 1.6s both;
}

.search-box.found {
    background: var(--purple);
    color: var(--bg-dark);
    animation: node-glow 2s ease-in-out infinite;
    animation-delay: var(--delay);
}

.search-box.found::after {
    content: "Found!";
    position: absolute;
    bottom: -30px;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--purple);
    color: var(--bg-dark);
    border-radius: 4px;
    animation: float-up 1s ease-out 4s both;
}

@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0.2; }
}

@keyframes node-glow {
    0%, 100% {
        box-shadow: 0 0 0 rgba(179, 102, 255, 0);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px rgba(179, 102, 255, 0.8), 0 0 40px rgba(179, 102, 255, 0.4);
        transform: scale(1.05);
    }
}

/* DFS Tree */
.tree {
    position: relative;
    height: 320px;
    margin: 2rem 0;
}

.tree-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.edge {
    stroke: var(--orange);
    stroke-width: 2;
    opacity: 0.5;
    animation: fade-out 5.5s ease-in-out infinite reverse;
    animation-delay: var(--delay);
}

.node {
    position: absolute;
    width: 56px;
    height: 56px;
    background: rgba(255, 122, 0, 0.1);
    border: 3px solid var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    transform: translate(-50%, -50%);
    animation: node-glow 5.5s ease-in-out infinite;
    animation-delay: var(--delay);
}

.order {
    position: absolute;
    top: -28px;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 122, 0, 0.2);
    border: 1px solid rgba(255, 122, 0, 0.4);
    border-radius: 4px;
    animation: float-up 0.5s ease-out both;
    animation-delay: var(--delay);
}

.traversal-order {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 122, 0, 0.1);
    border: 1px solid rgba(255, 122, 0, 0.3);
    border-radius: 6px;
    margin-top: 1rem;
}

/* About Page */
.about-page {
    padding: 8rem 2rem 4rem;
    min-height: 100vh;
    position: relative;
}

.gradient-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 234, 255, 0.1), rgba(179, 102, 255, 0.1));
    animation: gradient-pulse 4s ease-in-out infinite;
}

@keyframes gradient-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.about-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.about-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.about-card h2 {
    color: var(--neon-blue);
    margin-bottom: 1rem;
}

.highlight {
    color: var(--neon-blue);
    font-weight: 600;
}

.highlight-accent {
    color: var(--orange);
}

.tech-stack {
    margin-top: 3rem;
}

.tech-stack h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.tech-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Resources Page */
.resources-page {
    padding: 8rem 2rem 4rem;
    min-height: 100vh;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.resource-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 234, 255, 0.2);
}

.resource-header h3 {
    color: var(--neon-blue);
    margin-bottom: 1rem;
}

.resource-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s;
}

.resource-link:hover {
    transform: translateX(5px);
}

.cta-banner {
    text-align: center;
    padding: 3rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-banner p {
    font-size: 1.25rem;
    color: rgba(245, 245, 245, 0.8);
    margin-bottom: 2rem;
}

/* Header Section */
.main-header {
   
    padding-top: 0;
    background: linear-gradient(135deg, rgba(0, 234, 255, 0.1), rgba(179, 102, 255, 0.1));
    border-bottom: 1px solid var(--border-color);
}

.home-header {
   
    padding-top: 0;
    background: transparent;
    border-bottom: none;
}

.header-content {
    width: 100vw;
    text-align: center;
    padding: 3rem 2rem;

}

.header-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--neon-blue), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-content p {
    font-size: 1.25rem;
    color: rgba(245, 245, 245, 0.7);
}

/* Contact Page */
.contact-page {
    padding: 4rem 2rem;
    min-height: 60vh;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h2 {
    margin-bottom: 2rem;
    color: var(--neon-blue);
}

.info-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateX(5px);
}

.info-icon {
    font-size: 2rem;
}

.info-card h3 {
    color: var(--neon-blue);
    margin-bottom: 0.25rem;
}

.contact-form-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--neon-blue);
}

.form-group input,
.form-group textarea {
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-light);
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-blue);
}

.form-group textarea {
    resize: vertical;
}

/* Showcase Page */
.showcase-page {
    padding: 4rem 2rem;
    min-height: 60vh;
}

.showcase-categories input[type="radio"] {
    display: none;
}

.category-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.category-tab {
    padding: 0.875rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.category-tab:hover {
    background: rgba(0, 234, 255, 0.1);
    transform: translateY(-2px);
}

#sorting:checked ~ .category-tabs label[for="sorting"],
#searching:checked ~ .category-tabs label[for="searching"],
#graph:checked ~ .category-tabs label[for="graph"] {
    background: var(--neon-blue);
    color: var(--bg-dark);
    box-shadow: 0 5px 20px rgba(0, 234, 255, 0.5);
}

.category-content {
    display: none;
}

#sorting:checked ~ .sorting-algos,
#searching:checked ~ .searching-algos,
#graph:checked ~ .graph-algos {
    display: block;
    animation: float-up 0.5s ease-out;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.showcase-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 234, 255, 0.2);
}

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

.card-header h3 {
    color: var(--neon-blue);
}

.badge {
    padding: 0.35rem 0.75rem;
    background: rgba(0, 234, 255, 0.1);
    border: 1px solid var(--neon-blue);
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: 'Space Mono', monospace;
}

.badge-fast {
    border-color: var(--purple);
    background: rgba(179, 102, 255, 0.1);
}

.badge-graph {
    border-color: var(--orange);
    background: rgba(255, 122, 0, 0.1);
}

.mini-viz {
    height: 100px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    padding: 1rem;
}

.mini-bar {
    flex: 1;
    background: linear-gradient(to top, var(--neon-blue), rgba(0, 234, 255, 0.6));
    border-radius: 4px 4px 0 0;
    animation: pulse 2s ease-in-out infinite;
}

.mini-bar.partition {
    background: linear-gradient(to top, var(--purple), rgba(179, 102, 255, 0.6));
}

.mini-bar.merge {
    background: linear-gradient(to top, var(--orange), rgba(255, 122, 0, 0.6));
}

.search-viz {
    align-items: center;
}

.search-item {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(179, 102, 255, 0.1);
    border: 2px solid rgba(179, 102, 255, 0.3);
    border-radius: 6px;
    font-family: 'Space Mono', monospace;
    font-weight: bold;
}

.search-item.faded {
    opacity: 0.3;
}

.search-item.mid-item {
    border-color: var(--purple);
    background: rgba(179, 102, 255, 0.2);
}

.search-item.found-item {
    background: var(--purple);
    color: var(--bg-dark);
    animation: pulse-glow 2s ease-in-out infinite;
}

.search-item.active-item {
    border-color: var(--neon-blue);
    background: rgba(0, 234, 255, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

.tree-viz {
    position: relative;
    align-items: center;
}

.mini-node {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255, 122, 0, 0.1);
    border: 2px solid var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-in-out infinite;
}

.mini-node.bfs {
    border-color: var(--purple);
    background: rgba(179, 102, 255, 0.1);
}

.mini-node.dijkstra {
    border-color: var(--neon-blue);
    background: rgba(0, 234, 255, 0.1);
}

.card-link {
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s;
    display: inline-block;
}

.card-link:hover {
    transform: translateX(5px);
}

/* Tutorials Page */
.tutorials-page {
    padding: 4rem 2rem;
    min-height: 60vh;
}

.tutorial-sections {
    max-width: 900px;
    margin: 0 auto 4rem;
}

.tutorial-category {
    margin-bottom: 3rem;
}

.tutorial-category h2 {
    margin-bottom: 1.5rem;
    color: var(--neon-blue);
}

.tutorial-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tutorial-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.tutorial-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 234, 255, 0.2);
}

.tutorial-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-blue);
    font-family: 'Space Mono', monospace;
}

.tutorial-content h3 {
    color: var(--neon-blue);
    margin-bottom: 0.5rem;
}

.tutorial-content p {
    color: rgba(245, 245, 245, 0.7);
    margin-bottom: 0.75rem;
}

.tutorial-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.duration {
    font-size: 0.875rem;
    color: rgba(245, 245, 245, 0.6);
}

.difficulty {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.difficulty.beginner {
    background: rgba(0, 234, 255, 0.1);
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
}

.difficulty.intermediate {
    background: rgba(179, 102, 255, 0.1);
    color: var(--purple);
    border: 1px solid var(--purple);
}

.difficulty.advanced {
    background: rgba(255, 122, 0, 0.1);
    color: var(--orange);
    border: 1px solid var(--orange);
}

.practice-section {
    max-width: 1200px;
    margin: 0 auto;
}

.practice-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.practice-card {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.practice-card h3 {
    color: var(--neon-blue);
    margin-bottom: 1rem;
}

.practice-card p {
    margin-bottom: 1.5rem;
    color: rgba(245, 245, 245, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-icon {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.98);
        border-top: 1px solid var(--border-color);
        padding: 1rem 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
    }

    .menu-toggle:checked ~ .nav-menu {
        max-height: 400px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-info {
        text-align: center;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }

    .bar-chart {
        gap: 0.5rem;
    }

    .bar {
        max-width: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .category-tabs,
    .category-tab {
        flex-direction: column;
        width: 100%;
    }

    .tutorial-item {
        flex-direction: column;
        text-align: center;
    }

    .header-content {
        padding: 2rem 1rem;
    }
    .indian{ font-size: clamp(2rem, 16vw, 5rem); -webkit-text-stroke: 1.5px #ffffff; }
}
.orb{
    background-color: rgba(34, 34, 114, 0.635);
    /* background:black; */
    height: 80px;
    width: 83px;
    border-radius: 45%;
    box-shadow: 0 0 10px 15px rgba(21, 21, 109, 0.523);
    perspective: 50px;

      /* background: transparent; */
      /* mix-blend-mode: normal; */
      z-index: -1;
      position: absolute;
      top: 1200px;
      left: 100px;
      animation: AutoRotateA;
      animation-timeline: view();

}
@keyframes AutoRotateA{
    from{
        transform: rotate(0deg) scale(2);
    }
    to{
        transform: rotate(360deg) scale(1.1);
    }
}
/* .intro{
    left: 0;
    height: 100vh;
    z-index: 30;
    animation:khatra;
    object-fit: cover;
    animation-timeline: view();
    perspective: 100px;
} */
/* @keyframes khatra{
    from{
       filter: none;
        opacity: 1;
        scale: 1;
        translate: 0 0;
    }
    to{
         filter: saturate(0) contrast(4) brightness(.1) blur(5px);
        opacity: 0;
        scale: .95;
        translate: 0 4rem;
    }
} */
 /* .introduction{
    opacity: 1;
    

    
 } */

/* Flag overlay: make moving flag visible through transparent text */
.flag{
    position: relative;
    display: grid;
    place-items: center;
    padding: 2rem 0;
    overflow: hidden;

}
.flag .indian{
    z-index: 2;
    mix-blend-mode: multiply;
    color: transparent;
    background-color: black;
    color: white;
    font-size: 150px;
    display: flex;
    line-height: 1.05 !important;
    justify-content: center;
    align-items: center;
    height: 100% !important;
    width: 100% !important;
    position: absolute;
    top: 0px;
    left: 0px;
    transform: translateX(0);
}
.flag .indian-army{
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    z-index: 1 !important;
    pointer-events: none;
    left: 0 !important;
}
@media (max-width: 768px){
    .flag .indian{ -webkit-text-stroke: 1.5px #ffffff; font-size: clamp(2rem, 16vw, 5rem) !important; }
}

/* Navbar cleanup and responsiveness overrides */
.navbar{
    background: rgba(10, 10, 15, 0.6);
}
.navbar .container{
    padding: 0.75rem 1rem;
    gap: 1rem;
}
.navbar .logo{
    position: relative !important;
    left: 0 !important;
}
.navbar .nav-menu{
    gap: 1.25rem;
}
.navbar .nav-menu a{
    transform: none !important;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
}
.navbar .nav-menu a:hover,
.navbar .nav-menu a:focus-visible{
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

/* Collapse menu a bit earlier for tablets */
@media (max-width: 992px){
    .menu-icon{ display: flex; }
    .nav-menu{
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.98);
        border-top: 1px solid var(--border-color);
        padding: 0.5rem 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .nav-menu li{ width: 100%; text-align: center; padding: 0.5rem 0; }
    .menu-toggle:checked ~ .nav-menu{ max-height: 420px; }
}

/* Place hamburger icon at far left on mobile/tablet */
@media (max-width: 992px){
    .navbar{ position: sticky; top: 0; }
    .navbar .container{ padding-left: 3rem; }
    .navbar .menu-icon{
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* Enlarge flag area so video fits beneath text without overflow */
.flag{
    min-height: clamp(360px, 62vh, 900px);
}
.flag .indian{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
}
/* Ensure the video strictly covers the flag area */
.flag .indian-army{
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.promo video{
    padding-top: 20px;
    width: 100vw;
    height: 100vh;
    /* transform: rotate(270deg); */
    display: flex;
    justify-content: center;
    align-items: center;
}