/* Everett Engineering - Consolidated Pages CSS */

/* About Page Styles */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.expertise-item:nth-child(odd) {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.expertise-item:nth-child(even) {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
}

.expertise-item {
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 8px;
}

.expertise-item:hover {
    transform: scale(1.05) translateY(-8px);
    z-index: 10;
    box-shadow: 0 15px 35px rgba(255,255,255,0.25);
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
    border-radius: 8px;
}

.expertise-icon {
    width: 60px;
    height: 60px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    transition: all 0.4s ease;
}

.expertise-item:hover .expertise-icon {
    border-color: #666;
    color: #666;
    background: transparent;
}

.expertise-item:hover .expertise-title {
    color: #2C3E50 !important;
}

.expertise-item:hover .expertise-desc {
    color: #333 !important;
}

.expertise-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

.expertise-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    text-align: center;
}

.quote {
    font-size: 1.4rem;
    font-style: italic;
    color: #2C3E50;
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    border-left: 4px solid var(--accent);
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
}

.countries {
    color: var(--accent);
    font-weight: 600;
}

/* World Map Styles */
.world-map-container {
    margin: 3rem 0;
    text-align: center;
    overflow: hidden;
}

.map-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.world-map-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.myDot {
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.myDot:hover {
    transform: scale(1.2);
}

.marker-label {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.marker-label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--primary);
}

.myDot:hover .marker-label {
    opacity: 1;
}

/* Contact Page Styles */
.contact-hero {
    min-height: 60vh;
    background: linear-gradient(rgba(27, 58, 87, 0.8), rgba(0, 0, 0, 0.6)), url('../images/contact-us-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(27, 58, 87, 0.7), rgba(255, 107, 53, 0.3));
}

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

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    letter-spacing: 0.02em;
}

.hero-content p {
    font-size: 1.3rem;
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.section {
    padding: 4rem 2rem;
    max-width: var(--max-width);
    margin: auto;
    background: white;
    border-radius: 20px 20px 0 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.contact-info {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.contact-item {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-item strong {
    color: var(--primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.contact-item p {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.contact-icon {
    font-size: 1.2rem;
    color: var(--accent);
}

.contact-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    height: 550px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    background: #fff;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--bright-orange);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--bright-orange), var(--brand-accent));
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
    position: relative;
    z-index: 2;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-accent), var(--bright-orange));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.6);
}

.map-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 0.5rem;
}

.map-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52,152,219,0.3);
}

/* Success Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-icon {
    font-size: 4rem;
    color: var(--success-green);
    margin-bottom: 1rem;
}

.modal-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-content p {
    color: var(--light-text);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-btn {
    background: linear-gradient(135deg, var(--bright-orange), var(--brand-accent));
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* Mission Page Styles */
.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem 2rem;
    background: white;
    min-height: 80vh;
    align-items: start;
    position: relative;
    overflow: hidden;
}

.split-panel {
    position: relative;
    padding: 2rem;
    transition: all 0.4s ease;
    text-align: center;
}

.split-panel:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.card-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    loading: lazy;
}

.panel-content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #800020;
    position: relative;
}

.panel-content p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    font-weight: 400;
}

/* Service Pages Common Styles */
.page-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.page-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.page-hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.content-section {
    padding: 4rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.content-section h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 700;
}

