:root {
    --primary-color: #00ff41;
    --secondary-color: #0066ff;
    --bg-dark: #0a0e1a;
    --bg-card: #1a1f35;
    --text-light: #e0e0e0;
    --text-dark: #a0a0a0;
    --accent-gold: #ffd700;
    --trace-color: rgba(0, 255, 65, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
}

.pcb-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

.pcb-background::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0, 255, 65, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 102, 255, 0.1) 0%, transparent 50%);
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 31, 53, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo i {
    animation: pulse 2s infinite;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: 0.3s;
}

.section {
    min-height: 100vh;
    padding: 6rem 2rem 4rem;
    position: relative;
}

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

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

.home-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.home-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch {
    position: relative;
    animation: glitch 3s infinite;
}

@keyframes glitch {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-dark);
    font-weight: bold;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.8);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}

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

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    color: var(--primary-color);
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.home-image {
    display: flex;
    justify-content: center;
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
}

.circuit-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.circuit-frame::before,
.circuit-frame::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary-color);
}

.circuit-frame::before {
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.circuit-frame::after {
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--bg-card);
    box-shadow: 0 0 50px rgba(0, 255, 65, 0.3);
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.icon-float {
    position: absolute;
    font-size: 2rem;
    color: var(--primary-color);
    animation: float 3s infinite ease-in-out;
}

.icon-float:nth-child(1) {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.icon-float:nth-child(2) {
    top: 50%;
    right: -10%;
    animation-delay: 1s;
}

.icon-float:nth-child(3) {
    bottom: 10%;
    left: 50%;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.pcb-trace-divider {
    width: 200px;
    height: 3px;
    background: var(--primary-color);
    margin: 0 auto 3rem;
    position: relative;
    box-shadow: 0 0 10px var(--primary-color);
}

.pcb-trace-divider::before,
.pcb-trace-divider::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px var(--primary-color);
}

.pcb-trace-divider::before {
    left: -5px;
}

.pcb-trace-divider::after {
    right: -5px;
}

.projects-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(26, 31, 53, 0.5) 100%);
}

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

.project-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.4), inset 0 0 20px rgba(0, 255, 65, 0.05);
    z-index: 10;
}

.project-card:hover .project-icon {
    animation: pulse 1s infinite;
    text-shadow: 0 0 10px var(--primary-color);
}

.pcb-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--trace-color);
    border-radius: 10px;
    pointer-events: none;
}

.pcb-border::before,
.pcb-border::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.5;
}

.pcb-border::before {
    top: 10px;
    left: 10px;
}

.pcb-border::after {
    bottom: 10px;
    right: 10px;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.project-header h3 {
    font-size: 1.3rem;
    color: var(--text-light);
}

.project-description {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(0, 255, 65, 0.05);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 255, 65, 0.3);
    transition: all 0.3s;
}

.tech-tag:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 10px var(--primary-color);
    transform: translateY(-2px);
}

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

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.project-link:hover {
    color: var(--secondary-color);
}

.blogs-section {
    background: var(--bg-dark);
}

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

.blog-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.2);
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    background: rgba(0, 255, 65, 0.05);
}

.blog-date {
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 0.5rem;
    border-radius: 5px;
    text-align: center;
    min-width: 60px;
}

.blog-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
}

.blog-date .month {
    display: block;
    font-size: 0.9rem;
}

