/* ================================
   MODERN DESIGN SYSTEM & VARIABLES
   ================================ */

:root {
    --primary: #3B82F6;
    --primary-dark: #1E40AF;
    --secondary: #06B6D4;
    --accent: #059669;
    --white: #ffffff;
    --dark: #0F172A;
    --gray-dark: #1F2937;
    --gray: #6B7280;
    --gray-light: #E5E7EB;
    --bg: #F8FAFC;
    --text: #1F2937;
    --gradient: linear-gradient(135deg, #3B82F6 0%, #06B6D4 50%, #10B981 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================
   RESET & BASE STYLES
   ================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Performance Optimizations */
img {
    height: auto;
    max-width: 100%;
}

img[width][height] {
    aspect-ratio: attr(width) / attr(height);
}

/* ================================
   NAVIGATION BAR
   ================================ */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
    gap: 2rem;
}

.logo {
    flex-shrink: 0;
    max-width: 100%;
    overflow: hidden;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
}

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

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Nav Right Section */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Emergency Badge */
.emergency-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1.5px solid #DC2626;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    color: #DC2626;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: #DC2626;
    border-radius: 50%;
    animation: pulse-animation 1.5s ease-in-out infinite;
}

@keyframes pulse-animation {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* Phone Link */
.phone-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.phone-link:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.cta-nav {
    background: var(--gradient);
    color: var(--white) !important;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.cta-nav::after {
    display: none;
}

.cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ================================
   HERO SECTION
   ================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 50%, #164E63 100%);
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(30px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================
   COMMON SECTION STYLES
   ================================ */

section {
    padding: 5rem 2rem;
    position: relative;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ================================
   SERVICES SECTION
   ================================ */

.services {
    background: var(--bg);
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
    position: relative;
    overflow: hidden;
    contain: layout style paint;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.service-card:hover::before {
    transform: scaleX(1);
}

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

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    color: var(--gray);
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

/* ================================
   SIGNAGE & ABOUT SECTIONS
   ================================ */

.signage, .about {
    background: var(--white);
}

.signage-wrapper, .about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.signage-image, .about-image {
    position: relative;
}

.signage-image img, .about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.signage-content, .about-content {
    padding-right: 2rem;
}

.signage-content h2, .about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.signage-content p, .about-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.features-list {
    list-style: none;
    padding: 1.5rem 0;
}

.features-list li {
    padding: 0.75rem 0;
    color: var(--text);
    border-bottom: 1px solid var(--gray-light);
}

.features-list li:last-child {
    border-bottom: none;
}

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

.expertise-card {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.expertise-card h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.expertise-card ul {
    list-style: none;
}

.expertise-card li {
    color: var(--gray);
    padding: 0.5rem 0;
}

.commitment {
    background: var(--gradient);
    color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.commitment p {
    color: var(--white);
    margin: 0;
    font-weight: 500;
    line-height: 1.8;
}

/* ================================
   GALLERY SECTION
   ================================ */

.gallery {
    background: var(--bg);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 1;
    transition: all 0.3s ease;
    contain: layout style paint;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    will-change: transform;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ================================
   TESTIMONIALS SECTION
   ================================ */

.testimonials {
    background: linear-gradient(135deg, #E0F2FE 0%, #F0FDFA 100%);
}

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

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.testimonial-card .stars {
    color: #FBBF24;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-card .quote {
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-card .author {
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-light);
}

.testimonial-card .author strong {
    color: var(--dark);
    display: block;
    margin-bottom: 0.25rem;
}

.testimonial-card .author span {
    color: var(--gray);
    font-size: 0.9rem;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.nav-btn {
    background: var(--gradient);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.testimonial-dots {
    display: flex;
    gap: 0.75rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-light);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

/* ================================
   CONTACT SECTION
   ================================ */

.contact {
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form-wrapper {
    background: var(--bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper h3 {
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-size: 1.3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.form-group label:has(input[type="checkbox"]) {
    display: flex;
    gap: 0.75rem;
    font-weight: 500;
    cursor: pointer;
}

.form-submit-btn {
    background: var(--gradient);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.form-submit-btn:active {
    transform: translateY(0);
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.info-item {
    background: var(--bg);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.info-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

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

.info-item h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info-item p {
    color: var(--gray);
    line-height: 1.8;
}

.info-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.info-item a:hover {
    color: var(--secondary);
}

.contact-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* ================================
   CTA BUTTON
   ================================ */

.cta-button {
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.cta-button:active {
    transform: translateY(-1px);
}

/* ================================
   FOOTER
   ================================ */

footer {
    background: var(--dark);
    color: var(--white);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

footer a {
    color: #06B6D4;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #3B82F6, #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

footer a:hover {
    background: linear-gradient(135deg, #10B981, #3B82F6, #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-1px);
}

footer a::after {
    content: '⚡';
    margin-left: 0.3rem;
    font-size: 0.9em;
    -webkit-text-fill-color: #FBBF24;
}

/* ================================
   ANIMATIONS
   ================================ */

.hidden {
    opacity: 0;
    transform: translateY(20px);
}

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

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        height: 70px;
        gap: 1rem;
    }

    .logo-img {
        height: 45px;
        max-width: 45px;
        max-height: 45px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        left: 0;
        top: 70px;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        list-style: none;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        transition: all 0.2s ease;
    }

    .nav-links a:hover {
        background: rgba(59, 130, 246, 0.08);
        padding-left: 2rem;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-right {
        display: none;
    }

    .hero {
        margin-top: 0;
        padding-top: 70px;
    }

    section {
        padding: 3rem 1rem;
    }

    .signage-wrapper, .about-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .signage-content, .about-content {
        padding-right: 0;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 0.65rem;
    }

    .contact-map iframe {
        min-height: 300px;
    }

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

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

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

    .testimonials-container {
        grid-template-columns: 1fr;
    }

    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 60px;
    }

    .logo-img {
        height: 40px;
        max-width: 40px;
        max-height: 40px;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .hamburger span {
        width: 24px;
        height: 2.5px;
    }

    .nav-links {
        top: 60px;
    }

    .nav-links a {
        padding: 0.85rem 1.25rem;
        font-size: 1rem;
    }

    .hero {
        padding-top: 60px;
    }

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

    .hero p {
        font-size: 0.95rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .contact-info {
        gap: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
    }
}
