/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navy Color Scheme */
:root {
    --navy: #1e3a8a;
    --navy-light: #3b82f6;
    --navy-dark: #1e40af;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6b7280;
    --dark-gray: #374151;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

/* Emergency Call Button */
.emergency-call-btn {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.emergency-call-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.6);
}

@keyframes pulse {
    0% { box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(239, 68, 68, 0.8); }
    100% { box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4); }
}

/* Emergency Modal */
.emergency-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.emergency-modal-content {
    background-color: var(--white);
    margin: 15% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    animation: slideIn 0.3s ease;
}

.close {
    color: var(--gray);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.close:hover {
    color: var(--navy);
}

.emergency-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.emergency-phone {
    display: inline-block;
    background: var(--navy);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.emergency-phone:hover {
    background: var(--navy-dark);
    transform: scale(1.05);
}

.emergency-whatsapp {
    display: inline-block;
    background: #25d366;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.emergency-whatsapp:hover {
    background: #128c7e;
    transform: scale(1.05);
}

.emergency-address {
    color: var(--gray);
    margin-top: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--navy);
}

.logo-text h2 {
    color: var(--navy);
    font-size: 1.8em;
    font-weight: 700;
    margin: 0;
}

.logo-text p {
    color: var(--gray);
    font-size: 0.9em;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--navy);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--navy);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--navy);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    color: var(--white);
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(30, 64, 175, 0.95) 100%);
    z-index: -1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.3em;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    background: rgba(30, 58, 138, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.hero-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    line-height: 1.8;
    color: var(--white);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.btn-primary {
    background: var(--white);
    color: var(--navy);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--navy);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25d366;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--white);
}

.services h2 {
    text-align: center;
    font-size: 2.5em;
    color: var(--navy);
    margin-bottom: 20px;
    font-weight: 700;
}

.services-intro {
    text-align: center;
    font-size: 1.1em;
    color: var(--gray);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card:hover .service-image-placeholder {
    transform: scale(1.05);
}

.service-card:hover .service-image-placeholder i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Service Image Placeholders */
.service-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    color: var(--white);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.service-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.service-image-placeholder i {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Locksmith Background */
.locksmith-bg {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
}

.locksmith-bg::before {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
}

/* Technical Background */
.technical-bg {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%);
}

.technical-bg::before {
    background-image: 
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, transparent 20%, rgba(255, 255, 255, 0.05) 50%, transparent 80%);
}

/* Home Services Background */
.home-bg {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
}

.home-bg::before {
    background-image: 
        radial-gradient(circle at 25% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, transparent 25%, rgba(255, 255, 255, 0.05) 50%, transparent 75%);
}

/* CCTV & Access Control Background */
.cctv-bg {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #4338ca 100%);
}

.cctv-bg::before {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
}

.service-content {
    padding: 30px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Service cards without images */
.service-card:not(:has(.service-image)) {
    padding: 40px 30px;
    text-align: center;
}

.service-card:not(:has(.service-image)) .service-icon {
    margin-bottom: 25px;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2em;
    color: var(--white);
}

.service-content h3 {
    font-size: 1.5em;
    color: var(--navy);
    margin-bottom: 20px;
    font-weight: 600;
}

.service-content p {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.6;
    flex: 1;
}

.service-content ul {
    list-style: none;
    text-align: left;
}

.service-content li {
    padding: 8px 0;
    color: var(--dark-gray);
    position: relative;
    padding-left: 25px;
}

.service-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5em;
    color: var(--navy);
    margin-bottom: 30px;
    font-weight: 700;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 1.1em;
}

.about-features {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font-weight: 500;
}

.feature i {
    font-size: 1.2em;
}

.about-image {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-img {
    width: 100%;
    max-width: 500px;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact h2 {
    text-align: center;
    font-size: 2.5em;
    color: var(--navy);
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-intro {
    text-align: center;
    font-size: 1.1em;
    color: var(--gray);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5em;
    color: var(--navy);
    margin-top: 5px;
}

.contact-item h3 {
    color: var(--navy);
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-item p {
    color: var(--gray);
    line-height: 1.6;
}

.contact-item a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

.whatsapp-link {
    color: #25d366 !important;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.whatsapp-link:hover {
    color: #128c7e !important;
    transform: translateX(5px);
}

.contact-form {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 15px;
}

.contact-form h3 {
    color: var(--navy);
    margin-bottom: 30px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--navy);
}

/* Feedback Section */
.feedback {
    padding: 100px 0;
    background: var(--light-gray);
}

.feedback h2 {
    text-align: center;
    font-size: 2.5em;
    color: var(--navy);
    margin-bottom: 60px;
    font-weight: 700;
}

.feedback-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.feedback-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feedback-form h3 {
    color: var(--navy);
    margin-bottom: 30px;
    font-weight: 600;
}

.rating {
    margin-bottom: 30px;
}

.rating label {
    display: block;
    margin-bottom: 10px;
    color: var(--dark-gray);
    font-weight: 500;
}

.stars {
    display: flex;
    gap: 5px;
}

.stars input[type="radio"] {
    display: none;
}

.stars label {
    cursor: pointer;
    font-size: 2em;
    color: #d1d5db;
    transition: color 0.3s ease;
}

.stars input[type="radio"]:checked ~ label,
.stars label:hover,
.stars label:hover ~ label {
    color: var(--warning);
}

.feedback-form input,
.feedback-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
    outline: none;
    border-color: var(--navy);
}

.feedback-display h3 {
    color: var(--navy);
    margin-bottom: 30px;
    font-weight: 600;
}

.reviews {
    max-height: 400px;
    overflow-y: auto;
}

.review-item {
    background: var(--white);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-name {
    font-weight: 600;
    color: var(--navy);
}

.review-rating {
    color: var(--warning);
}

.review-text {
    color: var(--gray);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p {
    color: #c7d2fe;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #c7d2fe;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-section p a {
    color: #25d366;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section p a:hover {
    color: #128c7e;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 2.5em;
        text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
    }

    .hero-subtitle {
        font-size: 1.1em;
        padding: 8px 16px;
    }

    .hero-description {
        font-size: 1em;
        padding: 15px;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
    }

    .hero-bg-img {
        object-position: center;
    }

    .about-content,
    .contact-content,
    .feedback-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .emergency-call-btn {
        right: 10px;
        padding: 12px 16px;
        font-size: 0.9em;
    }

    .emergency-call-btn span {
        display: none;
    }

    .about-features {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .emergency-buttons {
        flex-direction: column;
        align-items: center;
    }

    .emergency-phone,
    .emergency-whatsapp {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 2em;
    }

    .services h2,
    .about-text h2,
    .contact h2,
    .feedback h2 {
        font-size: 2em;
    }

    .service-card,
    .contact-form,
    .feedback-form {
        padding: 30px 20px;
    }

    .service-image {
        height: 150px;
    }

    .about-img {
        height: 300px;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    .emergency-modal-content {
        margin: 20% auto;
        padding: 20px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}
