/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'calibri', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: #cee9fe; /* Light blue background as requested */
    color: dark;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-container {
    margin-right: 20px;
}

.logo {
    width: 300px;
    height: 114px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.header-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.header-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out;
}

.header-text p {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out;
}

.header-contact {
    text-align: right;
    animation: fadeInRight 1s ease-out;
}

.header-contact p {
    margin: 5px 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header-contact i {
    margin-left: 8px;
    font-size: 1.1rem;
    color: #ffd700;
}

/* Slider Styles */
.slider-container {
    position: relative;
    width: 100%;
    height: 700px; /* Increased height as requested */
    overflow: hidden;
    margin-bottom: 20px;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: none;
}

.slide.active {
    opacity: 1;
    display: block;
    animation: zoomIn 5s ease; /* Increased animation duration */
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation Styles */
nav {
    background-color: #0a2b5e;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    justify-content: space-around;
    list-style: none;
    flex-wrap: wrap;
}

.nav-item {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: 5px;
    transform: perspective(1000px) rotateX(0deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-item:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.nav-item:hover {
    transform: perspective(1000px) rotateX(-5deg) translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.nav-item:hover:before {
    width: 100%;
}

/* Colorful navigation items */
.nav-item.welding {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
}

.nav-item.drilling {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.nav-item.pipelines {
    background: linear-gradient(135deg, #45b7d1, #96c93d);
}

.nav-item.refineries {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.nav-item.petrochemicals {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
    color: #333;
}

.nav-item.petrochemicals:before {
    background-color: #333;
}

/* Random animation for navigation items */
@keyframes randomFloat {
    0%, 100% { transform: perspective(1000px) rotateX(0deg) rotateY(0deg); }
    25% { transform: perspective(1000px) rotateX(-2deg) rotateY(2deg); }
    50% { transform: perspective(1000px) rotateX(0deg) rotateY(-2deg); }
    75% { transform: perspective(1000px) rotateX(2deg) rotateY(0deg); }
}

.nav-item {
    animation: randomFloat 6s ease-in-out infinite;
}

.nav-item:nth-child(1) { animation-delay: 0s; }
.nav-item:nth-child(2) { animation-delay: 1.2s; }
.nav-item:nth-child(3) { animation-delay: 2.4s; }
.nav-item:nth-child(4) { animation-delay: 3.6s; }
.nav-item:nth-child(5) { animation-delay: 4.8s; }

/* Specialization Section */
.specialization {
    padding: 60px 0;
    background-color: #f8f9fa;
    margin: 20px 0;
}

.specialization h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #1a3c6e;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
    animation: fadeInDown 1s ease-out;
}

.specialization h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1);
    border-radius: 2px;
}

.specialization-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.special-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.special-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.special-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.special-item:hover:before {
    left: 100%;
}

.special-item i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #1a3c6e;
    transition: transform 0.3s ease;
}

.special-item:hover i {
    transform: scale(1.2) rotateY(360deg);
}

.special-item h3 {
    color: #1a3c6e;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.special-item p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* Animation delays for specialization items */
.special-item:nth-child(1) { animation-delay: 0.2s; }
.special-item:nth-child(2) { animation-delay: 0.4s; }
.special-item:nth-child(3) { animation-delay: 0.6s; }

.special-item {
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: both;
}
.contact-info {
    padding: 40px 0;
    background-color: #f1f5f9;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.contact-info h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1a3c6e;
    font-size: 2rem;
    position: relative;
    padding-bottom: 10px;
}

.contact-info h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #1a3c6e;
}

.contact-details {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-details:hover {
    transform: translateY(-5px);
}

.contact-details h3 {
    color: #1a3c6e;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
}

.contact-details p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.contact-details i {
    margin-right: 15px;
    color: #1a3c6e;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Footer Styles */
footer {
    background-color: #0a2b5e;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(1.05);
    }
    to {
        transform: scale(1);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-container {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .header-contact {
        text-align: center;
        margin-top: 15px;
    }
    
    .header-contact p {
        justify-content: center;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-item {
        margin-bottom: 10px;
        width: 200px;
        text-align: center;
    }
    
    .slider-container {
        height: 600px;
    }
    
    .specialization-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-text h1 {
        font-size: 2rem;
    }
    
    .slider-container {
        height: 400px;
    }
    
    .contact-details p {
        font-size: 0.9rem;
    }
    
    .special-item {
        padding: 20px;
    }
}