* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins", "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

:root {
    --bg-color: #0b0f19;
    --second-bg-color: #111827;
    --text-color: #e5e7eb;
    --muted-text-color: #cbd5e1;
    --main-color: #22d3ee;
    --card-bg: rgba(10, 14, 23, 0.95);
    --border-color: rgba(255, 255, 255, 0.08);
    --glow-color: rgba(34, 211, 238, 0.15);
}

html {
    font-size: 60%;
    overflow-x: hidden;
}

body {
    background: radial-gradient(1200px 600px at 10% 10%, rgba(34, 211, 238, 0.06), transparent 60%),
        radial-gradient(1000px 500px at 90% 20%, rgba(99, 102, 241, 0.06), transparent 60%),
        var(--bg-color);
    color: var(--text-color);
}


.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.4rem 10%;
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.95), rgba(11, 15, 25, 0.8) 60%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 2.6rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.3s ease;
    letter-spacing: 0.5px;
}

.logo span {
    text-shadow: 0 0 25px var(--main-color);
    color: var(--main-color);
}

.logo:hover {
    transform: scale(1.05);
}

.navbar {
    display: flex;
    align-items: center;
}

.navbar a {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-left: 3rem;
    font-weight: 500;
    transition: 0.25s ease;
    border-bottom: 2px solid transparent;
    opacity: 0.8;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    border-bottom: 2px solid var(--main-color);
    opacity: 1;
}


.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle i {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #111827;
    min-width: 220px;
    border-radius: 1.2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    padding: 1rem 0;
    z-index: 1000;
    margin-top: 1.5rem;
}

.dropdown-content a {
    display: block;
    padding: 1rem 2rem;
    margin: 0;
    font-size: 1.4rem;
    border-bottom: none;
    color: var(--text-color);
}

.dropdown-content a:hover {
    background: rgba(34, 211, 238, 0.05);
    color: var(--main-color);
}

.dropdown-content.show {
    display: block;
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--main-color);
    display: none;
    cursor: pointer;
    z-index: 101;
    
}


.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.6rem;
    background: var(--main-color);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
    border-radius: 0.8rem;
    font-size: 1.6rem;
    color: #0b0f19;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
}

.btn.btn-outline {
    background-color: transparent;
    color: var(--main-color);
    border: 1px solid var(--main-color);
    box-shadow: none;
}

.btn.btn-outline:hover {
    background: rgba(34, 211, 238, 0.1);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
    color: var(--main-color);
}


.projects-hero {
    margin-top: 12rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.3), rgba(17, 24, 39, 0.6));
    border-radius: 2rem;
    padding: 6rem 3rem;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}


.projects-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    z-index: -1;
}

.hero-pill {
    display: inline-flex;
    align-self: center;
    padding: 0.6rem 2rem;
    border-radius: 100px;
    border: 1px solid var(--main-color);
    background: rgba(34, 211, 238, 0.05);
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    font-size: 1.2rem;
    color: var(--main-color);
    font-weight: 600;
}

.projects-hero h1 {
    font-size: clamp(3.6rem, 5vw, 6rem);
    font-weight: 800;
    letter-spacing: -1px;
}

.projects-hero h1 span {
    color: var(--main-color);
    text-shadow: 0 0 40px rgba(34, 211, 238, 0.3);
}

.projects-hero p {
    font-size: 1.8rem;
    color: var(--muted-text-color);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 4.2rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1;
}

.stat-label {
    font-size: 1.4rem;
    color: var(--muted-text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}


.search-wrapper {
    position: relative;
    max-width: 600px;
    width: 100%;
    margin: 4rem auto 0;
    display: flex;
    align-items: center;
}

.search-wrapper i {
    position: absolute;
    left: 2rem;
    font-size: 2.2rem;
    color: var(--main-color);
    pointer-events: none;
}

.search-wrapper input {
    width: 100%;
    padding: 1.8rem 2rem 1.8rem 5.5rem;
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 1.2rem;
    color: var(--text-color);
    font-size: 1.6rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-wrapper input:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.25);
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(20px);
}

.search-wrapper input::placeholder {
    color: var(--muted-text-color);
    opacity: 0.7;
}


.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.filter-btn {
    padding: 0.8rem 2rem;
    border-radius: 100px;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid var(--border-color);
    color: var(--muted-text-color);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: var(--main-color);
    color: var(--text-color);
    background: rgba(34, 211, 238, 0.05);
}

.filter-btn.active {
    background: var(--main-color);
    color: #0b0f19;
    border-color: var(--main-color);
    font-weight: 700;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.3);
}


.project-category {
    padding: 4rem 10%;
    margin-bottom: 2rem;
}

.category-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-kicker {
    font-size: 1.3rem;
    letter-spacing: 0.4rem;
    color: var(--main-color);
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.category-header h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.category-header p {
    font-size: 1.6rem;
    color: var(--muted-text-color);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 3rem;
}


.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.2rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    
    contain: layout paint;
    will-change: transform;
    cursor: pointer;
    
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--main-color);
    box-shadow: 0 20px 40px -10px rgba(34, 211, 238, 0.2);
    z-index: 2;
}