.content-section h3 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.content-section ul {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.content-section li {
    padding: 0.8rem 0 0.8rem 2rem;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
    transition: all 0.2s ease;
}

.content-section li:before {
    content: '▶';
    color: var(--bright-orange);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0.8rem;
}

.content-section li:hover {
    background: rgba(255,107,53,0.05);
    transform: translateX(10px);
    border-radius: 4px;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-category {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.gallery-category h3 {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.gallery-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 1rem;
}

.gallery-images img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
    loading: lazy;
}

.gallery-images img:hover {
    transform: scale(1.05);
}

/* Breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-content {
    max-width: var(--max-width);
    margin: 0 auto;
    font-size: 0.9rem;
    color: var(--light-text);
}

.breadcrumb a {
    color: var(--light-text);
    text-decoration: none;
}

.breadcrumb .current {
    color: var(--primary);
    font-weight: 500;
}

/* Loading Animation */
.gear-system {
    position: relative;
    width: 300px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.gear {
    position: absolute;
    color: var(--accent);
    filter: drop-shadow(0 8px 16px rgba(193,68,14,0.4));
}

.gear-1 {
    font-size: 6rem;
    left: 20px;
    top: 30px;
    animation: rotate 6s linear infinite;
}

.gear-2 {
    font-size: 3rem;
    left: 95px;
    top: 45px;
    animation: rotate-reverse 3s linear infinite;
}

.gear-3 {
    font-size: 4rem;
    left: 155px;
    top: 35px;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* Responsive Design for Pages */
@media (max-width: 768px) {
    .contact-hero {
        min-height: 50vh;
        padding: 2rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section {
        margin-top: -30px;
        border-radius: 15px 15px 0 0;
    }
    
    .page-hero {
        min-height: 50vh;
        padding: 2rem 1rem;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .page-hero p {
        font-size: 1.1rem;
    }
    
    .content-section {
        padding: 2rem 1rem;
    }
    
    .content-section h2 {
        font-size: 2rem;
    }
    
    .content-section h3 {
        font-size: 1.5rem;
    }
    
    .content-section p {
        font-size: 1rem;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .expertise-item {
        padding: 1.2rem;
        border-radius: 12px;
        margin-bottom: 1rem;
    }
    
    .expertise-item:hover {
        transform: none;
    }
    
    .expertise-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 1rem;
    }
    
    .expertise-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .expertise-desc {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .quote {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info,
    .contact-form {
        height: auto;
        padding: 1.5rem;
        border-radius: 12px;
        margin-bottom: 1.5rem;
    }
    
    .contact-info h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-item {
        margin-bottom: 1.8rem;
    }
    
    .contact-item strong {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .contact-form {
        gap: 0.8rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 0.9rem;
        font-size: 16px;
        border-radius: 8px;
        border: 1px solid #ddd;
        transition: border-color 0.2s ease;
    }
    
    .contact-form input:focus,
    .contact-form textarea:focus {
        border-color: var(--accent);
        outline: none;
    }
    
    .btn-primary {
        padding: 0.9rem 1.5rem;
        font-size: 16px;
        border-radius: 8px;
        transition: transform 0.2s ease;
    }
    
    .btn-primary:hover {
        transform: translateY(-1px);
    }
    
    .split-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2rem 1rem;
    }
    
    .card-image {
        width: 150px;
        height: 150px;
    }
    
    .panel-content h3 {
        font-size: 1.5rem;
        color: var(--primary);
        text-shadow: none;
    }
    
    .panel-content p {
        color: var(--text);
        font-size: 0.9rem;
        opacity: 1;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .page-hero p {
        font-size: 1.1rem;
    }
    
    .content-section {
        padding: 2rem 1rem;
    }
    
    .content-section h2 {
        font-size: 2rem;
    }
    
    .content-section h3 {
        font-size: 1.5rem;
    }
    
    .content-section p {
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-images {
        grid-template-columns: 1fr;
    }
    
    .gallery-images img {
        height: 200px;
    }
    
    /* Service page mobile layout */
    .service-layout {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 1rem !important;
    }
    
    .sidebar {
        width: 100% !important;
        position: static !important;
        margin-bottom: 2rem;
    }
    
    .main-content {
        flex: 1;
        padding: 0;
    }
    
    /* Hero section mobile */
    .service-hero {
        min-height: 50vh !important;
    }
    
    .service-hero h1 {
        font-size: 2rem !important;
    }
    
    .service-hero p {
        font-size: 1rem !important;
    }
    
    /* Breadcrumb mobile */
    .breadcrumb {
        padding: 0.5rem 1rem !important;
    }
    
    /* Key strengths section mobile */
    .key-strengths-flex {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .key-strengths-image {
        flex: none !important;
        width: 100% !important;
        height: 200px !important;
    }
    
    .gear-system {
        width: 200px;
        height: 100px;
        transform: scale(0.8);
    }
    
    .gear-1 {
        font-size: 3.5rem;
        left: 10px;
        top: 18px;
    }
    
    .gear-2 {
        font-size: 1.8rem;
        left: 60px;
        top: 28px;
    }
    
    .gear-3 {
        font-size: 2.3rem;
        left: 95px;
        top: 22px;
    }
}

@media (max-width: 480px) {
    .expertise-item {
        padding: 1rem;
    }
    
    .service-layout {
        padding: 0.5rem !important;
    }
    
    .sidebar {
        padding: 1rem !important;
    }
    
    .main-content h2 {
        font-size: 1.5rem !important;
    }
    
    .main-content h3 {
        font-size: 1.2rem !important;
    }
    
    .quote {
        font-size: 1.1rem;
        padding: 1rem;
    }
    
    .world-map-container {
        margin: 2rem 0;
    }
    
    .marker-label {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .content-section {
        padding: 1.5rem 0.5rem;
    }
    
    .content-section h2 {
        font-size: 1.8rem;
    }
    
    .content-section h3 {
        font-size: 1.3rem;
    }
}