@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

         /* Preloader Styles */
        .preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            /* background-color: #fefefe; */
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 10000;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }

        .preloader.dark-mode {
            background-color: #1a1a1a;
        }

        .preloader.fade-out {
            opacity: 0;
            visibility: hidden;
        }

        .preloader-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1.5rem;
        }

        .preloader-spinner {
            position: relative;
            width: 80px;
            height: 80px;
        }

        .spinner-circle {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 3px solid transparent;
            border-top: 3px solid #ff9a9e;
            border-right: 3px solid #fecfef;
            border-radius: 50%;
            animation: spin 1.5s linear infinite;
        }

        .preloader.dark-mode .spinner-circle {
            border-top: 3px solid #64ffda;
            border-right: 3px solid #bb86fc;
        }

        .preloader-icon {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 2rem;
            color: #ff6b9d;
            animation: pulse 2s ease-in-out infinite;
            box-shadow: none !important;
        }

        .preloader.dark-mode .preloader-icon {
            color: #64ffda;
        }

        .preloader-text {
            font-family: 'Poppins', sans-serif;
            font-size: 0.9rem;
            font-weight: 400;
            color: #8e8e93;
            letter-spacing: 0.5px;
            animation: fadeInOut 2s ease-in-out infinite;
        }

        .preloader.dark-mode .preloader-text {
            color: #a0a0a0;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        @keyframes pulse {
            0%, 100% { 
                transform: translate(-50%, -50%) scale(1);
                opacity: 1;
            }
            50% { 
                transform: translate(-50%, -50%) scale(1.1);
                opacity: 0.8;
            }
        }

        @keyframes fadeInOut {
            0%, 100% { opacity: 0.6; }
            50% { opacity: 1; }
        }

        /* Hide main content during loading */
        .main-content {
            opacity: 0;
            transition: opacity 0.5s ease;
        }

        .main-content.loaded {
            opacity: 1;
        }
        
        :root {
            --primary-color: #ff6b6b;
            --secondary-color: #4ecdc4;
            --accent-color: #45b7d1;
            --text-dark: #2c3e50;
            --text-light: #ecf0f1;
            --bg-light: #f8f9fa;
            --bg-dark: #1a1a1a;
            --card-light: #ffffff;
            --card-dark: #2d2d2d;
            --border-light: #e9ecef;
            --border-dark: #404040;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Poppins', sans-serif;
            line-height: 1.6;
            transition: all 0.3s ease;
            background-color: var(--bg-light);
            color: var(--text-dark);
            overflow-x: hidden;
            position: relative;
            scroll-behavior: smooth;

        }

         html {
            scroll-behavior: smooth;
           }



        body.dark-mode {
            background-color: var(--bg-dark);
            color: var(--text-light);
        }

        /* Floating Background Elements */
        .floating-elements {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
            overflow: hidden;
        }

        .floating-paw {
            position: absolute;
            color: rgba(255, 107, 107, 0.1);
            font-size: 2rem;
            animation: float 15s infinite linear;
        }

        .floating-heart {
            position: absolute;
            color: rgba(78, 205, 196, 0.1);
            font-size: 1.5rem;
            animation: float 20s infinite linear;
        }

        .floating-bone {
            position: absolute;
            color: rgba(69, 183, 209, 0.1);
            font-size: 1.8rem;
            animation: float 18s infinite linear;
        }

        @keyframes float {
            0% {
                transform: translateY(100vh) rotate(0deg);
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                transform: translateY(-100px) rotate(360deg);
                opacity: 0;
            }
        }

        /* Animated Gradient Background */
        .animated-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(-45deg, 
                rgba(255, 107, 107, 0.05), 
                rgba(78, 205, 196, 0.05), 
                rgba(69, 183, 209, 0.05), 
                rgba(255, 167, 38, 0.05));
            background-size: 400% 400%;
            animation: gradientShift 15s ease infinite;
            pointer-events: none;
        }

        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        /* Scroll Progress Indicator */
        .scroll-progress {
            position: fixed;
            top: 0;
            left: 0;
            width: 0%;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            z-index: 9999;
            transition: width 0.3s ease;
        }

        /* Paw Print Dividers */
        .paw-divider {
            text-align: center;
            margin: 3rem 0;
            position: relative;
        }

        .paw-divider i {
            font-size: 2rem;
            color: var(--primary-color);
            animation: bounce 2s infinite;
            display: inline-block;
            margin: 0 1rem;
        }

        .paw-divider i:nth-child(2) {
            animation-delay: 0.2s;
        }

        .paw-divider i:nth-child(3) {
            animation-delay: 0.4s;
        }

        /* Dark mode styles */
        .dark-mode .navbar {
            background-color: var(--card-dark) !important;
            border-bottom: 1px solid var(--border-dark);
        }

        .dark-mode .card {
            background-color: var(--card-dark);
            border-color: var(--border-dark);
            color: var(--text-light);
        }

        .dark-mode .bg-light {
            background-color: var(--card-dark) !important;
        }

        .dark-mode .text-dark {
            color: var(--text-light) !important;
        }

        .dark-mode .border {
            border-color: var(--border-dark) !important;
        }

        .dark-mode .nav-link {
            color: white !important;
        }

        .dark-mode .nav-link:hover {
            color: var(--primary-color) !important;
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-10px);
            }
            60% {
                transform: translateY(-5px);
            }
        }

        .fade-in {
            animation: fadeInUp 1s ease-out;
        }

        .bounce-hover:hover {
            animation: bounce 0.6s ease;
        }

        /* Navbar */
        .navbar {
            background-color: var(--card-light);
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            padding: 1rem 0;
            transition: all 0.3s ease;
        }

        .navbar-brand {
            font-weight: 700;
            font-size: 1.8rem;
            color: var(--primary-color) !important;
        }

        .nav-link {
            font-weight: 500;
            margin: 0 0.5rem;
            transition: color 0.3s ease;
            color: var(--text-light);
        }

        .nav-link:hover {
            color: var(--primary-color) !important;
        }
        .nav-item.active .nav-link{
            color: var(--primary-color) !important;
        }

        /* Mobile Navbar Toggler */
        .navbar-toggler {
            border: none;
            padding: 0.5rem;
            font-size: 1.2rem;
            color: var(--primary-color);
            background: none;
            transition: all 0.3s ease;
        }

        .navbar-toggler:focus {
            box-shadow: none;
        }

        .navbar-toggler:hover {
            color: var(--secondary-color);
            transform: scale(1.1);
        }

        /* Offcanvas Styles */
        .offcanvas {
            width: 320px !important;
            background-color: var(--card-light);
            border-left: 3px solid var(--primary-color);
        }

        .dark-mode .offcanvas {
            background-color: var(--card-dark);
            color: var(--text-light);
        }

        .offcanvas-header {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            padding: 1.5rem;
            border-bottom: none;
        }

        .offcanvas-title {
            font-weight: 700;
            font-size: 1.5rem;
            margin: 0;
        }

        .offcanvas-title i {
            color: white !important;
        }

        .btn-close {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            opacity: 1;
            transition: all 0.3s ease;
        }

        .btn-close:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: rotate(90deg);
        }

        .offcanvas-body {
            padding: 2rem 1.5rem;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .offcanvas-link {
            padding: 1rem 0;
            font-size: 1.1rem;
            font-weight: 500;
            color: var(--text-dark) !important;
            text-decoration: none;
            border-bottom: 1px solid var(--border-light);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
        }

        .dark-mode .offcanvas-link {
            color: var(--text-light) !important;
            border-bottom-color: var(--border-dark);
        }

        .offcanvas-link:hover {
            color: var(--primary-color) !important;
            padding-left: 1rem;
            background: rgba(255, 107, 107, 0.1);
            border-radius: 10px;
            border-bottom-color: transparent;
        }

        .offcanvas-link i {
            color: var(--primary-color);
            width: 20px;
            transition: all 0.3s ease;
        }

        .offcanvas-link:hover i {
            transform: scale(1.2);
            color: var(--secondary-color);
        }

        .social-links-mobile a {
            color: var(--text-dark);
            transition: all 0.3s ease;
        }

        .dark-mode .social-links-mobile a {
            color: var(--text-light);
        }

        .social-links-mobile a:hover {
            color: var(--primary-color);
            transform: translateY(-3px);
        }

        /* Theme Toggle */
        .theme-toggle {
            background: none;
            border: 2px solid var(--primary-color);
            color: var(--primary-color);
            border-radius: 50%; 
            padding: 0 !important;
            width: 50px !important;
            height: 50px !important;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .theme-toggle:hover {
            background-color: var(--primary-color);
            color: white;
        }

        /* Dark mode for offcanvas theme toggle section */
        .dark-mode .bg-light {
            background-color: var(--card-dark) !important;
            border: 1px solid var(--border-dark);
        }

        /* Hero Section */
        .hero { 
            min-height: 900px;
            position: relative;
            overflow: hidden;
        }

        .hero-slider {
            min-height: 900px;
        }

        .hero-slide {
            min-height: 900px;
            display: flex;
            align-items: center;
            position: relative;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        .hero-slide:nth-child(2) {
            background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
        }

        .hero-slide:nth-child(3) {
            background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
        }

        .hero-slide::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="paw" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="8" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="6" cy="12" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="14" cy="12" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="8" cy="15" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="12" cy="15" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23paw)"/></svg>') repeat;
            opacity: 0.1;
        }

        .hero-content {
            position: relative;
            z-index: 2;
        }

        .hero h1 {
            font-size: 3.5rem;
            font-weight: 700;
            color: white;
            margin-bottom: 1.5rem;
        }

        .hero p {
            font-size: 1.3rem;
            color: rgba(255,255,255,0.9);
            margin-bottom: 2rem;
        }

        .hero-img {
            max-width: 100%;
            height: auto;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        }

          .pets-gallery-img {
            max-width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
       }

        /* Splide customization */
        .splide__arrows {
            display: none;
        }

        .splide__pagination {
            bottom: 1rem;
        }

        .splide__pagination__page {
            background: rgba(255,255,255,0.5);
            width: 12px;
            height: 12px;
            margin: 0 8px;
        }

        .splide__pagination__page.is-active {
            background: white;
        }

        .btn-primary {
            background-color: var(--primary-color); 
            padding: 1rem 2rem;
            font-weight: 600;
            border-radius: 50px;
            border: 2px solid var(--primary-color);
            transition: all 0.3s ease;
        }

        .btn-primary:hover {
            background-color: #ff5252;
            border-color: #ff5252;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
        }

        .btn-outline-light {
            border: 2px solid white;
            padding: 1rem 2rem;
            font-weight: 600;
            border-radius: 50px;
            transition: all 0.3s ease;
        }

        .btn-outline-light:hover {
            background-color: white;
            color: var(--primary-color);
            transform: translateY(-2px);
        }

        /* Services Section */
        .services {
            /* padding: 5rem 0; */
            position: relative;
        }

        .service-card {
            text-align: center;
            padding: 2rem;
            border-radius: 15px;
            transition: all 0.5s ease;
            height: 100%;
            border: 1px solid var(--border-light);
            position: relative;
            overflow: hidden;
            cursor: pointer;
            perspective: 1000px;
        }

        .service-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }

        .service-card:hover::before {
            left: 100%;
        }

        .service-card:hover {
            transform: translateY(-15px) rotateY(5deg);
            box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        }

        .service-icon {
            font-size: 3rem;
            color: var(--primary-color);
            margin-bottom: 1.5rem;
            transition: all 0.3s ease;
            position: relative;
        }

        .service-card:hover .service-icon {
            transform: scale(1.2) rotate(10deg);
            color: var(--secondary-color);
        }

        .service-card .card-body {
            position: relative;
            z-index: 2;
        }

        .service-card h4 {
            background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-weight: 600;
        }

        /* Pet Care Tips Ticker */
        .tips-ticker {
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            color: white;
            padding: 1rem 0;
            overflow: hidden;
            white-space: nowrap;
            position: relative;
        }

        .ticker-content {
            display: inline-block;
            animation: scroll 30s linear infinite;
        }

        @keyframes scroll {
            0% { transform: translateX(100%); }
            100% { transform: translateX(-100%); }
        }

        /* Gallery Section */
        .gallery {
            padding: 5rem 0;
            background-color: var(--bg-light);
        }

        .dark-mode .gallery {
            background-color: var(--bg-dark);
        }

        .gallery-item {
            position: relative;
            overflow: hidden;
            border-radius: 15px;
            margin-bottom: 2rem;
            height: 300px;
            background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .gallery-item:hover {
            transform: scale(1.05);
            box-shadow: 0 15px 30px rgba(0,0,0,0.2);
        }

        .gallery-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.3);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .gallery-item:hover::before {
            opacity: 1;
        }

        .gallery-content {
            position: relative;
            z-index: 2;
            text-align: center;
            color: white;
        }

        .gallery-content i {
            font-size: 4rem;
            margin-bottom: 1rem;
        }

        /* Interactive Quiz Section */
        .quiz-section {
            background: linear-gradient(45deg, #ff6b6b, var(--secondary-color));
            padding: 4rem 0;
            color: white;
            text-align: center;
        }

        .quiz-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 2rem;
            margin: 1rem 0;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .quiz-option {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            padding: 1rem 2rem;
            margin: 0.5rem;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .quiz-option:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }

        /* Testimonials */
        .testimonials {
            padding: 5rem 0;
            position: relative;
        }

        .testimonial-card {
            background: white;
            padding: 2rem;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            text-align: center;
            margin: 1rem;
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
            cursor: pointer;
        }

        .dark-mode .testimonial-card {
            background-color: var(--card-dark);
            color: var(--text-light);
            box-shadow: 0 5px 20px rgba(0,0,0,0.3);
        }

        .testimonial-card::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: conic-gradient(from 0deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
            animation: rotate 4s linear infinite;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .testimonial-card:hover::before {
            opacity: 0.1;
        }

        @keyframes rotate {
            100% { transform: rotate(360deg); }
        }

        .testimonial-card:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 15px 40px rgba(0,0,0,0.2);
        }

        .testimonial-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
            color: white;
            font-size: 2rem;
            transition: all 0.3s ease;
            position: relative;
            z-index: 2;
        }

        .testimonial-card:hover .testimonial-avatar {
            transform: scale(1.1);
            box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
        }

        .testimonial-card .text-warning i {
            transition: all 0.2s ease;
        }

        .testimonial-card:hover .text-warning i {
            animation: heartBeat 1s ease-in-out;
        }

        @keyframes heartBeat {
            0% { transform: scale(1); }
            14% { transform: scale(1.3); }
            28% { transform: scale(1); }
            42% { transform: scale(1.3); }
            70% { transform: scale(1); }
        }

        /* Contact Section */
        .contact {
            padding: 5rem 0;
            background-color: var(--bg-light);
        }

        .dark-mode .contact {
            background-color: var(--bg-dark);
        }

        .contact-form {
            background: white;
            padding: 2rem;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        .dark-mode .contact-form {
            background-color: var(--card-dark);
            color: var(--text-light);
        }

        .contact-info {
            padding: 2rem;
        }

        .contact-item {
            display: flex;
            align-items: center;
            margin-bottom: 2rem;
            padding: 1.5rem;
            background: white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }

        .contact-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        }

        .dark-mode .contact-item {
            background-color: var(--card-dark);
            color: var(--text-light);
        }

        .contact-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            margin-right: 1rem;
            margin-top: 0.25rem;
            flex-shrink: 0;
        }

         .contact-item > div:last-child {
            flex: 1;
            min-width: 0;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        .form-control {
            border: 2px solid var(--border-light);
            border-radius: 10px;
            padding: 0.75rem 1rem;
            transition: all 0.3s ease;
        }

        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25);
        }

        .dark-mode .form-control {
            background-color: var(--card-dark);
            border-color: var(--border-dark);
            color: var(--text-light);
        }

        .dark-mode .form-control:focus {
            background-color: var(--card-dark);
            border-color: var(--primary-color);
        }

        /* Floating Action Button */
        .floating-action-btn {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            width: 60px;
            height: 60px;
            background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
            z-index: 1000;
            transition: all 0.3s ease;
            cursor: pointer;
            animation: pulse 2s infinite;
        }

        .floating-action-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 25px rgba(255, 107, 107, 0.6);
        }

        @keyframes pulse {
            0% { box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4); }
            50% { box-shadow: 0 4px 20px rgba(255, 107, 107, 0.8); }
            100% { box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4); }
        }

        /* Emergency Contact Button */
        .emergency-btn {
            position: fixed;
            top: 50%;
            left: 0;
            transform: translateY(-50%);
            background: #e74c3c;
            color: white;
            padding: 1rem 0.5rem;
            writing-mode: vertical-rl;
            text-orientation: mixed;
            border: none;
            border-radius: 0 10px 10px 0;
            z-index: 999;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .emergency-btn:hover {
            padding-left: 1rem;
            background: #c0392b;
        }

        /* Emergency Modal */
        .emergency-modal {
            display: none;
            position: fixed;
            z-index: 10000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(5px);
            animation: fadeIn 0.3s ease;
            overflow-y: auto;
            overflow-x: hidden;
            -webkit-overflow-scrolling: touch;
            scroll-behavior: smooth;
        }

        .emergency-modal-content {
            background-color: white;
            margin: 2rem auto;
            border-radius: 15px;
            width: 90%;
            max-width: 600px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: slideIn 0.3s ease;
            overflow: hidden;
            position: relative;
            min-height: auto;
        }

        .emergency-header {
            background: linear-gradient(135deg, #e74c3c, #c0392b);
            color: white;
            padding: 1.5rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .emergency-header h3 {
            margin: 0;
            font-size: 1.5rem;
            font-weight: 700;
        }

        .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 2rem;
            cursor: pointer;
            padding: 0;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .close-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: rotate(90deg);
        }

        .emergency-body {
            padding: 2rem;
        }

        .emergency-info {
            margin-bottom: 2rem;
        }

        .emergency-item {
            display: flex;
            align-items: center;
            margin-bottom: 1.5rem;
            padding: 1rem;
            background: #f8f9fa;
            border-radius: 10px;
            border-left: 4px solid #e74c3c;
        }

        .emergency-item i {
            font-size: 2rem;
            color: #e74c3c;
            margin-right: 1rem;
            width: 40px;
            text-align: center;
        }

        .emergency-item h5 {
            margin: 0 0 0.5rem 0;
            font-weight: 600;
            color: #2c3e50;
        }

        .emergency-item p {
            margin: 0;
            color: #7f8c8d;
        }

        .emergency-number {
            font-size: 1.2rem;
            font-weight: 700;
            color: #e74c3c !important;
        }

        .emergency-actions {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .emergency-call-btn, .emergency-directions-btn {
            flex: 1;
            padding: 1rem;
            border: none;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .emergency-call-btn {
            background: #e74c3c;
            color: white;
        }

        .emergency-call-btn:hover {
            background: #c0392b;
            transform: translateY(-2px);
        }

        .emergency-directions-btn {
            background: #3498db;
            color: white;
        }

        .emergency-directions-btn:hover {
            background: #2980b9;
            transform: translateY(-2px);
        }

        .emergency-tips {
            background: #fff3cd;
            border: 1px solid #ffeaa7;
            border-radius: 10px;
            padding: 1.5rem;
        }

        .emergency-tips h6 {
            color: #856404;
            margin-bottom: 1rem;
            font-weight: 600;
        }

        .emergency-tips ul {
            margin: 0;
            padding-left: 1.5rem;
        }

        .emergency-tips li {
            color: #856404;
            margin-bottom: 0.5rem;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideIn {
            from { 
                opacity: 0;
                transform: translateY(-50px) scale(0.9);
            }
            to { 
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        /* Dark mode for emergency modal */
        .dark-mode .emergency-modal-content {
            background-color: var(--card-dark);
            color: var(--text-light);
        }

        .dark-mode .emergency-item {
            background: #404040;
        }

        .dark-mode .emergency-item h5 {
            color: var(--text-light);
        }

        .dark-mode .emergency-tips {
            background: #3a3a3a;
            border-color: #555;
        }

        .dark-mode .emergency-tips h6,
        .dark-mode .emergency-tips li {
            color: #f39c12;
        }

        @media (max-width: 768px) {

            .emergency-modal-content {
                margin: 1rem auto;
                width: 95%;
                max-height: calc(100vh - 2rem);
                overflow-y: auto;
            }

            .emergency-header {
                padding: 1rem 1.5rem;
                position: sticky;
                top: 0;
                z-index: 1;
            }

            .emergency-body {
                padding: 1.5rem;
                max-height: none;
            }


            .emergency-actions {
                flex-direction: column;
            }

            .emergency-item {
                flex-direction: column;
                text-align: center;
            }

            .emergency-item i {
                margin-right: 0;
                margin-bottom: 0.5rem;
            }
        }

        /* Newsletter Form */
        .newsletter-form {
            margin-top: 1rem;
        }

        .newsletter-input-group {
            position: relative;
            display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50px;
            padding: 0.5rem;
            border: 2px solid transparent;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            min-height: 55px;
        }

        .newsletter-input-group:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: var(--primary-color);
        }

        .newsletter-input-group:focus-within {
            background: rgba(255, 255, 255, 0.2);
            border-color: var(--primary-color);
            box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
        }

        .newsletter-icon {
            color: rgba(255, 255, 255, 0.7);
            margin-left: 1rem;
            margin-right: 0.5rem;
            font-size: 1.1rem;
            flex-shrink: 0;
        }

        .newsletter-input {
            flex: 1;
            background: transparent;
            border: none;
            color: white;
            padding: 0.75rem 0.5rem;
            font-size: 0.95rem;
            outline: none;
            min-width: 0;
        }

        .newsletter-input::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }

        .newsletter-btn {
            background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
            border: none;
            color: white;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1rem;
            flex-shrink: 0;
        }

        .newsletter-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
        }

        .newsletter-benefits {
            margin-top: 0.75rem;
            text-align: center;
        }

        .newsletter-benefits i {
            color: var(--secondary-color);
        }

        /* Newsletter Form Responsive Styles */
        @media (max-width: 768px) {
            .newsletter-input-group {
                padding: 0.4rem;
                min-height: 50px;
                border-radius: 25px;
            }

            .newsletter-icon {
                margin-left: 0.8rem;
                margin-right: 0.4rem;
                font-size: 1rem;
            }

            .newsletter-input {
                padding: 0.6rem 0.4rem;
                font-size: 0.9rem;
            }

            .newsletter-btn {
                width: 40px;
                height: 40px;
                font-size: 0.9rem;
            }

            .newsletter-benefits {
                margin-top: 0.6rem;
            }

            .newsletter-benefits small {
                font-size: 0.75rem;
                display: block;
                line-height: 1.4;
            }
        }

        @media (max-width: 576px) {
            .newsletter-input-group {
                padding: 0.3rem;
                min-height: 48px;
                border-radius: 24px;
            }

            .newsletter-icon {
                margin-left: 0.7rem;
                margin-right: 0.3rem;
                font-size: 0.95rem;
            }

            .newsletter-input {
                padding: 0.5rem 0.3rem;
                font-size: 0.85rem;
            }

            .newsletter-input::placeholder {
                font-size: 0.85rem;
            }

            .newsletter-btn {
                width: 38px;
                height: 38px;
                font-size: 0.85rem;
            }

            .newsletter-benefits {
                margin-top: 0.5rem;
            }

            .newsletter-benefits small {
                font-size: 0.7rem;
                line-height: 1.3;
            }

            .newsletter-benefits i {
                font-size: 0.7rem;
            }
        }

        @media (max-width: 480px) {
            .newsletter-input-group {
                flex-direction: column;
                align-items: stretch;
                border-radius: 15px;
                padding: 0.5rem;
                min-height: auto;
            }

            .newsletter-icon {
                display: none;
            }

            .newsletter-input {
                text-align: center;
                padding: 0.75rem;
                margin-bottom: 0.5rem;
                border-radius: 10px;
                background: rgba(255, 255, 255, 0.1);
                font-size: 0.9rem;
            }

            .newsletter-btn {
                width: 100%;
                height: 45px;
                border-radius: 10px;
                font-size: 0.9rem;
            }

            .newsletter-btn i {
                margin-right: 0.5rem;
            }

            .newsletter-btn::after {
                content: " Subscribe";
            }

            .newsletter-benefits {
                margin-top: 0.75rem;
            }

            .newsletter-benefits small {
                font-size: 0.75rem;
                display: flex;
                justify-content: center;
                gap: 1rem;
                flex-wrap: wrap;
            }
        }

        /* Footer */
        .footer {
            background-color: var(--text-dark);
            color: white;
            padding: 3rem 0 1rem;
        }

        .dark-mode .footer {
            background-color: #0d0d0d;
        }

        .social-links a {
            color: white;
            font-size: 1.5rem;
            margin: 0 0.5rem;
            transition: all 0.3s ease;
        }

        .social-links a:hover {
            color: var(--primary-color);
            transform: translateY(-3px);
        }

        /* Scroll animations */
        .scroll-reveal {
            opacity: 0;
            transform: translateY(50px);
            transition: all 0.6s ease;
        }

        .scroll-reveal.revealed {
            opacity: 1;
            transform: translateY(0);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .hero h1 {
                font-size: 2.5rem;
            }
            
            .hero p {
                font-size: 1.1rem;
            }
            
            .service-card {
                margin-bottom: 2rem;
            }

            .floating-action-btn {
                bottom: 1rem;
                right: 1rem;
                width: 50px;
                height: 50px;
                font-size: 1.2rem;
            }

            .emergency-btn {
                font-size: 0.8rem;
                padding: 0.8rem 0.3rem;
            }

            .quiz-option {
                display: block;
                width: 100%;
                margin: 0.5rem 0;
            }

            .contact-item {
                flex-direction: column;
                text-align: center;
                padding: 1rem;
            }

            .contact-icon {
                margin-right: 0;
                margin-bottom: 1rem;
                width: 50px;
                height: 50px;
                font-size: 1.2rem;
            }

            .contact-form {
                margin-bottom: 2rem;
            }
        }

        @media (max-width: 576px) {
            .contact-icon {
                width: 45px;
                height: 45px;
                font-size: 1rem;
            }

            .contact-item {
                padding: 0.8rem;
                margin-bottom: 1rem;
            }

            .contact-info {
                padding: 1rem;
            }
        }
  