/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #1d4ed8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2563eb;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.7;
}

/* Quote Section */
.quote-section {
    padding: 60px 0;
    background: #f8fafc;
    text-align: center;
}

.main-quote {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2rem;
    font-style: italic;
}

.quote-description {
    font-size: 1.1rem;
    max-width: 900px;
    margin: 0 auto 2rem;
    color: #475569;
    line-height: 1.7;
}

.secondary-quote {
    font-size: 1.5rem;
    font-weight: 500;
    color: #2563eb;
    font-style: italic;
}

/* Services Grid */
.services {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.service-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Stats Section */
.stats {
    padding: 40px 0;
    background: #2563eb;
    color: white;
    text-align: center;
}

.stats-text {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Monitoring Section */
.monitoring {
    padding: 60px 0;
    background: #f1f5f9;
}

.monitoring h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
    text-align: center;
}

.monitoring p {
    font-size: 1.1rem;
    color: #475569;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.7;
}

/* Projects Section */
.projects {
    padding: 80px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #2563eb;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.project-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.project-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* About Page */
.about-content {
    padding: 60px 0;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-text h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 2rem 0 1rem;
}

.drives-list {
    list-style: none;
    margin: 1.5rem 0;
}

.drives-list li {
    padding: 0.5rem 0;
    color: #475569;
    position: relative;
    padding-left: 1.5rem;
}

.drives-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

.closing-statement {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2563eb;
    text-align: center;
    margin-top: 2rem;
    font-style: italic;
}

/* Contact Page */
.contact-content {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.contact-info > p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.contact-method p {
    color: #64748b;
}

/* Contact Form */
.contact-form-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.submit-btn {
    width: 100%;
    background: #2563eb;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.form-success {
    background: #dcfce7;
    border: 2px solid #16a34a;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.form-success h3 {
    color: #15803d;
    margin-bottom: 0.5rem;
}

.form-success p {
    color: #166534;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .main-quote {
        font-size: 1.8rem;
    }
    
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card,
    .project-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .services,
    .projects {
        padding: 60px 0;
    }
}

/* Additional Styles for New Pages */

/* Content Section Styles */
.content-section {
    padding: 60px 0;
}

.intro-content {
    text-align: center;
    margin-bottom: 3rem;
}

.intro-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.intro-text {
    font-size: 1.2rem;
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 1rem;
}

.intro-content p {
    font-size: 1.1rem;
    color: #475569;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
    margin-bottom: 2rem;
}

/* Microcontroller Grid */
.microcontroller-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.microcontroller-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #10b981;
}

.microcontroller-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.microcontroller-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.microcontroller-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Sensor Grid */
.sensor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.sensor-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #2563eb;
}

.sensor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

.sensor-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.sensor-card p {
    color: #64748b;
    line-height: 1.5;
    font-size: 0.95rem;
}

.closing-message {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: #f1f5f9;
    border-radius: 12px;
}

.closing-message p {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2563eb;
    font-style: italic;
}

/* Legal Pages */
.legal-content {
    padding: 60px 0;
}

.legal-document {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.effective-date {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #475569;
}

.legal-document h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e293b;
    margin: 2rem 0 1rem;
}

.legal-document p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.legal-list {
    margin: 1rem 0 1.5rem 1.5rem;
    color: #475569;
}

.legal-list li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-document a {
    color: #2563eb;
    text-decoration: none;
}

.legal-document a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .microcontroller-grid,
    .sensor-grid {
        grid-template-columns: 1fr;
    }
    
    .legal-document {
        padding: 2rem 1.5rem;
    }
    
    .content-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .sensor-grid {
        gap: 1rem;
    }
    
    .sensor-card,
    .microcontroller-card {
        padding: 1.25rem;
    }
    
    .legal-document {
        padding: 1.5rem 1rem;
    }
}
/* Enhanced Footer */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.social-link svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .social-links {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
        gap: 0.5rem;
        width: 100%;
    }
    
    .social-link {
        justify-content: center;
    }
}
/* Clickable Cards */
.microcontroller-card,
.sensor-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.microcontroller-card:hover,
.sensor-card:hover {
    text-decoration: none;
    color: inherit;
}

/* Detail Pages Styles */
.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #000000; /* Black color for maximum visibility */
    font-weight: 500;
}

