/* Common styles for software.html and construction.html */

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
    color: #fff;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.navbar-brand {
    font-size: 2rem;
    font-weight: 200;
    color: white !important;
    letter-spacing: 8px;
    text-transform: uppercase;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin: 0 20px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: white !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 70vh;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 200;
    letter-spacing: 10px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-content p {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.9;
}

/* Button styles */
.btn-demo {
    display: inline-block;
    padding: 18px 50px;
    background: transparent;
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    border: 1px solid rgba(255, 140, 50, 0.6);
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    overflow: hidden;
    margin: 6px;
}

.btn-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff8c32, #ff6600);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-demo:hover::before {
    left: 0;
}

.btn-demo:hover {
    color: #fff;
    border-color: #ff8c32;
}

.cta {
    margin-top: 20px;
}

.cta a {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    border: 1px solid rgba(255, 140, 50, 0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s ease;
}

.cta a:hover {
    background: linear-gradient(135deg, #ff8c32, #ff6600);
    color: #fff;
    border-color: #ff8c32;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
}

.faq-title {
    font-size: 2.2rem;
    font-weight: 200;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.faq-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff8c32, transparent);
}

.faq-item {
    margin-bottom: 20px;
}

.faq-item h3 {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.faq-item p {
    opacity: 0.9;
    line-height: 1.7;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
}

.contact-title {
    font-size: 3rem;
    font-weight: 200;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 30px;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff8c32, transparent);
}

.contact-item {
    text-align: center;
    padding: 0 30px;
}

.contact-item .contact-text {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 1px;
    line-height: 1.8;
    opacity: 0.9;
}

.contact-item a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.3s ease;
}

.contact-item a:hover {
    border-color: white;
}

/* Footer */
.footer {
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* Back to Home Button */
.back-home {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1000;
}

.back-home a {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    border: 1px solid rgba(255, 140, 50, 0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s ease;
}

.back-home a:hover {
    background: linear-gradient(135deg, #ff8c32, #ff6600);
    color: #fff;
    border-color: #ff8c32;
}

/* Logo in top right corner */
.logo-top-right {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
}

.logo-top-right img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.logo-top-right img:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
        letter-spacing: 5px;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .contact-title {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .logo-top-right img {
        height: 35px;
    }

    .back-home {
        top: 20px;
        left: 20px;
    }

    .logo-top-right {
        top: 20px;
        right: 20px;
    }
}

/* Alpine.js x-cloak */
[x-cloak] { 
    display: none !important; 
}

/* Editable elements when admin mode is active */
.editable-active {
    cursor: text;
    transition: background-color 0.2s;
    position: relative;
}

.editable-active:hover {
    background-color: rgba(0, 123, 255, 0.05);
    outline: 1px dashed rgba(0, 123, 255, 0.3);
}

.editable.editing {
    background-color: rgba(0, 123, 255, 0.1);
    outline: 2px solid #007bff;
}

.editable.saving {
    opacity: 0.7;
}

/* Admin modal */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.admin-modal.active {
    opacity: 1;
    pointer-events: all;
}

.admin-modal-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.admin-modal.active .admin-modal-content {
    transform: scale(1);
}

.admin-modal-content h2 {
    margin: 0 0 30px 0;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: #333;
    text-align: center;
}

.admin-modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-modal-content input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.admin-modal-content input:focus {
    outline: none;
    border-color: #007bff;
}

.admin-modal-content button[type="submit"] {
    padding: 12px 20px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.admin-modal-content button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.admin-modal-content .error {
    color: #dc3545;
    font-size: 0.9rem;
    text-align: center;
    min-height: 20px;
}

.admin-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #999;
    transition: color 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.admin-modal-close:hover {
    color: #333;
}

/* Admin indicator */
.admin-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.admin-indicator.active {
    display: flex;
}

.admin-indicator button {
    background: white;
    color: #28a745;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.admin-indicator button:hover {
    transform: scale(1.05);
}
