/* Reuse core styles (Navbar, Footer) from previous files */

.section-title {
    text-align: center;
    padding: 60px 20px;
    background: #fdfdfd;
}

.section-title h1 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 10px;
}

.section-title p {
    color: #888;
    max-width: 600px;
    margin: 0 auto;
}

        /* nevber */
 header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: wheat; /* Semi-transparent */
    backdrop-filter: blur(10px); /* Blur effect */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px; /* Pill shape */
    padding: 0px 30px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgb(234, 0, 255);
        }

        .navbar {
            display:flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 24px;
            font-weight: 700;
            color: var(--primary-blue);
            text-decoration: none;
        }

        .nav-links {
            display: flex;
            list-style: none;
            font-size: 20px;
            gap: 20px;
        }

        .nav-links a {
            text-decoration: none;
            color: #444;
            font-weight: 500;
        }
        
        /* Page Header */
.page-header {
    text-align: center;
    padding: 110px 40px 40px;
    background: #eecbcb;
    border-bottom: 1px solid #efc3c3;
}

.page-header h1 {
    font-size: 3.5rem;
    color: #000000;
}

.page-header p {
    font-size: medium;
    color: #000000;
    margin-top: 10px;
}

/* Gallery Grid */
.diagram-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

/* Diagram Card */
.diagram-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.diagram-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: #007bff;
}

/* Image Container & Overlay */
.diagram-img-container {
    position: relative;
    height: 250px;
    background: #f9f9f9;
    overflow: hidden;
}

.diagram-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Keeps circuit diagrams from being cropped */
    padding: 10px;
    transition: transform 0.5s ease;
}

.diagram-card:hover .diagram-img-container img {
    transform: scale(1.05);
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 123, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s ease;
}

.diagram-card:hover .img-overlay {
    opacity: 1;
}

.zoom-icon {
    color: white;
    font-size: 2rem;
    text-decoration: none;
}

/* Details and Buttons */
.diagram-details {
    padding: 20px;
}

.diagram-details h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: #222;
}

.diagram-details p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.diagram-actions {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.diagram-actions a {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    transition: 0.2s;
}

.diagram-actions a:hover {
    color: #007bff;
}

.diagram-actions a i {
    margin-right: 5px;
}

/* Footer Styles */
:root {
    --footer-bg: #111;
    --footer-text: #b0b0b0;
    --accent-color: #007bff; /* Chip Craft blue */
    --white: #ffffff;
    --footer-bottom: #000;
}

.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding-top: 60px;
    font-family: 'Poppins', sans-serif;
    border-top: 4px solid var(--accent-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

/* Brand Section */
.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}
.footer-logo span { color: var(--accent-color); }
.footer-section .p{margin-top: 10px;margin-bottom: 10px;}
.social-media a {
    color: var(--footer-text);
    font-size: 1.2rem;
    margin-right: 15px;
    transition: 0.3s;
}
.social-media a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* Links Section */
.footer-section h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 25px;
    margin-left: 40px;
    position: relative;
}
.footer-section h3::after {
    content: '';
    position: absolute;
padding-left: 30px;
    padding-right: 30px;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
    padding-left: 50px;
}
.footer-section ul li {
    margin-bottom: 12px;
    /* padding-left: 10px; */
}
.footer-section ul li a {
    color: var(--footer-text);
    text-decoration: none;
    transition: 0.3s;
}
.footer-section ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

/* Contact Section */
.contact p {
    margin-right: 10px;
    font-size: 0.9rem;
}
.contact i {
    color: var(--accent-color);
    margin-right: 10px;
    width: 20px;
}


/* Bottom Bar */
.footer-bottom {
    background-color: var(--footer-bottom);
    padding: 20px 0;
    margin-top: 30px;
    font-size: 0.85rem;
}
.footer-bottom .footer-container {
    align-items: center;
}

.back-to-top {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
}
.back-to-top i {
    margin-left: 5px;
    transition: 0.3s;
}
.back-to-top:hover i {
    transform: translateY(-5px);
}
/* Mobile Responsive */
@media (max-width: 600px) {
    .diagram-gallery {
        grid-template-columns: 1fr;
    }
}