:root {
    --color-primary: #e10000;
    /* Emergency Red */
    --color-primary-dark: #b30000;
    --color-secondary: #25d366;
    /* WhatsApp Green */
    --color-bg-dark: #0f172a;
    /* Dark Navy */
    --color-bg-card: #1e293b;
    /* Lighter Navy */
    --color-text-light: #f8fafc;
    --color-text-gray: #94a3b8;
    --font-main: 'Montserrat', sans-serif;
    --shadow-card: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --radius-md: 12px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* Improve Touch Response globally */
button,
a,
input,
select,
textarea,
.btn {
    touch-action: manipulation;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Floating SOS Widget */
.sos-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    pointer-events: none;
    /* Let clicks pass through the container */
}

.sos-toggle {
    background: linear-gradient(135deg, #ff4d4d 0%, #d32f2f 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    /* Enable clicks on the button */
}

/* Pulse Animation */
.sos-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    animation: pulse-ring 2s infinite;
    z-index: -1;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.sos-toggle:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.6);
}

.sos-text {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.sos-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: wobble 2s infinite;
}

@keyframes wobble {
    0% {
        transform: rotate(0deg);
    }

    15% {
        transform: rotate(-5deg);
    }

    30% {
        transform: rotate(3deg);
    }

    45% {
        transform: rotate(-3deg);
    }

    60% {
        transform: rotate(2deg);
    }

    75% {
        transform: rotate(-1deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.sos-close-icon {
    display: none;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

/* Form Container */
.sos-form-container {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: bottom right;
    width: 300px;
}

.sos-widget.active .sos-form-container {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
    /* Ensure form is interactive when active */
}

.sos-widget.active .sos-toggle {
    background: #333;
    padding-right: 15px;
}

.sos-widget.active .sos-icon,
.sos-widget.active .sos-text {
    display: none;
}

.sos-widget.active .sos-close-icon {
    display: block;
}

.sos-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.sos-input:focus {
    border-color: #d32f2f;
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.sos-textarea {
    resize: none;
    min-height: 80px;
}

.sos-submit-btn {
    background: #25D366;
    /* WhatsApp Green mostly associated with 'Send' */
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.sos-submit-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.sos-submit-btn svg {
    transition: transform 0.3s ease;
}

.sos-submit-btn:hover svg {
    transform: translateX(3px) translateY(-3px);
}

/* Mobile Responsive */
@media (max-width: 768px) {

    /* SOS Widget Mobile Styles */
    .sos-widget {
        bottom: 20px;
        right: 20px;
        align-items: flex-end;
    }

    .sos-form-container {
        width: 100%;
        max-width: 300px;
        padding: 15px;
        right: 0;
    }

    /* Compact Circular Button */
    .sos-toggle {
        padding: 0;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        justify-content: center;
        box-shadow: 0 4px 10px rgba(211, 47, 47, 0.5);
    }

    /* Hide text on mobile */
    .sos-text {
        display: none;
    }

    /* Ensure icon is centered and visible */
    .sos-icon {
        margin: 0;
        font-size: 24px;
    }
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 0 20px rgba(225, 0, 0, 0.4);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(225, 0, 0, 0.6);
}

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

.btn-secondary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    color: white;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    /* Above everything including SOS widget (9999) */
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.logo span {
    color: var(--color-primary);
}

/* Language Switcher - New Design */
.lang-switcher {
    position: relative;
    z-index: 1002;
}

.lang-dropdown-container {
    position: relative;
}

.current-lang {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-light);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.current-lang:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--color-primary);
}

.lang-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.lang-dropdown-container:hover .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 160px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.lang-dropdown-container:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: var(--color-text-light);
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.lang-dropdown li:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-primary);
}

.lang-dropdown li img {
    border-radius: 2px;
    width: 20px;
}

@media (max-width: 768px) {
    .lang-switcher {
        margin: 1rem auto;
        display: inline-block;
    }

    .lang-dropdown {
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        margin-top: 5px;
        position: relative;
        display: none;
        width: 200px;
    }

    .lang-dropdown-container.active .lang-dropdown {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

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

.nav-links a {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.nav-cta-btn {
    background-color: var(--color-primary);
    padding: 8px 20px;
    border-radius: 4px;
    color: white !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('assets/hero-bg-new.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    /* Background layer */
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.6) 50%, rgba(15, 23, 42, 0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    /* Content layer */
    max-width: 800px;
}

.hero-tag {
    display: inline-block;
    background: rgba(225, 0, 0, 0.2);
    color: #ff9999;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(225, 0, 0, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero h1 .highlight {
    color: var(--color-primary);
    white-space: nowrap;
}

.hero p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Pulse Animation */
.pulse-animation {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(225, 0, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(225, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(225, 0, 0, 0);
    }
}

/* Services Section */
.section {
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Reduced min-width */
    gap: 2rem;
}

.service-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(225, 0, 0, 0.3);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.card-content p {
    color: var(--color-text-gray);
    font-size: 0.95rem;
}

/* Why Us */
.why-us {
    background: linear-gradient(to bottom, var(--color-bg-dark), #162036);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: center;
}

.feature-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.feature-item h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-item p {
    color: var(--color-text-gray);
}

/* CTA Banner */
.cta-banner {
    background-image: linear-gradient(rgba(225, 0, 0, 0.9), rgba(150, 0, 0, 0.9)), url('assets/hero-bg.jpg');
    background-size: cover;
    padding: 4rem 0;
    text-align: center;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta-text {
    text-align: left;
}

.cta-text h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.btn-large {
    background: white;
    color: var(--color-primary);
    font-size: 1.1rem;
    padding: 16px 32px;
}

.btn-large:hover {
    background: #f1f5f9;
    color: var(--color-primary-dark);
}

/* Footer */
.footer {
    background: #020617;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.footer p,
.footer li {
    color: var(--color-text-gray);
    margin-bottom: 0.8rem;
    list-style: none;
}

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

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* Pricing Section */
.pricing {
    background-color: var(--color-bg-dark);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Reduced min-width */
    gap: 2rem;
    margin-bottom: 2rem;
}

.pricing-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: rgba(225, 0, 0, 0.2);
}

.pricing-card.popular {
    border: 2px solid var(--color-primary);
    background: linear-gradient(to bottom right, var(--color-bg-card), rgba(225, 0, 0, 0.05));
    transform: scale(1.05);
    z-index: 1;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

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

.pricing-header h3 {
    color: var(--color-text-gray);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 2rem;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-gray);
    margin-left: 5px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 1rem;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
}

.check-icon {
    color: var(--color-secondary);
    margin-right: 10px;
    font-weight: bold;
    font-style: normal;
}

.btn-block {
    width: 100%;
    display: flex;
}

/* Page Header (Subpages) */
.page-header {
    height: 40vh;
    min-height: 300px;
    background-image: url('assets/hero-bg-new.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.page-header h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    color: #cbd5e1;
}

/* Detailed Price List */
.intro-text {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.price-list-container {
    max-width: 800px;
    margin: 0 auto 3rem;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s;
}

.price-item:last-child {
    border-bottom: none;
}

.price-item:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.price-item.featured {
    background: rgba(225, 0, 0, 0.1);
    border-left: 4px solid var(--color-primary);
}

.price-details h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.price-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-gray);
    font-style: italic;
}

.price-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    white-space: normal;
    /* Changed from nowrap to normal for mobile */
    margin-left: 1rem;
    text-align: right;
}

.alert-box {
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--color-text-gray);
}

.alert-box strong {
    color: white;
}

.working-hours {
    margin-top: 1rem;
    color: var(--color-secondary);
    font-weight: 600;
}

.cta-center {
    text-align: center;
    margin-top: 3rem;
}

.pricing-note {
    text-align: center;
    color: var(--color-text-gray);
    font-size: 0.85rem;
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
}

/* Mobile Responsiveness */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 80%;
        background: var(--color-bg-dark);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        max-height: 100vh;
        visibility: hidden;
        /* Hide when not active to prevent overflow/focus */
    }

    .nav-links.active {
        right: 0;
        visibility: visible;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .cta-text {
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
        /* Smaller font for mobile */
        word-wrap: break-word;
        /* Prevent overflow */
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .price-value {
        font-size: 1.1rem;
        /* Smaller price on very small screens */
    }
}

/* New Pricing Categories */
.price-category {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.price-category h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding: 0 1.5rem;
    text-transform: uppercase;
    font-weight: 800;
}

/* Pricing Table */
.table-responsive {
    overflow-x: auto;
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--color-text-light);
    font-size: 1rem;
}

.price-table th,
.price-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.price-table th {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-gray);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.price-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.price-table td:nth-child(2),
.price-table td:nth-child(3) {
    font-weight: 700;
    color: var(--color-primary);
    text-align: right;
}

.price-table th:nth-child(2),
.price-table th:nth-child(3) {
    text-align: right;
}

@media (max-width: 600px) {
    .price-details h4 {
        font-size: 1rem;
    }

    .price-category h3 {
        font-size: 1.2rem;
    }
}