﻿:root {
    /* --- Color Palette (Light Mode Default) --- */
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e9ecef;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    /* Accents */
    --accent-mech: #f59e0b;
    /* Safety Orange */
    --accent-soft: #3b82f6;
    /* Azure Blue */
    --accent-dark: #1e293b;
    /* Slate */

    /* Borders & Lines */
    --border-color: #e2e8f0;
    --grid-color: rgba(15, 23, 42, 0.05);

    /* Status */
    --success: #10b981;
    --error: #ef4444;

    /* Typography */
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --header-height: 80px;
    --container-width: 1200px;
}

[data-theme="dark"] {
    /* --- Color Palette (Dark Mode) --- */
    --bg-primary: #0f172a;
    /* Deep Slate */
    --bg-secondary: #1e293b;
    /* Lighter Slate */
    --bg-tertiary: #334155;

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;

    /* Accents */
    --accent-mech: #fbbf24;
    /* Amber */
    --accent-soft: #60a5fa;
    /* Light Blue */
    --accent-dark: #f1f5f9;
    /* White-ish */

    /* Borders & Lines */
    --border-color: #334155;
    --grid-color: rgba(255, 255, 255, 0.05);
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
}

/* --- Utilities --- */
.text-mech {
    color: var(--accent-mech);
}

.text-soft {
    color: var(--accent-soft);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-dark);
    color: var(--bg-primary);
}

[data-theme="dark"] .btn-primary {
    background: var(--accent-dark);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent-mech);
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    clip-path: none;
    /* Borders don't play well with clip-path, using standard border */
    border-radius: 0;
    position: relative;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--accent-mech);
    border-left: 2px solid var(--accent-mech);
    transition: all 0.3s ease;
}

.btn-outline::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--accent-soft);
    border-right: 2px solid var(--accent-soft);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0;
    clip-path: none;
}

.btn-text:hover {
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-mech);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Header & Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
}

[data-theme='dark'] .site-header {
    background: rgba(15, 23, 42, 0.9);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-symbol {
    width: 40px;
    height: 40px;
    background: var(--accent-mech);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 1.2rem;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.logo-text .highlight {
    color: var(--accent-soft);
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

.lang-switcher a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.lang-switcher a.active,
.lang-switcher a:hover {
    color: var(--accent-mech);
}

.separator {
    color: var(--border-color);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.theme-toggle:hover {
    color: var(--accent-mech);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-greeting {
    font-family: var(--font-heading);
    color: var(--accent-mech);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 20px;
}

.name-highlight {
    color: var(--text-primary);
}

.surname-highlight {
    color: transparent;
    -webkit-text-stroke: 2px var(--text-primary);
}

.hero-badges {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid;
}

.badge-mech {
    border-color: var(--accent-mech);
    color: var(--accent-mech);
    background: rgba(245, 158, 11, 0.1);
}

.badge-soft {
    border-color: var(--accent-soft);
    color: var(--accent-soft);
    background: rgba(59, 130, 246, 0.1);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Blueprint Animation */
.blueprint-container {
    position: relative;
    width: 400px;
    height: 400px;
    border: 1px solid var(--accent-soft);
    background: rgba(59, 130, 246, 0.05);
}

.blueprint-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(59, 130, 246, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
}

.blueprint-shape {
    position: absolute;
    border: 2px solid var(--accent-mech);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.shape-1 {
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    animation: rotate 10s linear infinite;
    border-left-color: transparent;
    border-right-color: transparent;
}

.shape-2 {
    top: 35%;
    left: 35%;
    width: 30%;
    height: 30%;
    border: 2px solid var(--text-primary);
    transform: rotate(45deg);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: rotate(45deg) scale(1);
    }

    50% {
        transform: rotate(45deg) scale(1.1);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-primary);
    border-radius: 13px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--text-primary);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 6px;
    }

    100% {
        opacity: 0;
        top: 20px;
    }
}

/* --- Section Headers --- */
.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 15px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--accent-mech);
    margin: 0 auto 20px;
    position: relative;
}

.section-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 20px;
    height: 100%;
    background: var(--accent-soft);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.about-bio p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.about-bio strong {
    color: var(--text-primary);
}

.detail-block {
    background: var(--bg-secondary);
    padding: 30px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    position: relative;
}

.detail-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-dark);
}