.terminal-header {
    background: #0f131f;
    padding: 1rem 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dots {
    display: flex;
    gap: 0.6rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.terminal-title {
    font-family: 'Space Grotesk', monospace;
    font-size: 1.2rem;
    color: #9ca3af;
    
}


.card-content {
    padding: 2.4rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 2rem;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.project-icon {
    width: 4.8rem;
    height: 4.8rem;
    background: rgba(34, 211, 238, 0.1);
    color: var(--main-color);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
}

.status-badge {
    font-size: 1.1rem;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.archived {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.status-badge.scanning {
    background: rgba(34, 211, 238, 0.15);
    color: var(--main-color);
    border: 1px solid rgba(34, 211, 238, 0.3);
}

.project-card h3 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: -1rem;
}

.project-card p {
    font-size: 1.5rem;
    color: var(--muted-text-color);
    line-height: 1.6;
    flex-grow: 1;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: auto;
    
}

.tech-chip {
    font-size: 1.2rem;
    padding: 0.4rem 1rem;
    background: rgba(34, 211, 238, 0.05);
    
    border: 1px solid rgba(34, 211, 238, 0.15);
    
    border-radius: 0.6rem;
    color: var(--main-color);
    
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.tech-chip:hover {
    background: rgba(34, 211, 238, 0.15);
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.2);
    transform: translateY(-1px);
    color: #fff;
}

.strategic-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    background: rgba(34, 211, 238, 0.03);
    border-left: 2px solid var(--main-color);
    border-radius: 0 0.6rem 0.6rem 0;
}

.strategic-box i {
    font-size: 1.6rem;
    color: var(--main-color);
    margin-top: 0.2rem;
}

.strategic-box span {
    font-size: 1.3rem;
    color: var(--muted-text-color);
    font-style: italic;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cmd-preview {
    font-family: 'Space Grotesk', monospace;
    font-size: 1.2rem;
    color: #9ca3af;
    
}

.github-btn {
    font-size: 2.2rem;
    color: var(--muted-text-color);
    transition: color 0.3s ease;
    position: relative;
    z-index: 5;
    
}

.github-btn:hover {
    color: #fff;
}


.footer {
    padding: 8rem 5% 4rem;
    background: #080a11;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 6rem;
}

.footer-brand .logo {
    display: inline-block;
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2rem;
    text-decoration: none;
    letter-spacing: -1px;
}

.footer-brand .logo span {
    color: var(--main-color);
}

.footer-brand p {
    color: var(--muted-text-color);
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 400px;
    opacity: 0.8;
}

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

.footer-socials a {
    color: var(--muted-text-color);
    font-size: 2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-socials a:hover {
    color: var(--main-color);
    transform: translateY(-3px);
}

.footer-links-grid {
    display: contents;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-transform: none;
}

.footer-col a {
    display: block;
    color: var(--muted-text-color);
    font-size: 14px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--main-color);
}

.footer-bottom {
    max-width: 1400px;
    margin: 6rem auto 0;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
}

.copyright-mini {
    font-size: 1.3rem;
    color: #64748b;
}


@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 4rem;
    }
}




.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


@media(max-width: 991px) {

    header,
    section,
    .footer {
        padding-left: 4%;
        padding-right: 4%;
    }

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

@media(max-width: 895px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        right: 0;
        width: 60%;
        padding: 2rem;
        background: rgba(17, 24, 39, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: flex-start;
        display: none;
        border-left: 1px solid var(--border-color);
        z-index: 1001;
        
    }

    .navbar.active {
        display: flex;
    }

    .navbar a {
        display: block;
        margin: 1.5rem 0;
        font-size: 1.8rem;
    }

    
    .dropdown {
        width: 100%;
        display: block;
        margin: 0;
    }

    .dropdown-toggle {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 1.5rem 0;
        
        margin: 0 !important;
        
    }

    .dropdown-content {
        position: static;
        
        width: 100%;
        min-width: 100%;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
        border: none;
        border-left: 2px solid var(--main-color);
        border-radius: 0 0.8rem 0.8rem 0;
        margin-top: 0;
        padding: 0;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        display: block;
        
        visibility: visible;
    }

    .dropdown-content.show {
        max-height: 500px;
        
        opacity: 1;
        margin-top: 0.5rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.5rem;
        animation: none;
        
    }

    .dropdown-content a {
        padding: 1.2rem 1.5rem 1.2rem 2.5rem;
        
        font-size: 1.5rem;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    .dropdown-toggle i {
        margin-right: 1rem;
        font-size: 1.8rem;
    }

    
    .dropdown-toggle i.rotate-arrow {
        transform: rotate(180deg);
        color: var(--main-color);
    }

    
    .footer-inner {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}


.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.4s, opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal.show {
    visibility: visible;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: -1;
}

.modal-content-wrapper {
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.modal-content {
    background: #0f131f;
    border: 1px solid var(--border-color);
    border-radius: 1.6rem;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;

    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
}

.modal.show .modal-content {
    opacity: 1;
    transform: scale(1) translateY(0);
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.15);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 3rem;
    color: var(--muted-text-color);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: var(--main-color);
}

.modal-header {
    padding: 2rem 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.03), transparent);
}

.terminal-header-modal {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 3.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.tech-stack-modal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.modal-body {
    padding: 3rem;
    flex-grow: 1;
    overflow-y: auto;
}

.modal-main-desc p {
    font-size: 1.6rem;
    color: var(--muted-text-color);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.modal-details-section h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-details-section h3 i {
    color: var(--main-color);
}

.modal-details-section ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.modal-details-section ul li {
    font-size: 1.4rem;
    color: var(--muted-text-color);
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.8rem;
    border-left: 2px solid var(--main-color);
    display: flex;
    align-items: center;
}

.modal-footer {
    padding: 2rem 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #0b0f19;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

@media(max-width: 600px) {
    .modal-content {
        max-height: 95vh;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 2rem;
    }

    .modal-header h2 {
        font-size: 2.4rem;
    }

    .modal-details-section ul {
        grid-template-columns: 1fr;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
}