/* Color Variables */
:root {
    --primary-red: #cc3333;
    --primary-blue: #2563eb;
    --accent-blue: #1d4ed8;
    --dark-blue: #1e3a8a;
    --white: #ffffff;
    --off-white: #f8fafc;
    --black: #000000;
    --dark-gray: #0a0a0a;
    --medium-gray: #1a1a1a;
    --light-gray: #2a2a2a;
    --text-gray: #e0e0e0;
    --border-gray: #333333;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-gray);
    background-color: var(--dark-gray);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 2s ease-in-out 3s forwards;
}

.loader {
    text-align: center;
    color: #fff;
}

.engine {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.piston {
    width: 20px;
    height: 60px;
    background: var(--primary-blue);
    margin: 0 5px;
    border-radius: 10px;
    animation: pistonMove 1s ease-in-out infinite alternate;
}

.piston:nth-child(2) { animation-delay: 0.1s; }
.piston:nth-child(3) { animation-delay: 0.2s; }
.piston:nth-child(4) { animation-delay: 0.3s; }

@keyframes pistonMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

/* Scroll Progress */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    z-index: 1001;
    transition: width 0.3s ease;
}

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
}

/* Header */
header {
    background-color: var(--black);
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-gray);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 400;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--primary-blue);
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.burger-menu:hover {
    background: rgba(255, 255, 255, 0.1);
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

.burger-menu:hover span {
    background: var(--primary-blue);
}

/* Theme Toggle */
.theme-toggle {
    margin-left: 20px;
}

.toggle-label {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    background: var(--light-gray);
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    transition: transform 0.3s;
}

#theme-switch:checked + .toggle-label {
    background: var(--primary-blue);
}

#theme-switch:checked + .toggle-label .toggle-slider {
    transform: translateX(26px);
}

#theme-switch {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--black) 100%), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1200&h=600&fit=crop');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 150px 0 100px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

#hero h2 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-family: 'Space Mono', monospace;
    letter-spacing: 4px;
}

.hero-logo img {
    height: 120px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

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

#hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-blue));
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(204, 51, 51, 0.3);
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Sections */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 3rem;
    font-weight: 600;
    color: var(--white);
}

/* Stats Section */
#stats {
    background: linear-gradient(135deg, var(--medium-gray) 0%, var(--dark-gray) 100%);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 30px;
    background: linear-gradient(145deg, var(--medium-gray), var(--dark-gray));
    border-radius: 15px;
    border: 1px solid var(--border-gray);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-family: 'Space Mono', monospace;
}

.stat-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--white);
}

.stat-item p {
    color: var(--text-gray);
    font-weight: 300;
}

/* Services */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: linear-gradient(145deg, var(--medium-gray), var(--dark-gray));
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-gray);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    padding: 20px 20px 10px;
    color: var(--primary-blue);
    font-weight: 600;
}

/* Testimonials */
#testimonials {
    background: linear-gradient(135deg, var(--medium-gray) 0%, var(--dark-gray) 100%);
    padding: 80px 0;
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testimonial {
    display: none;
    background: linear-gradient(145deg, var(--medium-gray), var(--dark-gray));
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid var(--border-gray);
}

.testimonial.active {
    display: block;
}

.testimonial-content {
    text-align: center;
}

.stars {
    margin-bottom: 20px;
}

.stars i {
    color: #ffd700;
    font-size: 1.2rem;
    margin: 0 2px;
}

.testimonial p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-gray);
}

.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.client-info img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.client-info img:hover {
    transform: scale(1.1);
}

.client-info div {
    text-align: left;
}

.client-info h4 {
    margin: 0;
    color: var(--white);
    font-size: 1rem;
}

.client-info span {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #555;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--primary-blue);
}

/* Modal for enlarged images */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Pricing */
#pricing {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--medium-gray) 100%);
    padding: 80px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid #333;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.pricing-card.featured {
    border-color: var(--primary-blue);
    position: relative;
}

.pricing-header {
    margin-bottom: 30px;
}

