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

:root {
    --primary: #0f172a;
    --secondary: #1e293b;
    --shadow: #020617;
    --accent: #3b82f6;
    --white: #ffffff;
    --gray: #475569;
    --font-family: "Inter", system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--white);
    background: linear-gradient(to bottom right,
            var(--primary),
            var(--shadow),
            var(--secondary));
    min-height: 100vh;
}

/* Header */
header {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    padding: 1.5rem 1.5rem;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 120rem;
    margin: 0 auto;
}

.logo {
    display: flex;
}

.logo img {
    height: 5rem;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.logo-text {
    display: none;
}

@media (max-width: 945px) {
    .logo {
        align-items: center;
        gap: 0.75rem;
        text-decoration: none;
    }
    
    .logo-text {
        display: block;
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        color: var(--white);
        text-decoration: none;
        line-height: 1.2;
    }
}

.nav-links {
    display: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

.btn {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: all 0.3s;
    cursor: pointer;
    border-radius: 0.375rem;
}

.btn:hover {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.5);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    border-color: var(--white);
}

/* Responsive */
@media (min-width: 945px) {
    .nav-links {
        display: flex;
    }
}

/* Hamburger - mobile only */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 0.375rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 102;
}

.hamburger span {
    display: block;
    width: 1.75rem;
    height: 0.2rem;
    background: var(--white);
    transition: all 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
    display: none;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-links .btn {
    display: none;
}

.nav-links .close-btn {
    display: none;
}

/* Mobile menu behavior */
@media (max-width: 945px) {
    header {
        position: relative;
    }

    .hamburger {
        display: flex;
    }

    .overlay {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease-in-out;
        border-left: 1px solid rgba(59, 130, 246, 0.3);
        z-index: 101;
    }

    .nav-links.active {
        right: 0;
        display: flex;
    }

    .nav-links a {
        font-size: 1.25rem;
        padding: 0.2rem 0;
        border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    }

    .nav-links .close-btn {
        position: absolute;
        top: 2rem;
        right: 2rem;
        background: none;
        border: none;
        color: var(--white);
        font-size: 2rem;
        cursor: pointer;
        line-height: 1;
        padding: 0.5rem;
        transition: color 0.3s;
    }

    .hamburger.active {
        display: none;
    }

    .nav-links .close-btn:hover {
        color: var(--accent);
    }

    .logo img {
        height: 4rem;
    }

    .nav-links .btn {
        display: block;
        padding: 0.5rem 1rem;
        max-width: 165px;
    }

    .nav-right .btn {
        display: none;
        /* Hide desktop GET QUOTE button on mobile */
    }

    .nav-links .close-btn {
        display: block;
    }
}

/* Footer */
footer {
    background: #000000;
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    padding: 2rem 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto 2rem;
    font-size: 0.875rem;
    line-height: 1.5;
    letter-spacing: 0.025em;
    font-weight: 400;
}

.footer-section h4 {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

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

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

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
    pointer-events: none;
}

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

/* Modal Container */
.modal-container {
    background: linear-gradient(to bottom right,
            var(--primary),
            var(--secondary),
            var(--shadow));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.75rem;
    max-width: 750px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.95) translateY(-20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
    opacity: 1;
}

.modal-container::-webkit-scrollbar {
    width: 8px;
}

.modal-container::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 4px;
}

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

.modal-container::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.8);
}

/* Firefox scrollbar */
.modal-container {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(15, 23, 42, 0.5);
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
    transition: color 0.3s;
    z-index: 10;
}

.modal-close:hover {
    color: var(--accent);
}

/* Modal Header */
.modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
}

.modal-header h2 {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.modal-header .divider {
    width: 80px;
    height: 3px;
    background: var(--accent);
    margin: 1rem auto;
}

.modal-header p {
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
    line-height: 1.5;
}

/* Modal Body */
.modal-body {
    padding: 1rem 2rem 2rem;
}

/* Form Styles (Reusing from contact.html) */
.modal-body form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-body .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

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

.modal-body .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-body label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.modal-body input,
.modal-body textarea {
    background: #000000;
    color: white;
    border: 1px solid rgba(59, 130, 246, 0.5);
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    transition: border 0.3s;
}

.modal-body input:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.modal-body input::placeholder,
.modal-body textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.modal-body textarea {
    min-height: 100px;
    resize: vertical;
}

.modal-body .checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-body .checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.modal-body .checkbox-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
    letter-spacing: 0.05em;
}

.modal-body .submit-button {
    background: var(--accent);
    color: white;
    border: 2px solid var(--accent);
    padding: 1rem 2rem;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 0.1em;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.modal-body .submit-button:hover {
    background: rgba(59, 130, 246, 0.9);
    border-color: white;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.5);
}

.modal-body .submit-button svg {
    width: 20px;
    height: 20px;
}

/* Mobile: Full Screen */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 0;
        align-items: stretch;
    }

    .modal-container {
        max-width: 100%;
        max-height: 100%;
        height: 100%;
        border-radius: 0;
        border: none;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 1rem 1.5rem 2rem;
    }

    .modal-body .form-row {
        grid-template-columns: 1fr;
    }

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

    .modal-close {
        top: 1rem;
        right: 1rem;
    }

    header {
        padding: 1rem 1rem;
    }

    footer {
        padding: 2rem 1rem;
    }

    .footer-grid {
        gap: 2rem;
        margin-bottom: 2rem;
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Toast Notification (Reusing from contact.html) */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    min-width: 300px;
    max-width: 500px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease-out;
}

.toast-notification.error {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

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

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

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}