html, body {
    overscroll-behavior: none;
}
/* Responsive schematic/model layout */
.model-section {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.responsive-img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 6px;
}
.model-img {
    max-width: 300px;
}
.schematics-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.schematic-row {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 700px;
}
.schematic-img-col {
    flex: 0 0 300px;
    text-align: center;
}
.schematic-desc-col {
    font-size: 0.95em;
    margin-top: 0.5rem;
    text-align: left;
}
@media (max-width: 900px) {
    .schematic-row {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
        gap: 0.5rem;
    }
    .schematic-img-col {
        flex: unset;
        max-width: 100%;
    }
    .schematic-desc-col {
        margin-top: 0.5rem;
    }
}
@media (max-width: 425px) {
    .model-img {
        max-width: 90vw;
    }
    .schematic-row {
        gap: 0.2rem;
    }
    .schematic-img-col {
        max-width: 100vw;
    }
}
/* Responsive Design */
@media (max-width: 1440px) {
    .main, .projects-section, .about-section, .contact-section {
        max-width: 1100px;
        padding: 0 2rem;
    }
}
@media (max-width: 1024px) {
    .main, .projects-section, .about-section, .contact-section {
        max-width: 900px;
        padding: 0 1.5rem;
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .main, .projects-section, .about-section, .contact-section {
        max-width: 100vw;
        padding: 0 1rem;
    }
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .navbar-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .projects-section, .about-section, .contact-section {
        padding: 0 1rem;
    }
}
@media (max-width: 425px) {
    .main, .projects-section, .about-section, .contact-section {
        padding: 0 0.5rem;
    }
    .navbar-container {
        padding: 0.5rem;
    }
    .project-card img {
        height: 120px;
    }
    .btn, button {
        padding: 0.5em 1em;
        font-size: 0.95rem;
    }
}
@media (max-width: 375px) {
    .main, .projects-section, .about-section, .contact-section {
        padding: 0 0.2rem;
    }
    .navbar-container {
        padding: 0.2rem;
    }
    .project-card img {
        height: 90px;
    }
    .btn, button {
        padding: 0.4em 0.7em;
        font-size: 0.9rem;
    }
    .logo {
        font-size: 1.1rem;
    }
}
@media (max-width: 320px) {
    .main, .projects-section, .about-section, .contact-section {
        padding: 0 0.1rem;
    }
    .navbar-container {
        padding: 0.1rem;
    }
    .project-card img {
        height: 60px;
    }
    .btn, button {
        padding: 0.3em 0.5em;
        font-size: 0.8rem;
    }
    .logo {
        font-size: 0.9rem;
    }
}
/* Search Bar */
.projects-search-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}
#projectSearch {
    padding: 0.6em 1.2em;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
    background: #232a34;
    color: #e0e6ed;
    box-shadow: 0 2px 8px rgba(30,203,225,0.08);
    outline: none;
    transition: box-shadow 0.2s, background 0.2s;
}
#projectSearch:focus {
    box-shadow: 0 4px 16px rgba(30,203,225,0.18);
    background: #1a2028;
}

/* Card Animations */
.project-card {
    /* ...existing styles... */
    transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s cubic-bezier(.4,0,.2,1), opacity 0.5s, filter 0.3s;
    opacity: 0;
    transform: translateY(40px) scale(1);
    will-change: transform, opacity;
}
.project-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: fadeUp 0.7s cubic-bezier(.4,0,.2,1);
}
.project-card:hover, .project-card.hovered {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 32px rgba(30,203,225,0.22);
    z-index: 2;
    filter: brightness(1.08) saturate(1.2);
}

/* Fade-in for page transitions */
.fade-page {
    opacity: 0;
    transition: opacity 0.5s;
}
.fade-page.fade-in {
    opacity: 1;
}

/* Collapsible code block */
.collapsible-code {
    margin-bottom: 1.5rem;
}
.collapsible-toggle {
    background: none;
    border: none;
    color: #1ecbe1;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
    text-align: left;
    padding: 0;
    transition: color 0.2s;
}
.collapsible-toggle:hover {
    color: #2fff7f;
}
.collapsible-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(.4,0,.2,1);
}
.collapsible-content.collapsed {
    max-height: 0;
    padding: 0 !important;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.4s cubic-bezier(.4,0,.2,1), opacity 0.3s;
}

/* html {
    scroll-behavior: smooth;
} */
body {
    font-family: 'Poppins', 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #181c24;
    color: #e0e6ed;
}

