/* Areas of Work Section Styles - Unique Classes */
:root {
    --advance-primary-blue: #0056b3;
    --advance-primary-dark: #004494;
    --advance-primary-light: #007bff;
    --advance-accent-teal: #20c997;
    --advance-dark-charcoal: #2c3e50;
    --advance-light-gray: #f8f9fa;
    --advance-medium-gray: #e9ecef;
    --advance-text-dark: #333;
    --advance-text-light: #6c757d;
    --advance-white: #ffffff;
    --advance-transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --advance-shadow-light: 0 2px 15px rgba(0, 0, 0, 0.08);
    --advance-shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.12);
    --advance-shadow-strong: 0 10px 30px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--advance-light-gray);
    color: var(--advance-text-dark);
    line-height: 1.6;
}

.advance-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Areas Section Styles */
.advance-areas-section {
    padding: 80px 0;
    background: var(--advance-white);
}

.advance-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.advance-section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--advance-dark-charcoal);
    margin-bottom: 15px;
    position: relative;
}

.advance-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--advance-primary-blue);
    border-radius: 2px;
}

.advance-section-subtitle {
    font-size: 18px;
    color: var(--advance-text-light);
    max-width: 600px;
    margin: 25px auto 0;
}

/* Areas Grid */
.advance-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.advance-area-item {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--advance-shadow-light);
    transition: var(--advance-transition);
    cursor: pointer;
}

.advance-area-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--advance-shadow-strong);
}

.advance-area-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.advance-area-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--advance-transition);
}

.advance-area-item:hover .advance-area-image img {
    transform: scale(1.1);
}

.advance-area-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 30px;
    transition: var(--advance-transition);
}

.advance-area-item:hover .advance-area-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 86, 179, 0.1) 0%,
        rgba(0, 86, 179, 0.9) 100%
    );
}

.advance-area-content {
    width: 100%;
    color: var(--advance-white);
    transform: translateY(20px);
    transition: var(--advance-transition);
}

.advance-area-item:hover .advance-area-content {
    transform: translateY(0);
}

.advance-area-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--advance-transition);
}

.advance-area-item:hover .advance-area-icon {
    background: var(--advance-white);
    transform: scale(1.1);
}

.advance-area-symbol {
    font-size: 24px;
    color: var(--advance-primary-blue);
    transition: var(--advance-transition);
}

.advance-area-item:hover .advance-area-symbol {
    color: var(--advance-primary-blue);
}

.advance-area-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--advance-white);
}

.advance-area-description {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.5;
}

.advance-area-button {
    background: transparent;
    color: var(--advance-white);
    border: 2px solid var(--advance-white);
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--advance-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.advance-area-button:hover {
    background: var(--advance-white);
    color: var(--advance-primary-blue);
    transform: translateX(5px);
}

.advance-button-icon {
    font-size: 12px;
    transition: var(--advance-transition);
}

.advance-area-button:hover .advance-button-icon {
    transform: translateX(3px);
}

/* Modal Styles */
.advance-area-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.advance-modal-content {
    background-color: var(--advance-white);
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: var(--advance-shadow-strong);
    position: relative;
    animation: advanceModalSlideIn 0.3s ease-out;
}

@keyframes advanceModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.advance-modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: var(--advance-text-light);
    cursor: pointer;
    transition: var(--advance-transition);
    z-index: 1;
}

.advance-modal-close:hover {
    color: var(--advance-primary-blue);
}

.advance-modal-body {
    padding: 40px;
}

#advance-modal-title {
    font-size: 28px;
    color: var(--advance-dark-charcoal);
    margin-bottom: 20px;
    font-weight: 600;
}

#advance-modal-content {
    line-height: 1.7;
    color: var(--advance-text-dark);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .advance-areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .advance-areas-section {
        padding: 60px 0;
    }
    
    .advance-section-title {
        font-size: 32px;
    }
    
    .advance-areas-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .advance-area-item {
        height: 350px;
    }
    
    .advance-area-overlay {
        padding: 25px;
    }
    
    .advance-modal-body {
        padding: 30px 25px;
    }
}

@media (max-width: 480px) {
    .advance-section-title {
        font-size: 28px;
    }
    
    .advance-area-item {
        height: 300px;
    }
    
    .advance-area-overlay {
        padding: 20px;
    }
    
    .advance-area-title {
        font-size: 20px;
    }
    
    .advance-modal-content {
        width: 95%;
        margin: 10% auto;
    }
}