:root {
    --primary: #1B3A57;
    --secondary: #2C5282;
    --accent: #3182CE;
    --brand-accent: #E53E3E;
    --light-bg: #FFFFFF;
    --text: #1A202C;
    --light-text: #4A5568;
    --max-width: 1200px;
    --bright-blue: #4299E1;
    --bright-orange: #FF6B35;
    --success-green: #38A169;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background: white !important;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* 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/interior-view-steel-factory2.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

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

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

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white !important;
    z-index: -1;
}



.hero-section {
    padding: 8rem 2rem 3rem;
    max-width: var(--max-width);
    margin: auto;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 3rem;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.2s both;
}

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

.cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: cardSlideUp 0.8s ease-out;
}

.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::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    background: rgba(255, 255, 255, 1);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.card-icon svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.card-title {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.card-description {
    color: var(--light-text);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.expand-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.expand-btn:hover {
    color: var(--primary);
}

.expand-icon {
    width: 20px;
    height: 20px;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.expand-btn.active .expand-icon {
    transform: rotate(45deg);
}

.card-features {
    list-style: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.card-features.expanded {
    max-height: 200px;
}

.card-features li {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.card-features.expanded li {
    opacity: 1;
    transform: translateY(0);
}

.card-features.expanded li:nth-child(1) { transition-delay: 0.1s; }
.card-features.expanded li:nth-child(2) { transition-delay: 0.2s; }
.card-features.expanded li:nth-child(3) { transition-delay: 0.3s; }
.card-features.expanded li:nth-child(4) { transition-delay: 0.4s; }

.card-features li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.8rem;
}

.process-section {
    margin-top: 6rem;
}

.process-title {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--secondary), var(--accent));
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    opacity: 0;
    animation: timelineSlide 0.8s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 55%;
    padding-right: 3rem;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
    padding-left: 3rem;
    text-align: left;
}

.timeline-content {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
}

.timeline-number {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.4rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    animation: numberPulse 2s ease-in-out infinite;
    border: 4px solid rgba(255,255,255,0.9);
}

.timeline-title {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--light-text);
    line-height: 1.6;
    font-size: 1rem;
}



@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes timelineSlide {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes numberPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

@media (max-width: 768px) {
    .nav {
        justify-content: center;
        position: relative;
    }
    
    .back-arrow {
        display: flex;
        position: absolute;
        left: 0;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(27, 58, 87, 0.1);
        border: 1px solid rgba(27, 58, 87, 0.2);
        border-radius: 8px;
        color: var(--primary);
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .logo {
        text-align: center;
    }
    
    .logo h1 {
        margin: 0;
        letter-spacing: 0.1em;
    }

    .logo span {
        display: block;
        letter-spacing: 0.05em;
    }
    
    .nav-menu { display: none; }
    

    
    .hero-section {
        padding: 2rem 1rem;
        background: #1B3A57;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .content-section {
        padding: 2rem 1rem;
    }
    
    .cards-container {
        display: block;
        gap: 0;
    }
    
    .service-card {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        box-shadow: none;
        backdrop-filter: none;
    }
    
    .service-card::before {
        display: none;
    }
    
    .card-header {
        margin-bottom: 1rem;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
        margin-right: 1rem;
        background: #C1440E;
    }
    
    .card-title {
        font-size: 1rem;
        color: #1B3A57;
    }
    
    .card-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .process-section {
        margin-top: 2rem;
    }
    
    .process-title {
        font-size: 1.5rem;
        color: #1B3A57;
        background: #f8f9fa;
        padding: 1rem;
        border-radius: 8px;
        text-shadow: none;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .timeline-item {
        margin-bottom: 0.5rem;
        opacity: 1;
        animation: none;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin: 0;
        padding: 0.5rem;
        text-align: left;
        background: #f8f9fa;
        border-left: 3px solid #C1440E;
        border-radius: 8px;
        backdrop-filter: none;
        box-shadow: none;
    }
    
    .timeline-number {
        position: static;
        display: inline-block;
        width: auto;
        height: auto;
        background: #C1440E;
        border-radius: 8px;
        padding: 0.25rem 0.5rem;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
        animation: none;
        border: none;
        box-shadow: none;
    }
    
    .timeline-title {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .timeline-description {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}