.pricing-header h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    font-family: 'Space Mono', monospace;
}

.popular {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-red);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-card li {
    padding: 10px 0;
    color: #ccc;
    border-bottom: 1px solid #333;
}

.pricing-btn {
    background: linear-gradient(135deg, var(--light-gray), var(--medium-gray));
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.pricing-btn:hover {
    background: linear-gradient(135deg, var(--medium-gray), var(--light-gray));
    transform: translateY(-2px);
}

.featured-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
}

.featured-btn:hover {
    background: linear-gradient(135deg, var(--dark-blue), var(--accent-blue));
}

/* Team */
#team {
    background: linear-gradient(135deg, var(--medium-gray) 0%, var(--dark-gray) 100%);
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(145deg, var(--medium-gray), var(--dark-gray));
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid var(--border-gray);
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.team-member h3 {
    margin: 0 0 5px;
    color: var(--white);
    font-size: 1.2rem;
}

.team-member p {
    margin: 0 0 15px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    color: var(--text-gray);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-blue);
}

/* Gallery */
#gallery {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    padding: 80px 0;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* FAQ */
#faq {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 80px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #333;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #333;
}

.faq-question h3 {
    margin: 0;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-question i {
    color: var(--primary-blue);
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 20px 20px;
}

.faq-answer p {
    margin: 20px 0 0;
    color: #ccc;
    line-height: 1.6;
}

/* Contact */
#contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid #333;
}

#contact-form label {
    margin-top: 20px;
    font-weight: 600;
    color: #fff;
}

#contact-form input,
#contact-form textarea {
    padding: 15px;
    margin-top: 5px;
    border: 1px solid #444;
    border-radius: 8px;
    background-color: #222;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

#contact-form textarea {
    height: 150px;
    resize: vertical;
}

#contact-form button {
    margin-top: 30px;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

#contact-form button:hover {
    background: linear-gradient(135deg, var(--dark-blue), var(--accent-blue));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
}

/* Footer */
footer {
    background-color: #000;
    color: #fff;
    padding: 60px 0 20px;
    border-top: 1px solid #333;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--light-gray);
    line-height: 1.6;
    margin-bottom: 15px;
}

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

.footer-section li {
    margin-bottom: 10px;
}

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

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

.newsletter {
    margin-top: 20px;
}

.newsletter h4 {
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

#newsletter-email {
    flex: 1;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 5px;
    background: #222;
    color: #fff;
}

#newsletter-btn {
    padding: 10px 15px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

#newsletter-btn:hover {
    background: var(--dark-blue);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

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

    nav {
        position: relative;
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--black);
        flex-direction: column;
        padding: 20px 0;
        margin: 0;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        border-top: 1px solid var(--border-gray);
    }

    nav ul.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    nav ul li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid var(--border-gray);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
        transition: all 0.3s ease;
    }

    nav ul li a:hover {
        background: var(--primary-blue);
        color: var(--white);
    }

    .burger-menu {
        display: flex;
    }

    .theme-toggle {
        display: none; /* Hide theme toggle on mobile for cleaner look */
    }

    #hero h1 {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .hero-logo img {
        height: 80px;
    }

    #hero p {
        font-size: 1.2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

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

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

    .team-member {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

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

    .gallery-filters {
        flex-direction: column;
        align-items: center;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    #newsletter-btn {
        align-self: stretch;
    }

    .faq-question h3 {
        font-size: 1rem;
    }
}

@media (min-width: 769px) {
    .burger-menu {
        display: none;
    }
}

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

    header .container {
        padding: 0 15px;
    }

    #hero {
        padding: 120px 0 80px;
    }

    #hero h1 {
        font-size: 2rem;
    }

    .hero-logo img {
        height: 60px;
    }

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

    .testimonial-content {
        padding: 30px 20px;
    }

    .pricing-card {
        padding: 30px 20px;
    }

    .gallery-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    nav ul {
        padding: 15px 0;
    }

    nav ul li a {
        padding: 12px 15px;
        font-size: 1rem;
    }
}