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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: white;
    overflow-x: hidden;
    line-height: 1.6;
}

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

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid #e53e3e;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.shrink {
    height: 100px;
}

.header-container {
    transition: transform 0.3s ease;
    will-change: transform;
}

.sticky-mobile-header {
    background: inherit;
    position: relative;
    top: 0;
    z-index: 1;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

nav.hidden {
    opacity: 0;
    transform: translateY(-100%);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 65px;
    height: 80px;
    background-image: url('../images/logo_no_bg.png');
    background-size: cover;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.logo-slogan {
    font-size: 15.3px;
    color: rgba(26, 54, 93, 0.9);
    font-weight: 500;
    font-style: italic;
}

.logo-text {
    color: #e53e3e;
    font-size: 35px;
    font-weight: 700;
    line-height: normal;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: rgba(45, 55, 72, 0.9);
    font-weight: 700;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-links a:hover {
    color: #e53e3e;
    transform: translateY(-2px);
}

.header-mobile-cta {
    padding: 25px 0;
    text-align: center;
}

.emergency-btn {
    background: linear-gradient(45deg, #e53e3e, #ff6b6b);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

.emergency-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-bottom: 45px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.9), rgba(45, 55, 72, 0.9)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%23000" width="100" height="100" opacity="0.1"/></svg>');
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 2;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
}

.hero-text .highlight {
    color: #e53e3e;
    background: linear-gradient(45deg, #e53e3e, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 500px;
}

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

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #e53e3e, #ff6b6b);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(229, 62, 62, 0.3);
    font-size: 1.1rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(229, 62, 62, 0.4);
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    color: white;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.btn-secondary:hover {
    background: white;
    color: #1a365d;
    transform: translateY(-3px);
}

.floating-btn-container {
    position: relative;
    padding-bottom: 70px;
    text-align: center;
}

.btn-floating {
    border: 1px solid rgba(255, 255, 255, 0.95);
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    width: 255px;
}

.btn-floating:hover {
    transform: translateX(-50%);
}

/* Hero Features */
.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-item h3 {
    color: #e53e3e;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-icon {
    font-size: 1.5rem;
}

/* Trust Indicators */
.trust-bar {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-items {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #a0aec0;
}

.trust-item .icon {
    color: #e53e3e;
    font-size: 1.2rem;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.05);
}

.services h2, .tech-exp h2, .systems-and-brands h2, .nfa-services h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.services-grid, .generic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.list-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 2rem;
}

.service-card, .pricing-card, .generic-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.no-btn-card {
    margin-top: 45px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #e53e3e;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #e53e3e, #ff6b6b);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: translateX(0);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e53e3e;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-card .service-features, .tech-exp .generic-card ul, .systems-and-brands .generic-card ul, .nfa-services .generic-card ul {
    margin-bottom: 5rem;
}

.generic-card.no-btn-card ul {
    margin-bottom: 0;
}

.service-card .service-icon {
    font-size: 2rem;
}

.service-card p {
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-card .btn-primary, .pricing-card .btn-primary, .generic-card .btn-primary {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    text-align: center;
    transform: translateX(-50%);
    width: 70%;
}

.service-features, .generic-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li, .generic-card ul li {
    padding: 0.3rem 0;
    color: #a0aec0;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before, .generic-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #e53e3e;
    font-weight: bold;
}

/* Pricing Section */
.pricing {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.08);
}

.pricing h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: white;
}

.pricing .subtitle {
    text-align: center;
    font-size: 1.4rem;
    color: #e53e3e;
    font-weight: 700;
    margin-bottom: 3rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    text-align: center;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: #e53e3e;
    box-shadow: 0 20px 40px rgba(229, 62, 62, 0.2);
}

.pricing-card.featured {
    border-color: #e53e3e;
    background: rgba(229, 62, 62, 0.1);
}

.pricing-card.featured::before {
    content: 'MOST COMMON';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(45deg, #e53e3e, #ff6b6b);
    color: white;
    padding: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.pricing-card h3 {
    color: #e53e3e;
    font-size: 1.4rem;
    height: 72px;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.pricing-card .price-unit {
    font-size: 1rem;
    color: #a0aec0;
    margin-bottom: 1.5rem;
}

.pricing-card .schedule {
    font-size: 1.1rem;
    color: #a0aec0;
    margin-bottom: 5rem;
    line-height: 1.6;
}

.pricing-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.pricing-info h4 {
    color: #e53e3e;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.pricing-info p {
    color: #a0aec0;
    line-height: 1.6;
}

/* tech experience section */
.tech-exp {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.05);
}

/* systems and brands section */
.systems-and-brands {
    padding: 5rem 0;
}

/* non fire alarm (nfa) services section */
.nfa-services {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.08);
}

.emergency {
    padding: 4rem 0;
    background: linear-gradient(45deg, #e53e3e, #ff6b6b);
    text-align: center;
}

.emergency h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.emergency p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.emergency-contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.contact-item a {
    color: white;
    text-decoration: none;
}

.mobile-only {
    display: none;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 3rem 0 1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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

.footer-section h3 {
    color: #e53e3e;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p, .footer-section li {
    color: #a0aec0;
    margin-bottom: 0.5rem;
}

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

.footer-section a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #e53e3e;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0aec0;
}

.social-media {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-link {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.social-link i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.social-link:hover {
    color: #e53e3e;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .social-media {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

@media (max-width: 1029px) {
    /*header {
        display: none;
    }*/
}

/* Responsive */
@media (max-width: 768px) {
    header {
        height: 260px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        margin-top: 280px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-items {
        gap: 1rem;
    }
    
    .emergency-contact {
        flex-direction: column;
        align-items: center;
    }

    .mobile-only {
        display: block;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 900px;
    height: 95vh;
    max-height: 800px;
    min-height: 600px;
    overflow: hidden;
    animation: modalSlideIn 0.4s ease;
    border: 2px solid #6a7789;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: #44546c;
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #6a7789;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.close-modal {
    font-size: 2rem;
    cursor: pointer;
    color: #263750;
    font-weight: bold;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: #c53030;
    transform: scale(1.1);
}

.modal-body {
    padding: 0;
    background: white;
    flex: 1;
    min-height: 0;
}

.modal-body iframe {
    border-radius: 0 0 15px 15px;
    height: 100%;
    width: 100%;
}

/* Modal Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        min-height: 100vh;
        margin: 0;
        border-radius: 0;
        border: none;
    }
    
    .modal-header {
        padding: 15px 20px;
        border-radius: 0;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-body iframe {
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 12px 16px;
    }
    
    .modal-header h2 {
        font-size: 1.1rem;
    }
    
    .close-modal {
        font-size: 1.8rem;
    }
}