/* Import DM Sans font as specified in Figma */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

/* CSS Variables matching Figma design */
:root {
    --primary-bg: #171717;
    --secondary-bg: #212121;
    --card-bg: #212121;
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3; /* Improved contrast from #535353 */
    --text-muted: #999999; /* Improved contrast from #4F4F4F */
    --accent-green: #27AE60;
    --border-color: #666666; /* Improved contrast from #4F4F4F */
    --border-light: #333333;
    --input-bg: #C4C4C4;
    --focus-color: #4A9EFF; /* High contrast focus indicator */
    --focus-outline: 2px solid var(--focus-color);
}

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

body {
    font-family: 'DM Sans', sans-serif !important;
    background-color: var(--primary-bg) !important;
    color: var(--text-primary) !important;
    line-height: 1.302;
    overflow-x: hidden;
}

/* Bootstrap overrides */
html {
    background-color: var(--primary-bg) !important;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
}

a {
    color: inherit;
}

.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    background-color: transparent !important;
}

/* Override Bootstrap's default text colors */
p, span, div, h1, h2, h3, h4, h5, h6 {
    color: inherit;
}

/* Override Bootstrap button styles */
.btn:not(.btn-primary):not(.btn-outline) {
    background-color: transparent;
    border-color: transparent;
}

/* Override Bootstrap navbar styles */
.navbar {
    background-color: transparent !important;
}

.navbar-brand {
    color: var(--text-primary) !important;
}

.navbar-nav .nav-link {
    color: var(--text-primary) !important;
}

.navbar-toggler {
    border-color: var(--text-primary) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
}

/* Navigation Header */
.portfolio-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--primary-bg);
    padding: 28px 0;
}

.navbar {
    background: transparent !important;
    padding: 0;
}

.navbar-brand {
    text-decoration: none;
    font-weight: 700;
    font-size: 36px;
    color: var(--text-primary);
}

.navbar-nav {
    gap: 40px;
    margin-left: auto;
}

.nav-link {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: var(--text-primary) !important;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0 !important;
}

.nav-link:hover {
    color: var(--accent-green) !important;
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
    margin-left: 0;
    order: -1; /* Move hamburger to the left */
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-brand {
    margin-left: auto;
    margin-right: auto;
}

/* Mobile navigation improvements */
@media (max-width: 991.98px) {
    .navbar-brand {
        margin-left: 0;
        margin-right: 0;
        flex-grow: 1;
        text-align: center;
    }
    
    .navbar-toggler {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }
    
    .navbar-collapse {
        background: var(--primary-bg);
        border-top: 1px solid var(--border-light);
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .navbar-nav {
        gap: 0;
        margin-left: 0;
    }
    
    .navbar-nav .nav-item {
        padding: 8px 0;
    }
    
    .navbar-nav .nav-link {
        padding: 8px 15px !important;
        border-bottom: 1px solid var(--border-light);
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

.portfolio-main {
    padding-top: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    line-height: 1.302;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 187px 0 0 0;
    position: relative;
}

.hero-content {
    max-width: 453px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 9px;
    line-height: 1.302;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 500;
    color: #828282;
    margin-bottom: 58px;
    line-height: 1.302;
}

/* Hero Blog Content */
.hero-blog-content {
    max-width: 453px;
}

.hero-blog-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.302;
}

.hero-blog-excerpt {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.hero-blog-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.hero-blog-actions {
    margin-top: 20px;
}

.hero-blog-actions .btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 11px;
    margin-bottom: 0;
}

.btn {
    display: inline-block;
    padding: 12px 27px;
    border-radius: 0;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.302;
}

.btn-primary {
    background: var(--accent-green);
    color: var(--text-primary);
    border: none;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid #F2F2F2;
}

.btn:hover {
    opacity: 0.8;
}

/* Hero Avatar */
.hero-avatar {
    position: absolute;
    right: 80px;
    top: 187px;
    width: 650px;
    height: 650px;
}

.avatar-container {
    position: relative;
    width: 650px;
    height: 650px;
}

.avatar-bg-outer {
    position: absolute;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: rgba(30, 29, 29, 0.2);
    border: 1px solid #202020;
}

.avatar-bg-inner {
    position: absolute;
    top: 26.56px;
    left: 26.56px;
    width: 596.89px;
    height: 596.89px;
    border-radius: 50%;
    background: #1E1D1D;
    border: 1px solid var(--border-color);
}

.avatar-image {
    position: absolute;
    top: 26.56px;
    left: 26.56px;
    width: 596.89px;
    height: 596.89px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

/* About Section */
.about-section {
    padding: 100px 0;
    text-align: center;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 100px;
    text-align: center;
    line-height: 1.302;
}

.about-description {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.302;
    text-align: center;
    max-width: 745px;
    margin: 0 auto;
}

/* Services Section */
.services-section {
    padding: 100px 0;
}

.services-grid {
    display: flex;
    gap: 60px;
    justify-content: center;
    margin-top: 162.66px;
}

.service-card {
    width: 349px;
    height: 241px;
    background: var(--card-bg);
    border: 1px solid #000000;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 34.86px 50px 50px 50px;
}

.service-card:nth-child(2) {
    border: 1px solid #000000;
}

.service-icon {
    width: 57px;
    height: 46.47px;
    margin-bottom: 29.67px;
    fill: var(--accent-green);
}

.service-title {
    font-size: 36px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.302;
    margin-bottom: 0;
}

.service-highlight {
    position: absolute;
    bottom: -5px;
    left: 2px;
    right: 2px;
    height: 5px;
    background: var(--accent-green);
}

/* Software Releases Section */
.software-releases-section {
    padding: 100px 0;
}

.releases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.release-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 30px;
    transition: transform 0.3s ease;
}

.release-card:hover {
    transform: translateY(-5px);
}

.release-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.release-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.release-version {
    font-size: 14px;
    color: var(--accent-green);
    margin-left: 10px;
}

.release-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.release-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.release-links .btn {
    font-size: 12px;
    padding: 8px 16px;
}

/* Latest Software Section */
.latest-software-section {
    padding: 100px 0;
}

.software-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.software-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-light);
}

.software-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.software-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.software-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.software-card:hover .software-card-image img {
    transform: scale(1.05);
}

.software-card-content {
    padding: 25px;
}

.software-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.software-card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.302;
}

