/* Modern White-Aqua Gradient Theme */
:root {
    --primary-color: #00c6fb;
    --primary-dark: #0099cc;
    --primary-light: rgba(0, 198, 251, 0.1);
    --accent-color: #00f2fe;
    --accent-dark: #00c6d4;
    --accent-light: rgba(0, 242, 254, 0.1);
    --background-color: #f8fafc;
    --text-color: #2d3748;
    --text-light: #718096;
    --highlight-color: #ff6b6b;
    --white: #ffffff;
    --light-gray: #edf2f7;
    --medium-gray: #e2e8f0;
    --dark-gray: #4a5568;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--background-color) 0%, #e6f7ff 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.logo {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 198, 251, 0.5);
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.logo span {
    font-weight: 800;
}
/* Back to Home Button */
.back-home-btn {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 10;
    border: 1px solid rgba(0, 198, 251, 0.2);
}

.back-home-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-5px);
}

.back-home-btn i {
    transition: var(--transition);
}

.back-home-btn:hover i {
    transform: translateX(-3px);
}

/* Adjust header position to accommodate button */
.header {
    position: relative;
    padding-top: 4rem;
}

@media (max-width: 768px) {
    .back-home-btn {
        top: 1rem;
        left: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .header {
        padding-top: 3.5rem;
    }
}
.header h1 {
    font-size: 3.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.header h1 span {
    position: relative;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header h1 span::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
}

.subtitle {
    color: var(--text-light);
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
}


.services-grid .service-card:nth-child(6) {
    grid-column: auto;
    max-width: 100%;
    justify-self: auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 198, 251, 0.05) 0%, rgba(0, 242, 254, 0.05) 100%);
    z-index: -1;
    transition: var(--transition);
    opacity: 0;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 198, 251, 0.15);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card .service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(0, 198, 251, 0.3);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotate(15deg) scale(1.1);
}

.service-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 3px;
    transition: var(--transition);
}

.service-card:hover h3::after {
    width: 80px;
}

.service-card p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    min-height: 60px;
}

.service-card .specialist-count {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    color: var(--primary-dark);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(0, 198, 251, 0.2);
}

.service-card:hover .specialist-count {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 198, 251, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.show {
    opacity: 1;
    display: flex;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 198, 251, 0.3);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal.show .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 2rem;
    color: white;
    position: relative;
}

.modal-header h2 {
    font-weight: 700;
    font-size: 2rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: 60vh;
}

.specialists-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.specialist-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.specialist-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 198, 251, 0.1);
    transform: translateY(-3px);
}

.specialist-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 198, 251, 0.3);
}

.specialist-info {
    flex: 1;
    text-align: left;
}

.specialist-card h4 {
    color: var(--text-color);
    margin-bottom: 0.3rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.specialist-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    margin-top: 0.5rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.portfolio-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 198, 251, 0.4);
}

.portfolio-link i {
    font-size: 0.8rem;
}

/* Animations */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.service-card {
    animation: fadeInUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
.service-card:nth-child(7) { animation-delay: 0.7s; }

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    /* Reset centered 6th service on smaller screens */
    .services-grid .service-card:nth-child(6) {
        grid-column: auto;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.4rem;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .specialists-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .logo {
        font-size: 2.2rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .specialist-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .specialist-info {
        text-align: center;
    }
}