﻿/* Tech-Garage Style: Dark Steel Tones with Yellow Accents */

:root {
    --dark-steel: #1a1a1a;
    --steel-dark: #2d2d2d;
    --steel-medium: #3a3a3a;
    --steel-light: #4a4a4a;
    --yellow-accent: #ffc107;
    --yellow-dark: #ff9800;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --border-color: #333333;
    --success: #4caf50;
    --error: #f44336;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-steel);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--steel-dark) 0%, var(--steel-medium) 100%);
    border-bottom: 3px solid var(--yellow-accent);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--yellow-accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s;
    font-weight: 500;
}

nav a:hover {
    background-color: var(--steel-medium);
    color: var(--yellow-accent);
}

nav a.active {
    background-color: var(--steel-medium);
    color: var(--yellow-accent);
    border-bottom: 2px solid var(--yellow-accent);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--yellow-accent);
    color: var(--yellow-accent);
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1.5rem;
    line-height: 1;
    z-index: 1001;
    position: relative;
}

.menu-toggle.active::before {
    content: "×";
}

.menu-toggle:not(.active)::before {
    content: "☰";
}

/* Main Content */
main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 2px solid var(--yellow-accent);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--yellow-accent);
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Content Sections */
.content-section {
    background: var(--steel-dark);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.content-section h2 {
    color: var(--yellow-accent);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--steel-medium);
}

.content-section h3 {
    color: var(--yellow-accent);
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.content-section p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.content-section ul, .content-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    padding-left: 0.5rem;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
}

.content-section ul li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.content-section ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    top: 0.05em;
    color: var(--yellow-accent);
    font-weight: bold;
    font-size: 1rem;
    line-height: inherit;
}

.content-section ol {
    counter-reset: item;
    padding-left: 0;
}

.content-section ol li {
    position: relative;
    padding-left: 2.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.7;
    counter-increment: item;
    list-style: none;
}

.content-section ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    top: 0.05em;
    color: var(--yellow-accent);
    font-weight: bold;
    min-width: 1.8rem;
    line-height: inherit;
}

.content-section strong {
    color: var(--yellow-accent);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: var(--steel-medium);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
    border-color: var(--yellow-accent);
}

.card h3 {
    color: var(--yellow-accent);
    margin-bottom: 1rem;
}


/* Images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

.image-container {
    margin: 2rem 0;
}

.image-left {
    float: left;
    max-width: 350px;
    width: 40%;
    margin: 0.5rem 2rem 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    overflow: hidden;
}

.image-left img {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    border-radius: 0;
}

.image-right {
    float: right;
    max-width: 350px;
    width: 40%;
    margin: 0.5rem 0 1.5rem 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    overflow: hidden;
}

.image-right img {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    border-radius: 0;
}

.image-center {
    display: block;
    max-width: 700px;
    width: 100%;
    margin: 2rem auto;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    overflow: hidden;
}

.image-center img {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    border-radius: 0;
}

.image-inline {
    display: inline-block;
    max-width: 280px;
    width: 35%;
    margin: 0.5rem 1.5rem;
    vertical-align: middle;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.image-inline img {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    border-radius: 0;
}

.content-section::after {
    content: "";
    display: table;
    clear: both;
}

/* General image styles for images not in special containers */
.content-section > img:not(.image-left):not(.image-right):not(.image-center):not(.image-inline) {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin: 1.5rem 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    display: block;
}

@media (max-width: 768px) {
    .image-left,
    .image-right,
    .image-inline {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 1.5rem 0;
        display: block;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }
    
    .content-section ul li,
    .content-section ol li {
        padding-left: 1.5rem;
    }
    
    .content-section ul li::before {
        font-size: 0.95rem;
        top: 0.08em;
    }
    
    .content-section ol li::before {
        min-width: 1.5rem;
        top: 0.08em;
    }
}

/* Footer */
footer {
    background: var(--steel-dark);
    border-top: 3px solid var(--yellow-accent);
    padding: 2rem 20px;
    margin-top: 4rem;
    text-align: center;
}

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

.footer-section h3 {
    color: var(--yellow-accent);
    margin-bottom: 1rem;
}

.footer-section p, .footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: var(--yellow-accent);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Forms */
.form-container {
    background: var(--steel-dark);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--yellow-accent);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: var(--steel-medium);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--yellow-accent);
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.3);
}

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

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 5px;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

