:root {
    --primary: #0066cc;
    --primary-dark: #004d99;
    --secondary: #e74c3c;
    --secondary-dark: #c0392b;
    --text: #333333;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-dark: #2c3e50;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
}

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

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

header {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--white);
    border-bottom: 3px solid var(--primary);
    margin-bottom: 2rem;
    animation: fadeIn 1s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 0 0 20px 20px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-container {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.logo-container::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.logo-image {
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.tagline {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    letter-spacing: 0.02em;
}

.intro {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeIn 1s ease 0.3s both;
}

.intro h2 {
    font-size: 1.8rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    color: var(--primary-dark);
}

.intro h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, var(--primary), transparent);
    bottom: 0;
    left: 20%;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease 0.6s both;
}

.service-section {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 102, 204, 0.1);
    position: relative;
}

.service-section:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 102, 204, 0.15);
    border-color: rgba(0, 102, 204, 0.2);
}

.service-section::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-section:hover::after {
    opacity: 1;
}

.service-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1.2rem;
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.service-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0)
    );
    transform: rotate(30deg);
    pointer-events: none;
}

.service-list {
    padding: 1.5rem;
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    position: relative;
}

/* Service list items with box-like appearance */
.service-list li {
    background-color: white;
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    padding: 1rem 1rem 1rem 2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.service-list li:hover {
    background-color: rgba(0, 102, 204, 0.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-left: 3px solid var(--primary);
    color: var(--primary);
}

.service-list li.active {
    background-color: rgba(0, 102, 204, 0.1);
    border-left: 3px solid var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: var(--primary);
}

/* For highlighted items */
.service-list li.highlighted {
    background-color: rgba(0, 102, 204, 0.08);
    border-left: 3px solid var(--primary);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: var(--primary);
}

/* Icon for all service items */
.service-list li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%230066cc' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3E%3Cpath d='M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
    z-index: 1;
}

/* Service detail popups */
.service-detail {
    display: none;
    position: relative;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
    font-size: 0.95rem;
    border: 1px solid rgba(0, 102, 204, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    margin-top: 10px;
    max-width: 100%;
    line-height: 1.5;
    color: var(--text);
    font-weight: 500;
}

.contact {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 20px;
    margin-top: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 102, 204, 0.2);
    animation: fadeIn 1s ease 1.2s both;
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0)
    );
    transform: rotate(30deg);
    pointer-events: none;
}

.contact h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

.contact h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--white);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

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

.contact-item {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.contact-item:hover::before {
    opacity: 1;
}

.contact-item h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 8px;
}

.contact-item h3::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--white);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.contact-item p {
    line-height: 1.8;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    padding-bottom: 2px;
}

.contact-item a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    background-color: var(--white);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.contact-item a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.contact-item a:hover::after {
    width: 100%;
}

.call-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--white);
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.03em;
    font-size: 1rem;
    transform-origin: center;
    animation: pulse 2s infinite;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(231, 76, 60, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 25px rgba(231, 76, 60, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(231, 76, 60, 0.3);
    }
}

.call-button svg {
    width: 18px;
    height: 18px;
}

.call-button:hover, .call-button:focus {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

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

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 3rem;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 102, 204, 0.1);
}

.back-to-top {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background-color: var(--primary);
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
    z-index: 999;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-to-top.visible {
    opacity: 0.9;
    transform: translateY(0);
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.4);
}

.back-to-top:active {
    transform: translateY(2px);
}

/* Scroll progress bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    width: 0%;
    z-index: 1001;
    transition: width 0.2s ease;
}

@media (max-width: 768px) {
    .services-container {
        flex-direction: column;
    }
    
    .contact-details {
        flex-direction: column;
        align-items: center;
    }
    
    .logo-image {
        max-width: 80%;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .service-header {
        font-size: 1.2rem;
    }
    
    .call-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .contact-item {
        min-width: 100%;
    }
    
    .service-list li {
        font-size: 0.9rem;
    }
}