.blog-category {
    background: var(--secondary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
}

.blog-title {
    padding: 1rem 1.5rem 0;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.blog-excerpt {
    padding: 0 1.5rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    padding: 0 1.5rem 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
}

.read-more:hover {
    color: var(--secondary-color);
}

.contact-section {
    background: linear-gradient(180deg, rgba(26, 31, 53, 0.5) 0%, var(--bg-dark) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info>p {
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.contact-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.3rem;
}

.contact-item h4 {
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: var(--text-dark);
}

.github-stats,
.upwork-stats {
    color: var(--text-dark);
    font-size: 0.9rem;
}

.upwork-link {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
}

.upwork-link:hover {
    text-decoration: underline;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-card);
    border: 2px solid rgba(0, 255, 65, 0.2);
    border-radius: 5px;
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.footer {
    background: var(--bg-card);
    padding: 2rem;
    text-align: center;
    border-top: 2px solid var(--primary-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

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

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

/* Modal Styles - Global (not in media query) */
.modal {
    display: none;
    /* JS toggles this to 'flex' */
    position: fixed !important;
    /* Fixed position */
    inset: 0;
    /* Cover entire screen */
    width: 100%;
    height: 100%;
    z-index: 10000;
    /* Highest priority */
    background-color: rgba(5, 8, 16, 0.85);
    /* Darker overlay */
    backdrop-filter: blur(16px);
    /* Stronger glass blur */
    -webkit-backdrop-filter: blur(16px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: var(--bg-card);
    /* bg-card is #1a1f35 */
    padding: 3rem;
    border: 1px solid rgba(0, 255, 65, 0.3);
    /* Subtle neon border */
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 255, 65, 0.1);
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center center;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.3s, transform 0.2s;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.form-actions .btn {
    flex: 1;
}

/* Modal Styles for Mobile (moved from inside media query) */
.modal {
    display: none;
    /* JS toggles this to 'flex' */
    position: fixed;
    /* Fixed position */
    inset: 0;
    /* Cover entire screen */
    width: 100%;
    height: 100%;
    z-index: 10000;
    /* Highest priority */
    background-color: rgba(5, 8, 16, 0.85);
    /* Darker overlay */
    backdrop-filter: blur(8px);
    /* Strong glass blur */
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: var(--bg-card);
    /* bg-card is #1a1f35 */
    padding: 3rem;
    border: 1px solid rgba(0, 255, 65, 0.3);
    /* Subtle neon border */
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 255, 65, 0.1);
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center center;
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    color: var(--text-dark);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.modal h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.modal p {
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 0.95rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary.cancel-btn {
    border-color: #ff4444;
    color: #ff4444;
}

.btn-secondary.cancel-btn:hover {
    background: #ff4444;
    color: white;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

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

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-card);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .home-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .home-text h1 {
        font-size: 2rem;
    }

    .image-wrapper {
        width: 300px;
        height: 300px;
    }


    /* Modal Styles */
    .modal {
        display: none;
        /* JS toggles this to 'flex' */
        position: fixed;
        /* Fixed position */
        inset: 0;
        /* Cover entire screen */
        width: 100%;
        height: 100%;
        z-index: 10000;
        /* Highest priority */
        background-color: rgba(5, 8, 16, 0.85);
        /* Darker overlay */
        backdrop-filter: blur(8px);
        /* Strong glass blur */
        -webkit-backdrop-filter: blur(8px);
        align-items: center;
        justify-content: center;
        animation: fadeIn 0.3s ease-out;
    }

    .modal-content {
        background-color: var(--bg-card);
        /* bg-card is #1a1f35 */
        padding: 3rem;
        border: 1px solid rgba(0, 255, 65, 0.3);
        /* Subtle neon border */
        width: 90%;
        max-width: 550px;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 16px;
        position: relative;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 255, 65, 0.1);
        animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        transform-origin: center center;
    }

    .close-modal {
        position: absolute;
        right: 1.5rem;
        top: 1rem;
        color: var(--text-dark);
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
        transition: color 0.3s;
    }

    .close-modal:hover {
        color: var(--primary-color);
        text-shadow: 0 0 10px var(--primary-color);
    }

    .modal h2 {
        color: var(--primary-color);
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .modal p {
        color: var(--text-dark);
        margin-bottom: 2rem;
        text-align: center;
        font-size: 0.95rem;
    }

    .form-actions {
        display: flex;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .form-actions .btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .btn-secondary.cancel-btn {
        border-color: #ff4444;
        color: #ff4444;
    }

    .btn-secondary.cancel-btn:hover {
        background: #ff4444;
        color: white;
        box-shadow: 0 0 15px rgba(255, 68, 68, 0.4);
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    @keyframes slideIn {
        from {
            transform: translateY(-50px);
            opacity: 0;
        }

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

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

    .section {
        padding: 5rem 1rem 2rem;
    }

    .home-text .titles .highlight {
        color: #00ff41;
        /* Neon green accent */
        font-weight: 700;
    }

    .home-text .description {
        font-size: 1.1rem;
        line-height: 1.6;
        color: #ccc;
    }

    .home-buttons .btn {
        margin-right: 15px;
        padding: 10px 25px;
        font-weight: 600;
    }

}

/* ===================================
   PCB & Hardware Designs Section
   =================================== */

#pcb-designs {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0a0e1a 100%);
    padding: 5rem 0;
}

#pcb-designs .section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.pcb-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 2.5rem 1fr 2.5rem 1fr;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    grid-gap: 2.5rem;
    margin-top: 3rem;
}

.pcb-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 65, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.pcb-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.pcb-card:hover::before {
    transform: scaleX(1);
}

.pcb-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 255, 65, 0.2);
}

.pcb-image-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1f35 0%, #0f1420 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pcb-card:hover .pcb-image {
    transform: scale(1.1);
}

.pcb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pcb-overlay i {
    font-size: 3rem;
    color: var(--primary-color);
}

.pcb-card:hover .pcb-overlay {
    opacity: 1;
}

.pcb-content {
    padding: 2rem;
}

.pcb-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.pcb-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.pcb-specs,
.pcb-usage {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(0, 255, 65, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 8px;
}

.pcb-specs h4,
.pcb-usage h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.specs-list li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.specs-list li:last-child {
    border-bottom: none;
}

.specs-list strong {
    color: var(--text-primary);
    margin-right: 0.5rem;
}

.pcb-usage p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
}

.pcb-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.pcb-link {
    flex: 1;
    min-width: 140px;
    padding: 0.85rem 1.25rem;
    background: rgba(0, 255, 65, 0.1);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 65, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pcb-link:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.3);
}

/* Responsive Design for PCB Section */
@media (max-width: 768px) {
    .pcb-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pcb-image-container {
        height: 220px;
    }

    .pcb-content {
        padding: 1.5rem;
    }

    .pcb-links {
        flex-direction: column;
    }

    .pcb-link {
        width: 100%;
    }
}

/* ===================================
   PCB Detail Modal Styles
   =================================== */

/* Make PCB cards clickable */
.pcb-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.pcb-clickable:hover {
    transform: translateY(-10px) scale(1.02);
}

/* PCB Detail Modal */
.pcb-detail-modal .pcb-modal-content {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(26, 31, 53, 0.98) 100%);
    border-radius: 20px;
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    border: 2px solid rgba(0, 255, 65, 0.3);
    box-shadow: 0 20px 60px rgba(0, 255, 65, 0.3);
}

.pcb-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    z-index: 10;
    color: var(--primary-color);
}

/* Modal Header */
.pcb-modal-header {
    padding: 2rem 2.5rem 1.5rem;
    border-bottom: 2px solid rgba(0, 255, 65, 0.2);
}

.pcb-modal-header h2 {
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
}

.pcb-modal-subtitle {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1.1rem;
}

/* Image Gallery */
.pcb-gallery {
    padding: 2rem 2.5rem;
    background: rgba(10, 14, 26, 0.5);
}

.pcb-gallery-main {
    position: relative;
    width: 100%;
    height: 500px;
    max-height: 500px;
    background: var(--bg-dark);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcb-main-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 255, 65, 0.2);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.gallery-nav:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Thumbnails */
.pcb-gallery-thumbnails {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.pcb-thumbnail {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.pcb-thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pcb-thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
}

/* Tabs */
.pcb-modal-tabs {
    display: flex;
    gap: 0;
    padding: 0 2.5rem;
    background: rgba(10, 14, 26, 0.3);
    border-bottom: 2px solid rgba(0, 255, 65, 0.2);
    overflow-x: auto;
}

.pcb-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.pcb-tab-btn:hover {
    color: var(--primary-color);
    background: rgba(0, 255, 65, 0.05);
}

.pcb-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(0, 255, 65, 0.1);
}

.pcb-tab-btn i {
    margin-right: 0.5rem;
}

/* Tab Content */
.pcb-modal-body {
    padding: 2rem 2.5rem;
    min-height: 300px;
}

.pcb-tab-content {
    display: none;
}

.pcb-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

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

.pcb-tab-content h3 {
    color: var(--primary-color);
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pcb-tab-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Features List */
.pcb-features-list {
    list-style: none;
    padding: 0;
}

.pcb-features-list li {
    color: var(--text-secondary);
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}

.pcb-features-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Specs Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.spec-item {
    background: rgba(0, 255, 65, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.spec-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spec-item span {
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* Applications */
.application-item {
    background: rgba(0, 255, 65, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.application-item h4 {
    color: var(--primary-color);
    margin: 0 0 0.75rem 0;
}

.application-item p {
    margin: 0;
}

/* Files List */
.pcb-files-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 255, 65, 0.05);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    transition: all 0.3s ease;
}

.file-item:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.file-details h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
}

.file-details p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.file-download {
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.file-download:hover {
    background: #00e05c;
    transform: scale(1.05);
}

/* Modal Footer */
.pcb-modal-footer {
    padding: 1.5rem 2.5rem;
    border-top: 2px solid rgba(0, 255, 65, 0.2);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: rgba(10, 14, 26, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .pcb-detail-modal .pcb-modal-content {
        width: 98%;
        max-height: 95vh;
    }

    .pcb-modal-header,
    .pcb-gallery,
    .pcb-modal-tabs,
    .pcb-modal-body,
    .pcb-modal-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .pcb-gallery-main {
        height: 300px;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    .pcb-tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

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

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

    .pcb-modal-footer .btn {
        width: 100%;
    }
}

/* Privacy Blur - Applied to VCU images */
.privacy-blur {
    filter: blur(3px);
    /* 3px blur as requested */
    transition: none;
    cursor: not-allowed;
    user-select: none;
    -webkit-user-drag: none;
}