.breadcrumb a {
    color: #1f2937; /* Dark gray for links */
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    color: #000000;
    text-decoration: underline;
}

/* Dark mode breadcrumb */
@media (prefers-color-scheme: dark) {
    .breadcrumb {
        color: #ffffff; /* White for dark mode */
    }
    
    .breadcrumb a {
        color: #e5e7eb; /* Light gray for dark mode links */
    }
    
    .breadcrumb a:hover {
        color: #ffffff;
    }
}

.detail-content {
    padding: 60px 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.detail-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.overview-card,
.specifications-card,
.features-card,
.applications-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.overview-card h2,
.specifications-card h2,
.features-card h2,
.applications-card h2 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.specs-table {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 500;
    color: #374151;
}

.spec-value {
    font-weight: 600;
    color: #1e293b;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: #475569;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.application-item {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.application-item h4 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.application-item p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Detail Sidebar */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.quick-info,
.compatible-sensors,
.compatible-boards,
.getting-started,
.sample-code {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.quick-info h3,
.compatible-sensors h3,
.compatible-boards h3,
.getting-started h3,
.sample-code h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.info-label {
    font-weight: 500;
    color: #374151;
}

.info-value {
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.info-value.beginner {
    background: #dcfce7;
    color: #166534;
}

.info-value.intermediate {
    background: #fef3c7;
    color: #92400e;
}

.info-value.advanced {
    background: #fecaca;
    color: #991b1b;
}

.sensor-list,
.board-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sensor-list li,
.board-list li {
    margin-bottom: 0.5rem;
}

.sensor-list a,
.board-list a {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.9rem;
}

.sensor-list a:hover,
.board-list a:hover {
    text-decoration: underline;
}

.steps-list {
    padding-left: 1rem;
    color: #475569;
}

.steps-list li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.code-snippet {
    background: #1e293b;
    border-radius: 8px;
    overflow: hidden;
}

.code-snippet pre {
    margin: 0;
    padding: 1rem;
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
    overflow-x: auto;
}

/* Sensor Comparison Table */
.sensor-comparison h3 {
    margin-bottom: 1rem;
    color: #1e293b;
}

.comparison-table {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1px;
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.comparison-header {
    display: contents;
}

.comparison-header span {
    background: #1e293b;
    color: white;
    padding: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.comparison-row {
    display: contents;
}

.comparison-row span {
    background: white;
    padding: 0.75rem;
    text-align: center;
    font-size: 0.9rem;
}

.comparison-row span:first-child {
    font-weight: 500;
    text-align: left;
}

/* Wiring Diagram */
.wiring-info h4 {
    margin-bottom: 1rem;
    color: #1e293b;
}

.pin-connections {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.pin-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.pin-row:last-child {
    margin-bottom: 0;
}

.pin-sensor {
    font-weight: 600;
    color: #2563eb;
}

.pin-arrow {
    color: #64748b;
    font-weight: bold;
}

.pin-arduino {
    font-weight: 600;
    color: #059669;
    text-align: right;
}

.wiring-note {
    background: #fef3c7;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

/* Responsive Design for Detail Pages */
@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 0.8rem;
    }
    
    .comparison-header span,
    .comparison-row span {
        padding: 0.5rem;
    }
    
    .pin-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.25rem;
    }
    
    .pin-arduino {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .detail-content {
        padding: 40px 0;
    }
    
    .overview-card,
    .specifications-card,
    .features-card,
    .applications-card {
        padding: 1.5rem;
    }
    
    .quick-info,
    .compatible-sensors,
    .compatible-boards,
    .getting-started,
    .sample-code {
        padding: 1rem;
    }
}

/* Card Image Styles - Responsive for All Devices - FIXED: No more cropping */
.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.microcontroller-card:hover .card-image img,
.sensor-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    flex: 1;
}

/* Update existing card styles to use flexbox */
.microcontroller-card,
.sensor-card {
    display: flex;
    flex-direction: column;
}

/* Responsive Grid Layouts for All Devices */

/* TV and Large Desktop (1920px+) */
@media (min-width: 1920px) {
    .microcontroller-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .sensor-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .card-image {
        height: 260px;
    }
}

/* Large Desktop (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .microcontroller-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .sensor-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.8rem;
    }
    
    .card-image {
        height: 240px;
    }
}

/* Desktop (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .microcontroller-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }
    
    .sensor-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .card-image {
        height: 220px;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .microcontroller-grid,
    .sensor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .card-image {
        height: 200px;
    }
    
    .microcontroller-card,
    .sensor-card {
        padding: 1.5rem;
    }
}

/* Mobile Large (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .microcontroller-grid,
    .sensor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .card-image {
        height: 180px;
        margin-bottom: 0.75rem;
    }
    
    .microcontroller-card,
    .sensor-card {
        padding: 1.25rem;
    }
    
    .microcontroller-card h3,
    .sensor-card h3 {
        font-size: 1rem;
    }
    
    .microcontroller-card p,
    .sensor-card p {
        font-size: 0.9rem;
    }
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
    .microcontroller-grid,
    .sensor-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card-image {
        height: 200px;
        margin-bottom: 0.75rem;
    }
    
    .microcontroller-card,
    .sensor-card {
        padding: 1rem;
    }
    
    .microcontroller-card h3,
    .sensor-card h3 {
        font-size: 1.1rem;
    }
    
    .microcontroller-card p,
    .sensor-card p {
        font-size: 0.9rem;
    }
}
/* Hero Section with Image */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* Responsive hero layout for all devices */
/* TV and Large Desktop (1920px+) */
@media (min-width: 1920px) {
    .hero-content {
        gap: 4rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }
    
    .hero-image img {
        max-width: 600px;
    }
}

/* Large Desktop (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .hero-content {
        gap: 3.5rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

/* Desktop (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .hero-content {
        gap: 2.5rem;
    }
    
    .hero-image img {
        max-width: 450px;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        max-width: 400px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

/* Mobile Large (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        max-width: 350px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        max-width: 280px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
}
/* Enhanced Navigation for All Devices */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-container {
        position: relative;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-direction: row;
    }
    
    .hamburger {
        order: 1;
        display: flex !important;
        flex-direction: column;
        cursor: pointer;
        padding: 5px;
        margin-right: 1rem;
        z-index: 1001;
    }
    
    .logo {
        order: 2;
        margin-left: 0;
        flex-grow: 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 2rem;
        padding-top: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        order: 3;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .hamburger span {
        width: 25px;
        height: 3px;
        background: #64748b;
        margin: 3px 0;
        transition: 0.3s;
        border-radius: 2px;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

@media (min-width: 769px) {
    .hamburger {
        display: none;
    }
}

/* Enhanced Container Responsive Sizes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* TV and Large Desktop */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
        padding: 0 40px;
    }
}

/* Large Desktop */
@media (min-width: 1440px) and (max-width: 1919px) {
    .container {
        max-width: 1400px;
        padding: 0 30px;
    }
}

/* Desktop */
@media (min-width: 1024px) and (max-width: 1439px) {
    .container {
        max-width: 1000px;
        padding: 0 25px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        max-width: 750px;
        padding: 0 20px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
}

/* Enhanced Typography for All Devices */
/* TV and Large Desktop Typography */
@media (min-width: 1920px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.3rem;
    }
}

/* Large Desktop Typography */
@media (min-width: 1440px) and (max-width: 1919px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
}

/* Desktop Typography */
@media (min-width: 1024px) and (max-width: 1439px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
}

/* Enhanced Footer for All Devices */
.footer {
    background: #1e293b;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    text-align: center;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: white;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        justify-content: center;
        gap: 1rem;
    }
    
    .social-links {
        justify-content: center;
        gap: 1rem;
    }
    
    .social-link {
        font-size: 0.9rem;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .social-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Image Optimization and Fallbacks - FIXED: No more cropping */
.card-image img,
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #f8fafc;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.card-image img:hover {
    transform: scale(1.05);
}

/* Image loading states */
.card-image img[src=""],
.card-image img:not([src]),
.hero-image img[src=""],
.hero-image img:not([src]) {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img[src=""]:before,
.card-image img:not([src]):before,
.hero-image img[src=""]:before,
.hero-image img:not([src]):before {
    content: "📷";
    font-size: 2rem;
    color: #64748b;
}

/* Image error handling */
img {
    max-width: 100%;
    height: auto;
}

img[alt]:after {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    content: "📷 " attr(alt);
}
/* Enhanced Service Cards with Images - FIXED: No more cropping */
.service-image {
    width: 100%;
    height: 220px;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #f8fafc;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

/* Enhanced Project Cards with Images - FIXED: No more cropping */
.project-image {
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #f8fafc;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

/* Enhanced Monitoring Section */
.monitoring-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.monitoring-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.monitoring-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive adjustments for new image layouts */
@media (max-width: 768px) {
    .monitoring-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .monitoring-text {
        order: 2;
    }
    
    .monitoring-image {
        order: 1;
    }
    
    .service-image,
    .project-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .service-image,
    .project-image {
        height: 160px;
    }
}
/* Additional Image Enhancement - No Cropping, Full Image Display */
.card-image,
.service-image,
.project-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure images maintain aspect ratio and show completely */
.card-image img,
.service-image img,
.project-image img,
.hero-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain !important;
    object-position: center !important;
}

/* Subtle hover effect that doesn't crop */
.card-image:hover img,
.service-image:hover img,
.project-image:hover img {
    transform: scale(1.02);
    filter: brightness(1.05);
}

/* Better background for transparent or small images */
.card-image,
.service-image,
.project-image,
.hero-image {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
}

/* Ensure monitoring image also shows completely */
.monitoring-image img {
    object-fit: contain !important;
    width: 100%;
    height: auto;
    max-height: 400px;
}
/* New Layout Structure CSS */

/* Services Row 1 - 3 items in a line */
.services-row-1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Services Grid 2x2 - 4 items in 2x2 matrix */
.services-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Projects Row - 3 items in a line */
.projects-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Image Carousel Section */
.image-carousel {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    overflow: hidden;
}

.carousel-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3rem;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.carousel-track {
    display: flex;
    animation: scroll 20s linear infinite;
}

.carousel-slide {
    flex: 0 0 400px;
    margin-right: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.carousel-slide img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    object-position: center;
    background: white;
    display: block;
}

/* Carousel Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

/* Responsive Design for New Layout */

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .services-row-1,
    .projects-row {
        gap: 3rem;
    }
    
    .services-grid-2x2 {
        gap: 3rem;
    }
    
    .carousel-slide {
        flex: 0 0 450px;
    }
}

/* Desktop (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .services-row-1,
    .projects-row {
        gap: 2rem;
    }
    
    .services-grid-2x2 {
        gap: 2rem;
    }
    
    .carousel-slide {
        flex: 0 0 380px;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .services-row-1 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-grid-2x2 {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .projects-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .carousel-slide {
        flex: 0 0 320px;
        height: 250px;
    }
    
    .carousel-slide img {
        height: 250px;
    }
    
    .carousel-title {
        font-size: 2rem;
    }
}

/* Mobile Large (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .services-row-1,
    .services-grid-2x2,
    .projects-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .carousel-slide {
        flex: 0 0 280px;
        height: 220px;
    }
    
    .carousel-slide img {
        height: 220px;
    }
    
    .carousel-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .image-carousel {
        padding: 60px 0;
    }
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
    .services-row-1,
    .services-grid-2x2,
    .projects-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .carousel-slide {
        flex: 0 0 250px;
        height: 200px;
        margin-right: 1rem;
    }
    
    .carousel-slide img {
        height: 200px;
    }
    
    .carousel-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .image-carousel {
        padding: 40px 0;
    }
}

/* Enhanced Service and Project Cards for New Layout */
.services-row-1 .service-card,
.services-grid-2x2 .service-card,
.projects-row .project-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.services-row-1 .service-card:hover,
.services-grid-2x2 .service-card:hover,
.projects-row .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Ensure equal height cards */
.services-row-1,
.services-grid-2x2,
.projects-row {
    align-items: stretch;
}
/* Logo Image Styles */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    object-position: center;
    transition: filter 0.3s ease;
}

.logo:hover .logo-image {
    filter: brightness(1.1);
}

/* Responsive Logo Sizes */
@media (min-width: 1440px) {
    .logo-image {
        height: 55px;
        max-width: 220px;
    }
}

@media (min-width: 1024px) and (max-width: 1439px) {
    .logo-image {
        height: 50px;
        max-width: 200px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .logo-image {
        height: 45px;
        max-width: 180px;
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    .logo-image {
        height: 40px;
        max-width: 160px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 35px;
        max-width: 140px;
    }
}
/* Code Pages Styles */
.code-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.code-section h2 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.code-container {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.code-header {
    background: #334155;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #475569;
}

.code-header span {
    color: #e2e8f0;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.copy-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.code-block {
    margin: 0;
    padding: 1.5rem;
    background: #1e293b;
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.setup-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.setup-card h2 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.setup-list {
    padding-left: 1.5rem;
    color: #475569;
}

.setup-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* Responsive Code Styles */
@media (max-width: 768px) {
    .code-section {
        padding: 1.5rem;
    }
    
    .code-header {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .code-block {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .copy-btn {
        width: 100%;
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .code-section {
        padding: 1rem;
    }
    
    .code-header {
        padding: 0.5rem;
    }
    
    .code-block {
        padding: 0.75rem;
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .setup-card {
        padding: 1.5rem;
    }
}
/* Setup Instructions in Sidebar */
.setup-instructions {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.setup-instructions h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.setup-instructions .setup-list {
    padding-left: 1rem;
    color: #475569;
    margin: 0;
}

.setup-instructions .setup-list li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive Setup Instructions */
@media (max-width: 768px) {
    .setup-instructions {
        padding: 1rem;
    }
    
    .setup-instructions .setup-list li {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
}

@media (max-width: 480px) {
    .setup-instructions {
        padding: 1rem;
    }
    
    .setup-instructions h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .setup-instructions .setup-list li {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}
/* Download Container Styles */
.download-container {
    margin-top: 2rem;
}

.download-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.download-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.download-icon {
    color: #3b82f6;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.download-card h3 {
    color: #111827;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.download-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 0.875rem;
}

.file-name {
    color: #111827;
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

.file-size {
    color: #6b7280;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #3b82f6;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    text-decoration: none;
}

.download-btn svg {
    width: 20px;
    height: 20px;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .download-card {
        background: #1f2937;
        border-color: #374151;
    }
    
    .download-card:hover {
        border-color: #3b82f6;
    }
    
    .download-card h3 {
        color: #f9fafb;
    }
    
    .download-card p {
        color: #d1d5db;
    }
    
    .file-info {
        background: #374151;
    }
    
    .file-name {
        color: #f9fafb;
    }
    
    .file-size {
        color: #d1d5db;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .download-card {
        padding: 1.5rem;
    }
    
    .file-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
    }
}
/* Center Related section with respect to Setup Instructions */
.setup-instructions + .related-links {
    text-align: center;
}

.setup-instructions + .related-links h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.setup-instructions + .related-links .board-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.setup-instructions + .related-links .board-list li {
    text-align: center;
}

.setup-instructions + .related-links .board-list li a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
    font-weight: 500;
}

.setup-instructions + .related-links .board-list li a:hover {
    background: #3b82f6;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Dark mode for related links */
@media (prefers-color-scheme: dark) {
    .setup-instructions + .related-links .board-list li a {
        background: #374151;
        color: #d1d5db;
    }
    
    .setup-instructions + .related-links .board-list li a:hover {
        background: #3b82f6;
        color: #ffffff;
    }
}
/* Fix Mobile Navigation Layout - Hamburger Left, Logo Next */
@media screen and (max-width: 768px) {
    .nav-container {
        justify-content: flex-start !important;
        gap: 0 !important;
    }
    
    .hamburger {
        order: 1 !important;
        margin-right: 1rem !important;
        margin-left: 0 !important;
        flex-shrink: 0 !important;
    }
    
    .logo {
        order: 2 !important;
        margin-left: 0 !important;
        margin-right: auto !important;
        flex-shrink: 0 !important;
    }
    
    .nav-menu {
        order: 3 !important;
    }
    
    /* Hide duplicate hamburger menus if any */
    .hamburger + .hamburger,
    .nav-container .hamburger:nth-of-type(2),
    .nav-container .hamburger:not(:first-of-type) {
        display: none !important;
    }
    
    /* Ensure hamburger is visible on mobile */
    .hamburger {
        display: flex !important;
    }
}

/* Desktop - Hide hamburger */
@media screen and (min-width: 769px) {
    .hamburger {
        display: none !important;
    }
}
/* Hide JavaScript-created duplicate mobile menu toggles */
.mobile-menu-toggle {
    display: none !important;
}

/* Ensure only the proper hamburger menu shows */
.nav-container .hamburger {
    display: flex !important;
}

@media screen and (max-width: 768px) {
    /* Hide any dynamically created menu buttons */
    .mobile-menu-toggle,
    button[style*="color: #2563eb"] {
        display: none !important;
    }
    
    /* Ensure proper hamburger positioning */
    .nav-container {
        position: relative !important;
    }
    
    .hamburger {
        position: relative !important;
        order: 1 !important;
        margin-right: 1rem !important;
        z-index: 1001 !important;
    }
    
    .logo {
        order: 2 !important;
        margin-left: 0 !important;
    }
}
/* Projects Page Styles */
.projects-content {
    padding: 3rem 0;
}

.projects-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.projects-intro h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.projects-intro p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.75rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.project-subtitle {
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.project-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.project-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #475569;
    font-size: 0.95rem;
}

.feature-item svg {
    color: #3b82f6;
    flex-shrink: 0;
}

.project-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.code-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.code-btn.primary {
    background: #3b82f6;
    color: white;
}

.code-btn.primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.code-btn.secondary {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.code-btn.secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.projects-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
}

.cta-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: #3b82f6;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-card {
        margin: 0 1rem;
    }
    
    .projects-intro h2 {
        font-size: 2rem;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .code-btn {
        justify-content: center;
        width: 100%;
    }
    
    .projects-cta {
        margin: 0 1rem;
        padding: 2rem 1.5rem;
    }
    
    .cta-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-content h3 {
        font-size: 1.5rem;
    }
}
/* Documentation Button Styling */
.code-btn.documentation {
    background: #f59e0b;
    color: white;
}

.code-btn.documentation:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
/* Enhanced Download Cards with File Info */
.download-card-enhanced {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.download-card-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.download-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.file-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.download-info h3 {
    margin: 0 0 0.25rem 0;
    color: #1e293b;
    font-size: 1.1rem;
}

.download-info p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.file-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.file-detail {
    text-align: center;
}

.file-detail-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.file-detail-value {
    display: block;
    font-size: 0.9rem;
    color: #1e293b;
    font-weight: 500;
}

.download-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.download-btn-enhanced {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.download-btn-enhanced:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    color: white;
    text-decoration: none;
}

.download-btn-enhanced.secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.download-btn-enhanced.secondary:hover {
    background: #e2e8f0;
    color: #334155;
}

/* Loading states */
.file-info-loading {
    opacity: 0.6;
    pointer-events: none;
}

.file-info-loading .file-detail-value {
    background: #e2e8f0;
    color: transparent;
    border-radius: 4px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
/* Mobile responsive for enhanced download cards */
@media (max-width: 768px) {
    .download-card-enhanced .download-header {
        flex-direction: column;
        text-align: center;
    }
    
    .download-card-enhanced .file-details {
        grid-template-columns: 1fr;
    }
    
    .download-card-enhanced .download-actions {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .download-card-enhanced .download-btn-enhanced {
        justify-content: center;
        width: 100%;
        max-width: 300px;
    }
}
/* Center Related section in documentation pages (without setup-instructions) */
.related-links {
    text-align: center;
}

.related-links h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.related-links .board-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.related-links .board-list li {
    text-align: center;
}

.related-links .board-list li a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
    font-weight: 500;
}

.related-links .board-list li a:hover {
    background: #3b82f6;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Dark mode for all related links */
@media (prefers-color-scheme: dark) {
    .related-links .board-list li a {
        background: #374151;
        color: #d1d5db;
    }
    
    .related-links .board-list li a:hover {
        background: #3b82f6;
        color: #ffffff;
    }
}

/* Founder Button Styling */
.founder-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #d1d5db !important;
    color: #374151;
    text-decoration: none;
    border: 2px solid #9ca3af;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.founder-btn:hover {
    background: #9ca3af !important;
    color: #1f2937;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.founder-btn svg {
    width: 16px;
    height: 16px;
}