/* About Page Specific Styles */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white !important;
    z-index: -1;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0.2)), url('../images/factory-workers-industrial-production-hall (1).jpg');
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: -1;
}

#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Gear 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); }
}

/* Hero Section */
.hero {
    color: #fff;
}

.hero-container {
    width: 100%;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.5;
    max-width: 700px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 2px solid rgba(52, 152, 219, 0.8);
}

.hero-stat {
    text-align: left;
}

.hero-stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    display: block;
    line-height: 1;
}

.hero-stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* About Section */
.about-section {
    padding: 0;
}

.section-band {
    width: 100%;
    padding: 4rem 2rem;
    position: relative;
    background: rgba(255, 255, 255, 0.9);
}

.section-band:first-child {
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.9) 30%, rgba(255, 255, 255, 0.9) 100%);
    padding-top: 8rem;
    margin-top: 2rem;
}

.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    color: #2C3E50;
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
}

.section-text {
    font-size: 1.2rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Expertise Grid */
.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 cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.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;
}

.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;
}



/* Services Grid Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* Second row (cards 4-5) centered */
.services-grid .service-card:nth-child(4) {
    grid-column: 1 / 2;
    grid-column-start: 1;
    justify-self: end;
}

.services-grid .service-card:nth-child(5) {
    grid-column: 3 / 4;
    grid-column-start: 3;
    justify-self: start;
}

/* Third row (cards 6-7) centered */
.services-grid .service-card:nth-child(6) {
    grid-column: 1 / 2;
    grid-column-start: 1;
    justify-self: end;
}

.services-grid .service-card:nth-child(7) {
    grid-column: 3 / 4;
    grid-column-start: 3;
    justify-self: start;
}

/* Vertical card in middle column spanning rows 2-3 */
.vertical-info-card {
    grid-column: 2;
    grid-row: 2 / 4;
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(0, 0, 0, 0.6)), url('../images/home-vertical-card.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin: 0 1rem;
}

.vertical-info-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.vertical-info-card p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.vertical-info-card .cta-btn {
    background: linear-gradient(135deg, var(--bright-orange), var(--brand-accent));
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

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

/* SVG decorative elements for middle column */


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

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.service-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    min-height: 450px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--bright-orange), var(--brand-accent));
    z-index: 2;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border-color: var(--bright-orange);
}

.service-card:hover::before {
    height: 6px;
    background: linear-gradient(135deg, var(--brand-accent), var(--bright-orange));
}

.service-content .service-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    order: 2;
    margin-bottom: 1rem;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.service-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.3;
    order: 1;
}

.service-image {
    order: 2;
    margin-bottom: 1rem;
}

.service-desc {
    font-size: 0.95rem;
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    order: 3;
}

.read-more-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--bright-orange), var(--brand-accent));
    color: white;
    padding: 0.7rem 1.2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    align-self: flex-start;
    order: 4;
}

.read-more-btn:hover {
    background: linear-gradient(135deg, var(--brand-accent), var(--bright-orange));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 1rem 4rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .hero-stat-number {
        font-size: 2rem;
    }
    
    .about-section {
        padding: 4rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .section-text {
        font-size: 1.1rem;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 0;
        border: none;
    }
    
    .expertise-item {
        padding: 1.2rem;
        border-radius: 12px;
        margin-bottom: 1rem;
    }
    
    .service-card {
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        margin-bottom: 1rem;
        min-height: auto;
    }
    
    .service-card:nth-child(3n) {
        border-right: 1px solid #e0e0e0;
    }
    
    .service-card:nth-child(n+4) {
        border-bottom: 1px solid #e0e0e0;
    }
    
    .expertise-item:hover {
        transform: none;
    }
    
    .service-card:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .service-image {
        height: 150px;
    }
    
    .service-content {
        padding: 1rem;
    }
    
    .expertise-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 1rem;
    }
    
    .expertise-title,
    .service-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .expertise-desc,
    .service-desc {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .read-more-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .quote {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
    
    .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) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .expertise-item {
        padding: 1rem;
    }
    
    .quote {
        font-size: 1.1rem;
        padding: 1rem;
    }
    
    .world-map-container {
        margin: 2rem 0;
    }
    
    .marker-dot {
        width: 10px;
        height: 10px;
        border: 2px solid white;
    }
    
    .marker-label {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
}