.software-card-version {
    font-size: 12px;
    color: var(--accent-green);
    background: rgba(39, 174, 96, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.software-card-version.loading {
    color: var(--text-muted);
    background: rgba(153, 153, 153, 0.1);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.software-card-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.software-card-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-sm {
    font-size: 12px;
    padding: 8px 16px;
}

/* Page Layout Styles */
.software-page,
.privacy-page,
.legal-page {
    padding-top: 120px;
    min-height: 100vh;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.privacy-content {
    max-width: 840px;
    margin: 0 auto 80px;
    padding: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-secondary);
}

.privacy-meta {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.privacy-content h2,
.privacy-content h3,
.privacy-content h4 {
    color: var(--text-primary);
    margin: 32px 0 16px;
}

.privacy-content h2:first-child,
.privacy-content h3:first-child,
.privacy-content h4:first-child {
    margin-top: 0;
}

.privacy-content p,
.privacy-content ul,
.privacy-content ol {
    margin-bottom: 16px;
    line-height: 1.7;
}

.privacy-content ul,
.privacy-content ol {
    padding-left: 24px;
}

.privacy-content li {
    margin-bottom: 10px;
}

.privacy-content a {
    color: var(--accent-green);
}

.privacy-content a:hover {
    color: var(--text-primary);
}

.legal-header {
    max-width: 860px;
    margin: 0 auto 48px;
}

.legal-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-green);
}

.legal-meta {
    margin-top: 18px;
    font-size: 14px;
    color: var(--text-muted);
}

.legal-document {
    max-width: 860px;
    margin: 0 auto 80px;
    padding: 40px;
    background: linear-gradient(180deg, rgba(33, 33, 33, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.legal-section + .legal-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-document h2 {
    font-size: 28px;
    color: var(--text-primary);
    margin: 0 0 16px;
}

.legal-document h3 {
    font-size: 22px;
    color: var(--text-primary);
    margin: 24px 0 12px;
}

.legal-document p,
.legal-document ul,
.legal-document ol {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-document p + p {
    margin-top: 16px;
}

.legal-document ul,
.legal-document ol {
    margin: 16px 0 0 24px;
}

.legal-document li + li {
    margin-top: 10px;
}

.legal-document a {
    color: var(--accent-green);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.legal-document a:hover {
    color: var(--text-primary);
}

.legal-note {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 28px;
}

.legal-page {
    padding: 180px 0 100px;
}

.legal-shell {
    max-width: 840px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 48px;
}

.legal-header h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.legal-intro,
.legal-section p,
.legal-list li,
.legal-meta {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.legal-section h2 {
    font-size: 28px;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.legal-list {
    margin: 18px 0 0;
    padding-left: 22px;
}

.legal-list li + li {
    margin-top: 10px;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.302;
}

.page-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Software Grid */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    max-width: calc(3 * 350px + 2 * 30px); /* 3 cards + 2 gaps = 1110px */
    gap: 30px;
    margin: 0 auto;
    justify-content: center;
}

/* Software Card Actions */
.software-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.software-card-meta {
    margin: 15px 0;
    font-size: 14px;
    color: var(--text-muted);
}

/* Software Detail Page */
.software-detail-page {
    padding-top: 120px;
    min-height: 100vh;
}

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

.software-detail-hero {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid var(--border-light);
}

.software-detail-header {
    margin-bottom: 40px;
}

.software-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.2;
}

.software-version {
    display: inline-block;
    font-size: 14px;
    color: var(--accent-green);
    background: rgba(39, 174, 96, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    margin-bottom: 25px;
}

.software-version.loading {
    color: var(--text-muted);
    background: rgba(153, 153, 153, 0.1);
    animation: pulse 1.5s ease-in-out infinite;
}

.software-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.software-description p {
    margin-bottom: 15px;
}

.software-thumbnail {
    text-align: center;
    margin-bottom: 30px;
}

.software-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.software-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.software-info {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-light);
}

.software-info h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.software-info h3::before {
    content: "✨";
    font-size: 20px;
}

.info-item {
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text-secondary);
}

.info-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.software-features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.software-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.software-features-list li::before {
    content: "✓";
    color: var(--accent-green);
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.software-features {
    margin: 20px 0;
}

.software-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.software-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.software-features li::before {
    content: "✓";
    color: var(--accent-green);
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.software-metadata {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.software-actions-panel {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-light);
    height: fit-content;
    position: sticky;
    top: 140px;
}

.software-actions-panel h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.software-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.software-actions .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.software-actions .btn-primary {
    background: var(--accent-green);
    color: var(--text-primary);
    border: 2px solid var(--accent-green);
}

.software-actions .btn-primary:hover {
    background: #1e8449;
    border-color: #1e8449;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.software-actions .btn-outline-primary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.software-actions .btn-outline-primary:hover {
    background: var(--border-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 102, 102, 0.2);
}

.software-actions .btn-dark {
    background: #24292e;
    color: var(--text-primary);
    border: 2px solid #24292e;
}

.software-actions .btn-dark:hover {
    background: #1a1e22;
    border-color: #1a1e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(36, 41, 46, 0.3);
}

.software-actions .btn-info {
    background: #17a2b8;
    color: var(--text-primary);
    border: 2px solid #17a2b8;
}

.software-actions .btn-info:hover {
    background: #138496;
    border-color: #138496;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.software-actions .btn-secondary {
    background: #6c757d;
    color: var(--text-primary);
    border: 2px solid #6c757d;
}

.software-actions .btn-secondary:hover {
    background: #5a6268;
    border-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.software-detail-footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border-light);
}

.software-detail-footer .btn {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.software-detail-footer .btn:hover {
    transform: translateY(-2px);
}

/* Software Detail Responsive */
@media (max-width: 992px) {
    .software-detail-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .software-actions-panel {
        position: static;
        order: -1;
    }
    
    .software-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .software-detail-hero {
        padding: 30px 20px;
    }
    
    .software-info,
    .software-actions-panel {
        padding: 25px 20px;
    }
    
    .software-title {
        font-size: 32px;
    }
    
    .software-description {
        font-size: 16px;
    }
    
    .software-actions .btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .software-detail-page {
        padding-top: 100px;
    }
    
    .software-title {
        font-size: 28px;
    }
    
    .software-detail-hero {
        padding: 25px 15px;
        margin-bottom: 30px;
    }
    
    .software-info,
    .software-actions-panel {
        padding: 20px 15px;
    }
}

/* Loading States */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state h2,
.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

/* Footer */
.footer {
    padding: 50px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.302;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-copy {
    flex: 1 1 260px;
    min-width: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    flex-wrap: wrap;
    flex: 0 1 auto;
}

.footer-link {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-link:focus {
    color: var(--text-primary);
}

.linkedin-link {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.linkedin-link:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-copy {
        flex-basis: auto;
    }

    .footer-links {
        justify-content: center;
        gap: 16px;
    }

    .footer-link {
        padding: 2px 0;
    }

    .privacy-content {
        padding: 30px 24px;
    }

    .legal-page {
        padding: 140px 0 72px;
    }

    .legal-shell {
        padding: 32px 24px;
        border-radius: 12px;
    }

    .legal-header h1 {
        font-size: 36px;
    }

    .legal-intro,
    .legal-section p,
    .legal-list li,
    .legal-meta {
        font-size: 16px;
    }

    .legal-section h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .footer-links {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
    
    .hero-avatar {
        right: 40px;
    }
}

@media (max-width: 992px) {
    .hero-avatar {
        position: static;
        margin: 50px auto 0;
        width: 400px;
        height: 400px;
    }
    
    .avatar-container {
        width: 400px;
        height: 400px;
    }
    
    .avatar-bg-outer {
        width: 400px;
        height: 400px;
    }
    
    .avatar-bg-inner {
        width: 347px;
        height: 347px;
        top: 26px;
        left: 26px;
    }
    
    .avatar-image {
        top: 26px;
        left: 26px;
        width: 347px;
        height: 347px;
    }
    
    .services-grid {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .contact-info {
        gap: 40px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
}

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

    .legal-header {
        margin-bottom: 36px;
    }

    .legal-document {
        padding: 28px 20px;
        margin-bottom: 60px;
    }

    .legal-note {
        padding: 22px 20px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .service-card {
        width: 100%;
        max-width: 349px;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .software-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-blog-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .hero-avatar {
        width: 300px;
        height: 300px;
    }
    
    .avatar-container {
        width: 300px;
        height: 300px;
    }
    
    .avatar-bg-outer {
        width: 300px;
        height: 300px;
    }
    
    .avatar-bg-inner {
        width: 247px;
        height: 247px;
        top: 26px;
        left: 26px;
    }
    
    .avatar-image {
        top: 26px;
        left: 26px;
        width: 247px;
        height: 247px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }

    .privacy-content {
        padding: 24px 18px;
    }

    .legal-document h2 {
        font-size: 24px;
    }

    .legal-document p,
    .legal-document ul,
    .legal-document ol {
        font-size: 16px;
    }
}

/* Accessibility Improvements */

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

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent-green);
    color: var(--text-primary);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    font-weight: 500;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 6px;
}

/* Enhanced focus indicators */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
.btn:focus,
.nav-link:focus,
.navbar-brand:focus,
.navbar-toggler:focus {
    outline: var(--focus-outline);
    outline-offset: 2px;
}

/* Ensure focus is visible on dark backgrounds */
.btn:focus {
    box-shadow: 0 0 0 2px var(--primary-bg), 0 0 0 4px var(--focus-color);
}

.nav-link:focus {
    color: var(--focus-color) !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-secondary: #FFFFFF;
        --text-muted: #CCCCCC;
        --border-color: #FFFFFF;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .software-card:hover,
    .release-card:hover {
        transform: none;
    }
    
    .software-card:hover .software-card-image img {
        transform: none;
    }
}

/* Smooth Scrolling - only if motion is not reduced */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e8449;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    margin-bottom: 30px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    color: var(--text-muted);
    margin-left: 8px;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--accent-green);
}

.breadcrumb-item.active {
    color: var(--text-muted);
    font-weight: 500;
}

/* Not Found Page */
.not-found {
    text-align: center;
    padding: 80px 20px 120px;
    max-width: 600px;
    margin: 0 auto;
}

.not-found-page {
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.not-found-page .container {
    width: 100%;
}

.software-page .not-found {
    padding-top: 40px;
}

.not-found .not-found-code {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-green);
    margin-bottom: 20px;
}

.not-found-icon {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.not-found h1,
.not-found h2 {
    font-size: 36px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.not-found .page-subtitle {
    margin-bottom: 40px;
}

.not-found p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
}

.not-found-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .not-found-page {
        padding-top: 100px;
        align-items: flex-start;
    }

    .not-found {
        padding: 60px 0;
    }
}

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