.detail-block h4 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.detail-list li {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.detail-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-list .year {
    font-size: 0.85rem;
    color: var(--accent-mech);
    font-weight: 600;
}

.detail-list .institution {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    font-size: 0.8rem;
    padding: 4px 10px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    font-family: var(--font-heading);
    text-transform: uppercase;
}

/* --- Projects Section --- */
.category-header {
    font-size: 1.8rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.project-category {
    margin-bottom: 80px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

/* Mechanical Card Style */
.mech-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    position: relative;
    transition: transform 0.3s ease;
}

.mech-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(-45deg, var(--accent-mech) 50%, transparent 50%);
}

.mech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: var(--bg-tertiary);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.project-status {
    color: var(--success);
    font-weight: 700;
}

.project-image {
    height: 200px;
    background: var(--bg-tertiary);
    position: relative;
    overflow: hidden;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.mech-img-1 {
    background: linear-gradient(45deg, #333, #555);
}

.mech-img-2 {
    background: linear-gradient(45deg, #444, #666);
}

.overlay-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
}

.overlay-info .tool {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    font-size: 0.75rem;
    border: 1px solid var(--accent-mech);
}

.project-content {
    padding: 25px;
}

.project-content h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.project-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.btn-link {
    color: var(--accent-mech);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Software Card Style */
.soft-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.soft-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.15);
}

.browser-header {
    background: var(--bg-tertiary);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

.dots span:nth-child(1) {
    background: #ef4444;
}

.dots span:nth-child(2) {
    background: #f59e0b;
}

.dots span:nth-child(3) {
    background: #10b981;
}

.url-bar {
    flex-grow: 1;
    background: var(--bg-primary);
    height: 24px;
    border-radius: 4px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    padding-left: 10px;
    color: var(--text-muted);
    font-family: monospace;
}

.tech-stack {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.tech {
    font-size: 0.75rem;
    color: var(--accent-soft);
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.btn-sm {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-sm:hover {
    color: var(--accent-soft);
}

/* --- Skills Section --- */
.skills-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.skill-panel {
    background: var(--bg-secondary);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.panel-title {
    margin-bottom: 30px;
    font-size: 1.5rem;
    text-align: center;
}

.skill-unit {
    margin-bottom: 25px;
}

.skill-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.progress-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease;
}

.mech-fill {
    background: var(--accent-mech);
}

.soft-fill {
    background: var(--accent-soft);
}

/* --- Contact Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: var(--bg-secondary);
    padding: 50px;
    border: 1px solid var(--border-color);
    position: relative;
}

.contact-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50px;
    width: 100px;
    height: 10px;
    background: var(--accent-mech);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.info-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.point {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.point i {
    color: var(--accent-soft);
}

.social-connect {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-soft);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.form-message {
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: center;
}

.form-message.success {
    color: var(--success);
}

.form-message.error {
    color: var(--error);
}

/* --- Footer --- */
.site-footer {
    background: var(--bg-secondary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand .logo-text {
    font-size: 1.8rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 5px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--accent-soft);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Media Queries --- */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .about-grid,
    .skills-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-wrapper::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        padding: 40px;
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

/* Project Details Specific Styles */
.project-hero {
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-top: var(--header-height);
    background: #1a1a1a;
    overflow: hidden;
}

.project-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    opacity: 0.6;
}

.project-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.project-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.project-meta {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-mech);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.project-title {
    font-size: 4rem;
    margin-bottom: 0;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.datasheet-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    margin-top: -100px;
    position: relative;
    z-index: 10;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    margin-bottom: 80px;
}

.datasheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.datasheet-header h2 {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.datasheet-id {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-mech);
}

.spec-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.main-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-left: 4px solid var(--accent-mech);
    padding-left: 15px;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.task-list {
    list-style: none;
    margin-bottom: 40px;
}

.task-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.task-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-mech);
    font-weight: bold;
}

.tool-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-tertiary);
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.tool-item i {
    color: var(--accent-soft);
}

.specs-sidebar {
    background: var(--bg-tertiary);
    padding: 30px;
    border: 1px solid var(--border-color);
    height: fit-content;
}

.specs-sidebar h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th {
    text-align: left;
    padding: 12px 0;
    color: var(--text-secondary);
    font-weight: 600;
    width: 40%;
    border-bottom: 1px solid var(--border-color);
}

.specs-table td {
    text-align: right;
    padding: 12px 0;
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
    border-bottom: none;
}

.back-btn {
    position: fixed;
    top: 100px;
    left: 40px;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    transform: scale(1.1);
    color: var(--accent-mech);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    height: 200px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.document-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.document-card:hover {
    background: var(--bg-primary);
    border-color: var(--accent-mech);
    transform: translateX(5px);
}

.doc-icon {
    font-size: 2rem;
    color: var(--accent-mech);
    margin-right: 20px;
}

.doc-info {
    flex: 1;
}

.doc-title {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.doc-type {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.doc-download {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* 3D Model Viewer Styles */
.model-viewer-container {
    width: 100%;
    height: 500px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

model-viewer {
    width: 100%;
    height: 100%;
    --poster-color: transparent;
}

.model-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.model-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.model-btn:hover {
    background: var(--accent-mech);
    color: white;
    border-color: var(--accent-mech);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--accent-mech);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--accent-mech);
}