.btn {
    background: var(--yellow-accent);
    color: var(--dark-steel);
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn:hover {
    background: var(--yellow-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4);
}

.btn:active {
    transform: translateY(0);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--steel-dark);
    border-top: 3px solid var(--yellow-accent);
    padding: 1.5rem;
    z-index: 10000;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.5);
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
    color: var(--text-secondary);
}

.cookie-text a {
    color: var(--yellow-accent);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.cookie-btn-accept {
    background: var(--yellow-accent);
    color: var(--dark-steel);
}

.cookie-btn-accept:hover {
    background: var(--yellow-dark);
}

.cookie-btn-essential {
    background: var(--steel-medium);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.cookie-btn-essential:hover {
    background: var(--steel-light);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.cookie-btn-reject:hover {
    background: var(--steel-medium);
    color: var(--text-primary);
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    color: var(--text-primary);
    font-weight: bold;
    z-index: 10001;
    display: none;
    animation: slideIn 0.3s;
}

.notification.show {
    display: block;
}

.notification.success {
    background: var(--success);
}

.notification.error {
    background: var(--error);
}

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

/* Push Notification (Manual, not browser API) */
.push-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 90%;
    background: var(--steel-dark);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 10002;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.push-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.push-notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
}

.push-notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.push-notification-success {
    border-left: 4px solid var(--success);
}

.push-notification-success .push-notification-icon {
    background: var(--success);
    color: var(--steel-dark);
}

.push-notification-error {
    border-left: 4px solid var(--error);
}

.push-notification-error .push-notification-icon {
    background: var(--error);
    color: white;
}

.push-notification-message {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.push-notification-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    flex-shrink: 0;
}

.push-notification-close:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .push-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: calc(100% - 20px);
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-menu-overlay.show {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: var(--steel-dark);
    border-right: 3px solid var(--yellow-accent);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding-top: 70px;
}

.mobile-menu.show {
    left: 0;
}

.mobile-menu nav {
    display: block;
    width: 100%;
}

.mobile-menu nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
    width: 100%;
}

.mobile-menu nav ul li {
    border-bottom: 1px solid var(--border-color);
    display: block;
    width: 100%;
}

.mobile-menu nav ul li:first-child {
    border-top: 1px solid var(--border-color);
}

.mobile-menu nav a {
    display: block;
    padding: 1.2rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.1rem;
    width: 100%;
    box-sizing: border-box;
}

.mobile-menu nav a:hover,
.mobile-menu nav a:active {
    background: var(--steel-medium);
    color: var(--yellow-accent);
    padding-left: 2rem;
}

.mobile-menu nav a.active {
    background: var(--steel-medium);
    color: var(--yellow-accent);
    border-left: 3px solid var(--yellow-accent);
    padding-left: calc(2rem - 3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.8rem 20px;
    }

    .logo {
        font-size: 1.5rem;
    }

    nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .content-section {
        padding: 1.5rem;
    }

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

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }

    main {
        padding: 1rem 15px;
    }
    
    .mobile-menu {
        width: 85%;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.5rem;
    }

    .content-section {
        padding: 1rem;
    }

    .form-container {
        padding: 1.5rem;
    }
}

/* Additional utility classes for replacing inline styles */
.btn-inline {
    display: inline-block;
    width: auto;
    margin-top: 2rem;
}

.btn-contact {
    display: inline-block;
    width: auto;
    margin-top: 1rem;
}

.required-field {
    color: var(--yellow-accent);
}

.form-hint {
    color: var(--text-light);
    display: block;
    margin-top: 0.25rem;
}

.policy-link {
    color: var(--yellow-accent);
}

.section-spacing {
    margin-top: 3rem;
}

.card-grid-spacing {
    margin-top: 2rem;
}

.content-image-spacing {
    margin-top: 2rem;
}

.contact-link {
    color: var(--yellow-accent);
}

.info-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.info-box h4 {
    margin-bottom: 1rem;
    color: var(--yellow-accent);
}

.card-link {
    color: var(--yellow-accent);
    text-decoration: none;
}

.contact-info-block {
    margin-bottom: 2rem;
}

.required-field {
    color: var(--error, #e74c3c);
}

