html {
    scroll-behavior: smooth;
}

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

html,
body {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-width: 0;
}

body {
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}


footer {
    padding: 2rem 0 1rem;
    border-top: 1px solid #444;
}

.footer-content {
    margin-bottom: 1.5rem;
    padding: 0 0;
}

@media (max-width: 480px) {
    footer {
        padding: 1.25rem 0 0.75rem;
    }

    .footer-content {
        margin-bottom: 1rem;
        gap: 1rem;
    }
}

.logo img {
    max-width: 100%;
    height: auto;
    max-height: 56px;
    transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .logo img:hover {
        transform: scale(1.05);
    }
}

@media (hover: none) {
    .logo img:hover {
        transform: none;
    }
}

.project-image {
    height: 400px;
}

@media (max-width: 768px) {
    .project-image {
        height: 260px;
    }
}

@media (max-width: 480px) {
    .project-image {
        height: 160px;
        object-fit: cover;
    }
}

.toast,
.toast-container {
    max-width: calc(100% - 24px);
    box-sizing: border-box;
}

.debug-outline * {
    outline: 1px dashed rgba(255, 0, 0, 0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

body.dark-theme {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background-color: #0066cc;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
    border: 2px solid #0066cc;
}

body.dark-theme .btn-secondary {
    background-color: #333;
    color: #e0e0e0;
}

.btn-secondary:hover {
    background-color: #0066cc;
    color: #fff;
}

a {
    color: #0066cc;
    text-decoration: none;
}

body.dark-theme a {
    color: #66b3ff;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 0.5em;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

header {
    position: sticky;
    top: 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

body.dark-theme header {
    background-color: #222;
    border-bottom-color: #444;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 1rem 0; */
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 80px;
    width: auto;
}

.logo img:hover {
    transform: scale(2.50);
    transition: transform 0.3s ease;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

body.dark-theme nav a {
    color: #e0e0e0;
}

nav a:hover {
    color: #0066cc;
    text-decoration: none;
}

nav a.active {
    color: #0066cc;
    font-weight: 700;
    border-bottom: 3px solid #0066cc;
    padding-bottom: 2px;
}

body.dark-theme nav a.active {
    color: #66b3ff;
    border-bottom-color: #66b3ff;
}

.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    list-style: none;
    padding: 0.5rem 0;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    border-radius: 0 0 6px 6px;
    margin-top: 0;
}

body.dark-theme .dropdown-menu {
    background-color: #2a2a2a;
    border-color: #444;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 400;
    border-bottom: none;
}

body.dark-theme .dropdown-menu a {
    color: #e0e0e0;
}

.dropdown-menu a:hover {
    background-color: #f0f0f0;
    color: #0066cc;
    padding-left: 1.8rem;
}

body.dark-theme .dropdown-menu a:hover {
    background-color: #3a3a3a;
    color: #66b3ff;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
    padding: 0.75rem 0;
    font-size: 0.9rem;
}

body.dark-theme .breadcrumb-nav {
    background-color: #1a1a1a;
    border-bottom-color: #444;
}

.breadcrumbs {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    padding: 0;
    margin: 0;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
}

.breadcrumbs a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s;
}

body.dark-theme .breadcrumbs a {
    color: #66b3ff;
}

.breadcrumbs a:hover {
    text-decoration: underline;
    color: #0052a3;
}

body.dark-theme .breadcrumbs a:hover {
    color: #99ccff;
}

.breadcrumbs .current {
    color: #666;
    font-weight: 500;
}

body.dark-theme .breadcrumbs .current {
    color: #ccc;
}

.breadcrumbs .separator {
    color: #ccc;
    margin: 0 0.25rem;
}

body.dark-theme .breadcrumbs .separator {
    color: #555;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

body.dark-theme .menu-toggle {
    color: #e0e0e0;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #333;
}

body.dark-theme .theme-toggle {
    color: #e0e0e0;
}

.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef7 100%);
    text-align: center;
}

body.dark-theme .hero {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f2937 100%);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero p {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

body.dark-theme .hero p {
    color: #aaa;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.micro-hero-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.tile {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

body.dark-theme .tile {
    background: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.tile img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.tile h4 {
    margin-bottom: 0.5rem;
}

section {
    padding: 4rem 0;
    border-bottom: 1px solid #eee;
}

body.dark-theme section {
    border-bottom-color: #444;
}

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

.about-text h2 {
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: #666;
}

body.dark-theme .about-text p {
    color: #aaa;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-item .number {
    font-size: 2rem;
    font-weight: 700;
    color: #0066cc;
}

.stat-item .label {
    color: #666;
    margin-top: 0.5rem;
}

body.dark-theme .stat-item .label {
    color: #aaa;
}

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

.service-card {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
    transition: transform 0.3s, box-shadow 0.3s;
}

body.dark-theme .service-card {
    background: #2a2a2a;
    border-left-color: #66b3ff;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #0066cc;
}

body.dark-theme .service-card h3 {
    color: #66b3ff;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
}

body.dark-theme .service-card li {
    color: #aaa;
}

.service-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0066cc;
    font-weight: bold;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

body.dark-theme .filter-btn {
    border-color: #555;
    background: #2a2a2a;
    color: #e0e0e0;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

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

.project-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

body.dark-theme .project-card {
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 400px;
    background: #e0e0e0;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-body {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

body.dark-theme .project-description {
    color: #aaa;
}

.tech-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.badge {
    display: inline-block;
    background-color: #e8f0ff;
    color: #0066cc;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

body.dark-theme .badge {
    background-color: #1a3a52;
    color: #66b3ff;
}

.project-link {
    color: #0066cc;
    font-weight: 600;
    text-decoration: none;
}

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

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

body.dark-theme input[type="text"],
body.dark-theme input[type="email"],
body.dark-theme input[type="tel"],
body.dark-theme textarea,
body.dark-theme select {
    background-color: #333;
    border-color: #555;
    color: #e0e0e0;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

body.dark-theme .contact-card {
    background: #2a2a2a;
    border-left-color: #66b3ff;
}

.contact-card h4 {
    margin-bottom: 0.5rem;
    color: #0066cc;
}

body.dark-theme .contact-card h4 {
    color: #66b3ff;
}

footer {
    background-color: #222;
    color: #fff;
    padding: 3rem 0 1rem;
    border-top: 1px solid #444;
}

body.dark-theme footer {
    background-color: #1a1a1a;
    border-top-color: #333;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #0066cc;
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: #0066cc;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1rem;
    text-align: center;
    color: #aaa;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 50%;
}

.toast {
    background: #fff;
    padding: 16px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

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

.toast.success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.toast.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.toast.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

body.dark-theme .toast {
    background: #333;
    color: #e0e0e0;
}

body.dark-theme .toast.success {
    background-color: #1b3d1b;
    color: #9dd49d;
    border-left-color: #4caf50;
}

body.dark-theme .toast.error {
    background-color: #3d1b1b;
    color: #ff9999;
    border-left-color: #f44336;
}

body.dark-theme .toast.info {
    background-color: #1b2d3d;
    color: #99d4ff;
    border-left-color: #2196f3;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.toast-close:hover {
    opacity: 1;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1500;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

body.dark-theme .modal-content {
    background-color: #2a2a2a;
}

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

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

.modal-close {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #999;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #000;
}

body.dark-theme .modal-close:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    header nav {
        padding: 1rem 0;
    }

    nav ul {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 4rem 1rem 1rem;
        transition: left 0.3s ease;
        z-index: 1005;
        gap: 1.5rem;
        list-style: none;
        display: flex;
        align-items: flex-start;
    }

    body.dark-theme nav ul {
        background: #222;
    }

    nav ul.active {
        left: 0;
    }

    .menu-toggle {
        display: block;
    }

    nav a {
        color: #333;
        display: block;
        padding: 0.75rem 0;
    }

    body.dark-theme nav a {
        color: #e0e0e0;
    }

    nav ul li {
        width: 100%;
    }

    .dropdown-menu {
        position: relative;
        display: none !important;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0.25rem 0 0.5rem 1rem;
        margin: 0.25rem 0 0.75rem 0;
        min-width: auto;
        border-radius: 0;
    }

    .overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.18s ease, visibility 0.18s ease;
        /* z-index: 1000; */
        pointer-events: none;
    }

    .overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.dark-theme .dropdown-menu {
        background: #1a1a1a;
    }

    .dropdown-menu a {
        padding: 0.5rem 0;
        font-size: 0.95rem;
    }

    .dropdown-menu a:hover {
        padding-left: 0;
    }

    .dropdown-menu.show {
        display: block !important;
    }

    nav ul.active .dropdown-menu {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        display: none !important;
        background: transparent !important;
        box-shadow: none !important;
        padding-left: 1rem !important;
        margin: 0.25rem 0 0.75rem 0 !important;
        width: 100% !important;
    }

    nav ul.active .dropdown-menu.show {
        display: block !important;
    }

    nav ul.active .dropdown-menu a {
        padding: 0.6rem 0;
        color: inherit;
        display: block;
    }

    .dropdown-arrow {
        display: inline-block;
    }

    .breadcrumb-nav {
        display: none;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .micro-hero-tiles {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .toast {
        min-width: 250px;
    }

    .modal-content {
        width: 95%;
    }

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

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .micro-hero-tiles {
        grid-template-columns: 1fr;
    }

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

    .stats-row {
        grid-template-columns: 1fr;
    }

    section {
        padding: 2rem 0;
    }

    nav ul {
        width: 100%;
        max-width: 50%;
    }

    .toast {
        min-width: 280px;
        padding: 12px;
    }

    .toast-container {
        bottom: 20px;
        right: auto;
        left: 10px;
    }

    footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .footer-section ul {
        font-size: 0.9rem;
    }

    .footer-section li {
        margin-bottom: 0.4rem;
    }

    .social-links {
        gap: 0.75rem;
    }

    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .footer-bottom {
        padding-top: 0.75rem;
        font-size: 0.85rem;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

body.dark-theme :focus-visible {
    outline-color: #66b3ff;
}

img[loading="lazy"] {
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

body.dark-theme :focus-visible {
    outline-color: #66b3ff;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-full-width {
    width: 100%;
}

.profile-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.form-group-checkbox {
    flex-direction: column;
}

.cpms-intro {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

body.dark-theme .cpms-intro {
    color: #aaa;
}

.section-subheader {
    margin: 2rem 0 1.5rem;
    color: #0066cc;
}

body.dark-theme .section-subheader {
    color: #66b3ff;
}

.demo-box {
    background: #f0f7ff;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: center;
}

body.dark-theme .demo-box {
    background: #1a3a52;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tech-item {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

body.dark-theme .tech-item {
    background: #2a2a2a;
    border-left-color: #66b3ff;
}

.section-anchor {
    display: block;
    position: relative;
    top: -100px;
    visibility: hidden;
}

.meta {
    color: #999;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

article {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
}

body.dark-theme article {
    background: #2a2a2a;
}

article p {
    margin-bottom: 1rem;
}

article ul,
article ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

article li {
    margin-bottom: 0.5rem;
}

article code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

body.dark-theme article code {
    background: #333;
    color: #aaa;
}

article pre {
    background: #f0f0f0;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    line-height: 1.4;
}

body.dark-theme article pre {
    background: #333;
}

article strong {
    font-weight: 600;
}

article em {
    font-style: italic;
}

.cta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
    background: #f0f7ff;
    padding: 1.5rem;
    border-radius: 4px;
}

body.dark-theme .cta {
    background: #1a3a52;
    border-top-color: #444;
}

.blog-meta {
    color: #999;
    font-size: 0.85rem;
}

.blog-excerpt {
    margin: 1rem 0;
}

.cta-text {
    margin-bottom: 0;
}

main>.container>h1 {
    text-align: center;
    margin: 2rem 0 1rem 0;
    color: #0066cc;
}

body.dark-theme main>.container>h1 {
    color: #66b3ff;
}

main>.container>p {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

body.dark-theme main>.container>p {
    color: #aaa;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0 4rem 0;
}

.demo-item {
    background: linear-gradient(135deg, #f5f5f5 0%, #f9f9f9 100%);
    padding: 2rem 1.5rem;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.demo-item:hover {
    transform: translateY(-4px);
    border-color: #0066cc;
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.15);
}

body.dark-theme .demo-item {
    background: linear-gradient(135deg, #2a2a2a 0%, #333 100%);
    border-color: #444;
}

body.dark-theme .demo-item:hover {
    border-color: #66b3ff;
    box-shadow: 0 6px 16px rgba(102, 179, 255, 0.15);
}

.demo-item h3 {
    color: #0066cc;
    margin-bottom: 0.75rem;
}

body.dark-theme .demo-item h3 {
    color: #66b3ff;
}

.demo-item p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

body.dark-theme .demo-item p {
    color: #aaa;
}

.demo-item .btn {
    background-color: #0066cc;
    color: #fff;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.demo-item .btn:hover {
    background-color: #0052a3;
}

.demo-section {
    margin: 4rem 0;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
    scroll-margin-top: 120px;
}

body.dark-theme .demo-section {
    background: #2a2a2a;
    border-left-color: #66b3ff;
}

.demo-section h2 {
    color: #0066cc;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

body.dark-theme .demo-section h2 {
    color: #66b3ff;
}

.demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: flex-start;
}

@media (max-width: 1024px) {
    .demo-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.demo-chart {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.dark-theme .demo-chart {
    background: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.demo-chart h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.2rem;
}

body.dark-theme .demo-chart h3 {
    color: #e0e0e0;
}

.demo-chart canvas {
    max-height: 300px;
    margin-top: 1rem;
}

.demo-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.demo-info p {
    margin: 0;
    line-height: 1.6;
    color: #555;
    font-size: 0.95rem;
}

body.dark-theme .demo-info p {
    color: #ccc;
}

.demo-info strong {
    color: #0066cc;
    font-weight: 600;
}

body.dark-theme .demo-info strong {
    color: #66b3ff;
}

.demo-note {
    background: #e3f2fd;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #0066cc;
    font-style: italic;
    color: #1565c0 !important;
    font-size: 0.9rem;
}

body.dark-theme .demo-note {
    background: #1a3a52;
    border-left-color: #66b3ff;
    color: #90caf9 !important;
}

.demo-cta {
    text-align: center;
    margin: 4rem 0 2rem 0;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 8px;
    border-top: 3px solid #0066cc;
}

.fieldset {
    border: 1px solid #ccc;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.fieldset legend {
    padding: 0 0.5rem;
    font-weight: 600;
    color: #0066cc;
}

.how {
    text-align: left;
}

body.dark-theme .demo-cta {
    background: linear-gradient(135deg, #1a3a52 0%, #2a1a3a 100%);
    border-top-color: #66b3ff;
}

.demo-cta h2 {
    margin-bottom: 1rem;
}

.demo-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
}

body.dark-theme .demo-cta p {
    color: #aaa;
}

.demo-cta .btn-primary {
    padding: 14px 32px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    main>.container>h1 {
        font-size: 1.8rem;
        margin: 1.5rem 0 0.8rem 0;
    }

    .demo-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 2rem 0 3rem 0;
    }

    .demo-section {
        margin: 2rem 0;
        padding: 1.5rem;
    }

    .demo-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .demo-chart {
        padding: 1rem;
    }

    .demo-chart h3 {
        font-size: 1.1rem;
    }

    .demo-chart canvas {
        max-height: 250px;
    }

    .demo-cta {
        margin: 2rem 0 1rem 0;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    main>.container>h1 {
        font-size: 1.5rem;
    }

    main>.container>p {
        font-size: 0.95rem;
    }

    .demo-grid {
        gap: 0.8rem;
    }

    .demo-item {
        padding: 1.5rem 1rem;
    }

    .demo-item h3 {
        font-size: 1.2rem;
    }

    .demo-item p {
        font-size: 0.9rem;
    }

    .demo-section {
        padding: 1rem;
    }

    .demo-info p {
        font-size: 0.9rem;
    }

    .demo-cta {
        padding: 1.5rem 1rem;
    }
}