/* Accent Colors */
.accent {
    color: #1ecbe1;
}

/* Glassmorphism Navbar */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(35, 42, 52, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.3s;
}
.navbar.scrolled {
    background: rgba(35, 42, 52, 0.92);
}
.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}
.nav-links a {
    color: #e0e6ed;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}
.nav-links a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1ecbe1, #2fff7f);
    transition: width 0.3s;
    position: absolute;
    left: 0;
    bottom: -4px;
}
.nav-links a:hover {
    color: #1ecbe1;
}
.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45vh;
    background: linear-gradient(120deg, #232a34 60%, #1ecbe1 100%);
    text-align: center;
    box-shadow: 0 4px 24px rgba(30,203,225,0.08);
    animation: fadeIn 1.2s cubic-bezier(.4,0,.2,1);
}
.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-family: 'Poppins', 'Roboto', Arial, sans-serif;
}
.hero-content p {
    font-size: 1.3rem;
    color: #b2f7ef;
}

/* Projects Section */
.projects-section {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 2rem;
}
.projects-section h2 {
    color: #1ecbe1;
    margin-bottom: 2rem;
    text-align: center;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    transition: gap 0.3s;
}
@media (max-width: 1000px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 700px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .navbar-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .projects-section, .about-section, .contact-section {
        padding: 0 1rem;
    }
}
.project-card {
    background: #232a34;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(30,203,225,0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(40px);
    will-change: transform, opacity;
}
.project-card.visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeUp 0.7s cubic-bezier(.4,0,.2,1);
}
.project-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px rgba(30,203,225,0.18);
}
.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #1a2028;
    transition: filter 0.3s;
}
.project-card:hover img {
    filter: brightness(1.08) saturate(1.2);
}
.card-content {
    padding: 1.2rem;
}
.card-content h3 {
    margin: 0 0 0.5rem 0;
    color: #1ecbe1;
    font-family: 'Poppins', 'Roboto', Arial, sans-serif;
}
.card-content p {
    margin: 0;
    color: #b2f7ef;
    font-size: 1rem;
}

/* Button Styles */
button, .btn {
    font-family: 'Poppins', 'Roboto', Arial, sans-serif;
    background: linear-gradient(90deg, #1ecbe1, #2fff7f);
    color: #181c24;
    border: none;
    border-radius: 6px;
    padding: 0.7em 1.5em;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(30,203,225,0.08);
    transition: background 0.3s, color 0.3s, transform 0.2s;
}
button:hover, .btn:hover {
    background: linear-gradient(90deg, #2fff7f, #1ecbe1);
    color: #232a34;
    transform: translateY(-2px) scale(1.04);
}

/* About & Contact Sections */
.about-section, .contact-section {
    max-width: 700px;
    margin: 3rem auto;
    padding: 0 2rem;
    background: #232a34;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(30,203,225,0.06);
    opacity: 0;
    transform: translateY(40px);
    will-change: transform, opacity;
    transition: opacity 0.7s, transform 0.7s;
}
.about-section.visible, .contact-section.visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeUp 0.7s cubic-bezier(.4,0,.2,1);
}
.about-section h2, .contact-section h2 {
    color: #1ecbe1;
    margin-bottom: 1rem;
    text-align: center;
    font-family: 'Poppins', 'Roboto', Arial, sans-serif;
}
.about-section p, .contact-section p {
    color: #e0e6ed;
    text-align: center;
}
.contact-section a.accent {
    text-decoration: underline;
    font-weight: 500;
}

/* Footer */
footer {
    background: #181c24;
    color: #b2f7ef;
    text-align: center;
    padding: 1.2rem 0 1rem 0;
    margin-top: 3rem;
    font-size: 1rem;
    border-top: 1px solid #232a34;
}
footer a.accent {
    color: #1ecbe1;
    text-decoration: none;
    transition: color 0.2s;
}
footer a.accent:hover {
    color: #2fff7f;
}

/* Code Snippet Styling */
pre, code {
    font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', monospace;
    background: #232a34;
    color: #b2f7ef;
    border-radius: 8px;
    padding: 0.5em 1em;
    font-size: 1em;
    overflow-x: auto;
}
pre {
    margin: 1.5em 0;
    box-shadow: 0 2px 16px rgba(30,203,225,0.08);
}
code {
    padding: 0.2em 0.5em;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    background: #232a34;
}
::-webkit-scrollbar-thumb {
    background: #1ecbe1;
    border-radius: 5px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
